/* === CSS RESET & NORMALIZE === */
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 {scroll-behavior: smooth;}
body {line-height: 1;}
ol, ul {list-style: none;}
a {text-decoration: none; color: inherit;}
table {border-collapse: collapse; border-spacing: 0;}
img, picture, svg {max-width: 100%; display: block;}
button {font: inherit; border: none; background: none; cursor: pointer; padding: 0; margin: 0;}
input, select, textarea {font: inherit; border-radius: 0; border: none; outline: none; background: none; color: inherit;}
:focus {outline: 2px solid #F5A623; outline-offset: 2px;}

/* === SOFT PASTEL BRAND COLORS === */
:root {
  --primary: #16315C;
  --secondary: #E3F2FD;
  --accent: #F5A623;
  --bg-main: #FBFAF8;
  --bg-card: #F9F7FD;
  --bg-pastel-rose: #FFE6EB;
  --bg-pastel-blue: #E3F2FD;
  --bg-pastel-mint: #E7FDF4;
  --bg-pastel-yellow: #FFF8E1;
  --shadow: 0 6px 24px rgba(22,49,92,0.07), 0 1.5px 4px rgba(32, 32, 50, 0.03);
  --border-radius: 18px;
  --text-main: #292C36;
  --text-muted: #637391;
  --text-dark: #16315C;
  --white: #fff;
  --transition: all 0.22s cubic-bezier(.4,0,.2,1);
  --section-spacing: 60px;
  --content-max: 1120px;
}

@media (max-width: 1024px) {
  :root { --content-max: 94vw; --section-spacing: 36px; }
}
@media (max-width: 768px) {
  :root { --content-max: 100vw; --section-spacing: 26px; }
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  min-height: 100vh;
  font-size: 16px;
  font-weight: 400;
  transition: background var(--transition);
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {font-size: 2.4rem; line-height: 1.18; margin-bottom: 20px;}
h2 {font-size: 2rem; line-height: 1.21; margin-bottom: 18px;}
h3 {font-size: 1.33rem; margin-bottom: 12px;}
h4 {font-size: 1.1rem;}

p, ul, ol, .text-section {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

strong, b {color: var(--primary); font-weight: 700;}
small {font-size: 0.9rem; color: var(--text-muted);}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  align-items: flex-start;
}

.section {
  background: var(--white);
  margin-bottom: var(--section-spacing);
  padding: 40px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* === HEADER === */
header {
  background: linear-gradient(135deg, var(--bg-pastel-blue) 66%, var(--bg-pastel-rose) 100%);
  box-shadow: 0 2px 10px 0 rgba(22,49,92,0.04);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  padding: 0 0 6px 0;
  position: relative;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 42px;
  width: auto;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-size: 1rem;
  color: var(--primary);
  padding: 9px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: var(--transition);
}
nav a:hover, nav a:focus {
  background: var(--bg-pastel-mint);
  color: var(--accent);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px 0 rgba(245,166,35,0.09);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px 0 rgba(22,49,92,0.07);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  color: var(--primary);
  background: transparent;
  border: none;
  margin-left: auto;
  z-index: 211;
  transition: var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--accent);
}
.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  header .container nav, header .container .btn-primary {display: none;}
  .mobile-menu-toggle {
    display: block;
    position: absolute; right: 22px; top: 12px;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--bg-pastel-blue);
    box-shadow: 0 2px 32px 0 rgba(22,49,92,0.22);
    z-index: 222;
    transform: translateX(100%);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
  }
  .mobile-menu.open {
    transform: translateX(0px);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    position: absolute;
    top: 26px; right: 28px;
    z-index: 2222;
    transition: var(--transition);
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--accent); }
  .mobile-nav {
    margin-top: 90px; width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    justify-content: flex-start;
  }
  .mobile-nav a {
    font-size: 1.22rem; color: var(--primary);
    background: var(--white);
    border-radius: 12px;
    padding: 16px 26px;
    margin: 0 10vw;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2.5px 10px 0 rgba(22,49,92,0.07);
    text-align: center;
    min-width: 60vw;
  }
  .mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
    color: var(--accent);
    background: var(--bg-pastel-mint);
  }
}

/* === HERO & PROMO === */
.hero {
  background: linear-gradient(120deg, var(--bg-pastel-blue) 75%, var(--bg-pastel-rose) 100%);
  min-height: 380px;
  border-radius: 0 0 38px 38px;
  box-shadow: 0 28px 40px -20px rgba(22,49,92, 0.03);
  display: flex;
  align-items: center;
  margin-bottom: var(--section-spacing);
  padding: 46px 0 38px 0;
}
.hero .container {
  display: flex; align-items: center; justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 620px;
}
.hero h1 {font-size:2.4rem;color: var(--primary); margin-bottom: 14px;}
.hero p {font-size: 1.12rem; color: var(--text-muted); margin-bottom: 26px;}

