/* =============================================================================
   CSS RESET & NORMALIZE (Simple Modern Reset)
============================================================================= */
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;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  line-height: 1.5;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F1EFE3;
  color: #1C3144;
  font-family: 'Roboto', Arial, system-ui, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol { list-style: none; }
a {
  color: #1C3144;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #5F917B;
  outline-offset: 2px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}
/* Hide scrollbars on mobile overlay */
.mobile-menu {
  -webkit-overflow-scrolling: auto;
}

/* =============================================================================
   BRAND COLORS & TYPOGRAPHY
============================================================================= */
:root {
  --color-primary: #1C3144;
  --color-secondary: #5F917B;
  --color-accent: #F1EFE3;
  --color-bg: #FFFFFF;
  --color-grey: #ECECEC;
  --color-grey-dark: #B0B9BD;
  --color-shadow: rgba(28, 49, 68, 0.08);
  --color-shadow-card: rgba(28, 49, 68, 0.07);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --transition: all 0.2s cubic-bezier(.36,.72,0,.97);
  --transition-slow: all 0.35s cubic-bezier(.36,.72,0,.97);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #1C3144;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem; /* ~36px */
  margin-bottom: 24px;
  line-height: 1.17;
}
h2 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 20px;
  line-height: 1.22;
}
h3 {
  font-size: 1.125rem; /* 18px */
  margin-bottom: 12px;
  line-height: 1.28;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, li, .subheadline {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: #344A5F;
}
p {
  margin-bottom: 18px;
}
.subheadline {
  color: #5F917B;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
strong { font-weight: 600; }

/* =============================================================================
   LAYOUT & CONTAINER SYSTEM
============================================================================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEXBOX LAYOUTS (NO GRID!!!) */
.card-container,
.card-grid,
.feature-grid,
.service-cards,
.service-list,
.testimonial-cards,
.locations-list,
.team-list,
.blog-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card,
.service-card,
.team-member,
.location-item,
.blog-teaser {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--color-shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px 24px;
  gap: 12px;
  flex: 1 1 296px;
  min-width: 230px; /* Avoid ugly collapse */
  transition: box-shadow 0.18s, transform 0.20s;
}
.card:hover,
.service-card:hover,
.team-member:hover,
.location-item:hover,
.blog-teaser:hover {
  box-shadow: 0 4px 22px rgba(44, 76, 107, 0.13);
  transform: translateY(-3px) scale(1.015);
}
.card:last-child,
.service-card:last-child,
.team-member:last-child,
.location-item:last-child,
.blog-teaser:last-child {
  margin-bottom: 0;
}

/* =============================================================================
   HEADER, NAVIGATION & HERO
============================================================================= */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 16px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
header img {
  height: 40px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: #1C3144;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .18s, background .13s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F1EFE3;
  color: #5F917B;
}
.button-primary {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-secondary);
  color: #FFF;
  border-radius: var(--radius-sm);
  border: none;
  padding: 12px 28px;
  margin-left: 20px;
  box-shadow: 0 2px 14px var(--color-shadow);
  transition: background .18s, transform .15s, box-shadow .17s;
  letter-spacing: .01em;
  text-shadow: 0 2px 6px rgba(44, 76, 107, 0.03);
}
.button-primary:hover,
.button-primary:focus {
  background: #3b775c;
  color: #f8f6ee;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px rgba(44, 76, 107, 0.12);
}
/* HERO */
.hero {
  background: linear-gradient(180deg, #F1EFE3 80%, #FFFFFF 100%);
  padding: 64px 0 32px;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: 2.5rem;
  color: #1C3144;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(44, 76, 107, 0.13);
  margin-bottom: 18px;
}
.hero .subheadline {
  color: #5F917B;
  margin-bottom: 28px;
  font-size: 1.15rem;
  font-weight: 400;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 28px;
}

/******************************
   MOBILE MENU
******************************/
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 10px rgba(44, 76, 107, 0.09);
  z-index: 1501;
  transition: background .16s, color .16s;
  margin-left: 18px;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px rgba(28,49,68,0.17);
  transform: translateX(-105%);
  transition: transform 0.33s cubic-bezier(.77,.2,.05,1.0);
  z-index: 1800;
  padding: 24px 30px 0 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  align-self: flex-end;
  margin-bottom: 22px;
  transition: color .16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding: 14px 0 10px 3px;
  color: #1C3144;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  margin-right: 8px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F1EFE3;
  color: var(--color-secondary);
}

/* Hide main-nav/.button-primary on mobile, show burger */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* =============================================================================
   SECTIONS, CARDS & FLEXBOX PATTERNS
============================================================================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container, .card-grid,
.feature-grid, .service-cards, .service-list,
.testimonial-cards, .locations-list,
.team-list, .blog-teasers,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  /* Prevent elements from wrapping ugly on super small screens: */
  width: 100%;
  justify-content: flex-start;
}
.card, .card-content, .service-card, .team-member,
.location-item, .blog-teaser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 1.5px 10px var(--color-shadow-card);
  padding: 26px 20px 22px 20px;
  min-width: 230px;
  max-width: 360px;
  flex: 1 1 280px;
  position: relative;
  transition: box-shadow .17s, transform .2s;
}
.card:hover, .service-card:hover, .team-member:hover,
.location-item:hover, .blog-teaser:hover {
  box-shadow: 0 6px 24px rgba(44, 76, 107, 0.13);
  transform: translateY(-2px) scale(1.025);
}
.text-image-section {
  display: flex;
  flex-direction: row; /* Row on desktop, col on mobile */
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* Testimonial cards */
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 26px 18px 26px;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 16px rgba(44, 76,107,0.11);
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  color: #1C3144;
  font-size: 1rem;
  transition: box-shadow .17s, transform .17s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(44, 76,107,0.19);
  transform: translateY(-3px) scale(1.035);
}
.testimonial-card p {
  color: #253548;
  margin-bottom: 0;
}
.testimonial-customer {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #5F917B;
  margin-top: 4px;
}
.trust-signals {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #90a7b7;
  font-size: 0.98rem;
  margin-top: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 18px 16px 18px;
  min-width: 220px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 1.5px 10px var(--color-shadow-card);
  flex: 1 1 230px;
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .15s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.feature-item:hover {
  box-shadow: 0 6px 20px rgba(95,145,123,0.10);
  transform: translateY(-2px) scale(1.03);
}

/******************************
    BLOG TEASER AND FILTER
******************************/
.category-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.category-filter .filter-label {
  color: #5F917B;
  font-weight: 600;
  letter-spacing: .01em;
  font-size: 1rem;
}
.category-filter button {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: #F1EFE3;
  border: none;
  color: #1C3144;
  font-family: var(--font-display);
  transition: background .13s, color .13s, box-shadow .13s;
  font-weight: 500;
}
.category-filter button:hover, .category-filter button.active {
  background: #5F917B;
  color: #fff;
  box-shadow: 0 2px 14px rgba(95,145,123,0.08);
}

.blog-teaser {
  border-left: 4px solid #5F917B;
  transition: border .14s, box-shadow .15s;
}
.blog-teaser h3 {
  color: #1C3144;
  margin-bottom: 7px;
  font-size: 1.13rem;
  font-family: var(--font-display);
}
.read-more {
  margin-top: 6px;
  color: #5F917B;
  font-weight: 600;
  font-size: 1rem;
  transition: color .15s;
}
.read-more:hover {
  color: #1C3144;
  text-decoration: underline;
}

/******************************
    ACCORDION (FAQ)
******************************/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.faq-item {
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 2px 9px rgba(28,49,68,0.06);
  padding: 17px 20px 15px 20px;
  margin-bottom: 6px;
  transition: box-shadow .13s, transform .13s;
}
.faq-item h3 {
  cursor: pointer;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: #1C3144;
  position: relative;
}
.faq-item.open, .faq-item:focus-within {
  box-shadow: 0 6px 20px rgba(95,145,123,0.08);
  transform: translateY(-1px) scale(1.015);
}
.faq-answer {
  animation: fade-faq 0.25s;
}
@keyframes fade-faq {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 600px; }
}

