/* =========================================
   CSS Reset & Base Styles
   ========================================= */
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, menu, 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 { 
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif; 
  font-size: 16px; 
  line-height: 1.6; 
  background: #F9F9F6; 
}
body { 
  color: #364049; 
  font-family: 'Open Sans', Arial, Helvetica, sans-serif; 
  background: #F9F9F6; 
  min-height: 100vh; 
  position: relative;
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
}
main {
  flex: 1 1 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  color: #32647A;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
h4 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  font-weight: 600;
}
p, ul, ol, li {
  color: #3C3C3C;
}
.section p, .text-section p { font-size: 1.08rem; margin-bottom: 18px; }
.section ul, .text-section ul { margin-bottom: 16px; padding-left: 26px; }
.text-section ul li,
.section ul li {
  margin-bottom: 10px;
  list-style-type: disc;
  font-size: 1.07rem;
  padding-left: 3px;
}
a {
  color: #32647A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2B950;
  text-decoration: underline;
}
strong {
  font-weight: bold;
  color: #2D434B;
}

/* =========================================
   Container, Flex & Layout Utilities
   ========================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.header-flex, .footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}
.content-wrapper {
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(50,90,120,0.07);
}
@media (max-width: 640px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 8px;
  }
}

/* Content Cards & Feature Boxes */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-box {
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 245px;
  margin-bottom: 20px;
  background: #F9F9F6;
  border-radius: 11px;
  box-shadow: 0 1.5px 8px rgba(50,100,122,0.08);
  padding: 28px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-box img {
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
}
.feature-box:hover {
  box-shadow: 0 7px 32px rgba(50,100,122,0.13);
  transform: translateY(-2px) scale(1.015);
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-box {
    min-width: 44%;
    max-width: 100%;
    flex: 1 1 47%;
  }
}
@media (max-width: 640px) {
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-box {
    min-width: 0;
    width: 100%;
  }
}

.text-section {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.text-section img {
  max-width: 32px;
  vertical-align: middle;
}

/* Testimonial Styles */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  background: #F5F7F9;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(50,100,122,0.07);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 20px;
  max-width: 345px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  border-left: 5px solid #F2B950;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #1E2B36;
  font-size: 1rem;
  margin-bottom: 10px;
  font-style: italic;
}
.testimonial-card span {
  color: #32647A;
  font-size: 0.97rem;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 6px 30px rgba(50,100,122,0.14);
}
@media (max-width: 900px) {
  .testimonial-list {
    gap: 16px;
  }
  .testimonial-card { max-width: 100%; }
}
@media (max-width: 640px) {
  .testimonial-list { flex-direction: column; gap: 20px; }
}

/* Contact Info List w/ Icons */
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  font-size: 1.03rem;
  color: #43484F;
}
.text-section ul li img {
  width: 1.1em;
  height: 1.1em;
}

/* Hero Section */
.hero {
  background: #32647A url('../assets/hero-pattern.svg') top right no-repeat;
  color: #fff;
  padding: 54px 0 54px 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 30px rgba(50,100,122,0.10);
  margin-bottom: 54px;
}
.hero h1,
.hero p,
.hero .subheadline {
  color: #fff;
  text-shadow: 0 2px 14px rgba(50,100,122,0.14);
}
.hero .subheadline { font-size: 1.25rem; margin-bottom: 23px; font-style: italic; }
.hero a.button-primary {
  background: #F2B950;
  color: #1F3F50;
  border: none;
}
@media (max-width: 760px) {
  .hero {
    padding: 34px 0;
    margin-bottom: 38px;
    border-radius: 0 0 13px 13px;
  }
}

/* Map Placeholder */
.map-placeholder {
  margin-top: 13px;
  border: 1px dashed #32647A55;
  background: #F9F9F6;
  border-radius: 9px;
  text-align: left;
  padding: 15px 13px;
}
.map-placeholder p {
  margin: 6px 0 0 0;
}
.map-placeholder strong {
  font-weight: 700;
}

/* =========================================
   Header, Nav, Logo & Main Nav Styles
   ========================================= */
