/* ===== CSS RESET & NORMALIZE ===== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body { height: 100%; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; font-weight: normal; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; height: auto; border: 0; }

/* ===== SOFT PASTEL COLOR PALETTE (matching brand+soft_pastel) ===== */
:root {
  --brand-primary: #263238;
  --brand-secondary: #54B689;
  --brand-accent: #F4F7FA;
  --pastel-blue: #C6DAF7;
  --pastel-mint: #AFE9D7;
  --pastel-pink: #F9D3EE;
  --pastel-yellow: #FFF7D6;
  --pastel-lilac: #E3D7F7;
  --pastel-green: #DBF4E2;
  --text-main: #263238;
  --text-light: #5E6472;
  --white: #fff;
  --shadow: 0 2px 16px 0 rgba(161,186,204,.11);
  --shadow-card: 0 4px 24px 0 rgba(163,191,198,.12);
  --border-radius: 18px;
  --transition: all 0.24s cubic-bezier(.42,0,.58,1);
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background: linear-gradient(120deg, var(--pastel-blue), var(--pastel-mint), var(--pastel-pink), var(--pastel-lilac), var(--pastel-yellow), var(--pastel-green));
  background-size: 1000% 1000%;
  animation: pastel-bg 22s ease-in-out infinite;
  line-height: 1.6;
}
@keyframes pastel-bg {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
}
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  color: var(--brand-primary);
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--brand-secondary);
}
h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 10px;
}
strong, b {
  font-weight: 600;
}
p, li, address, .footer-contact span {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.75;
}

/* Headings visual separation */
.section h2:not(:first-child), .features h2, .about h2, .cta h2 { margin-top: 0; }

/* ===== LAYOUT ===== */
.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s cubic-bezier(.42,0,.58,1), transform 0.16s linear;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(130, 168, 192, 0.25);
  transform: translateY(-4px) scale(1.03);
}

.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-blue);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  min-width: 250px;
  max-width: 400px;
  margin-bottom: 24px;
  margin-right: 20px;
  margin-left: 0;
  color: var(--brand-primary); /* Contrasted text! */
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card strong {
  margin-top: 10px;
  color: var(--brand-secondary);
}
.testimonial-card p {
  font-style: italic;
  color: var(--brand-primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-mint);
  padding: 20px 20px 20px 28px;
  border-radius: var(--border-radius);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  width: 100%;
  background: var(--pastel-mint);
  box-shadow: 0 2px 14px rgba(178, 200, 200, 0.09);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo img {
  height: 48px;
  transition: transform 0.22s cubic-bezier(.42,0,.58,1);
}
.logo:hover img {
  transform: scale(1.07) rotate(-1deg);
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  padding: 9px 0;
  color: var(--brand-primary);
  position: relative;
  border-radius: 7px;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:not(.btn-primary):hover,
.main-nav a.active {
  color: var(--brand-secondary);
  background: var(--pastel-pink);
  text-decoration: underline;
}
.btn-primary {
  background: linear-gradient(90deg, var(--pastel-blue), var(--pastel-mint));
  color: var(--brand-primary);
  font-weight: 700;
  padding: 8px 30px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  box-shadow: 0 2px 8px 0 rgba(133,144,161,0.11);
  letter-spacing: .03em;
  font-size: 1.1rem;
  margin-left: 12px;
  outline: none;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, var(--pastel-pink), var(--pastel-mint));
  box-shadow: 0 4px 20px 0 rgba(84, 182, 137, 0.10);
  color: #222;
}

/* Hamburger (mobile menu) button */
.mobile-menu-toggle {
  background: var(--brand-secondary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px 0 rgba(107, 192, 152, 0.08);
  z-index: 105;
  cursor: pointer;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-secondary);
  background: var(--pastel-pink);
  color: var(--brand-primary);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(244,247,250,0.96);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.79,0,.35,1), opacity 0.18s;
  opacity: 0;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 2.4rem;
  cursor: pointer;
  align-self: flex-end;
  margin: 20px 24px 0 0;
  z-index: 161;
  transition: color var(--transition), background var(--transition);
}
.mobile-menu-close:hover {
  color: var(--brand-secondary);
  background: var(--pastel-pink);
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 36px 0 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  padding: 12px 24px;
  color: var(--brand-primary);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  width: max-content;
}
.mobile-nav a:hover {
  background: var(--pastel-blue);
  color: var(--brand-secondary);
}