/******************************
    CONTACT DETAILS & LISTS
******************************/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.contact-details div, .footer-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 3px;
}
.footer-contact span {
  color: #5F917B;
  font-size: 0.97rem;
  margin-top: 4px;
}

/******************************
    FOOTER
******************************/
footer {
  background: #F1EFE3;
  color: #1C3144;
  padding: 36px 0 16px;
  border-top: 1.5px solid #ececec;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #5F917B;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 1.5px 3.5px;
  border-radius: 3.5px;
  transition: color .16s, background .14s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #fff;
  color: #1C3144;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: #86898f;
  margin-top: 8px;
}

/******************************
    COOKIE CONSENT BANNER & MODAL
******************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #FFFFFF;
  border-top: 2.5px solid #5F917B;
  box-shadow: 0 -1.5px 30px rgba(44,76,107,0.07);
  padding: 22px 18px 18px 18px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: banner-slidein 0.7s cubic-bezier(.27,.93,.65,1.13);
}
@keyframes banner-slidein {
  0%   { transform: translateY(130%); }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  font-size: 1rem;
  color: #253548;
  margin-bottom: 0;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  background: #5F917B;
  color: #fff;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 9px 22px;
  margin-right: 2px;
  box-shadow: 0 2px 10px rgba(44, 76, 107, 0.07);
  transition: background .14s, color .14s, box-shadow .13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #1C3144;
  color: #fff;
  box-shadow: 0 3px 19px rgba(44, 76, 107, 0.10);
}
.cookie-btn.cookie-reject {
  background: #fff;
  color: #1C3144;
  border: 1px solid #5F917B;
}
.cookie-btn.cookie-reject:hover {
  background: #E0E5DF;
}
.cookie-btn.cookie-settings {
  background: #F1EFE3;
  color: #5F917B;
  border: 1px solid #5F917B;
}
.cookie-btn.cookie-settings:hover {
  background: #e6ebea;
  color: #1C3144;
}
/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,49,68,0.32);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.25s;
}
@keyframes fadeInCookieModal { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 36px rgba(44,76,107,0.25);
  max-width: 400px;
  width: 96vw;
  margin: 18px;
  padding: 34px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: fadeInCookieModal 0.22s;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.cookie-toggle {
  width: 36px;
  height: 22px;
  background: #E8EEEB;
  border-radius: 11px;
  position: relative;
  transition: background 0.17s;
  margin-left: 5px;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle .toggle-switch {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(44, 76, 107, 0.08);
  transition: left .19s cubic-bezier(.45,.92,0,1.01), background .18s;
}
.cookie-toggle input[type="checkbox"]:checked + .toggle-switch {
  background: #5F917B;
  left: 16px;
}
.cookie-toggle input[type="checkbox"]:checked ~ .toggle-label {
  color: #1C3144;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-modal .cookie-btn {
  margin-bottom: 0;
}

/******************************
    MEDIA QUERIES (RESPONSIVE)
******************************/
@media (max-width: 968px) {
  .container {
    max-width: 98vw;
    padding: 0 7vw;
  }
  .content-wrapper {
    max-width: 100vw;
  }
  .feature-grid, .service-cards, .service-list, .testimonial-cards, .card-container, .card-grid, .locations-list, .team-list, .blog-teasers {
    gap: 14px;
  }
  .card, .service-card, .team-member, .location-item, .blog-teaser {
    min-width: 48vw;
    max-width: 80vw;
    padding: 22px 12px 14px 12px;
  }
  .section {
    padding: 30px 5vw;
    margin-bottom: 42px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    padding-left: 0; padding-right: 0;
    max-width: 98vw;
    gap: 16px;
  }
  .section {
    padding: 28px 2vw;
    margin-bottom: 36px;
  }
  .feature-grid, .service-cards, .team-list, .locations-list, .testimonial-cards, .card-container, .card-grid, .blog-teasers {
    flex-direction: column;
    gap: 13px;
  }
  .card, .service-card, .team-member, .location-item, .blog-teaser {
    min-width: 90vw;
    max-width: 95vw;
    padding: 18px 10px 14px 10px;
  }
  header .container {
    height: 56px;
    padding-left: 1vw;
    padding-right: 1vw;
  }
  .footer-nav {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
  .footer-contact {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    margin-bottom: 6px;
  }
  .thank-you-section .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .hero {
    padding: 30px 0 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }
  .hero h1 { font-size: 1.25rem; }
  .main-nav, .footer-nav { gap: 7px; }
  .cookie-modal {
    padding: 12vw 2vw 12vw 2vw;
    min-width: 0;
    max-width: 99vw;
  }
}

/******************************
   UTILITY CLASSES & MISC
******************************/
.hide-mobile { display: none !important; }
.show-mobile { display: block !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.gap-20 { gap: 20px !important; }
.bg-accent { background: #F1EFE3 !important; }
.bg-white { background: #fff !important; }
.rounded { border-radius: var(--radius-md)!important; }

/******************************
   THANK YOU PAGE
******************************/
.thank-you-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 22px;
}

/******************************
   FOCUS VISIBLE (for accessibility)
******************************/
:focus-visible {
  outline: 2.5px solid #5F917B;
  outline-offset: 2.5px;
}

/******************************
   MISC ANIMATION
******************************/
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation-duration: 0 !important;
  }
}
