/* -------------------------------------------------------------
  CSS RESET & NORMALIZATION – MOBILE-FIRST BASE
------------------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F6F9FE;
  color: #232C3C;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  color: #31537A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #46B287;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #232C3C;
  line-height: 1.2;
}
h1 {
  font-size: 2.25rem;
  letter-spacing: -1px;
}
h2 {
  font-size: 1.5rem;
  letter-spacing: -.5px;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.subtitle {
  font-size: 1.125rem;
  color: #31537A;
  margin-bottom: 18px;
  font-weight: 500;
}

/* -------------------------------------------------------------
  GEOMETRIC STRUCTURED LAYOUT BASICS
------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(49,83,122,0.04);
  display: flex;
  flex-direction: column;
  /* For geometric style: soft outline with lots of space */
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* -------------------------------------------------------------
  MAIN NAVIGATION (DESKTOP & MOBILE BURGER MENU)
------------------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(49,83,122,0.05);
  z-index: 10;
  position: sticky;
  top: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: flex-start;
  padding: 18px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.main-nav > a {
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
}
.main-nav > a.primary-cta {
  background: #31537A;
  color: #fff;
  border-radius: 8px 24px 8px 24px;
  padding: 10px 20px;
  margin-left: auto;
  box-shadow: 0 2px 8px 0 rgba(49,83,122,.15);
}
.main-nav > a.primary-cta:hover,
.main-nav > a.primary-cta:focus {
  background: #46B287;
  color: #fff;
}
.main-nav > a:not(.primary-cta):hover,
.main-nav > a:not(.primary-cta):focus {
  background: #F6F9FE;
  color: #31537A;
}
.main-nav > a img {
  height: 32px;
  min-width: 32px;
}

/* Hamburger icon */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 22px;
  font-size: 2rem;
  background: #46B287;
  color: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 21;
  transition: background .15s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #31537A;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(49,83,122,0.98);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 0 32px;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.46,.03,.52,.96);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: #46B287;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-top: 28px;
  margin-bottom: 28px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 12px 8px;
  width: 100%;
  border-radius: 8px;
  letter-spacing: 1px;
  transition: background 0.1s, color 0.1s, box-shadow .2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #46B287;
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(49,83,122,.15);
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 20px;
    font-size: 0.96rem;
  }
}
@media (max-width: 900px) {
  .main-nav > a:not(.primary-cta) {
    display: none;
  }
  .main-nav > a.primary-cta {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 500px) {
  .mobile-menu {
    padding: 0 10px;
  }
}

/* ------------------------------------------------------------
  HERO SECTIONS & GEOMETRIC STYLE
------------------------------------------------------------ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px 0 rgba(49,83,122,0.08);
  display: flex;
  flex-direction: column;
}
section .container {
  padding: 0;
}

/* Allow accent backgrounds on some sectons */
section.accent {
  background: #F6F9FE;
  box-shadow: none;
}

/* ---------------------------------
  CTA BUTTONS
--------------------------------- */
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #31537A;
  color: #fff !important;
  border: none;
  border-radius: 8px 24px 8px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 15px 36px;
  box-shadow: 0 6px 18px 0 rgba(49,83,122,.18);
  margin-top: 12px;
  transition: background 0.18s, box-shadow 0.22s;
  letter-spacing: 1.5px;
}
.primary-cta:hover,
.primary-cta:focus {
  background: #46B287;
  color: #fff;
  box-shadow: 0 12px 32px 0 rgba(49,83,122,.30);
}
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #46B287;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  border-radius: 8px 20px 8px 20px;
  margin-top: 18px;
  box-shadow: 0 2px 8px 0 rgba(70,178,135,0.14);
  transition: background .18s, color .18s, box-shadow .22s;
  letter-spacing: .5px;
}
.secondary-cta:hover,
.secondary-cta:focus {
  background: #31537A;
  color: #fff;
  box-shadow: 0 8px 24px 0 rgba(49,83,122,.18);
}

