/* ------------------ 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fafdff;
  min-height: 100vh;
  color: #324068;
}
ol, ul {
  list-style: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}

/* ------------------ ROOT VARIABLES (SOFT PASTEL PALETTE) ------------------ */
:root {
  --brand-primary: #212f45;
  --brand-secondary: #f5a623;
  --brand-accent: #ffffff;

  --pastel-blue: #dde8fa;
  --pastel-mint: #d7f7f1;
  --pastel-peach: #ffede0;
  --pastel-pink: #ffe8f1;
  --pastel-yellow: #fdf6b7;
  --soft-bg: #fafdff;

  --card-bg: #ffffff;
  --shadow: 0 4px 24px rgba(110,130,187,0.09);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ------------------ TYPOGRAPHY ------------------ */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--soft-bg);
  color: #324068;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, dl, dd {
  font-size: 1rem;
  color: #486493;
  font-weight: 400;
}
strong {
  font-weight: 600;
  color: var(--brand-primary);
}

.text-section p:not(:last-child) {
  margin-bottom: 18px;
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.2rem;
  }
}

/* ------------------ CONTAINER & LAYOUT ------------------ */
.container {
  width: 100%;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 22px 8px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(33,47,69,0.13);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-blue);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: 0 4px 28px rgba(40,54,98,0.07);
  color: #223047;
}
.testimonial-card p {
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 500;
  color: #223047;
  text-align: center;
}
.testimonial-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #27324c;
}

.final-cta {
  background: linear-gradient(90deg, var(--pastel-mint), var(--pastel-blue) 80%);
  padding: 44px 0 40px 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 18px rgba(84,117,180,.09);
}
.final-cta h2 {
  margin-bottom: 15px;
  text-align: center;
}
.final-cta .cta-primary {
  display: inline-block;
  margin: 0 auto;
}

/* ------------------ HERO SECTION ------------------ */
.hero {
  background: linear-gradient(90deg, var(--pastel-pink) 10%, var(--pastel-mint) 90%);
  padding: 50px 0 40px 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 10px 24px rgba(245,166,35,0.08);
}
.hero h1 {
  color: var(--brand-primary);
  font-size: 2.8rem;
}
.hero p {
  color: #4a5d96;
  font-size: 1.25rem;
  margin-bottom: 28px;
}
.hero .cta-primary {
  font-size: 1.1rem;
  padding: 16px 36px;
}
@media (max-width: 700px) {
  .hero {
    padding: 28px 0 20px 0;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ------------------ NAVIGATION ------------------ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  background: transparent;
  padding: 14px 0;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
  font-weight: 500;
  transition: background .17s, color .17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-mint);
  color: #0a2542;
}
.main-nav a.cta-primary {
  background: var(--pastel-peach);
  color: var(--brand-primary);
  font-weight: 700;
  border-radius: 24px;
  box-shadow: 0 1px 4px rgba(255,190,124, 0.14);
  padding: 10px 26px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
  background: var(--brand-secondary);
  color: #fff;
}

header {
  background: var(--card-bg);
  box-shadow: 0 2px 18px rgba(34,49,69,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Hide mobile menu by default */
.mobile-menu {
  display: none;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--brand-primary);
  margin-left: auto;
  cursor: pointer;
  z-index: 120;
}

@media (max-width: 980px) {
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 6px;
    font-size: 0.98rem;
  }
}
@media (max-width: 790px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    float: right;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(90deg, var(--pastel-pink), var(--pastel-mint));
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 999;
    padding: 26px 28px 32px 24px;
    transform: translateX(-100%);
    transition: transform 0.33s cubic-bezier(0.86, 0, 0.07, 1);
    box-shadow: 0 7px 36px rgba(53,89,128,0.23);
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.1rem;
    color: var(--brand-primary);
    align-self: flex-end;
    margin-bottom: 18px;
    cursor: pointer;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.22rem;
    color: var(--brand-primary);
    background: none;
    padding: 12px 4px;
    border-radius: var(--radius-md);
    transition: background 0.16s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--pastel-mint);
    color: var(--brand-primary);
  }
}


@media (max-width: 450px) {
  .mobile-menu {
    padding: 18px 6vw 12px 6vw;
  }
}

/* ------------------ BUTTONS & CTA ------------------ */
.cta-primary {
  display: inline-block;
  background: var(--brand-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(245,166,35,.10);
  padding: 13px 32px;
  cursor: pointer;
  letter-spacing: .02em;
  text-align: center;
  margin-top: 9px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  text-shadow: 0 1px 5px rgba(255,181,140,0.11);
}
.cta-primary:hover, .cta-primary:focus {
  background: #f89d11;
  color: #232e44;
  box-shadow: 0 6px 18px rgba(245,166,35,.14);
  outline: none;
}

button {
  font-family: inherit;
}

/* ------------------ FOOTER ------------------ */
footer {
  background: linear-gradient(90deg, var(--pastel-mint) 30%, var(--pastel-pink) 100%);
  padding: 36px 0 18px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 48px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 20px;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: #315580;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: none;
  transition: background .16s, color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--pastel-peach);
  color: var(--brand-primary);
}
footer .text-section {
  font-size: 0.97rem;
  color: #49647a;
  margin-top: 8px;
  text-align: right;
  line-height: 1.5;
}
@media (max-width: 860px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  footer .text-section {
    text-align: left;
  }
}


