/* ------- CSS RESET & BASE ------- */
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.6;
  background: #fff;
  color: #12365A;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #12365A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FCDA9C;
  outline: none;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
:focus {
  outline-color: #12365A;
}

/* ------- TYPOGRAPHY ------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #12365A;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;   /* 40px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;      /* 32px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;   /* 20px */
  margin-bottom: 16px;
}
.subtitle, .footer-tagline, .tagline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #12365A;
  font-size: 1.125rem; /* 18px */
  margin-bottom: 18px;
}
p {
  font-size: 1rem;      /* 16px */
  margin-bottom: 18px;
  color: #213750;
}
strong {
  font-weight: 700;
  color: #12365A;
}

/* --- Spacing Utilities --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 650px;
  margin: 0 auto;
}

/* ------- HEADER & NAV ------- */
header {
  background: #fff;
  border-bottom: 1px solid #f2f2f4;
  position: relative;
  z-index: 19;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 72px;
}
.logo img {
  height: 44px;
  width: auto;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #12365A;
  padding: 8px 0;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #FCDA9C;
  border-bottom: 2px solid #FCDA9C;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #12365A;
  color: #fff;
  border-radius: 28px;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(18,54,90,0.06);
  border: none;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.15s;
  margin-left: 20px;
}
.cta-btn.primary {
  background: #12365A;
  color: #fff;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FCDA9C;
  color: #12365A;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 16px rgba(18,54,90,0.10);
}

/* Mobile Menu Toggle button */
.mobile-menu-toggle {
  display: none;
  background: #12365A;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: absolute;
  right: 20px;
  top: 14px;
  z-index: 30;
  border: none;
  box-shadow: 0 2px 6px rgba(18,54,90,0.06);
  transition: background 0.18s, color 0.22s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FCDA9C;
  color: #12365A;
}

/* -------- MOBILE MENU -------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 92vw;
  max-width: 340px;
  z-index: 1000;
  box-shadow: 2px 0 32px rgba(18,54,90,0.10);
  padding: 36px 28px 40px 28px;
  transform: translateX(-120%);
  transition: transform 0.35s cubic-bezier(.68,-0.6,.32,1.6);
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #F7F7F7;
  color: #12365A;
  font-size: 2rem;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: none;
  box-shadow: 0 2px 6px rgba(18,54,90,0.08);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FCDA9C;
  color: #12365A;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 10px 0;
  color: #12365A;
  width: 100%;
  border-radius: 7px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #12365A;
  color: #fff;
}

/* Overlay for mobile menu (optional, can be implemented in JS if desired) */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,54,90,0.25);
  z-index: 900;
}
.mobile-menu.open ~ .mobile-menu-overlay {
  display: block;
}

/* ------- HERO ------- */
.hero {
  background: #fff;
  padding: 64px 0 36px 0;
  min-height: 320px;
  display: flex;
}
.hero .container {
  justify-content: center;
}
.hero .content-wrapper {
  gap: 18px;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}
.hero .subtitle {
  margin-bottom: 20px;
}
.hero .cta-btn {
  margin: 0 0 0 0;
}

/* ------- FEATURES ------- */
.features {
  background: #F7F7F7;
  border-radius: 20px;
  margin: 40px 0 60px 0;
  box-shadow: 0 2px 12px rgba(18,54,90,0.04);
}
.features .content-wrapper {
  gap: 24px;
}
.feature-grid, .category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 8px;
}
.feature-item, .category-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(18,54,90,0.08);
  flex: 1 1 210px;
  padding: 28px 20px 24px 20px;
  min-width: 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.2s;
}
.feature-item img, .category-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
  opacity: 0.98;
}
.feature-item h3, .category-item h3 {
  font-size: 1.13rem;
  margin-bottom: 0px;
}
.feature-item p, .category-item p {
  font-size: 0.98rem;
  color: #2e466a;
}
.feature-item:hover, .category-item:hover {
  box-shadow: 0 4px 22px rgba(18,54,90,0.14);
  transform: translateY(-2px) scale(1.035);
}

/* --- Category List (on homepage) --- */
.category-list {
  font-size: 1.05rem;
  margin-left: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.category-list li {
  margin-bottom: 0;
}
.ethos-list, .feature-list, .option-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
}
.ethos-list li, .feature-list li, .option-list li {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  color: #2e466a;
  gap: 14px;
  margin-bottom: 0;
}
.ethos-list img, .feature-list img, .option-list img {
  width: 28px;
  height: 28px;
  margin-top: 2px;
}

/* --------- TESTIMONIALS --------- */
.testimonials {
  background: #fff;
  padding: 64px 0 36px 0;
  margin-bottom: 30px;
}
.testimonial-slider {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 16px 24px;
  background: #F7F7F7;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(23,41,61,0.08);
  min-width: 260px;
  max-width: 330px;
  flex: 1;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.14s;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #0e223f;
  margin-bottom: 0px;
}
.testimonial-card .author {
  font-weight: 600;
  color: #12365A;
  font-size: 0.98rem;
}
.stars {
  display: flex;
  gap: 3px;
}
.stars img {
  width: 18px;
  height: 18px;
  display: inline-block;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(18,54,90,0.16);
  transform: scale(1.018);
}

/* --------- CTA SECTION --------- */
.cta-section {
  background: #FCDA9C;
  padding: 50px 0 36px 0;
  border-radius: 24px;
  margin: 44px 0 60px 0;
  text-align: center;
  box-shadow: 0 1px 12px rgba(18,54,90,0.07);
}
.cta-section .content-wrapper {
  align-items: center;
  gap: 14px;
}
.cta-section h2 {
  color: #12365A;
}
.cta-section p {
  color: #20344a;
  margin-bottom: 14px;
}
.cta-section .cta-btn {
  margin-top: 8px;
  background: #12365A;
  color: #fff;
  border-radius: 24px;
}

