/* =========================================================================
 CSS RESET & NORMALIZE
============================================================================= */
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, 
main, 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-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F3F6F9;
  color: #19446B;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #12736A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #20A795;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}
hr {
  border: none;
  border-top: 1px solid #E2E7EE;
  margin: 40px 0;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #CCD6E0;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #fff;
  color: #19446B;
  width: 100%;
  box-shadow: none;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #12736A;
  background: #F3F6F9;
}

/* =========================================================================
 TYPOGRAPHY
============================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: #19446B;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.015em;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, li, address {
  font-size: 1rem;
  color: #18304C;
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
}
strong, b {
  font-weight: 700;
  color: #19446B;
}
.subheadline {
  font-size: 1.2rem;
  color: #12736A;
  margin-bottom: 20px;
  font-weight: 600;
}

/* =========================================================================
 CONTAINER & SECTION LAYOUT
============================================================================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
section, .section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 18px 0 rgba(25,68,107,0.07);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* =========================================================================
 HEADER + MAIN NAVIGATION
============================================================================= */
header {
  width: 100%;
  background: #19446B;
  padding: 0;
  box-shadow: 0 2px 8px 0 rgba(25,68,107,0.09);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  gap: 24px;
}
header a > img {
  height: 38px;
}
.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 4px 0;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #20A795;
}
.btn-primary {
  background: #20A795;
  color: #fff;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px 0 rgba(32,167,149,0.12);
  transition: background 0.24s, box-shadow 0.18s, transform 0.14s;
  border: none;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #12736A;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(32,167,149,0.15);
  transform: translateY(-1px) scale(1.03);
}
.btn-secondary {
  background: #fff;
  color: #12736A;
  border: 2px solid #12736A;
  font-weight: 700;
  padding: 11px 30px;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 12px;
  transition: background 0.2s, color 0.2s, box-shadow 0.16s;
  box-shadow: 0 1px 5px 0 rgba(25,68,107,0.02);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #12736A;
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(18,115,106,0.13);
}

