/* --- CSS RESET & NORMALIZATION --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #fff;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  background: #fff;
  color: #20405A;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  border: 0;
}
b,
strong {
  font-weight: 700;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}


/* --- VARIABLES (color palette fallback) --- */
:root {
  --primary: #20405A;
  --secondary: #A3B899;
  --accent: #F5F3EE;
  --white: #fff;
  --black: #1A252F;
  --shadow: 0 2px 16px rgba(32,64,90,0.05);
  --radius: 12px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem; /* 18px */
}
p, li, span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.7;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 22px;
  margin-top: 0;
}
ul li, ol li {
  margin-bottom: 9px;
}
.main-nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin-left: 6px;
  margin-right: 6px;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.main-nav a:hover, .footer-nav a:hover, .mobile-nav a:hover {
  color: var(--secondary);
}


/* --- SPACING UTILITIES & LAYOUTS --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent;
}
.text-section {
  gap: 16px;
}
/* Grid/flex patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 84px;
  position: relative;
}
.testimonial-card p {
  flex: 1 1 0%;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--primary);
  font-weight: 500;
  opacity: 0.85;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 22px 18px 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.22s, transform 0.24s;
}
.feature-item:hover {
  box-shadow: 0 4px 22px rgba(32, 64, 90, 0.09);
  transform: translateY(-2px) scale(1.012);
}
.feature-item img {
  width: 36px;
  height: 36px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid .feature-item {
  flex: 1 1 210px;
  min-width: 190px;
  max-width: 100%;
}
.tip-box {
  background: var(--accent);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  margin-top: 10px;
}

.quality-guarantee {
  display: flex;
  align-items: center;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 14px;
  gap: 16px;
  font-size: 1rem;
  box-shadow: var(--shadow);
}
.quality-guarantee img {
  width: 32px;
  height: 32px;
}

/* --- HEADER --- */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #E3E8ED;
  box-shadow: 0 2px 10px rgba(32, 64, 90, 0.04);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 18px 20px;
}
header img[alt="Polish Dawn Home"] {
  width: 155px;
  height: auto;
  margin-right: 14px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 13px 32px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-left: auto;
  box-shadow: 0 1px 8px rgba(32,64,90,0.06);
  transition: background 0.20s, box-shadow 0.20s, color 0.20s, transform 0.19s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(163,184,153,0.13);
  outline: none;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  position: absolute;
  top: 18px;
  right: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
  box-shadow: var(--shadow);
  transition: background 0.22s, transform 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
  transform: scale(1.05);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 8px 40px rgba(32,64,90,0.17);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.6,.05,.25,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 26px 24px 0 32px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  position: absolute;
  top: 22px;
  right: 28px;
  cursor: pointer;
  transition: color 0.18s, transform 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
  outline: none;
  transform: scale(1.07);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 70px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--primary);
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  width: 100%;
  transition: color 0.22s, background 0.14s;
  border-radius: 5px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
  outline: none;
}

@media (max-width: 992px) {
  header .container {
    gap: 18px;
    padding: 15px 12px;
  }
}
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .section, main > section {
    padding: 30px 3vw;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 3vw;
  }
  .feature-grid {
    gap: 16px;
  }
  .feature-item {
    min-width: 140px;
    padding: 15px 8px 14px 10px;
    gap: 11px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 10px;
    min-height: 74px;
  }
  .content-wrapper,
  .text-section {
    gap: 13px;
  }
  .card-container,
  .content-grid {
    gap: 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
  h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .cta-btn {
    font-size: 16px;
    padding: 11px 18px;
  }
}

@media (max-width: 550px) {
  .container {
    padding: 0 6vw;
  }
  .feature-item img, .quality-guarantee img {
    width: 27px;
    height: 27px;
  }
  .mobile-nav a {
    font-size: 1.08rem;
    padding: 12px 0;
  }
}

/* --- MAIN & HERO SECTIONS --- */
main > section {
  border-radius: var(--radius);
  background: none;
  box-shadow: none;
}
main a:not(.cta-btn) {
  color: var(--primary);
  text-decoration: underline dotted var(--secondary) 1.4px;
  transition: color 0.18s;
}
main a:not(.cta-btn):hover {
  color: var(--secondary);
  text-decoration: underline solid var(--secondary) 1.6px;
}


/* --- CARDS & BOXES --- */
.card {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 220px;
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- FAQS, TIPS, LIST BOXES --- */
.tip-box ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 20px;
}