/* ---------------------------------
  CARDS, FEATURES & FLEX CONTAINERS
--------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border: 2.5px solid #31537A;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(49,83,122,.10);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transition: box-shadow 0.18s, border-color 0.14s;
}
.card:hover,
.card:focus {
  border-color: #46B287;
  box-shadow: 0 12px 36px 0 rgba(49,83,122,.14);
}

.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: flex-start;
  gap: 20px;
  background: #F6F9FE;
  color: #232C3C;
  padding: 20px 26px;
  border-radius: 18px 8px 18px 8px;
  box-shadow: 0 2px 16px 0 rgba(49,83,122,.06);
  min-width: 260px;
  flex: 1 1 340px;
  margin-bottom: 20px;
  border-left: 7px solid #46B287;
  font-size: 1.09rem;
  transition: box-shadow .18s;
}
.testimonial-card blockquote {
  border-left: none;
  padding-left: 0;
  font-style: italic;
  color: #232C3C;
  margin-bottom: 0;
  font-size: 1.09rem;
}
.testimonial-card strong {
  font-weight: 700;
  color: #31537A;
  font-size: 1.03em;
}
.testimonial-card span {
  background: #46B287;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .99em;
  padding: 2px 12px;
  border-radius: 7px;
  margin-left: 6px;
  font-weight: 600;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(49,83,122,.10);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 4px solid #46B287;
  padding-left: 18px;
  margin-bottom: 24px;
}

/* ---------------------------------
  RESPONSIVE SPACING & GEOMETRIC GRIDS
--------------------------------- */
ul > li, .text-section > ul > li {
  margin-bottom: 14px;
  padding-left: 0;
  position: relative;
  font-size: 1rem;
}
ul > li strong {
  color: #31537A;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .container {
    max-width: 93vw;
    padding-left: 7px;
    padding-right: 7px;
  }
  .card-container, .content-grid {
    gap: 16px;
  }
  .section {
    padding: 22px 6px;
    margin-bottom: 38px;
  }
  section {
    padding: 26px 8px;
    margin-bottom: 38px;
  }
  .testimonial-card {
    min-width: 0;
    padding: 16px 10px;
  }
  .card {
    padding: 16px 10px;
  }
  .text-image-section {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .content-wrapper,
  .footer-content {
    gap: 14px;
  }
  .card-container,
  .content-grid {
    gap: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .section,
  section {
    padding: 18px 0;
    margin-bottom: 32px;
  }
  .testimonials {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 1.48rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .section, section {
    margin-bottom: 20px;
    padding: 9px 0;
    border-radius: 12px;
  }
}

/* ---------------------------------
  FOOTER
--------------------------------- */
footer {
  width: 100%;
  background: #232C3C;
  color: #fff;
  padding: 0;
  margin-top: 32px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0 20px 0;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px 40px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 0;
}
.footer-menu a {
  color: #F6F9FE;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background .14s, color .14s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #31537A;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact a {
  color: #46B287;
  font-weight: 600;
  text-decoration: underline;
}
.footer-copyright {
  font-size: 0.95rem;
  color: #F6F9FE;
  margin-top: 12px;
  letter-spacing: 0.2px;
}
@media (max-width: 678px) {
  .footer-content {
    padding: 18px 0 12px 0;
    gap: 15px;
  }
  .footer-menu {
    gap: 9px 20px;
    font-size: .95rem;
  }
}

/* ---------------------------------
  TYPOGRAPHY & VISUAL HIERARCHY
--------------------------------- */
body, .text-section {
  font-size: 1rem;
  color: #232C3C;
}
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
}
h2 {
  font-size: 1.65rem;
}
h3 {
  font-size: 1.12rem;
}
@media (max-width: 900px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.24rem; }
  h3 { font-size: 1.01rem; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.24rem; }
}

/* ---------------------------------
  GEOMETRIC DETAILS & ICONIC TOUCHES
--------------------------------- */
section, .card, .testimonial-card {
  border-style: solid;
  border-width: 0 0 0 0;
}
.section {
  border-left: 8px solid #46B287;
}