/* === SECTIONS, CARDS, GRIDS === */
.features-grid,
.process-timeline,
.faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div,
.process-timeline > div {
  flex: 1 1 220px;
  min-width: 230px;
  max-width: 330px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: 0 0px 8px 0 rgba(22,49,92,0.07);
  padding: 32px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: var(--transition), box-shadow 0.2s linear;
  position: relative;
  margin-bottom: 20px;
}
.features-grid > div:hover, .process-timeline > div:hover {
  box-shadow: 0 6px 28px 0 rgba(22,49,92,0.12);
  background: var(--bg-pastel-mint);
}
.features-grid img, .process-timeline img {
  height: 44px; width: 44px; margin-bottom: 10px;
}
.features-grid h3, .process-timeline h3 {font-size: 1.10rem; margin-top: 0; margin-bottom: 7px;}
.features-grid p, .process-timeline p {font-size: 0.98rem; color: var(--text-muted); margin-bottom: 0;}

.process-timeline {
  gap: 28px;
  justify-content: flex-start;
}
.faq-accordion > div {
  flex: 1 1 320px;
  background: var(--bg-pastel-yellow);
  border-radius: var(--border-radius);
  box-shadow: 0 0.5px 3px 0 rgba(22,49,92,0.06);
  padding: 26px 18px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.faq-accordion > div:hover {background: var(--bg-pastel-mint);}

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 18px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 270px;
  min-width: 220px;
  transition: box-shadow 0.19s;
}
.card:hover { box-shadow: 0 8px 32px 0 rgba(22,49,92,0.16); }
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* === SECTION SPACING === */
.section, section {
  margin-bottom: var(--section-spacing);
  padding: 40px 20px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section, section {
    margin-bottom: 30px;
    padding: 26px 9px;
  }
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--bg-pastel-blue);
  border-radius: var(--border-radius);
  padding: 20px 28px 20px 20px;
  box-shadow: 0 2.5px 15px 0 rgba(22,49,92,0.07);
  margin-bottom: 24px;
  max-width: 540px;
  color: var(--text-main);
  font-size: 1.05rem;
  font-style: italic;
  transition: var(--transition);
  border-left: 4px solid var(--accent);
  position: relative;
}
.testimonial-card strong {
  font-weight: 700;
  color: var(--primary);
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--text-main);
  font-style: normal;
}
.testimonial-card span:last-child {
  margin-left: 16px;
  font-size: 1.08rem;
  color: var(--accent);
  letter-spacing: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.testimonial-card:hover {background: var(--bg-pastel-mint);}

/* === CTA SECTION === */
.cta {
  background: linear-gradient(105deg, var(--bg-pastel-mint) 60%, var(--bg-pastel-yellow) 100%);
  box-shadow: 0 3px 16px 0 rgba(245,166,35,0.10);
  border-radius: 26px;
  margin-bottom: var(--section-spacing);
  text-align: center;
}
.cta .content-wrapper { align-items: center; }
.cta h2 {margin-bottom: 12px;}
.cta p {margin-bottom: 16px; color: var(--text-muted);}
.cta .btn-primary {margin-top: 16px;}

/* === FOOTER === */
footer {
  background: var(--secondary);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -2px 8px 0 rgba(22,49,92,0.04);
  padding: 32px 0 18px 0;
  margin-top: 36px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {color: var(--accent); background:var(--bg-card);}
.footer-contact {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 8px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
footer small {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: block;
  text-align: center;
  margin-top: 6px;
}

/* === FORMS, TABLES, LISTS (Soft Pastel Feel) === */
table {
  width: 100%;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(22,49,92,0.04);
  margin-bottom: 24px;
  overflow: hidden;
  font-size: 1rem;
}
th, td {
  padding: 15px 10px;
  text-align: left;
}
th {
  background: var(--bg-pastel-blue);
  color: var(--primary);
  font-weight: 600;
}
td {
  border-bottom: 1px solid #e5e5e5;
  color: var(--text-main);
}
tr:last-child td {border-bottom: none;}

ul, ol {
  margin-left: 1em;
  padding-left: 0.9em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul li::before {
  content: '• ';
  color: var(--accent);
  font-weight: bold;
  margin-right: 4px;
  font-size: 1.1rem;
}

/* === TEXT SECTION === */
.text-section {
  background: var(--bg-pastel-yellow);
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(22,49,92,0.03);
}

/* === SPACING AND LAYOUT STRUCTURES === */
.section { margin-bottom: 60px; padding: 40px 20px; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* === UTILITY SCALES === */
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }

/* === MEDIA QUERIES: MOBILE FIRST === */
@media (max-width: 900px) {
  .features-grid, .process-timeline, .faq-accordion, .card-container, .card-grid, .content-grid {
    gap: 18px;
  }
  .hero h1 { font-size: 2rem; }
  .hero {
    min-height: 220px;
    padding: 28px 0 18px 0;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 7px; }
  h1 {font-size:1.55rem;}
  h2 {font-size:1.27rem;}
  .section, section, .cta {
    padding: 22px 5px;
    border-radius: 12px;
  }
  .features-grid,
  .process-timeline,
  .faq-accordion,
  .card-container,
  .card-grid,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .features-grid > div, .process-timeline > div {
    min-width: 0; max-width: 100%;
    padding: 22px 12px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 15px 10px 15px 10px;
    border-radius: 12px;
    font-size: 1rem;
    flex-direction: column;
    gap: 10px;
  }
  .hero .content-wrapper {max-width: 100%;}
}

@media (max-width: 520px) {
  html {font-size: 15px;}
  .footer-contact, .footer-nav { flex-direction: column; gap: 7px; }
}

/* === TRANSITIONS, HOVER EFFECTS === */
a, .btn-primary, button, .card, .testimonial-card, nav a, .mobile-nav a {
  transition: var(--transition);
}

/* === MICRO-INTERACTIONS === */
.btn-primary:active { transform: scale(0.97); }
.card:active { box-shadow: 0 1px 2px 0 rgba(22,49,92,.12); }

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  background: var(--bg-pastel-yellow);
  color: var(--text-main);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px 12px 18px 12px;
  box-shadow: 0 -2px 18px 0 rgba(22,49,92,0.10);
  font-size: 1rem;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.28s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner__text { flex: 1 1 0; }
.cookie-banner__actions {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  padding: 9px 17px;
  cursor: pointer;
  transition: var(--transition);
  margin: 0;
  font-size: .98rem;
}
.cookie-btn:hover, .cookie-btn:focus {background:var(--accent); color:var(--primary);}
.cookie-btn--secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn--secondary:hover {background: var(--bg-pastel-mint); color: var(--accent);}
/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: rgba(22,49,92,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.24s cubic-bezier(.4,0,.2,1);
}
.cookie-modal {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(22,49,92,0.20);
  padding: 32px 22px 22px 22px;
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookie-modal-fade 0.5s;
}
@keyframes cookie-modal-fade {
  from {transform: translateY(40px);opacity: 0;}
  to   {transform: translateY(0);opacity: 1;}
}
.cookie-modal h2 {font-size:1.28rem; margin-bottom: 6px;}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
}
.cookie-modal .cookie-switch {
  width: 36px;
  height: 22px;
  border-radius: 16px;
  background: var(--bg-pastel-mint);
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-right: 3px;
  transition: background .2s;
}
.cookie-modal .cookie-switch input {
  display: none;
}
.cookie-modal .cookie-switch .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: 0.2s;
  z-index:2;
}
.cookie-modal .cookie-switch input:checked + .slider {
  left: 16px;
  background: var(--primary);
}
.cookie-modal .cookie-switch input:disabled + .slider {
  background: #bbbbbb;
  opacity: .5;
}
.cookie-modal-close {
  position: absolute; top: 16px; right: 18px;
  background: transparent; border: none;
  color: var(--primary);
  font-size: 1.55rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.88;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: var(--accent); opacity: 1;}

@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    gap: 9px;
    font-size: 0.97rem;
    padding: 10px 6px 12px 6px;
    border-radius: 9px;
  }
  .cookie-modal {
    padding: 14px 6px 10px 6px;
    min-width: 0; max-width: 100vw;
    border-radius: 12px;
  }
}

/* === PASTEL, DREAMY, MODERN STYLES === */
::-webkit-scrollbar {
  width: 10px; background: var(--bg-main);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 0 4px 0 rgba(22,49,92, 0.08);
}
::-webkit-scrollbar-thumb:hover {background: var(--bg-pastel-mint);}

/* === ACCESSIBILITY CONTRAST FOR TESTIMONIALS === */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: var(--text-dark) !important;
  background: var(--bg-pastel-blue);
}

/* === MISC CLASSES === */
.thank-you .content-wrapper {
  align-items: center;
  text-align: center;
  max-width: 600px;
}
.thank-you .btn-primary {margin-top:16px;}

/* Prevent overlapping for all flex containers */
.features-grid > div, .process-timeline > div, .faq-accordion > div, .testimonial-card, .card, .card-container > * {
  min-width: 0;
  box-sizing: border-box;
}
