/* =========================================
   CSS RESET & BASE - Modern Bold Style
   ========================================= */
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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #FFFFFF;
  color: #213461;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  font-weight: 400;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.5em;
  padding-left: 0.5em;
}
a {
  color: #213461;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #213461;
  outline-offset: 2px;
}
a:hover {
  color: #519872;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
  transition: background 0.15s, color 0.15s, border 0.15s;
}
button {
  cursor: pointer;
}
strong {
  font-weight: 800;
}
blockquote {
  font-style: italic;
  color: #213461;
  font-weight: 700;
  border-left: 4px solid #519872;
  padding-left: 1em;
  margin-bottom: 8px;
}
/* Hide scrollbars on mobile for modal overlays: */
body.modal-open {
  overflow: hidden;
}

/* =========================================
   TYPOGRAPHY HIERARCHY (Modern Bold)
   ========================================= */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.13;
  margin-bottom: 24px;
  color: #213461;
  letter-spacing: -0.02em;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #213461;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #213461;
}
h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
  margin-bottom: 10px;
}
p, li, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
.text-section h2, .text-section h3 {
  margin-top: 24px;
}

/* =========================================
   COLOR PALETTE
   ========================================= */
:root {
  --primary: #213461;
  --secondary: #519872;
  --accent: #F0EADA;
  --danger: #D4584A;
  --bg-light: #F9F9FB;
  --text-dark: #213461;
  --text-light: #F0EADA;
  --border-light: #DEE3EC;
}

/* =========================================
   LAYOUT - Container & Spacing
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #F9F9FB;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(33,52,97,0.03), 0 1.5px 2px rgba(81,152,114,0.03);
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(33,52,97,0.09);
  padding: 32px 24px;
  transition: box-shadow 0.18s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(81,152,114,0.16);
  transform: translateY(-2px) scale(1.01);
  z-index: 1;
}
.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-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: #F0EADA;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(33,52,97,0.07);
  min-width: 260px;
  max-width: 370px;
  flex: 1 1 260px;
  color: #213461;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(33,52,97,0.13);
  transform: translateY(-2px) scale(1.02);
  z-index: 1;
}
.user-rating {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #519872;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-item {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(81,152,114,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px;
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 320px;
  transition: box-shadow 0.18s, transform 0.22s;
}
.feature-item:hover {
  box-shadow: 0 8px 28px rgba(33,52,97,0.15);
  transform: translateY(-2px) scale(1.03);
  z-index: 2;
}
.service-list, .team-list {
  margin-bottom: 16px;
  margin-top: 5px;
  list-style: none;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
  background: #F0EADA;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(33,52,97,0.06);
  font-weight: 600;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.team-list .text-section {
  background: #fff;
  border-radius: 16px;
  box-shadow:0 2px 6px rgba(81,152,114,0.08);
  padding: 26px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section {
  margin-bottom: 20px;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 30px 0 0 0;
}
.footer-col {
  flex: 1 1 200px;
  min-width: 180px;
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0 0 0;
  padding: 12px;
  font-size: 0.96rem;
  color: #FFF;
  background: var(--primary);
  border-radius: 8px 8px 0 0;
}

/* =========================================
   HEADER & NAVIGATION (Desktop)
   ========================================= */
header {
  background: #fff;
  box-shadow: 0 6px 16px rgba(81,152,114,0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #213461;
  padding: 8px 4px;
  border-radius: 4px;
  position: relative;
  transition: color 0.16s, background 0.17s;
}
header nav a:hover, header nav a:focus {
  color: #519872;
  background: #F0EADA;
}
header .cta-primary {
  margin-left: 22px;
  min-width: 200px;
}
header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #213461;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.18s, box-shadow 0.15s;
}
header .mobile-menu-toggle:focus,
header .mobile-menu-toggle:hover {
  background: #F0EADA;
}

/* =========================================
   BURGER MENU & MOBILE MENU
   ========================================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,52,97,0.97);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.5,0,0.2,1);
  z-index: 999;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: #FFD9B5;
  color: #213461;
  border: none;
  font-size: 2rem;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s;
  box-shadow: 0 2px 8px rgba(240,234,218,0.30);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #519872;
  color: #fff;
}
.mobile-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #F0EADA;
  background: transparent;
  border-radius: 8px;
  padding: 14px 34px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #519872;
  color: #fff;
}
@media (max-width: 992px) {
  header nav, header .cta-primary {
    display: none !important;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================================
   CTA BUTTONS (Modern Bold)
   ========================================= */
.cta-primary {
  background: #519872;
  color: #fff !important;
  border-radius: 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  box-shadow: 0 4px 16px rgba(81,152,114,0.11);
  border: none;
  display: inline-block;
  cursor: pointer;
  text-align: center;
  margin-top: 10px;
  transition: box-shadow 0.18s, background 0.16s, color 0.16s, transform 0.15s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #213461;
  color: #F0EADA !important;
  box-shadow: 0 10px 40px rgba(33,52,97,0.21);
  transform: translateY(-2px) scale(1.03);
}

/* Generic Outlined Button (for cookies, etc.) */
.button-outline {
  padding: 12px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid #519872;
  border-radius: 30px;
  background: transparent;
  color: #519872;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, border 0.13s;
  margin-right: 14px;
}
.button-outline:hover, .button-outline:focus {
  background: #519872;
  color: #fff;
  border-color: #213461;
}
.button-accent {
  background: #F0EADA;
  color: #213461;
  border: 2px solid #F0EADA;
  font-weight: 800;
}
.button-accent:hover, .button-accent:focus {
  background: #213461;
  color: #F0EADA;
  border-color: #213461;
}

