/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F1F6FA;
  color: #21314B;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
:root {
  --primary: #14396A;
  --secondary: #3CB778;
  --accent: #F1F6FA;
  --dark: #1a232d;
  --muted: #EEE9E1;
  --content-max-width: 1100px;
  --border-radius: 14px;
  --shadow: 0 4px 16px 0 rgba(20,57,106,0.07);
  --focus: 0 0 0 2px var(--secondary);
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: var(--secondary);
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.7em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.75rem;
  margin-top: 26px;
}
h3 {
  font-size: 1.25rem;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol {
  font-family: 'Roboto', 'Georgia', serif;
  color: #21314B;
  font-size: 1.07rem;
  margin-bottom: 1.2em;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
strong {
  font-weight: bold;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.map-placeholder {
  background: var(--muted);
  color: #777;
  border: 1px dashed #bbb;
  border-radius: var(--border-radius);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 12px 0;
  font-size: 1.05rem;
}
.hero {
  background: linear-gradient(90deg, #F4F7FA 70%, #ecf2f3 100%);
  border-bottom: 1px solid #e4e4e4;
  padding: 40px 0 40px 0;
  min-height: 320px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.tagline {
  font-style: italic;
  color: var(--secondary);
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  letter-spacing: 0.03em;
}
/* --- FLEX LAYOUTS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.features-grid > div {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 24px 20px;
  flex: 1 1 290px;
  min-width: 240px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 1px solid #ececec;
}
.features-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(20,57,106,0.10);
  transform: translateY(-3px) scale(1.015);
}
.features-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid #e5e5e5;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--secondary);
  margin: 20px 0 20px 0;
  min-width: 0;
  flex: 1 1 310px;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px 0 rgba(20,57,106,0.13);
  border-left: 5px solid var(--primary);
}
.testimonial-card p {
  flex: 9;
  font-style: italic;
  color: var(--dark);
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.125rem;
}
.testimonial-card cite {
  flex: 3;
  font-family: 'Roboto', serif;
  color: #3b5065;
  font-size: 1rem;
  line-height: 1.35;
  margin-left: 15px;
  min-width: 120px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* --- BUTTONS / CTAs --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--secondary);
  color: #fff;
  padding: 13px 36px;
  border-radius: calc(var(--border-radius) * 0.85);
  border: none;
  margin: 8px 0 8px 0;
  transition: background 0.13s, color 0.13s, box-shadow 0.13s;
  box-shadow: 0 2px 12px 0 rgba(60,183,120,0.08);
  cursor: pointer;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 16px 0 rgba(20,57,106,0.12);
  outline: none;
}
button, .mobile-menu-close {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  color: var(--primary);
}
button:focus {
  box-shadow: var(--focus);
}
/* --- HEADER / NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 1px 10px 0 rgba(35,50,97,0.045);
  border-bottom: 1px solid #e6e8ec;
  padding: 0;
  z-index: 1001;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 74px;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 400;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.18s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus,
.main-nav a.active {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
  outline: none;
}
header .cta-btn {
  margin-left: 30px;
  margin-right: 0;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--primary);
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 1021;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.13s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--muted);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(20, 35, 54, 0.97);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.77,0,.18,1);
  z-index: 1025;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: #fff;
  position: absolute;
  top: 22px;
  right: 27px;
  background: transparent;
  border: none;
  z-index: 1027;
  cursor: pointer;
  transition: color 0.17s;
  border-radius: 12px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
  background: rgba(60,183,120,0.08);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: flex-start;
  padding: 96px 38px 34px 38px;
  width: 100%;
  max-width: 460px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.5rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  transition: color 0.14s, background 0.14s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--secondary);
  background: rgba(60,183,120,0.09);
  outline: none;
}

/* --- FOOTER --- */
footer {
  background: #162744;
  color: #fff;
  padding: 0 0 10px 0;
  font-size: 1rem;
  border-top: 1px solid #253A69;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
  padding: 40px 20px 22px 20px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 235px;
  max-width: 310px;
}
.footer-brand img {
  max-height: 34px;
  width: auto;
}
.address, .footer-brand address {
  color: #c2d8eb;
  font-style: normal;
  font-size: 1rem;
  margin-top: 6px;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 40px;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a {
  color: #cadcf2;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.02rem;
  padding-bottom: 4px;
  transition: color 0.14s;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--secondary);
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin: 10px 0 0 0;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  opacity: 0.92;
  transition: opacity 0.14s, filter 0.14s;
}
.footer-social a:hover img, .footer-social a:focus img {
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(60,183,120,0.09));
}
.footer-copy {
  flex-basis: 100%;
  font-size: 0.95rem;
  color: #bad2e6;
  margin-top: 24px;
  text-align: left;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 30px 0 rgba(20,57,106,0.13);
  border-top: 1.5px solid var(--muted);
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 16px 19px 16px;
  gap: 24px;
  font-size: 1.09rem;
  transition: transform 0.27s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner__text {
  max-width: 480px;
  color: var(--primary);
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  font-family: 'Georgia', serif;
  font-size: 1.02rem;
  border-radius: 9px;
  padding: 10px 18px;
  border: 1px solid var(--secondary);
  cursor: pointer;
  background: #fff;
  color: var(--primary);
  font-weight: 500;
  transition: background 0.13s, color 0.13s, border 0.13s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
  border: 1px solid var(--secondary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
  color: #fff;
  outline: none;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid #acbad8;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e6eaea;
  color: var(--primary);
  outline: none;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--secondary);
  border: 1px solid #eee;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e6f7ee;
  color: var(--primary);
  outline: none;
}
/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(20,35,54,0.60);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  visibility: hidden;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 50px 0 rgba(20,57,106,0.18);
  padding: 38px 26px 24px 26px;
  min-width: 340px;
  max-width: 92vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 7001;
  animation: modalFadeIn 0.33s cubic-bezier(0.31,1.31,0.32,1) both;
}
@keyframes modalFadeIn {  0% { opacity: 0; transform: translateY(60px) scale(0.98); } 100% { opacity: 1; transform: none; } }
.cookie-modal h3 {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 3px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
}
.cookie-category label {
  font-family: inherit;
  color: var(--primary);
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.cookie-category input[disabled] {
  accent-color: #bbb;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 1.8rem;
  color: #bbb;
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: var(--secondary);
}

/* --- GENERAL UI ENHANCEMENTS --- */
::-webkit-scrollbar { width: 12px; background: #f2f2f2; }
::-webkit-scrollbar-thumb { background: #e2e9f2; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #c3d4e7; }

/* Card hover, transitions, spacing */
.card,
.features-grid > div,
.testimonial-card {
  transition: box-shadow 0.13s, transform 0.13s;
}
.card:hover, .features-grid > div:hover {
  box-shadow: 0 10px 32px 0 rgba(20,57,106,0.11);
  transform: translateY(-2px) scale(1.01);
}

/* Ensure minimum margin between section content blocks */
section + section {
  margin-top: 20px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  .container {
    max-width: 960px;
  }
  .features-grid > div {
    min-width: 200px;
    max-width: 95vw;
  }
}
@media (max-width: 850px) {
  .container {
    max-width: 97vw;
  }
  header .container {
    gap: 12px;
  }
  .footer-brand, .footer-links, .footer-social {
    min-width: 150px;
    gap: 10px !important;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    min-height: 56px;
    flex-direction: row;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .footer-brand {
    min-width: 140px;
    max-width: 100%;
  }
  .footer-links {
    gap: 12px;
    min-width: unset;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    padding: 34px 10px 18px 10px;
  }
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div {
    width: 100%;
    min-width: 0;
    max-width: initial;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .container, .section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-modal {
    width: 96vw;
    min-width: 0;
    padding: 22px 8px 17px 8px;
  }
}
@media (max-width: 580px) {
  html { font-size: 14px; }
  .hero {
    padding-top: 24px;
    padding-bottom: 26px;
    min-height: 190px;
  }
  .testimonial-card p, .testimonial-card cite {
    font-size: 1rem;
  }
  .footer-brand img {
    max-height: 28px;
  }
}

/* --- ACCESSIBLE FOCUS STATES --- */
a:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-toggle:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 3px;
}

/* --- MICRO-ANIMATIONS --- */
.cta-btn, .cookie-btn,
.features-grid > div,
.testimonial-card,
.card {
  transition: box-shadow 0.16s, background 0.15s, color 0.13s, border 0.13s, transform 0.14s;
}

/* --- SPECIAL: ENSURE SPACING BETWEEN ALL CARDS --- */
.card + .card,
.testimonial-card + .testimonial-card,
.features-grid > div + div {
  margin-top: 20px;
}
/* No overlapping! */

/* --- PRINT STYLES --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main, .container { max-width: 100vw !important; }
  body { color: #000; background: #fff; }
}