/* Show/hide main nav & burger on sreen breakpoints */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* ===== HERO SECTIONS ===== */
.hero {
  background: linear-gradient(135deg, var(--pastel-mint), var(--pastel-blue) 48%, var(--pastel-pink) 100%);
  padding: 54px 0 50px 0;
  border-radius: 0 0 60px 60px;
  margin-bottom: 54px;
  box-shadow: 0 6px 30px 0 rgba(204, 220, 255, 0.08);
}
.hero .content-wrapper {
  min-height: 200px;
  text-align: center;
  align-items: center;
}
.hero h1 { color: var(--brand-primary); font-size: 2.25rem; letter-spacing: -1.5px; }
.hero p {
  margin-bottom: 28px;
  font-size: 1.14rem;
  color: var(--text-light);
}

/* ===== FEATURES ===== */
.features .feature-grid, .features .benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 16px;
}
.features .feature-grid > div, .features .benefits-grid > div {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 28px 22px 24px 22px;
  min-width: 220px;
  flex: 1 1 210px;
  max-width: 330px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.features .feature-grid > div:hover, .features .benefits-grid > div:hover {
  box-shadow: 0 6px 26px 0 rgba(180, 202, 221, 0.21);
  transform: translateY(-4px) scale(1.03);
}
.features img, .feature-item img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 30px 0 0 0;
}
.product-grid > div {
  background: var(--pastel-yellow);
  border-radius: var(--border-radius);
  padding: 22px 25px;
  font-size: 1.04rem;
  font-weight: 500;
  color: var(--brand-primary);
  min-width: 220px;
  letter-spacing: .02em;
  box-shadow: var(--shadow-card);
}

/* ===== BLOG ARTICLE LIST ===== */
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}
.article-item {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 22px 24px;
  min-width: 250px;
  max-width: 350px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-item:hover {
  box-shadow: 0 6px 24px 0 rgba(174,201,228,0.19);
  transform: translateY(-4px) scale(1.03);
}
.categories {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 0 0;
  justify-content: center;
  align-items: center;
}
.categories strong {
  margin-right: 7px;
  color: var(--brand-secondary);
}
.categories span {
  background: var(--pastel-pink);
  color: var(--brand-primary);
  border-radius: 7px;
  padding: 7px 16px;
  font-size: 0.98rem;
  transition: background var(--transition), color var(--transition);
}
.categories span:hover {
  background: var(--pastel-mint);
  color: var(--brand-secondary);
}

/* ===== TESTIMONIAL SLIDER/LIST ===== */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
}
.testimonials .testimonial-card {
  background: var(--pastel-lilac);
  color: var(--brand-primary);
  min-width: 258px;
  max-width: 420px;
  padding: 26px 22px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.testimonial-card img {
  width: 24px; height: 24px; display: inline-block; vertical-align: bottom; margin-right: 2px;
}

/* ===== CTA SECTIONS ===== */
.cta {
  background: var(--pastel-pink);
  border-radius: var(--border-radius);
  box-shadow: 0 6px 26px 0 rgba(230,200,232,0.05);
  padding: 42px 12px;
  text-align: center;
  margin: 50px 0 24px 0;
}
.cta p { margin: 15px auto; max-width: 540px; color: var(--text-main); font-size: 1.09rem; }
.cta .btn-primary { margin: 25px 0 0 0; }

/* ===== INFO BOXES (how it works) ===== */
.info-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  justify-content: center;
}
.info-boxes > div {
  background: var(--pastel-mint);
  padding: 16px 22px;
  border-radius: 14px;
  color: var(--brand-primary);
  font-size: 1.03rem;
  min-width: 200px;
  max-width: 300px;
  box-shadow: 0 2px 11px 0 rgba(140,191,153, 0.045);
}