/* =========================================
   MODALS & COOKIE BANNER
   ========================================= */
.cookie-banner {
  position: fixed;
  z-index: 1500;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #fff;
  border-top: 2.5px solid #519872;
  box-shadow: 0 -5px 20px rgba(33,52,97,0.08);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 22px 24px 22px;
  font-size: 1rem;
  transition: transform 0.5s cubic-bezier(.6,.1,.3,1);
  transform: translateY(130%);
}
.cookie-banner.active {
  transform: translateY(0);
}
.cookie-banner-text {
  flex: 2 1 320px;
  color: #213461;
  font-size: 1rem;
}
.cookie-banner-buttons {
  flex: 1 1 280px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(33, 52, 97, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #213461;
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 22px;
  max-width: 400px;
  width: 90vw;
  padding: 38px 28px 28px 28px;
  box-shadow: 0 12px 57px rgba(33,52,97,0.17);
  z-index: 1700;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: cookieModalAppear 0.37s cubic-bezier(0.51,1,0.62,1.12);
}
@keyframes cookieModalAppear {
  0% { opacity: 0; transform: translateY(90px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.cookie-category {
  background: #F0EADA;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  font-weight: 600;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 24px;
  outline: none;
  background: #DEE3EC;
  border-radius: 24px;
  position: relative;
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #519872;
}
.cookie-toggle:before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.16s cubic-bezier(.7,.1,.27,1);
}
.cookie-toggle:checked:before {
  left: 20px;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  background: #F0EADA;
  color: #213461;
  border: none;
  border-radius: 9px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #519872;
  color: #fff;
}

/* =========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ========================================= */
@media (max-width: 1050px) {
  .feature-grid,
  .card-container,
  .team-list,
  .footer-columns {
    gap: 18px;
  }
  .feature-item, .card, .testimonial-card, .team-list .text-section, .footer-col {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 230px;
  }
}
@media (max-width: 900px) {
  .feature-grid,
  .card-container,
  .content-grid,
  .team-list,
  .testimonial-list,
  .footer-columns {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .footer-col {
    margin-bottom: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 20px 4px;
    margin-bottom: 24px;
    border-radius: 12px;
  }
  .text-image-section, .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: stretch !important;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .feature-grid,
  .card-container,
  .testimonial-list,
  .team-list {
    flex-direction: column;
    gap: 18px;
  }
  .service-list li, .testimonial-card, .team-list .text-section {
    padding: 13px 10px;
    font-size: 0.95rem;
    min-width: 0;
    max-width: 100%;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
  .cookie-banner-text {
    font-size: 0.96rem;
  }
  .footer-bottom {
    font-size: 0.82rem;
    padding: 8px;
  }
}
@media (max-width: 550px) {
  h1 {
    font-size: 1.43rem;
  }
  h2 {
    font-size: 1.13rem;
  }
  .section {
    padding: 10px 2px;
    margin-bottom: 16px;
  }
  .cta-primary,
  .button-outline, .button-accent {
    font-size: 0.97rem;
    padding: 11px 16px;
  }
  .cookie-banner {
    padding: 11px 6px 11px 8px;
    font-size: 0.95rem;
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  .cookie-banner-buttons {
    justify-content: flex-start;
    gap: 9px;
    margin-top: 1px;
  }
  .cookie-modal {
    padding: 20px 8px 16px 12px;
    font-size: 0.97rem;
    min-width: 0;
  }
}

/* =========================================
   SHADOWS & BORDERS - Modern Geometric
   ========================================= */
.section, .card, .feature-item, .testimonial-card, .team-list .text-section {
  box-shadow: 0 1.5px 6px rgba(33,52,97,0.06);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #213461;
  color: #fff;
  border-radius: 32px 32px 0 0;
  margin-top: 60px;
  box-shadow: 0 -6px 24px rgba(33,52,97,0.08);
}
footer .footer-col h4 {
  color: #519872;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
footer nav a {
  color: #F0EADA;
  font-weight: 600;
}
footer nav a:hover, footer nav a:focus {
  color: #519872;
  text-decoration: underline;
}
footer .footer-col address,
footer .footer-col p {
  color: #F0EADA;
  font-size: 0.98rem;
  margin-bottom: 10px;
}
footer img {
  filter: drop-shadow(0 2px 12px rgba(33,52,97,0.13));
  margin-bottom: 12px;
  width: 48px;
  height: auto;
}

/* =========================================
   ACCESSIBILITY & SELECTION
   ========================================= */
::selection {
  color: #fff;
  background: #519872;
}
:focus-visible {
  outline: 2px solid #519872;
  outline-offset: 1px;
}

/* =========================================
   HELPER CLASSES
   ========================================= */
.mt-lg {
  margin-top: 42px !important;
}
.mt-md {
  margin-top: 28px !important;
}
.mt-sm {
  margin-top: 10px !important;
}
.text-center {
  text-align: center !important;
}
.text-left {
  text-align: left !important;
}
.text-right {
  text-align: right !important;
}

/* =========================================
   GEOMETRIC ACCENT DECOR (optionally used)
   ========================================= */
.accent-shape {
  display: block;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: .12;
}

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