/* CSS RESET & BASE NORMALIZATION */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ol, ul, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
}
:root {
  --primary: #174458;
  --secondary: #5CB85C;
  --accent: #F5F5F5;
  --text-main: #222;
  --text-soft: #555;
  --border: #e0e5e8;
  --shadow: 0 2px 16px rgba(23, 68, 88, 0.06), 0 1.5px 4px rgba(23,68,88,0.04);
  --radius: 12px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: #fff;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* LAYOUT CONTAINER */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER NAVIGATION */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1.5px 6px rgba(23,68,88,0.04);
  position: sticky;
  top: 0;
  z-index: 200;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
}
header img {
  height: 38px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  margin-left: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transition: width 0.2s;
  margin-top: 2px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}

.cta.primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(23,68,88,0.06);
  margin-left: 20px;
  transition: background 0.17s, box-shadow 0.17s;
  border: none;
  outline: none;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(23,68,88,0.11);
}

/* BURGER MENU (MOBILE) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 502;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--secondary);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background: #fff;
  box-shadow: 0 1.5px 16px rgba(23,68,88,0.08);
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.66, 0, 0.16, 1);
  z-index: 500;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px 24px;
  gap: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 501;
  margin-bottom: 16px;
  padding: 2px 4px;
  border-radius: 6px;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--accent);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.16s;
  padding: 8px 8px 8px 0;
  border-radius: 6px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  background: var(--accent);
}

/* Hide burger on desktop, hide .main-nav & .cta.primary on mobile */
@media (max-width: 992px) {
  .main-nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav,
  .cta.primary {
    display: inline-flex;
  }
}

/* HERO STYLE */
.hero {
  background: var(--accent);
  margin-bottom: 60px;
  padding: 40px 0 36px 0;
}
.hero .container {
  align-items: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.16;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 0;
  max-width: 480px;
}
.hero .cta.primary {
  margin-top: 16px;
  margin-left: 0;
}

/* --- STRUCTURE & SECTION SPACING --- */
main {
  width: 100%;
  background: #fff;
  min-height: 60vh;
  flex: 1 1 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}
h2 {
  font-size: 1.48rem;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

p, li, ul, ol {
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 10px;
}
strong {
  color: var(--primary);
  font-weight: 700;
}

ol, ul {
  margin-left: 0;
  margin-bottom: 0;
  padding-left: 0;
}

ol li, ul li {
  margin-bottom: 12px;
  position: relative;
}

/* FEATURES & SERVICE CARDS */
.features-grid, .service-list, .team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.features-grid > div,
.service-list > div,
.team-profiles > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 220px;
  min-width: 240px;
  padding: 26px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.20s, border-color 0.16s, transform 0.21s;
}
.features-grid > div:hover,
.service-list > div:hover,
.team-profiles > div:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 24px rgba(23,68,88,0.12);
  transform: translateY(-2px) scale(1.012);
}
.features-grid img,
.service-list img,
.team-profiles img {
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
  filter: grayscale(0.23);
}
.features-grid h3,
.service-list h3,
.team-profiles h3 {
  font-size: 1.06rem;
  margin-bottom: 4px;
  color: var(--primary);
}

/* PROCESS STEPS */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.process-steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 210px;
  min-width: 220px;
  padding: 22px 16px 18px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-main);
}
.process-steps img {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}

