/* ----------------------------------
   CSS RESET & BASE STYLES
----------------------------------- */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #23313C;
  background: #F7F5F2;
  min-height: 100vh;
  font-weight: 400;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #205275;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #74A79C;
  text-decoration: underline;
  outline: none;
}
strong {
  font-weight: 600;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #205275;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.25;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
p, ul, ol {
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.subheadline {
  font-size: 1.2rem;
  color: #376e93;
  font-weight: 500;
  margin-bottom: 12px;
}

/****************************
   FLEXBOX LAYOUTS
****************************/
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(32,82,117,0.06);
  padding: 24px 20px;
  min-width: 240px;
  flex: 1 1 260px;
  max-width: 340px;
  transition: box-shadow 0.2s;
}
.feature-item:hover {
  box-shadow: 0 4px 16px rgba(32,82,117,0.14);
}
.services-snippets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(32,82,117,0.06);
  padding: 24px 18px;
  flex: 1 1 230px;
  min-width: 210px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s;
  margin-bottom: 20px;
}
.service-box h3 {
  font-size: 1.05rem;
}
.service-box:hover {
  box-shadow: 0 4px 16px rgba(32,82,117,0.12);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.latest-articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.article-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(32,82,117,0.08);
  padding: 22px 20px 20px;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.article-card h3 a {
  color: #205275;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
}
.article-card:hover {
  box-shadow: 0 8px 32px rgba(32,82,117,0.14);
  transform: translateY(-2px) scale(1.012);
}

.team-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.team-member {
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 300px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(32,82,117,0.07);
  padding: 22px 18px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.12s;
}
.team-member h3 {
  font-size: 1.1rem;
}
.team-member:hover {
  box-shadow: 0 4px 16px rgba(32,82,117,0.09);
}

/*****************************
    TESTIMONIALS
******************************/
.testimonial-card {
  background: #F7F5F2;
  color: #22344B;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(32,82,117,0.08);
  flex: 1 1 240px;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1.08rem;
  font-style: italic;
  color: #22344B;
}
.testimonial-card span {
  color: #376e93;
  font-size: 0.95rem;
  margin-left: auto;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(32,82,117,0.11);
}

/*****************************
    HEADER & NAVIGATION
******************************/
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(32,82,117,0.04);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
  padding: 14px 0;
  width: 100%;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #205275;
  font-weight: 500;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background 0.13s, color 0.13s;
}
.main-nav a.cta-primary {
  background: #205275;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-left: 16px;
  padding: 8px 18px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(32,82,117,0.08);
  transition: background 0.13s, color 0.13s, transform 0.1s;
  border: none;
}
.main-nav a.cta-primary:hover,
.main-nav a.cta-primary:focus {
  background: #74A79C;
  color: #205275;
  transform: translateY(-1px) scale(1.03);
}
.main-nav a:hover:not(.cta-primary),
.main-nav a:focus:not(.cta-primary) {
  background: #f0f5f7;
  color: #376e93;
}
.main-nav img {
  width: 135px;
  height: auto;
  margin-right: 16px;
}

/*****************************
   CTA SECONDARY BUTTON
******************************/
.cta-secondary {
  display: inline-block;
  background: #74A79C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 24px;
  border: none;
  margin-top: 12px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(32,82,117,0.08);
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #205275;
  color: #fff;
  transform: scale(1.03);
}

/*****************************
   FOOTER
******************************/
footer {
  background: #205275;
  color: #fff;
}
footer .section {
  background: none;
  padding: 36px 0 20px 0;
  margin-bottom: 0;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.footer-menu a {
  color: #F7F5F2;
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.88;
  transition: opacity 0.15s, text-decoration 0.13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  opacity: 1;
  text-decoration: underline;
}
.contact-data {
  margin-bottom: 20px;
}
.contact-data p, .contact-data a {
  color: #F7F5F2;
  font-size: 0.98rem;
}
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}
.social-links a {
  display: flex;
  align-items: center;
  border-radius: 50%;
  background: rgba(116,167,156,0.08);
  padding: 8px;
  transition: background 0.13s;
}
.social-links a:hover {
  background: rgba(255,255,255,0.16);
}
.social-links img {
  width: 24px;
  height: 24px;
}