header {
  background: #fff;
  box-shadow: 0 4px 18px rgba(50,100,122,0.07);
  z-index: 40;
}
.header-flex {
  position: relative;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Main Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Merriweather', Georgia, serif;
  color: #32647A;
  font-size: 1.07rem;
  padding: 8px 13px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
.main-nav a.cta, .main-nav a.button-primary {
  background: #F2B950;
  color: #1F3F50;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(242,185,80,0.08);
}
.main-nav a:hover:not(.cta), .main-nav a:focus:not(.cta) {
  background: #f4e5c0;
  color: #1F3F50;
}
.main-nav a.cta:hover,
.main-nav a.cta:focus {
  background: #ffe5a9;
  color: #32647A;
}

/* Hide nav and show burger on mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #32647A;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
  z-index: 101;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #1F3F50;
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* =========================================
   MOBILE MENU (Slide-In)
   ========================================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(50,100,122,0.98);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  z-index: 102;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #F2B950;
  position: absolute;
  right: 26px;
  top: 23px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 103;
  padding: 0 9px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff8e2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 80px 32px 0 32px;
  width: 100%;
}
.mobile-nav a {
  color: #F9F9F6;
  font-size: 1.12rem;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  padding: 11px 0 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  text-align: left;
  transition: color 0.19s, background 0.19s;
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #274A5B;
  color: #F2B950;
  border-radius: 7px;
  padding-left: 12px;
}
@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

/* =========================================
   Buttons & Call to Action Styles
   ========================================= */
.button,
.button-primary {
  display: inline-block;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.09rem;
  padding: 11px 29px;
  border: none;
  border-radius: 8px;
  background: #32647A;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1.5px 8px rgba(50,100,122,0.06);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.16s, color 0.16s, transform 0.18s, box-shadow 0.18s;
  text-align: center;
  margin-top: 5px;
}
.button-primary,
.button.button-primary {
  background: #F2B950;
  color: #1F3F50;
  box-shadow: 0 3px 10px rgba(242,185,80,0.10);
}
.button:hover, .button:focus { background: #204153; color: #fff;
  transform: translateY(-1px) scale(1.01);
}
.button-primary:hover,
.button-primary:focus,
.button.button-primary:hover,
.button.button-primary:focus {
  background: #ffe5a9;
  color: #32647A;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 7px 25px rgba(242,185,80,0.16);
}
/* Link as Button CTA */
a.button, a.button-primary { text-decoration: none; }

/* =========================================
   Footer Styles
   ========================================= */
footer {
  background: #32647A;
  color: #fff;
  padding: 32px 0 18px 0;
  box-shadow: 0 -3px 15px rgba(50,100,122,0.10);
  font-size: 1rem;
}
.footer-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #F2B950;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.03rem;
  margin-bottom: 0;
  transition: color 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus { color: #fff8e2; }
.footer-contact {
  font-size: 0.97rem;
  color: #F5F7F9;
  line-height: 1.6;
}
.footer-flex .logo img {
  height: 33px;
}
@media (max-width: 800px) {
  .footer-flex { flex-direction: column; align-items: flex-start; gap: 22px; }
}

/* =========================================
   Cookie Consent Banner & Modal
   ========================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff8e2;
  color: #2B3744;
  border-top: 2.5px solid #F2B950;
  box-shadow: 0 -2px 20px rgba(50,100,122,0.11);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 18px;
  flex-wrap: wrap;
  font-size: 1.07rem;
  opacity: 1;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  font-family: 'Merriweather', Georgia, serif;
  padding: 8px 20px;
  border-radius: 7px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
}
.cookie-banner .accept {
  background: #F2B950;
  color: #1F3F50;
  margin-right: 3px;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #ffe5a9;
  color: #32647A;
}
.cookie-banner .reject {
  background: #F5F7F9;
  color: #364049;
  border: 1.5px solid #F2B950;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #fdbd2a39;
  color: #204153;
}
.cookie-banner .settings {
  background: #32647A;
  color: #fff;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #204153;
  color: #fff8e2;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(50,100,122,0.61);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.18s;
}
.cookie-modal-overlay.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal {
  background: #fff8e2;
  border-radius: 17px;
  box-shadow: 0 6px 70px rgba(50,100,122,0.18);
  padding: 40px 30px 30px 30px;
  min-width: 310px;
  max-width: 94vw;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #32647A;
  margin-bottom: 18px;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1.07rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-category input[type=checkbox] {
  appearance: none;
  width: 23px;
  height: 23px;
  border: 2px solid #32647A;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border 0.16s, background 0.2s;
}
.cookie-category input[type=checkbox]:checked {
  background: #F2B950;
  border-color: #F2B950;
}
.cookie-category input[type=checkbox]:checked:after {
  content: '\2713';
  position: absolute;
  left: 4.5px; top: 0.5px;
  color: #32647A;
  font-size: 1.28rem;
  font-weight: bold;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  background: #F2B950;
  color: #1F3F50;
  border-radius: 7px;
  border: none;
  padding: 9px 21px;
  font-family: 'Merriweather', Georgia, serif;
  transition: background 0.15s, color 0.15s;
  font-weight: 600;
}
.cookie-modal .modal-actions button:hover,
.cookie-modal .modal-actions button:focus {
  background: #ffe5a9;
  color: #32647A;
}
.cookie-modal .close-modal {
  background: transparent;
  color: #32647A;
  font-size: 2rem;
  border: none;
  position: absolute;
  top: 20px;
  right: 25px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .cookie-modal { padding: 25px 9px 15px 9px; min-width: 90vw; }
}

/* =========================================
   Responsive Utilities & Flexbox Patterns
   ========================================= */
@media (max-width: 1060px) {
  .container { max-width: 98vw; }
}
@media (max-width: 480px) {
  html { font-size: 15px; }
}

/* CRITICAL FLEXBOX PATTERNS + SPACING REQUIREMENTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 3px 18px rgba(50,100,122,0.05);
  padding: 21px;
}
.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;
}

@media (max-width: 900px) {
  .card-container, .content-grid {
    gap: 14px;
  }
  .text-image-section {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
  }
  .header-flex, .footer-flex {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Ensure cards and sections never overlap on wrap */
.card, .feature-box, .testimonial-card, .section {
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* =========================================
   Microinteractions & Visual Details
   ========================================= */
.feature-box, .card, .testimonial-card, .section, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.18s, transform 0.18s, background 0.18s, color 0.2s;
}
.button, .button-primary, .cookie-banner button, .cookie-modal .modal-actions button {
  transition: background 0.16s, color 0.16s, transform 0.18s, box-shadow 0.18s;
}

/* Section Spacing & Card Responsiveness */
@media (max-width: 540px) {
  .feature-box, .testimonial-card, .card {
    padding: 14px 8px;
  }
  .section {
    padding: 17px 3px;
  }
}

/* Hide visually but keep accessible (for modal overlays etc) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ========== END OF STYLE.CSS ========== */
