/* ===== 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: #F8F8F5;
  color: #25496B;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #AAD1C7;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== BRAND FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #F8F8F5;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #25496B;
  font-weight: 700;
}
h1 {font-size: 2.4rem; margin-bottom: 20px;}
h2 {font-size: 2rem; margin-bottom: 18px;}
h3 {font-size: 1.2rem; margin-bottom: 12px;}
.section h2 {
  margin-top: 0;
}

p, li, td, th {
  color: #25496B;
  font-size: 1rem;
}
strong {font-weight: 700;}
em {font-style: italic;}

/* ===== LAYOUT FRAMEWORK ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(100deg, #f8f8f5 70%, #aad1c740 130%);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(37,73,107,0.05);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(37,73,107,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(37,73,107,0.18);
  transform: translateY(-6px) scale(1.025);
}

.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: 16px;
  padding: 20px 28px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(37,73,107,0.07);
  margin-bottom: 20px;
  font-size: 1.1rem;
  min-width: 260px;
  max-width: 540px;
}
.testimonial-card p {
  color: #25496B;
}
.testimonial-card strong {
  color: #25496B;
  font-size: 1rem;
}

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

/* ===== HEADER & NAVIGATION ===== */
header {
  background: linear-gradient(90deg, #F8F8F5 0%, #AAD1C7 100%);
  border-bottom: 1px solid #e6ece7;
  box-shadow: 0 1px 8px rgba(170,209,199,0.08);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
header img {
  height: 34px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.main-nav a {
  color: #25496B;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover {
  background: #aad1c7;
  color: #25496B;
}
.cta-btn {
  background: linear-gradient(90deg, #25496b, #aad1c7 120%);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 24px;
  margin-left: 20px;
  box-shadow: 0 2px 10px 0 rgba(37,73,107,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, color 0.18s, transform 0.16s;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #1c3750, #88b0a8 120%);
  box-shadow: 0 6px 24px 0 rgba(37,73,107,0.19);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
button.cta-btn:active {
  transform: scale(0.98);
}
/* Hide cta-btn on mobile in nav to prevent double button */
@media (max-width: 768px) {
  .main-nav .cta-btn {
    display: none;
  }
}

/* ===== MOBILE BURGER MENU ===== */
.mobile-menu-toggle {
  font-size: 2rem;
  color: #25496B;
  background: #AAD1C7;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 18px;
  border: none;
  transition: background 0.18s, color 0.18s;
  z-index: 1003;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #25496B;
  color: #fff;
}
@media (max-width: 1020px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 40px rgba(37,73,107,0.10);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 32px 32px 32px;
  gap: 35px;
  transform: translateX(100vw);
  transition: transform 0.36s cubic-bezier(.82,-0.05,.18,1.15);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #25496B;
  background: transparent;
  border: none;
  margin-bottom: 12px;
  align-self: flex-end;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #AAD1C7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-bottom: 1px solid #f8f8f5;
  padding: 12px 0 9px 0;
  color: #25496B;
  transition: color 0.18s;
}
.mobile-nav a:hover {
  color: #AAD1C7;
}

@media (max-width: 520px) {
  .mobile-menu {
    padding: 30px 12px 18px 12px;
  }
  .mobile-nav a {
    font-size: 1.08rem;
  }
}

/* ===== HERO SECTION & CALL TO ACTIONS ===== */
section:first-of-type {
  background: linear-gradient(100deg, #aad1c73a 70%, #f8f8f5 120%);
  margin-top: 22px;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(37,73,107,0.06);
  padding: 48px 20px 40px 20px;
}
section:first-of-type h1 {
  font-size: 2.6rem;
  line-height: 1.1;
}
section:first-of-type p {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

/* ===== LISTS, TABLES & CONTENT ===== */
ul, ol {
  padding-left: 20px;
  margin-bottom: 10px;
}
ul li,
ol li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(37,73,107,0.06);
}
thead th {
  background: #AAD1C7;
  color: #25496B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
}
td, th {
  padding: 12px 16px;
  border-bottom: 1px solid #e4ebe7;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(90deg, #25496B 3%, #AAD1C7 135%);
  color: #fff;
  padding: 40px 0 16px 0;
  margin-top: 70px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.92;
  transition: color 0.17s, opacity 0.17s;
}
.footer-nav a:hover {
  color: #AAD1C7;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 1rem;
  color: #fff;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  display: inline-block;
}
footer a {
  color: #fff;
  opacity: 0.92;
}
footer a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1020px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.3rem;}
  .section,
  section:first-of-type {
    padding: 28px 7px 30px 7px;
    margin-bottom: 34px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 14px 8px;
    font-size: 1rem;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: stretch;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .section,
  section:first-of-type {
    padding: 14px 1.5vw 20px 1.5vw;
  }
}

/* ===== BUTTONS & LINKS ===== */
button, .cta-btn, .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
  border-radius: 24px;
  transition: background 0.19s, box-shadow 0.18s, color 0.18s, transform 0.1s;
}

.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #AAD1C7;
  color: #25496B;
  font-weight: 600;
  padding: 9px 23px;
  border-radius: 18px;
  margin: 4px;
  font-size: 1rem;
}
.cookie-btn:hover, .cookie-btn:focus {
  color: #fff;
  background: #25496B;
}

/* ===== FORMS (optional, for completeness) ===== */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 6px;
  border: 1px solid #cccccc;
  padding: 10px 12px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 18px;
  margin-top: 5px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #AAD1C7;
  border-color: #AAD1C7;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 5px;
  color: #25496B;
  display: block;
}

/* ===== COOKIE CONSENT BANNER & PREFERENCES MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid #AAD1C7;
  box-shadow: 0 -2px 24px rgba(37,73,107,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  z-index: 5000;
  gap: 30px;
  font-size: 1rem;
  animation: slideUpBanner 0.6s cubic-bezier(.82,-0.05,.18,1.15);
}
@keyframes slideUpBanner {
  from { transform: translateY(120%); }
  to   { transform: translateY(0); }
}
.cookie-banner p {
  color: #25496B;
  margin: 0;
  flex: 2 1 340px;
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 8px 17px 10px;
    gap: 17px;
  }
  .cookie-banner-actions {
    width: 100%;
    gap: 7px;
    justify-content: stretch;
  }
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 5010;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(37, 73, 107, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(37,73,107,0.18);
  padding: 32px 24px 18px 24px;
  max-width: 380px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal 0.38s cubic-bezier(.82,-0.05,.18,1.15);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal-headline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #25496B;
  margin-bottom: 12px;
}
.cookie-preference {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-preference label {
  margin: 0;
  font-weight: 600;
}
.cookie-toggle {
  width: 36px;
  height: 22px;
  border-radius: 20px;
  background: #D7E9E4;
  position: relative;
  transition: background 0.18s;
  margin-left: 10px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle span {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(37,73,107,0.13);
  transition: left 0.18s, background 0.18s;
}
.cookie-toggle input:checked ~ span {
  left: 16px;
  background: #AAD1C7;
}
.cookie-toggle input:disabled ~ span {
  background: #eee;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  flex-direction: row;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  min-width: 94px;
}

/* ===== MICRO-INTERACTIONS & TRANSITIONS ===== */
section, .card, .testimonial-card {
  transition: box-shadow 0.18s, background 0.2s, border 0.2s, transform 0.2s;
}
.cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}

/* ===== VISUAL HIERARCHY & SPACING ===== */
.section,
.card-container, 
.card, 
.content-grid, 
.text-image-section,
.testimonial-card, 
.feature-item {
  margin-bottom: 0; /* spacing handled via gap/margin-bottom explicitly below */
}
.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;
}

/* Ensure minimum 20px vertical space between cards/sections */
.section + .section {
  margin-top: 20px;
}
.card + .card {
  margin-top: 20px;
}

/* ===== COLOR UTILITIES (used for accent borders, backgrounds, states) ===== */
.bg-primary { background: #25496B !important; color: #fff !important; }
.bg-secondary { background: #AAD1C7 !important; color: #25496B !important; }
.bg-accent { background: #F8F8F5 !important; color: #25496B !important; }
.text-primary { color: #25496B !important; }
.text-secondary { color: #AAD1C7 !important; }
.text-accent { color: #F8F8F5 !important; }

/* ===== MISC ===== */
::-webkit-scrollbar {
  width: 12px;
  background: #F8F8F5;
}
::-webkit-scrollbar-thumb {
  background: #AAD1C7;
  border-radius: 14px;
}
::-webkit-scrollbar-thumb:hover {
  background: #25496B;
}

/* Focus accessibility outline for custom buttons/links */
.cta-btn:focus, .cookie-btn:focus, .mobile-menu-toggle:focus,
.mobile-menu-close:focus {
  outline: 2px solid #AAD1C7;
  outline-offset: 1px;
}

/* Hide content visually only (for accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== PRINT OPTIMIZATION ===== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
}