/*****************************
    SELECT/FILTER SECTION
******************************/
.filter-section {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.filter-section label {
  font-weight: 500;
  color: #205275;
}
.filter-section select {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #bbb;
  background: #fff;
  color: #205275;
  font-size: 1rem;
  transition: border 0.13s;
  font-family: 'Open Sans', Arial, sans-serif;
}
.filter-section select:focus {
  border: 1.5px solid #74A79C;
  outline: none;
}

/*****************************
    MAP LOCATION BLOCK
******************************/
.map-location {
  background: #e9eeef;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.98rem;
  margin-bottom: 16px;
  color: #205275;
}

/*****************************
    MOBILE NAVIGATION
******************************/
.mobile-menu-toggle {
  display: none;
  background: #205275;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 14px;
  border-radius: 8px;
  margin: 10px 16px 10px auto;
  cursor: pointer;
  transition: background 0.17s;
  z-index: 1101;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #74A79C;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 6px 44px rgba(32,82,117,.22);
  z-index: 1100;
  transform: translateX(-110vw);
  transition: transform 0.28s cubic-bezier(.73,0,.4,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #205275;
  padding: 18px 22px 10px 0;
  cursor: pointer;
  transition: color .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #74A79C;
}
.mobile-nav {
  margin: 0 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 40px;
}
.mobile-nav a {
  color: #205275;
  font-size: 1.18rem;
  font-weight: 500;
  padding: 8px 4px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: #eaf3f4;
  color: #74A79C;
}

/*****************************
   COOKIE CONSENT BANNER
******************************/
.cookie-consent-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #22344B;
  color: #fff;
  font-size: 1rem;
  z-index: 1400;
  box-shadow: 0 -2px 20px rgba(32,82,117,0.15);
  padding: 18px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
  transition: opacity 0.28s, transform 0.28s cubic-bezier(.73,0,.4,1);
}
.cookie-consent-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 24px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 7px rgba(32,82,117,.04);
  transition: background 0.18s, color 0.16s, transform 0.1s;
}
.cookie-btn.accept {
  background: #74A79C;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #205275;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.cookie-btn.reject {
  background: transparent;
  color: #F7F5F2;
  border: 1.5px solid #F7F5F2;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: #205275;
}
.cookie-btn.settings {
  background: #205275;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #74A79C;
  color: #fff;
}

/*****************************
    COOKIE MODAL OVERLAY
******************************/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(33, 52, 75, 0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1450;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(32,82,117,0.29);
  max-width: 470px;
  width: 94%;
  padding: 36px 28px 30px;
  color: #205275;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.22s cubic-bezier(.73,0,.4,1);
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #205275;
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #74A79C;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1.07rem;
}
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.switch input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #e5eaea;
  border-radius: 16px;
  transition: background 0.18s;
}
.switch input:checked + .slider {
  background: #74A79C;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(32,82,117,0.10);
  transition: transform 0.19s;
}
.switch input:checked + .slider:before {
  transform: translateX(18px);
}
.switch input:disabled + .slider {
  background: #b8bfc1;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(22px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/*****************************
    RESPONSIVE DESIGN
******************************/
@media (max-width: 1100px) {
  .features-grid, .article-cards-grid, .team-member-list, .services-snippets {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .features-grid, .article-cards-grid, .team-member-list, .services-snippets {
    gap: 16px;
  }
  .feature-item, .service-box, .article-card, .team-member {
    min-width: 170px;
    max-width: 100%;
    flex: 1 1 220px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 98%;
  }
  header {
    padding: 0 0 0 0;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .features-grid, .services-snippets, .article-cards-grid, .team-member-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .service-box, .article-card, .team-member {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .footer-menu, .social-links {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .section {
    padding: 28px 5px;
    margin-bottom: 38px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 17px 10px;
  }
  .mobile-nav {
    margin-left: 12px;
    margin-top: 26px;
    gap: 20px;
  }
  .cookie-modal {
    padding: 20px 8px 18px 8px;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.23rem;
  }
  h3, .footer-menu a {
    font-size: 1rem;
  }
  .cookie-consent-banner {
    font-size: 0.95rem;
    padding: 16px 4px 16px 4px;
  }
  .cookie-btn {
    font-size: 0.95rem;
    padding: 7px 13px;
  }
}

/*****************************
    MISC STYLES
******************************/
::-webkit-input-placeholder { color: #bfc5c7; }
:-moz-placeholder { color: #bfc5c7; }
::-moz-placeholder { color: #bfc5c7; }
:-ms-input-placeholder { color: #bfc5c7; }
::placeholder { color: #bfc5c7; }

hr {
  border: 0;
  border-top: 1px solid #e2e7ea;
  margin: 30px 0;
}

/**
 * Spacing helpers for future extensibility
 */
.spacer-16 { height: 16px; width: 100%; }
.spacer-32 { height: 32px; width: 100%; }
.spacer-60 { height: 60px; width: 100%; }

/*****************************
    FOCUS AND ACCESSIBILITY
******************************/
a:focus, .cta-primary:focus, .cta-secondary:focus, button:focus, select:focus, input:focus {
  outline: 2px solid #74A79C;
  outline-offset: 3px;
}

/*****************************
    VISUAL ENHANCEMENTS
******************************/
.card {
  margin-bottom: 20px;
  position: relative;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.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;
}

/*****************************
    SCROLLBAR & SMOOTHING
******************************/
::-webkit-scrollbar {
  width: 9px;
  background: #f1f5f7;
}
::-webkit-scrollbar-thumb {
  background: #c6d4da;
  border-radius: 6px;
}

/*****************************
    PRINT STYLES
******************************/
@media print {
  header, nav, .main-nav, .mobile-menu, .mobile-menu-toggle, .footer-menu, .social-links, .cookie-consent-banner, .cookie-modal, .cookie-modal-overlay {
    display: none !important;
  }
  .container, .section { padding: 0 !important; margin: 0 !important; }
}