/* ------- FOOTER ------- */
footer {
  background: #fff;
  border-top: 1px solid #eaeaea;
  padding: 44px 0 24px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}
.footer-nav a {
  color: #12365A;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  padding: 3px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FCDA9C;
}
.footer-contact {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.99rem;
  color: #213750;
}
.footer-contact strong {
  color: #12365A;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.footer-branding img {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}
.footer-tagline {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #7C7C7C;
  letter-spacing: 0;
  margin-bottom: 0;
}
.footer-social {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 4px;
}
.footer-social img {
  width: 28px;
  height: 28px;
  filter: grayscale(50%) brightness(0.95);
  transition: filter 0.18s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: none;
}

/* ------- CARDS & CONTENT FLEX PATTERNS ------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 10px rgba(18,54,90,0.07);
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(18,54,90,0.10);
  transform: translateY(-1.5px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.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;
}

/* ------ CONTACT & SIMPLE SECTIONS ------ */
.contact-info {
  background: #fff;
}
.contact-info .text-section {
  max-width: 500px;
}

/* ------ MODALS & BANNERS (COOKIE) ------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: #fff;
  color: #12365A;
  box-shadow: 0 -4px 30px rgba(18,54,90,0.10);
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  gap: 24px;
  font-size: 1rem;
  max-width: 740px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.32s;
  box-sizing: border-box;
}
.cookie-banner.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  background: #FCDA9C;
  color: #12365A;
  border-radius: 7px;
  border: none;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.19s, color 0.19s;
  box-shadow: 0 1.5px 5px rgba(18,54,90,0.07);
}
.cookie-btn.accept {
  background: #12365A;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #F7C563;
  color: #12365A;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #20518b;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #12365A;
  border: 1.5px solid #FCDA9C;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FCDA9C;
  color: #12365A;
}

/* Cookie Consent Modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  background: #fff;
  z-index: 1300;
  box-shadow: 0 6px 40px rgba(18,54,90,0.13);
  border-radius: 16px;
  width: 94vw;
  max-width: 450px;
  padding: 32px 28px 24px 28px;
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fadeInCookieModal 0.44s cubic-bezier(.31,1.54,.29,1.07);
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; transform: translate(-50%, -65%); }
  80% { opacity: 1; transform: translate(-50%, -49%); }
  100% { opacity: 1; transform: translate(-50%, -52%); }
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.cookie-switch {
  width: 38px;
  height: 22px;
  border-radius: 14px;
  background: #ECEDF1;
  position: relative;
  cursor: pointer;
  transition: background 0.19s;
  display: inline-block;
}
.cookie-switch input { display: none; }
.cookie-switch .slider {
  position: absolute;
  content: '';
  background: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 1px 8px rgba(18,54,90,0.10);
  top: 2px;
  left: 2px;
  transition: left 0.21s, background 0.15s;
}
.cookie-switch input:checked + .slider {
  left: 18px;
  background: #FCDA9C;
}
.cookie-category.disabled .cookie-switch {
  background: #DFE2E7;
  cursor: not-allowed;
}

/* Modal Close btn */
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  color: #595959;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  transition: color 0.19s;
  z-index: 2;
}
.cookie-modal .cookie-modal-close:hover {
  color: #12365A;
}

.cookie-modal .modal-footer {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .modal-footer .cookie-btn {
  min-width: 100px;
}
.cookie-modal h3 {
  font-size: 1.22rem;
}

/* --- Hide modal overlay by default (optional) --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left:0; right:0; bottom:0;
  z-index: 1290;
  background: rgba(18,54,90,0.14);
}
.cookie-modal.open ~ .cookie-modal-overlay {
  display: block;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100%;
    padding: 0 8px;
  }
  .hero {
    padding: 36px 0 24px 0;
  }
  .features, .cta-section {
    border-radius: 16px;
    margin: 36px 0 40px 0;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    min-height: 62px;
    gap: 16px;
  }
  .main-nav, .cta-btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    padding: 32px 0 16px 0;
  }
  .feature-grid, .category-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .testimonials, .features, .cta-section {
    padding: 34px 0 16px 0;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 0 7px;
  }
  .footer-social {
    margin-top: 16px;
  }
  .section {
    padding: 32px 12px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.45rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 13px;
  }
  h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .cta-btn, .cta-btn.primary {
    font-size: 0.95rem;
    padding: 12px 16px;
  }
  .section {
    padding: 22px 5px;
  }
  .cookie-banner {
    max-width: 97vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.97rem;
    padding: 16px 8px 12px 8px;
  }
  .cookie-modal {
    padding: 20px 7px 16px 7px;
  }
}

/* --------- CUSTOM SCROLLBAR --------- */
::-webkit-scrollbar {
  width: 8px;
  background: #F7F7F7;
}
::-webkit-scrollbar-thumb {
  background: #DFE2E7;
  border-radius: 7px;
}

/* --------- MICRO-INTERACTIONS --------- */
.card, .feature-item, .category-item, .testimonial-card {
  transition: box-shadow 0.20s, transform 0.17s;
}
.cta-btn, .cookie-btn {
  transition: background 0.21s, color 0.21s, transform 0.11s;
}
.cookie-btn:active, .cta-btn:active { transform: scale(0.98); }

/* --------- Z-INDEX SAFEGUARDS --------- */
header, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay {
  z-index: 100 !important;
}

/* --------- PRINT TWEAKS --------- */
@media print {
  .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay, .mobile-menu-toggle {
    display: none !important;
  }
  header, footer {
    background: #fff !important;
    color: #12365A !important;
    box-shadow: none !important;
    border: none !important;
  }
}
