/* ===================================================
   CSS RESET & BASE STYLES FOR CROSS-BROWSER CONSISTENCY
   =================================================== */
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, 
main, 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 {
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F6F7F2;
  min-height: 100vh;
  color: #17304C;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  vertical-align: middle;
  height: auto;
}
a {
  color: #17304C;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #1d4e89;
  outline: none;
}
ul, ol {
  margin: 0 0 1em 1.5em;
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.4em;
}

/* Font Family Setup */
h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #17304C;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Typography Scale */
h1 {
  font-size: 2.5rem;
  line-height: 1.16;
  margin-bottom: 1rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
p {
  margin-bottom: 1em;
}
strong {
  font-weight: 700;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==============
   HEADER
================ */
header {
  background: #ffffff;
  border-bottom: 1px solid #e3e8ee;
  padding: 0;
  position: relative;
  z-index: 1010;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  height: 56px;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 8px 0;
  color: #17304C;
  transition: color 0.18s cubic-bezier(.4,0,.2,1), border-color 0.18s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #97B6D5;
}
.btn.btn-primary {
  background: #17304C;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 6px;
  padding: 13px 36px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.17s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 8px 0 rgba(23,48,76,0.06);
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  background: #234775;
  box-shadow: 0 4px 12px 0 rgba(23,48,76,0.11);
}

/* =============
   SECTIONS
============== */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
  display: flex;
}
section:last-child {
  margin-bottom: 0;
}

/* Section, Card, Grid Layouts (Flexbox) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(23,48,76,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.15s cubic-bezier(.4,0,.2,1);
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 22px 0 rgba(23,48,76,0.14);
  transform: translateY(-3px) scale(1.01);
}
.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: #fff;
  box-shadow: 0 2px 12px 0 rgba(23,48,76,0.06);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  max-width: 560px;
  transition: box-shadow 0.16s cubic-bezier(.4,0,.2,1), transform 0.14s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 18px 0 rgba(23,48,76,0.11);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(151,182,213,0.06);
  padding: 28px 24px 18px 24px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 300px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.14s cubic-bezier(.4,0,.2,1);
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 16px 0 rgba(151,182,213,0.14);
  transform: translateY(-2px) scale(1.01);
}

/* Feature Section List Items (cards) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============
   FOOTER
============= */
footer {
  background: #17304C;
  color: #fff;
  padding: 48px 0 32px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-brand img {
  height: 44px;
  margin-bottom: 7px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 180px;
  margin-right: 32px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.87;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  transition: color 0.2s cubic-bezier(.4,0,.2,1), opacity 0.15s cubic-bezier(.4,0,.2,1);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #97B6D5;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  font-size: 0.98rem;
  color: #e7f0fa;
  gap: 8px;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 5px;
}

/* =============
   BUTTONS, LINKS, INTERACTIONS
============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  text-decoration: none;
  cursor: pointer;
}
.btn:focus {
  outline: 2px solid #97B6D5;
  outline-offset: 2px;
}

/* ============
   MOBILE MENU
============ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #17304C;
  padding: 10px 14px;
  margin-left: 17px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.19s cubic-bezier(.4,0,.2,1);
  z-index: 1201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #e6ecf5;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  left: 0; right: 0; top: 0; bottom: 0;
  background: #17304C;
  color: #fff;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.6,-0.28,.74,0.05);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
  box-shadow: 0 0 24px 4px rgba(23,48,76,0.25);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  padding: 18px 26px 12px 10px;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.11s cubic-bezier(.4,0,.2,1);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #97B6D5;
  background: rgba(23,48,76,0.11);
  border-radius: 6px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
  padding: 0 32px;
  margin-top: 12px;
}
.mobile-nav a {
  color: #e8f4fa;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 11px 0;
  border-radius: 5px;
  transition: background 0.18s cubic-bezier(.4,0,.2,1), color 0.18s cubic-bezier(.4,0,.2,1);
  display: flex;
  width: 100%;
  align-items: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #234775;
  color: #97B6D5;
}

/* ================
   RESPONSIVENESS
================ */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }
  .main-nav {
    gap: 20px;
  }
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}
@media (max-width: 850px) {
  .container {
    max-width: 97vw;
    padding-left: 13px;
    padding-right: 13px;
  }
  .main-nav {
    gap: 12px;
    font-size: 0.98rem;
  }
  .footer-nav {
    min-width: 140px;
    margin-right: 0;
  }
}
@media (max-width: 1200px) {
  .feature-grid > div { max-width: 48%; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  .container, 
  footer .container {
    padding-left: 7vw;
    padding-right: 7vw;
    max-width: 100vw;
  }
  header .container {
    min-height: 56px;
    gap: 14px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn.btn-primary {
    padding: 11px 28px;
    font-size: 0.98rem;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 82vw;
    max-width: 100%;
  }
  section {
    padding: 27px 0 32px 0;
    margin-bottom: 38px;
  }
  .testimonial-card {
    max-width: 97vw;
    padding: 18px;
    gap: 10px;
  }
  .content-grid, .card-container {
    gap: 13px;
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .container, footer .container {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.31rem; }
  .btn.btn-primary { font-size: 0.97rem; padding: 10px 16px; }
  .footer-brand img { height: 34px; }
}

/* ====================
   TESTIMONIAL CONTRAST
==================== */
.testimonial-card p, .testimonial-card div {
  color: #172336;
  font-size: 1.09rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.testimonial-card span {
  color: #FDBE34;
  font-size: 1.05rem;
  margin-left: 8px;
  letter-spacing: 0.03em;
}

/* =====
   MAP ICON HINT
======= */
.map-location p {
  background: #e9eff6;
  color: #17304C;
  border-radius: 7px;
  padding: 11px 14px 11px 10px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-location img {
  height: 22px;
}

/* =====================
   COOKIE CONSENT BANNER
===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #17304C;
  color: #fff;
  z-index: 9999;
  box-shadow: 0 -3px 14px 0 rgba(23,48,76,0.18);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  justify-content: center;
  padding: 28px 16px 24px 16px;
  transition: transform 0.32s cubic-bezier(.4,.7,.66,1.02), opacity 0.18s cubic-bezier(.4,.7,.66,1.02);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  max-width: 540px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 6px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin-bottom: 0;
  transition: background 0.15s cubic-bezier(.4,0,.2,1), color 0.16s cubic-bezier(.4,0,.2,1);
  outline: none;
  display: inline-flex;
  align-items: center;
}
.cookie-btn.accept {
  background: #97B6D5;
  color: #17304C;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #6e8bbb;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #17304C;
  border: 1.6px solid #97B6D5;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #cfdceb;
  color: #17304C;
}
.cookie-btn.settings {
  background: transparent;
  color: #97B6D5;
  border: 1.6px solid #97B6D5;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #234775;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  background: rgba(23,48,76,0.72);
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #17304C;
  border-radius: 14px;
  padding: 38px 26px 22px 26px;
  min-width: 320px;
  max-width: 97vw;
  box-shadow: 0 8px 32px 0 rgba(23,48,76,0.14);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1), opacity 0.18s cubic-bezier(.4,0,.2,1);
  transform: translateY(32px);
  opacity: 0;
}
.cookie-modal.open {
  transform: translateY(0);
  opacity: 1;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 9px;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}
.cookie-modal .category-label {
  font-size: 1.04rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}
.cookie-switch input { display: none; }
.cookie-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e9eff6;
  border-radius: 22px;
  transition: background 0.19s cubic-bezier(.4,0,.2,1);
}
.cookie-switch input:checked + .slider {
  background: #97B6D5;
}
.cookie-switch .slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(23,48,76,0.07);
  transition: transform 0.19s cubic-bezier(.4,0,.2,1);
}
.cookie-switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #97B6D5;
  cursor: pointer;
  transition: color 0.19s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #17304C;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .cookie-banner-content {
    max-width: 98vw;
    font-size: 0.98rem;
  }
}

/* ============
   MICRO-INTERACTIONS & SHADOWS
=============== */
.card, .feature-grid > div, .testimonial-card {
  will-change: box-shadow, transform;
}
.btn, .cookie-btn {
  transition: background 0.14s cubic-bezier(.4,0,.2,1), color 0.13s cubic-bezier(.4,0,.2,1), box-shadow 0.15s cubic-bezier(.4,0,.2,1);  
}

/* ======
  MISC
======== */
::-webkit-scrollbar {
  width: 10px;
  background: #F6F7F2;
}
::-webkit-scrollbar-thumb {
  background: #c3ceda;
  border-radius: 7px;
}

/* Highlight Active Link in Nav (JS add .active) */
.main-nav a.active, .mobile-nav a.active {
  color: #97B6D5;
}

/* Structure helpers (for spacing strictness) */
.card + .card, .feature-grid > div + div, .testimonial-card + .testimonial-card {
  margin-top: 20px !important;
}

/* Remove input styling for switch in cookie modal */
.cookie-switch input { opacity: 0; width: 0; height: 0; }

/* === FADE ANIMATIONS (for JS) === */
.fade-in { animation: fadeIn 0.45s cubic-bezier(.4,0,.2,1) both; }
.fade-out { animation: fadeOut 0.38s cubic-bezier(.4,0,.2,1) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(18px);} to {opacity: 1; transform: none;} }
@keyframes fadeOut { from { opacity: 1;} to {opacity: 0;} }

/* =============
   UTILITY
============== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ============
   PRINT
============ */
@media print {
  body { background: #fff; color: #000; }
  header, footer, .btn, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .container { background: none !important; }
}