/* =========================================================================
 MOBILE NAVIGATION
============================================================================= */
.mobile-menu-toggle {
  display: none;
  background: #20A795;
  color: #fff;
  font-size: 2rem;
  border-radius: 6px;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  align-self: center;
  margin-left: 12px;
  transition: background 0.2s, color 0.2s;
  z-index: 1501;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #12736A;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 95vw;
  max-width: 350px;
  background: #19446B;
  box-shadow: -2px 0 32px 0 rgba(25,68,107,0.18);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  z-index: 2000;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 16px 16px 6px auto;
  font-size: 2rem;
  color: #fff;
  background: #20A795;
  border-radius: 6px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #12736A; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 16px;
  padding: 0 30px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  transition: color 0.17s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #20A795;
  background: rgba(18,115,106,0.13);
}
@media (max-width:1023px) {
  .main-nav {
    display:none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width:1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* Mobile menu overlay bg (optional for darkening rest of viewport when open) */
.mobile-menu.open:before {
  content:'';
  display:none;
}

/* =========================================================================
 HERO SECTION
============================================================================= */
.hero {
  background: linear-gradient(105deg, #19446B 60%, #20A795 100%);
  color: #fff;
  margin-bottom: 60px;
  padding: 60px 0;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 3px 24px 0 rgba(32,167,149,0.06);
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 750px;
  gap: 20px;
}
.hero h1, .hero p, .hero .btn-primary {
  color: #fff;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 16px;
}
.hero .subheadline {
  color: #F3F6F9;
  font-weight: 400;
  margin-bottom: 24px;
}

/* =========================================================================
 FLEX PATTERN UTILITY COMPONENTS
============================================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(25,68,107,0.08);
  padding: 28px 24px 24px 24px;
  position: relative;
  margin-bottom: 20px;
  flex: 1 1 280px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 30px rgba(32,167,149,0.15);
  transform: translateY(-2px) scale(1.02);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #F3F6F9;
  color: #18304C;
  border-radius: 12px;
  padding: 20px 32px;
  margin-bottom: 20px;
  box-shadow: 0 1px 9px 0 rgba(25,68,107,0.05);
  font-size: 1.1rem;
  min-width: 230px;
}
.testimonial-card p {
  color: #19446B;
  font-size: 1.15rem;
  line-height: 1.5;
}
.testimonial-card span {
  color: #12736A;
  font-size: 1rem;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.success-story-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.success-story-cards > div {
  background: #F3F6F9;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(25,68,107,0.06);
  padding: 20px 26px;
  flex: 1 1 250px;
}
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.metrics > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(25,68,107,0.04);
  padding: 22px 20px;
  font-size: 1.2rem;
  color: #19446B;
  flex: 1 1 210px;
  font-weight: 600;
}

/* =========================================================================
 SERVICE/LIST/PACKAGE DISPLAYS
============================================================================= */
.feature-grid,
.service-list,
.service-tabs,
.feature-rows,
.pricing-table,
.team-list,
.faq-list,
.blog-list,
.featured-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.feature-grid > div,
.service-list > div,
.service-tabs > div,
.feature-rows > div,
.pricing-table > div,
.team-list > .team-member-card,
.faq-list > div,
.blog-list > .blog-teaser,
.featured-posts > .blog-teaser {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 7px rgba(25,68,107,0.05);
  padding: 22px 20px;
  flex: 1 1 220px;
  min-width: 210px;
  transition: box-shadow 0.16s, transform 0.13s;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-grid > div img,
.feature-rows > div img {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}
.feature-grid > div h3,
.service-list > div h3,
.team-member-card h3,
.pricing-table > div h2 {
  font-size: 1.16rem;
  color: #12736A;
}
.feature-rows > div strong {
  color: #19446B;
  font-size: 1.04rem;
}
.pricing-table > div p {
  color: #12736A;
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 1.08rem;
}
.pricing-table > div ul {
  margin-left: 1em;
}
.team-list {
  gap: 24px;
}
.team-member-card {
  box-shadow: 0 1px 7px rgba(32,167,149,0.08);
}
.blog-list > .blog-teaser,
.featured-posts > .blog-teaser {
  background: #F3F6F9;
  border-left: 4px solid #12736A;
  box-shadow: 0 1px 6px rgba(25,68,107,0.03);
  font-size: 1.04rem;
  color: #19446B;
  transition: border-color 0.2s;
}
.blog-list > .blog-teaser:hover,
.featured-posts > .blog-teaser:hover {
  border-left: 4px solid #20A795;
  background: #fff;
  box-shadow: 0 2px 12px rgba(32,167,149,0.07);
}

/* ========================================================================
 CTA/NEWSLETTER/CONTACT COMPONENTS
========================================================================= */
.contact-details {
  background: #F3F6F9;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
  color: #18304C;
}
.contact-details strong {
  color: #18304C;
}
.map-placeholder {
  background: #EAEEF3;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 18px;
  color: #12736A;
}
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.categories-filter span {
  font-weight: bold;
  color: #19446B;
}
.categories-filter a {
  background: #fff;
  color: #12736A;
  border-radius: 6px;
  border: 1px solid #C0D3E1;
  padding: 4px 14px;
  font-weight: 500;
  font-size: 0.98rem;
  transition: background 0.14s, color 0.16s;
}
.categories-filter a:hover,
.categories-filter a:focus {
  background: #12736A;
  color: #fff;
}

/* FAQ */
.faq-list > div {
  background: #F3F6F9;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(25,68,107,0.07);
}

/* =========================================================================
 FOOTER
============================================================================= */
footer {
  background: #19446B;
  color: #fff;
  padding: 0;
  margin-top: 40px;
}
footer .container {
  padding: 32px 20px 14px 20px;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer img {
  height: 32px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #20A795;
}
footer p {
  color: #F3F6F9;
  opacity: 0.95;
  font-size: 0.98rem;
}

/* =========================================================================
 COOKIE BANNER
============================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #18304C;
  color: #fff;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-shadow: 0 -3px 12px rgba(25,68,107,0.08);
  font-size: 1rem;
  gap: 18px;
  flex-wrap: wrap;
  transition: transform 0.25s cubic-bezier(.83,0,.17,1), opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  background: #20A795;
  color: #fff;
  border-radius: 6px;
  border: none;
  margin: 0 8px;
  padding: 8px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  transition: background 0.18s;
  box-shadow: 0 1px 6px rgba(32,167,149,0.11);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #12736A;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #E2E7EE;
  color: #19446B;
  border: 1px solid #C0D3E1;
  transition: background 0.1s, color 0.13s;
}
.cookie-banner .cookie-btn.cookie-settings:hover, .cookie-banner .cookie-btn.cookie-settings:focus {
  background: #fff;
  color: #12736A;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  color: #19446B;
  z-index: 3100;
  border-radius: 18px;
  min-width: 340px;
  max-width: 95vw;
  box-shadow: 0 8px 40px rgba(25,68,107,0.16);
  padding: 40px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 1;
  transition: opacity 0.22s, transform 0.21s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0.88);
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #19446B;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-size: 1.05rem;
  color: #12736A;
}
.cookie-modal .toggle-switch {
  display: inline-flex;
  align-items: center;
  width: 42px;
  height: 24px;
  background: #E2E7EE;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.12s;
  margin-right: 8px;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  position: absolute;
  width: 0; height: 0;
}
.cookie-modal .toggle-slider {
  background: #12736A;
  border-radius: 50%;
  width: 22px; height: 22px;
  position: absolute;
  top: 1px; left: 1px;
  transition: left 0.17s, background 0.12s;
}
.cookie-modal .toggle-switch input:checked ~ .toggle-slider {
  left: 19px;
  background: #20A795;
}
.cookie-modal .modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 1.5rem;
  color: #19446B;
  background: none;
  border: none;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #12736A;
}

/* =========================================================================
 MICROUX / ANIMATIONS / STATES
============================================================================= */
.btn-primary, .btn-secondary {
  transition: background 0.24s, color 0.16s, transform 0.14s, box-shadow 0.16s;
}
.card, .service-list > div, .feature-grid > div, .testimonial-card, .success-story-cards > div {
  transition: box-shadow 0.14s, transform 0.11s;
}
.card:hover, .service-list > div:hover, .feature-grid > div:hover, .team-member-card:hover, .success-story-cards > div:hover {
  box-shadow: 0 6px 24px rgba(18,115,106,0.13);
  transform: translateY(-2px) scale(1.02);
}

/* Focus States for accessibility */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #19446B;
  outline-offset: 2px;
}

/* =========================================================================
 RESPONSIVE BREAKPOINTS
============================================================================= */
@media (max-width: 1023px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .service-tabs, .feature-rows, .pricing-table, .team-list, .faq-list, .blog-list, .featured-posts, .card-container, .metrics, .success-story-cards {
    gap: 18px;
  }
  .feature-grid > div, .service-list > div, .service-tabs > div, .feature-rows > div, .pricing-table > div, .team-list > .team-member-card, .faq-list > div, .blog-list > .blog-teaser, .featured-posts > .blog-teaser, .success-story-cards > div, .metrics > div {
    min-width: 170px;
  }
}
@media (max-width: 768px) {

  .container, .content-wrapper {
    padding-left: 0;
    padding-right: 0;
    max-width: 100vw;
  }
  header .container {
    padding: 14px 10px;
    gap: 10px;
  }
  section, .section {
    padding: 26px 8px;
    margin-bottom: 40px;
  }
  .hero {
    padding: 32px 0 38px 0;
    border-radius: 0 0 26px 26px;
    margin-bottom: 36px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .main-nav, .footer-nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .feature-grid, .service-list, .service-tabs, .feature-rows, .pricing-table, .team-list, .faq-list, .success-story-cards, .blog-list, .featured-posts, .card-container, .metrics {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div, .service-list > div, .service-tabs > div, .feature-rows > div, .pricing-table > div, .team-list > .team-member-card, .faq-list > div, .blog-list > .blog-teaser, .featured-posts > .blog-teaser, .success-story-cards > div, .metrics > div {
    min-width: 0;
    padding: 16px 8px;
    font-size: 1rem;
  }
  .testimonial-card {
    padding: 14px 9px;
    gap: 10px;
    min-width: 0;
    font-size: 1rem;
    box-shadow: 0 2px 7px rgba(25,68,107,0.07);
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .success-story-cards {
    gap: 12px;
    margin-top: 15px;
  }
  .metrics {
    gap: 10px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 24px 10px 10px 10px;
    font-size: 1rem;
  }
}

/* Additional fine-tuning for very small screens */
@media (max-width: 430px) {
  .footer-nav {
    gap: 8px;
  }
  .cookie-modal {
    min-width: 98vw;
    padding: 12px 2px 10px 2px;
  }
}

/* =========================================================================
 END CSS
============================================================================= */