/* Testimonial Cards */
.testimonials-preview .testimonial-cards,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 10px;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: border-color 0.15s, box-shadow 0.17s;
}
.testimonial-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(92, 184, 92, 0.07);
}
.testimonial-card p {
  color: var(--text-main);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.testimonial-card strong {
  font-size: 1.01rem;
  color: var(--primary);
  font-family: var(--font-display);
  margin-bottom: 2px;
}
.testimonial-card .rating {
  font-size: 1.07rem;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-top: 2px;
  font-family: var(--font-display);
}

/* CTA BANNER */
.cta-banner, .testimonial-cta, .contact-cta {
  margin-bottom: 0;
  padding: 46px 20px 46px 20px;
  background: var(--accent);
}
.cta-banner .content-wrapper, .testimonial-cta .content-wrapper, .contact-cta .content-wrapper {
  align-items: center;
  text-align: center;
}
.cta-banner h2, .testimonial-cta h2, .contact-cta h2 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.32rem;
}
.cta-banner p, .testimonial-cta p, .contact-cta p {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.cta-banner .cta.primary, .testimonial-cta .cta.primary, .contact-cta .cta.primary {
  margin-top: 18px;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 16px 20px;
  margin-bottom: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq-item:hover, .faq-item:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(92,184,92,0.07);
}
.faq-item h2 {
  font-size: 1.13rem;
  color: var(--primary);
  margin-bottom: 7px;
}
.faq-item p {
  font-size: 0.99rem;
  color: var(--text-soft);
}

/* Text Sections & Lists */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.text-section ul {
  margin-top: 3px;
}
.text-section li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.text-section img {
  width: 20px;
  height: 20px;
}
.map-location p {
  font-size: 1.01rem;
  color: var(--text-main);
  margin-top: 8px;
  font-family: var(--font-body);
}

/* Content Grid, Card Containers */
.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px 18px;
  transition: box-shadow 0.18s, border-color 0.16s;
  border: 1px solid var(--border);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FOOTER */
footer {
  width: 100%;
  background: #fff;
  color: var(--text-main);
  font-size: 0.96rem;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.footer-top img {
  height: 38px;
  margin-right: 12px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
}
.footer-menu a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.98rem;
  padding: 3px 0;
  transition: color 0.16s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.contact-snippet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 16px;
  font-size: 0.98rem;
  color: var(--text-soft);
  margin-top: 4px;
}
.contact-snippet img {
  width: 20px;
  height: 20px;
  filter: grayscale(0.23);
}
.contact-snippet a {
  color: var(--primary);
  font-weight: 500;
  transition: color 0.13s;
}
.contact-snippet a:hover, .contact-snippet a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-bottom {
  padding: 14px 0 9px 0;
  text-align: left;
  color: var(--text-soft);
  font-size: 0.93rem;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1200;
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 -2px 16px rgba(23,68,88,0.11);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 16px 16px 16px;
  gap: 14px;
  transition: transform 0.32s cubic-bezier(0.66, 0, 0.16, 1);
  font-size: 1rem;
  width: 100vw;
  max-width: 100vw;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner p {
  color: var(--text-main);
  max-width: 660px;
  text-align: center;
  font-size: 0.98rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
}
.cookie-banner button,
.cookie-banner .cookie-accept,
.cookie-banner .cookie-reject,
.cookie-banner .cookie-settings {
  font-family: var(--font-display);
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  cursor: pointer;
  margin-right: 2px;
  outline: none;
}
.cookie-banner .cookie-reject {
  background: #f2f2f2;
  color: var(--text-main);
  border: 1px solid var(--border);
}
.cookie-banner .cookie-settings {
  background: var(--secondary);
  color: #fff;
  border: none;
}
.cookie-banner button:hover,
.cookie-banner button:focus,
.cookie-banner .cookie-accept:hover,
.cookie-banner .cookie-reject:hover,
.cookie-banner .cookie-settings:hover {
  box-shadow: 0 2px 10px rgba(23,68,88,0.12);
}

/* Cookie Preference Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(23,68,88,0.21);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
}
.cookie-modal {
  background: #fff;
  box-shadow: 0 8px 40px rgba(23,68,88,0.15);
  border-radius: var(--radius);
  width: 98%;
  max-width: 370px;
  padding: 40px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  animation: modal-fade-in 0.36s cubic-bezier(0.66, 0, 0.16, 1);
}
@keyframes modal-fade-in {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.19rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-modal .cookie-pref-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal label {
  font-size: 0.99rem;
  font-family: var(--font-body);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
  margin-right: 2px;
}
.cookie-modal .cookie-required {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.5rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 5px;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--accent);
  color: var(--secondary);
}
.cookie-modal .cookie-modal-btns {
  margin-top: 6px;
  display: flex;
  gap: 12px;
}
.cookie-modal .cookie-modal-btns button {
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
}
.cookie-modal .cookie-modal-btns button:last-child {
  background: #f2f2f2;
  color: var(--text-main);
  border: 1px solid var(--border);
}
.cookie-modal .cookie-modal-btns button:hover,
.cookie-modal .cookie-modal-btns button:focus {
  box-shadow: 0 2px 12px rgba(23,68,88,0.12);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 7px;
  }
  header .container {
    flex-direction: row;
    gap: 7px;
    padding: 10px 0;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  section {
    margin-bottom: 42px;
    padding: 24px 7px;
  }
  .card-container, .features-grid, .service-list,
  .team-profiles, .testimonial-cards, .testimonial-list, .process-steps {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .card, .testimonial-card, .faq-item, .features-grid > div,
  .service-list > div, .team-profiles > div, .process-steps li {
    min-width: 0;
    width: 100%;
  }
  .cta-banner, .testimonial-cta, .contact-cta {
    padding: 34px 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  h1 {
    font-size: 1.31rem;
  }
  h2 {
    font-size: 1.08rem;
  }
}

/* GENERAL UTILITIES */
.rounded {
  border-radius: var(--radius);
}
.shadow {
  box-shadow: var(--shadow);
}
.gap-20 {
  gap: 20px;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 8px; }

/* MICRO-INTERACTIONS & TRANSITIONS */
button,
a,
.cta.primary,
input[type='checkbox'],
.cookie-banner button,
.cookie-modal button {
  transition: background 0.15s, color 0.14s, border-color 0.13s, box-shadow 0.17s;
}

/* Selection & Accessibility */
::selection {
  background: var(--secondary);
  color: #fff;
}

/* Hide visually but remain accessible */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* Hide elements by default, for JS-enabled overlays etc. */
.hide {
  display: none !important;
}