.card {
  border-bottom: 6px solid #46B287;
  border-radius: 20px 8px 20px 8px;
}

.testimonial-card {
  border-radius: 18px 8px 18px 8px;
  border-left: 7px solid #46B287;
}

footer, .footer-content, .footer-menu, .footer-contact {
  border: none;
  box-shadow: none;
}

/* --------------------------------- 
  MICROINTERACTIONS & TRANSITIONS
----------------------------------- */
.primary-cta,
.secondary-cta,
.card,
.testimonial-card,
.main-nav > a,
.footer-menu a {
  transition: 
    background 0.20s,
    color 0.18s,
    box-shadow 0.18s,
    border-color 0.13s,
    transform 0.17s;
}
.primary-cta:active,
.secondary-cta:active,
.card:active,
.testimonial-card:active {
  transform: scale(0.99) rotate(-1deg);
  box-shadow: 0 2px 7px 0 rgba(49,83,122,.16);
}

/* --------------------------------- 
  COOKIE CONSENT BANNER + MODAL
----------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #232C3C;
  color: #fff;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -2px 14px 0 rgba(49,83,122,.08);
  font-size: 1rem;
  animation: cookie-banner-slide-in .38s cubic-bezier(.38,1.31,.85,1.18);
}
@keyframes cookie-banner-slide-in {
  0% { transform: translateY(110%); }
  100% { transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner button,
.cookie-banner .btn {
  padding: 10px 20px;
  border-radius: 8px 20px 8px 20px;
  background: #31537A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-banner .btn.settings {
  background: #46B287;
}
.cookie-banner button:hover,
.cookie-banner .btn:hover {
  background: #46B287;
}
.cookie-banner .btn.settings:hover {
  background: #31537A;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background: rgba(35,44,60,0.93);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in .24s;
}
@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #232C3C;
  padding: 32px 20px;
  border-radius: 20px 8px 20px 8px;
  width: 95vw;
  max-width: 420px;
  box-shadow: 0 8px 36px 0 rgba(49,83,122,.17);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modal-pop-in .27s cubic-bezier(.46,.03,.52,.96);
}
@keyframes modal-pop-in {
  0% { transform: scale(0.89); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.10rem;
  margin-bottom: 7px;
  color: #31537A;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.cookie-modal .switch {
  width: 42px;
  height: 24px;
  background: #F6F9FE;
  border: 2px solid #31537A;
  border-radius: 12px;
  position: relative;
  margin-left: 15px;
  transition: background .16s;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #31537A;
  border-radius: 50%;
  transition: transform .16s;
}
.cookie-modal .switch input:checked + .slider {
  background: #46B287;
  transform: translateX(18px);
}
.cookie-modal .category-label {
  flex: 1;
  font-weight: 500;
  color: #232C3C;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-actions .btn {
  background: #31537A;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px 20px 8px 20px;
}
.cookie-modal-actions .btn.secondary {
  background: #46B287;
}
.cookie-modal-actions .btn:hover {
  background: #46B287;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 16px 6px;
    max-width: 99vw;
  }
}

/* ---------------------------------
  MISCELLANEOUS
--------------------------------- */
::-webkit-input-placeholder { color: #8DA6C0; }
:-ms-input-placeholder { color: #8DA6C0; }
::placeholder { color: #8DA6C0; }
[tabindex="-1"]:focus { outline: none; }

/* Focus ring for accessibility */
a:focus, button:focus, .primary-cta:focus, .secondary-cta:focus {
  outline: 3px dashed #46B287;
  outline-offset: 2px;
}

/* Hide scroll on mobile-menu when open */
body.mobile-nav-open {
  overflow: hidden;
}

/* ---------------------------------
  PRINT OVERRIDE
--------------------------------- */
@media print {
  nav, footer, .mobile-menu, .cookie-banner {
    display: none !important;
  }
  section, .section {
    box-shadow: none;
    border-radius: 0;
    background: none;
    padding: 0;
    margin: 0 0 20px 0;
  }
}