/* --- FOOTER --- */
footer {
  background: var(--accent);
  border-top: 1px solid #e6e7ea;
  margin-top: 40px;
  padding: 0 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 20px 24px 20px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 0.97rem;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.98rem;
  color: var(--primary);
  opacity: 0.93;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}
.footer-brand {
  font-size: 0.93rem;
  color: #4b626d;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  margin-top: 9px;
}
@media (max-width: 768px) {
  footer .container {
    padding: 28px 10px 18px 10px;
    gap: 8px;
  }
  .footer-contact, .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 3px;
  }
}

/* --- GEN. ELEMENTS & INTERACTIONS --- */
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: none;
  outline: none;
}
::-webkit-input-placeholder { color: #7C8691; }
::-moz-placeholder { color: #7C8691; }
:-ms-input-placeholder { color: #7C8691; }
::placeholder { color: #7C8691; }

hr {
  border: none;
  border-top: 1px solid #F5F3EE;
  margin: 22px 0;
}

/* Subtle focus styles */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* --- COOKIE BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 25px 28px;
  z-index: 9999;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgba(32,64,90,0.19);
  gap: 22px;
  font-size: 1.01rem;
  animation: cookieIn 0.8s cubic-bezier(.59,.56,.29,1.14);
  transition: transform 0.25s, opacity 0.2s;
}
@keyframes cookieIn {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1;}
}
.cookie-consent-banner.hidden {
  transform: translateY(150px);
  pointer-events: none;
  opacity: 0;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  border-radius: var(--radius);
  padding: 9px 24px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  margin-right: 0;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.cookie-consent-banner .accept-btn {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
}
.cookie-consent-banner .accept-btn:hover,
.cookie-consent-banner .accept-btn:focus {
  background: var(--white);
  color: var(--primary);
}
.cookie-consent-banner .reject-btn {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--accent);
  font-weight: 500;
}
.cookie-consent-banner .reject-btn:hover,
.cookie-consent-banner .reject-btn:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-consent-banner .settings-btn {
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  border: 1.5px solid var(--accent);
}
.cookie-consent-banner .settings-btn:hover,
.cookie-consent-banner .settings-btn:focus {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 520px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 6vw;
    gap: 8px;
  }
  .cookie-consent-banner .cookie-btns {
    gap: 8px;
    width: 100%;
  }
}

/* --- COOKIE CONSENT MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32, 64, 90, 0.29);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--accent);
  border-radius: 21px;
  padding: 32px 32px 28px 32px;
  max-width: 400px;
  box-shadow: var(--shadow), 0 12px 44px rgba(32,64,90,0.17);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.45s cubic-bezier(.4,0,.3,1.17);
}
@keyframes modalIn {
  from { transform: scale(0.98) translateY(40px); opacity: 0; }
  to {transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.13rem;
  color: var(--primary);
  margin-bottom: 5px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  gap: 8px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary);
  margin-left: 7px;
}
.cookie-modal .cookie-save-btn {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  padding: 9px 22px;
  margin-top: 13px;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform 0.16s;
}
.cookie-modal .cookie-save-btn:hover,
.cookie-modal .cookie-save-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: scale(1.015);
}
.cookie-modal .cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.55rem;
  color: var(--primary);
  position: absolute;
  right: 27px;
  top: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: color 0.18s, opacity 0.12s, transform 0.17s;
}
.cookie-modal .cookie-modal-close:hover {
  color: var(--secondary);
  opacity: 1;
  transform: scale(1.10);
}
@media (max-width: 500px) {
  .cookie-modal {
    max-width: 99vw;
    padding: 22px 5vw 20px 5vw;
  }
  .cookie-modal .cookie-modal-close {
    right: 17px; top: 10px;
  }
}

/* --- ANIMATIONS/MICRO-INTERACTIONS --- */
.cta-btn, .feature-item, .testimonial-card, .cookie-modal, .cookie-consent-banner, .card {
  transition: box-shadow 0.22s, background 0.20s, color 0.18s, transform 0.17s;
}

a, button, .cta-btn {
  transition: color 0.20s, background 0.20s, border-color 0.16s, box-shadow 0.19s, transform 0.18s;
}


/* --- UTILITIES --- */
.hide {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

@media (max-width: 400px) {
  .testimonial-card, .tip-box, .feature-item, .card {
    padding: 9px 7px !important;
    font-size: 0.98rem !important;
  }
  .cta-btn {
    font-size: 0.94rem !important;
    padding: 8px 8px !important;
  }
}

/* --- END OF CSS --- */