/* ------------------ LISTS & ICONS ------------------ */
ul, ol, dl {
  margin-bottom: 22px;
}
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 16px;
}
ul li strong {
  display: block;
  margin-bottom: 3px;
}
ul li img {
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--pastel-peach);
  padding: 6px;
}
@media (max-width: 780px) {
  ul li, ol li {
    gap: 8px;
  }
}

ol {
  counter-reset: pastel-counter;
}
ol li {
  counter-increment: pastel-counter;
  position: relative;
  padding-left: 28px;
}
ol li::before {
  content: counter(pastel-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--brand-secondary);
  font-size: 1.1em;
}

dl {
  margin-bottom: 28px;
}
dl dt {
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 14px;
}
dl dd {
  margin-bottom: 12px;
  color: #6e789a;
}

/* ------------------ TABLES ------------------ */
table {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(66,89,153,0.07);
  margin-bottom: 30px;
  overflow-x: auto;
}
table th, table td {
  padding: 14px 10px;
  border-bottom: 1px solid #ebf2fa;
  text-align: left;
}
table th {
  background: var(--pastel-blue);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 600;
}
table td {
  color: #495271;
  background: var(--brand-accent);
}
table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 760px) {
  table th, table td {
    font-size: 0.94rem;
    padding: 7px 6px;
  }
}

/* ------------------ RESPONSIVE FLEX FLOWS ------------------ */
@media (max-width: 780px) {
  .card-container,
  .content-grid,
  .footer-nav,
  .feature-list,
  .testimonials {
    flex-direction: column !important;
    gap: 18px !important;
  }
}

/* ------------------ MICROINTERACTIONS/TRANSITIONS ------------------ */
a, button, .card, .cta-primary {
  transition: all 0.2s cubic-bezier(.43,.18,.57,1.08);
}
.card:active, .cta-primary:active {
  transform: scale(0.97);
}

/* ------------------ COOKIE CONSENT BANNER ------------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--pastel-yellow) 70%, var(--pastel-pink) 100%);
  color: #2d3151;
  font-family: var(--font-body);
  box-shadow: 0 -3px 16px rgba(243,195,146,0.13);
  z-index: 1500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px 20px 18px;
  gap: 35px;
  font-size: 0.99rem;
  animation: cookie-fade-in 0.9s ease;
}
@keyframes cookie-fade-in {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 19px;
  padding: 8px 23px;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(252,216,149,0.13);
  transition: background 0.19s, color 0.18s;
}
.cookie-banner .cookie-accept {
  background: var(--brand-secondary);
  color: #fff;
  font-weight: 600;
}
.cookie-banner .cookie-accept:hover {
  background: #f89d11;
  color: #212f45;
}
.cookie-banner .cookie-reject {
  background: #fff0e1;
  color: #af7c4b;
  font-weight: 500;
}
.cookie-banner .cookie-reject:hover {
  background: #ffe4c0;
  color: #7c5120;
}
.cookie-banner .cookie-settings {
  background: #e8eaff;
  color: #606ad1;
  font-weight: 500;
}
.cookie-banner .cookie-settings:hover {
  background: #bac5fa;
  color: #2a307d;
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding: 13px 8vw 12px 7vw;
    font-size: 0.97rem;
  }
}

/* ------------------ COOKIE PREFERENCES MODAL ------------------ */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1550;
  transform: translate(-50%, -50%);
  background: var(--pastel-blue);
  border-radius: var(--radius-lg);
  padding: 38px 32px 32px 32px;
  box-shadow: 0 18px 64px rgba(67,74,122,0.21);
  min-width: 292px;
  max-width: 98vw;
  max-height: 95vh;
  overflow-y: auto;
  animation: modal-fade-in 0.4s;
  display: none;
}
@keyframes modal-fade-in {
  0% {opacity: 0; transform: translate(-50%,-38%);}
  100% {opacity: 1; transform: translate(-50%,-50%);}
}
.cookie-modal.open {
  display: block;
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #2d3151;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-cat label {
  font-weight: 500;
  font-size: 1.03rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--brand-secondary);
  width: 19px;
  height: 19px;
  border-radius: 6px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 10px; right: 17px;
  background: none;
  border: none;
  font-size: 2.1rem;
  line-height: 1;
  color: #2d3151;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity .12s;
}
.cookie-modal .cookie-close:hover {
  opacity: 1;
}
.cookie-modal .cookie-actions {
  margin-top: 17px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-modal .cookie-actions button {
  font-size: 1.04rem;
  padding: 8px 18px;
  border-radius: 16px;
  border: none;
}

/* ------------------ FORMS (for contact, future expansion) ------------------ */
input, textarea, select {
  font-family: var(--font-body);
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid #dfe7f6;
  background: #f4f8ff;
  font-size: 1rem;
  margin-bottom: 16px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border .15s, box-shadow .14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #aacafe;
  box-shadow: 0 1px 5px rgba(175,203,255,0.11);
}
label {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  color: var(--brand-primary);
}

/* ------------------ MISC LAYOUT/UTILITY ------------------ */
.mt-24 { margin-top: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.gap-16 { gap: 16px !important; }
@media (max-width: 540px) {
  .final-cta {
    padding: 26px 0 24px 0;
  }
  footer, .final-cta {
    border-radius: 0 0 0 0 !important;
  }
}

/* ------------------ ACCESSIBILITY/FOCUS ------------------ */
a:focus, button:focus, .cta-primary:focus, .mobile-nav a:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

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