/* ======== CSS RESET & NORMALIZE ======== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; font: inherit; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', Arial, sans-serif; background: #F9FAFB; color: #223A60; line-height: 1.6; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; }
img, svg { max-width: 100%; display: inline-block; vertical-align: middle; }
ul, ol { padding-left: 20px; margin-bottom: 0; }
a { color: #223A60; text-decoration: none; transition: color 0.2s; word-break: break-word; }
a:focus, button:focus { outline: 2px solid #00A86B; outline-offset: 2px; }
button { cursor: pointer; background: transparent; }

/* ======== TYPOGRAPHY ======== */
h1, .h1 { font-family: 'Montserrat', Arial, sans-serif; font-size: 2.5rem; font-weight: 700; line-height: 1.15; color: #223A60; letter-spacing: -0.03em; margin-bottom: 24px; }
h2, .h2 { font-family: 'Montserrat', Arial, sans-serif; font-size: 2rem; font-weight: 600; margin-bottom: 20px; color: #223A60; letter-spacing: -0.01em; }
h3, .h3 { font-family: 'Montserrat', Arial, sans-serif; font-size: 1.25rem; font-weight: 500; margin-bottom: 12px; color: #223A60; }
h4 { font-size: 1.125rem; font-weight: 500; margin-bottom: 10px; color: #223A60; }
.subheadline { font-size: 1.125rem; color: #223A60; margin-bottom: 32px; }
p { font-size: 1rem; margin-bottom: 16px; color: #223A60; }
b, strong { font-weight: 700; }
small { font-size: 0.875rem; color: #667083; }

/* ======== BUTTONS ======== */
.btn-primary, .btn-secondary { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: 1rem; border-radius: 6px; padding: 12px 32px; display: inline-block; border: none; cursor: pointer; transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s; text-align: center; margin-right: 8px; margin-bottom: 8px; /* for flex gap fallback */ }
.btn-primary {
  background: #223A60;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(34, 58, 96, 0.05);
  border: 2px solid #223A60;
}
.btn-primary:hover, .btn-primary:focus {
  background: #00A86B;
  border-color: #00A86B;
}
.btn-secondary {
  background: #00A86B;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(0, 168, 107, 0.05);
  border: 2px solid #00A86B;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #223A60;
  color: #fff;
  border-color: #223A60;
}
.btn-primary:active, .btn-secondary:active{ filter: brightness(0.93); }

/* ======== LAYOUT UTILITIES ======== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 32px -8px rgba(34, 58, 96, 0.03);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px -5px rgba(34, 58, 96, 0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  transition: box-shadow 0.24s;
}
.card:hover {
  box-shadow: 0 6px 24px -5px rgba(0, 168, 107, 0.12);
}
.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: 20px;
  background: #fff;
  padding: 20px 28px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px -8px rgba(34,58,96,0.06);
  color: #223A60;
  min-width: 240px;
  max-width: 400px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px -6px rgba(0,168,107,0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Home/Feature grid - / */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.features-grid > div {
  background: #F9FAFB;
  border-radius: 14px;
  box-shadow: 0 2px 10px -8px rgba(34, 58, 96, 0.04);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 355px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 24px -4px rgba(0, 168, 107, 0.10);
}
.features-grid img { width: 40px; height: 40px; margin-bottom: 2px; }

/* / testimonials slider (static list) */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Service cards - services.html */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px -6px rgba(34,58,96,0.06);
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 310px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.service-list > div:hover {
  box-shadow: 0 8px 32px -6px rgba(0,168,107,0.10);
}
.service-list img { width: 40px; height: 40px; }
.service-list span { margin-top: 10px; color: #00A86B; font-weight: 600; font-size: 1rem; }

/* Team bios - about.html */
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-bios > div {
  background: #F9FAFB;
  border-radius: 13px;
  padding: 22px 18px;
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 270px;
  margin-bottom: 20px;
  box-shadow: 0 1px 7px -6px rgba(34,58,96,0.04);
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid #E5E7EB;
  padding: 40px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo {
  margin-right: 32px;
  flex: 0 0 90px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 135px;
  font-size: 1rem;
}
.footer-contact {
  font-size: 1rem;
  color: #223A60;
  flex: 1 1 260px;
  line-height: 1.45;
  margin-right: 24px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-newsletter {
  flex: 1 1 250px;
  margin-bottom: 12px;
}
.footer-newsletter h3 { font-size: 1.125rem; margin-bottom: 6px; }
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a img {
  width: 26px;
  height: 26px;
  opacity: 0.7;
  transition: opacity 0.2s, filter 0.2s;
}
.footer-social a:hover img { opacity: 1; filter: brightness(1.4); }

/* ======= HEADER & NAV ======= */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 2px 16px -12px rgba(34,58,96,.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  color: #223A60;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.15s;
  padding: 8px 0;
  border-radius: 3px;
}
header nav a:hover, header nav a:focus {
  color: #00A86B;
  background: #F0FDF5;
}
header nav .btn-primary {
  margin-left: 18px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #223A60;
  margin-left: 12px;
  border-radius: 4px;
  transition: background 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { background: #F0FDF5; }

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(34,58,96,0.80);
  z-index: 2000;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transition: opacity 0.25s, visibility 0.25s;
  opacity: 0;
  visibility: hidden;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 24px 24px 0 0;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #00A86B;
}
.mobile-nav {
  background: #fff;
  width: 92vw;
  max-width: 370px;
  min-height: 100vh;
  padding: 60px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: -2px 0 18px -7px rgba(34, 58, 96, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.7,0.2,0.3,1);
}
.mobile-menu.open .mobile-nav {
  transform: translateX(0);
}
.mobile-nav a {
  color: #223A60;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #E5E7EB;
  transition: color 0.2s, background 0.18s;
  border-radius: 3px;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #00A86B;
  background: #F0FDF5;
}

/* ======= COOKIE BANNER ======= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -1px 20px -3px rgba(34,58,96,0.10);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 8vw;
  gap: 26px;
  font-size: 1rem;
  animation: cookieSlideUp 0.5s cubic-bezier(0.7,0.2,0.3,1);
}
@keyframes cookieSlideUp { from { transform: translateY(140px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-banner button {
  margin-left: 10px;
}
.cookie-banner .cookie-btn-accept { background: #00A86B; color: #fff; border-radius: 6px; border: 2px solid #00A86B; padding: 9px 22px; font-weight: 600; font-family: 'Montserrat', Arial, sans-serif; transition: background 0.17s, border 0.17s; }
.cookie-banner .cookie-btn-accept:hover, .cookie-banner .cookie-btn-accept:focus { background: #223A60; border-color: #223A60;}
.cookie-banner .cookie-btn-reject { background: #fff; color: #223A60; border-radius: 6px; border: 2px solid #223A60; padding: 9px 22px; font-weight: 600; font-family: 'Montserrat', Arial, sans-serif; transition: background 0.17s, border 0.17s; }
.cookie-banner .cookie-btn-reject:hover, .cookie-banner .cookie-btn-reject:focus { background: #F0FDF5; border-color: #00A86B; color: #00A86B;}
.cookie-banner .cookie-btn-settings { background: #fff; color: #00A86B; border-radius: 6px; border: 2px solid #00A86B; padding: 9px 22px; font-weight: 600; font-family: 'Montserrat', Arial, sans-serif; margin-left: 10px; transition: background 0.17s, border 0.17s; }
.cookie-banner .cookie-btn-settings:hover, .cookie-banner .cookie-btn-settings:focus { background: #223A60; border-color: #223A60; color: #fff;}

/* ===== COOKIE MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34, 58, 96, 0.65);
  z-index: 3100;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: appear 0.26s cubic-bezier(0.7,0.2,0.3,1);
}
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 38px -10px rgba(34,58,96,0.19);
  padding: 36px 28px;
  max-width: 410px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalUp 0.26s cubic-bezier(0.7,0.2,0.3,1);
}
@keyframes modalUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-modal h2 { font-size: 1.35rem; margin-bottom: 10px; }
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 12px 0 2px 0;
}
.cookie-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: #223A60;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-btn-accept, .cookie-modal .cookie-btn-reject, .cookie-modal .cookie-btn-save {
  padding: 8px 17px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
.cookie-modal .cookie-btn-save {
  background: #00A86B; color: #fff; border: 2px solid #00A86B;
}
.cookie-modal .cookie-btn-save:hover, .cookie-modal .cookie-btn-save:focus { background: #223A60; border-color: #223A60; }
.cookie-modal .cookie-btn-reject {
  background: #fff;
  color: #223A60;
  border: 2px solid #223A60;
}
.cookie-modal .cookie-btn-reject:hover, .cookie-modal .cookie-btn-reject:focus {
  background: #F0FDF5;
  border-color: #00A86B;
  color: #00A86B;
}

/* ======== TRANSITIONS & MICROINTERACTIONS ======== */
a, .btn-primary, .btn-secondary, button, .testimonial-card, .card {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
}

/* ======== GENERAL LISTS / UL/LI FORMATTING ======== */
ul, ol {
  margin-bottom: 16px;
  color: #223A60;
}
ul li, ol li {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ======== TABLES & FORMS ======== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.97rem;
}
th, td {
  padding: 8px 14px;
  border-bottom: 1px solid #E5E7EB;
  text-align: left;
}
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #D1D5DB;
  font-size: 1rem;
  width: 100%;
  background: #F9FAFB;
  margin-bottom: 16px;
  transition: border 0.16s;
  color: #223A60;
}
input:focus, select:focus, textarea:focus { border: 1.5px solid #00A86B; outline: none; }
label { color: #223A60; font-size: 1rem; margin-bottom: 6px; font-weight: 500; display: block; }

/* ======== MISC/ACCESSIBILITY ======== */
hr { border: none; border-top: 1px solid #E5E7EB; margin: 30px 0; }

/* ======== RESPONSIVE BREAKPOINTS ======== */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
  footer .container {
    gap: 24px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 740px;
  }
  .features-grid, .team-bios, .service-list, .testimonials-slider, .content-grid {
    gap: 13px;
  }
}
@media (max-width: 840px) {
  .section { padding: 32px 7px; }
  footer .container { flex-wrap: wrap; gap: 18px; }
  .footer-logo, .footer-newsletter, .footer-contact, .footer-social { flex: 1 1 100%; margin-right: 0; margin-bottom: 18px; }
  footer nav { flex: 1 1 170px; }
}
@media (max-width: 768px) {
  .container { max-width: 98vw; padding-left: 4vw; padding-right: 4vw; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.45rem; }
  .features-grid, .testimonials-slider, .service-list, .content-grid, .team-bios {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .features-grid > div, .team-bios > div, .service-list > div {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 20px 12px;
  }
  .testimonial-card, .card { padding: 18px 10px; }
  .footer-newsletter { padding-right: 0; }
}
@media (max-width: 700px) {
  header .container { flex-wrap: wrap; gap: 8px; min-height: 0;  }
  header nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  .footer-social { justify-content: flex-start; gap: 8px; margin-top: 6px; }
}
@media (max-width: 600px) {
  .section { padding: 24px 2vw; margin-bottom: 32px; border-radius: 12px; }
  h1, .h1 { font-size: 1.32rem; }
  h2, .h2 { font-size: 1.11rem; }
  .footer-logo img { width: 60px; }
  .footer-newsletter h3 { font-size: 1rem; }
  .cookie-banner { flex-direction: column; gap: 16px; padding: 18px 4vw; font-size: .97rem; }
  .cookie-modal { padding: 19px 9px; }
}

/* ======== SPECIFIC SECTION ADJUSTMENTS ======== */
/* Blog category nav */
main nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 10px;
}
main nav a {
  color: #00A86B;
  background: #F9FAFB;
  border-radius: 5px;
  padding: 6px 12px;
  font-weight: 500;
  font-size: 0.97rem;
  transition: background 0.16s, color 0.16s;
}
main nav a:hover, main nav a:focus { background: #223A60; color: #fff; }
main nav span { font-weight: 600; color: #223A60; }

/* ===== scrollable testimonials (mobile improvement) ===== */
@media (max-width: 600px) {
  .testimonials-slider { flex-direction: row; overflow-x: auto; gap: 12px; padding-bottom: 10px; }
  .testimonial-card { min-width: 240px; max-width: 300px; margin-right: 4px; }
}

/* ===== Accessibility ===== */
.btn-primary:focus, .btn-secondary:focus, .cookie-btn-accept:focus, .cookie-btn-reject:focus, .cookie-btn-settings:focus {
  outline: 2px solid #223A60;
  outline-offset: 2px;
}

/* ===== Print / No Weird Overlap on Print ===== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section { box-shadow: none; background: #fff; }
}