.tips-list {
  margin: 22px 0 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.tips-list li::before {
  content: '✔';
  color: var(--brand-secondary);
  margin-right: 8px;
}

.timeline {
  margin-top: 30px;
  text-align: left;
  width: 100%;
  max-width: 420px;
  align-self: center;
}
.timeline h3 { font-size: 1.14rem; color: var(--brand-secondary); margin-bottom: 8px; }
.timeline ul { padding-left: 14px; }
.timeline li {
  color: var(--brand-primary);
  margin-bottom: 8px;
  font-size: 1.03rem;
  position: relative;
}
.timeline li::before {
  content: '•';
  color: var(--brand-secondary);
  font-size: 1.13rem;
  margin-right: 7px;
}

/* ===== ABOUT TEXT SECTION ===== */
.text-section {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 14px 0 rgba(230,230,255,.07);
  padding: 26px 24px 18px 24px;
  margin: 18px 0 0 0;
  text-align: left;
  max-width: 700px;
  align-self: center;
}
.text-section ul {
  margin-top: 14px;
  padding-left: 18px;
}
.text-section li {
  position: relative;
  margin-bottom: 8px;
  color: var(--brand-primary);
  font-size: 1.01rem;
}
.text-section li::before {
  content: '–';
  color: var(--brand-secondary);
  font-weight: 700;
  margin-right: 9px;
}

/* ===== CONTACT INFO ===== */
.contact address {
  background: var(--pastel-lilac);
  border-radius: var(--border-radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  color: var(--brand-primary);
  margin: 24px auto 0 auto;
  font-size: 1.04rem;
  max-width: 440px;
}
.contact address img { width: 18px; height: 18px; margin-right: 8px; vertical-align: text-bottom; }
.contact address div { display: flex; align-items: center; gap: 8px; }

/* ===== ADDRESS & FOOTER ===== */
footer {
  background: var(--pastel-mint);
  padding: 36px 0 22px 0;
  border-radius: 50px 50px 0 0;
  box-shadow: 0 -3px 30px 0 rgba(125,170,200,0.08);
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 150px;
}
.footer-nav a {
  font-size: 1.01rem;
  color: var(--brand-primary);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--brand-secondary); text-decoration: underline; }
.footer-contact {
  font-size: 0.99rem;
  color: var(--brand-primary);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact img { width: 16px; height: 16px; margin-right: 7px; vertical-align: middle; }
.footer-copy {
  flex-basis: 100%;
  text-align: right;
  color: var(--brand-primary);
  font-size: 0.97rem;
  margin-top: 16px;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  box-shadow: 0 -2px 24px 0 rgba(161,186,204,0.18);
  border-top-left-radius: 29px;
  border-top-right-radius: 29px;
  padding: 26px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3000;
  max-width: 99vw;
  transition: transform .33s cubic-bezier(.79,0,.35,1), opacity 0.17s;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner p {
  margin-bottom: 14px;
  text-align: center;
  max-width: 460px;
  font-size: 1.01rem;
  color: var(--brand-primary);
}
.cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.cookie-btn, .cookie-btn-primary {
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  min-width: 110px;
  transition: background .18s, color .18s, box-shadow .18s;
}
.cookie-btn {
  background: var(--pastel-yellow);
  color: var(--brand-primary);
  margin-right: 10px;
}
.cookie-btn:hover {
  background: var(--pastel-blue);
  color: var(--brand-secondary);
}
.cookie-btn-primary {
  background: var(--brand-secondary);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(107, 192, 152, 0.12);
}
.cookie-btn-primary:hover {
  background: var(--pastel-mint);
  color: var(--brand-primary);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(205,226,219, 0.72);
  z-index: 3300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s cubic-bezier(.42,0,.58,1);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: var(--white);
  min-width: 300px;
  max-width: 98vw;
  border-radius: 16px;
  box-shadow: 0 3px 32px 4px rgba(161,186,204,0.14);
  padding: 32px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cookie-modal-content h3 {
  color: var(--brand-secondary);
  font-size: 1.23rem;
  margin-bottom: 13px;
}
.cookie-modal-content .cookie-setting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .99rem;
  color: var(--brand-primary);
}
.cookie-modal-content .cookie-toggle {
  width: 38px; height: 22px;
  background: var(--pastel-pink);
  border-radius: 11px;
  margin-left: 7px;
  position: relative;
  cursor: pointer;
}
.cookie-modal-content .cookie-toggle input {
  opacity: 0;
  width: 38px;
  height: 22px;
  position: absolute;
  left: 0; top: 0;
  cursor: pointer;
}
.cookie-modal-content .cookie-toggle span {
  display: block;
  position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-secondary);
  transition: left 0.15s cubic-bezier(.42,0,.58,1), background 0.16s;
}
.cookie-modal-content .cookie-toggle input:checked + span {
  left: 19px;
  background: var(--brand-secondary);
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.cookie-modal-content .cookie-btn {
  min-width: 120px;
}

/* ===== PAGE UTILITIES & GENERIC FLEX ==== */
.section + .section {
  margin-top: 30px;
}

/* Adequate spacing for all cards/sections */
.card, .feature-grid > div, .testimonial-card, .article-item, .info-boxes > div, .product-grid > div {
  margin-bottom: 20px;
}

/* No overlapping -- all .card, .testimonial-card, .section spacings */
.card, .testimonial-card, .feature-grid > div {
  z-index: 0;
}

/* ===== RESPONSIVE: MOBILE FIRST ===== */
@media (max-width: 900px) {
  .container { max-width: 99vw; }
  .content-grid, .card-container { flex-direction: column; gap: 20px !important; }
  .footer-copy { text-align: center; margin-top: 32px; }
}

@media (max-width: 768px) {
  html, body { font-size: 15px; }
  header .container {
    flex-direction: row;
    gap: 5px;
  }
  .cta, .section, .features .feature-grid > div, .info-boxes > div, .product-grid > div, .testimonial-card {
    padding: 18px 8px !important;
    min-width: unset;
    width: 96vw;
    max-width: 98vw;
  }
  .hero {
    padding: 36px 0 30px 0;
    border-radius: 0 0 24px 24px;
    margin-bottom: 24px;
  }
  .features .feature-grid, .features .benefits-grid, .product-grid, .article-list, .testimonial-slider, .testimonial-list, .info-boxes {
    flex-direction: column;
    gap: 20px !important;
    align-items: center;
  }
  .main-nav { display: none !important; }
  .footer-nav, .footer-contact {
    min-width: unset;
    max-width: 98vw;
  }
  .footer-contact {
    font-size: 0.99rem;
    padding-top: 14px;
  }
  .content-wrapper { padding: 0 2vw; }
  .text-section { padding: 15px 8px; }
  .cta { padding: 22px 4vw; }
  .cookie-banner, .cookie-modal-content { padding: 16px 6vw !important; }
  .mobile-nav {
    margin: 22px 0 0 22px;
  }
}
@media (max-width: 480px) {
  html, body { font-size: 14px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .container { width: 99vw; padding: 0; }
}

/* ===== ANIMATIONS & MICRO-INTERACTIONS ===== */
.btn-primary, .cookie-btn, .cookie-btn-primary,
.card, .feature-grid > div, .testimonial-card, .article-item, .categories span, .footer-nav a, .main-nav a, .mobile-nav a, .logo img, .mobile-menu-toggle, .mobile-menu-close {
  transition: var(--transition);
}
/* subtle pop/focus ring */
.btn-primary:focus-visible, .cookie-btn:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible {
  outline: 2px dashed var(--brand-secondary);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--pastel-mint), var(--shadow);
}

/* LISTS */
ul, ol {
  margin-left: 1.1em;
  margin-bottom: 14px;
}
li { padding-left: 0; margin-bottom: 5px; }

/* ===== SCROLLBAR SOFT ===== */
::-webkit-scrollbar { width: 10px; background: var(--pastel-yellow); }
::-webkit-scrollbar-thumb { background: var(--pastel-pink); border-radius: 8px; }

/* ===== PRINT/BG COMPATIBILITY ===== */
@media print {
  body { background: #fff !important; }
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
}
