/* =======================================================
   RESET & NORMALIZE (Modern CSS Reset)
======================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  transition: color .2s;
}
img, picture {
  max-width: 100%;
  display: block;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}
:focus:not(:focus-visible) {
  outline: none;
}
html, body {
  height: 100%;
}

/* =======================================================
   BRAND VARIABLES (with fallback for CSS custom properties)
======================================================== */
:root {
  --color-primary: #23395D;
  --color-secondary: #6DAC4B;
  --color-accent: #F5F7FA;
  --color-white: #fff;
  --color-black: #222;
  --color-grey: #e6e6e6;
  --color-muted: #f2f2ef;
  --color-shadow: rgba(35, 57, 93, 0.06);
  --border-radius: 10px;
  --font-display: 'Montserrat', serif;
  --font-body: 'Open Sans', Georgia, serif;
}

/* =======================================================
   BODY & TYPOGRAPHY (Elegant Classic)
======================================================== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  background: var(--color-accent);
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.18;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
p, ul, ol, li, .subheadline, .tagline {
  font-size: 1rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
strong {
  font-weight: bold;
}
.subheadline, .tagline {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

/* Typography scale: 14px, 16px, 18px, 24px, 32px, 48px */
.small {
  font-size: 0.875rem;
}

/* =======================================================
   LAYOUT CONTAINERS
======================================================== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* For larger breakpoints, adjust max-width */
@media (min-width: 1200px) {
  .container {
    max-width: 1320px;
  }
}

/* =======================================================
   HEADER & NAVIGATION
======================================================== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 10px var(--color-shadow);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 25px;
}
.logo {
  display: flex;
  align-items: center;
  height: 54px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.main-nav a {
  color: var(--color-primary);
  padding: 6px 8px;
  border-radius: var(--border-radius);
  transition: background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.main-nav .button-primary {
  margin-left: 8px;
}

/* Burger Menu Button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 8px 16px;
  font-size: 1.5rem;
  color: var(--color-primary);
  box-shadow: 0 2px 6px var(--color-shadow);
  border: 1px solid var(--color-muted);
  transition: background 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
}
/* Hide on desktop */
@media (min-width: 1000px) {
  .mobile-menu-toggle {
    display: none;
  }
}
/* Hide main-nav on mobile */
@media (max-width: 999px) {
  .main-nav {
    display: none;
  }
}

/* =======================================================
   MOBILE NAVIGATION (SLIDE MENU)
======================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -2px 0 12px var(--color-shadow);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.59,.21,.22,.94);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: var(--color-accent);
  border-radius: 50%;
  color: var(--color-primary);
  margin: 18px 24px 0 0;
  padding: 3px 12px 1.5px 12px;
  border: 1px solid var(--color-grey);
  transition: background 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-grey);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px auto;
  width: 90%;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--color-primary);
  border-radius: var(--border-radius);
  padding: 10px 16px;
  width: 100%;
  background: none;
  transition: background 0.15s, color 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* ================================
   HERO / SECTION LAYOUTS
================================== */
.hero-section {
  background: var(--color-accent);
  padding: 52px 0 32px 0;
  border-bottom: 1.5px solid var(--color-grey);
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
@media (min-width: 600px) {
  .hero-section .content-wrapper {
    align-items: center;
    text-align: center;
  }
}

.section {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}

/* =======================================================
   FEATURES GRID & CARDS (Flex layouts only)
======================================================== */
.features-grid, .project-features-section .features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 22px;
}
.feature {
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 100%;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.feature img {
  height: 40px;
  width: 40px;
  margin-bottom: 4px;
}
.feature:hover, .feature:focus-within {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 20px var(--color-shadow);
  background: #f9fafc;
}

/* For text-image-section or horizontal flex layouts */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Blog/article list styling */
.article-list,
.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-list li,
.service-list li {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 20px 16px;
  margin-bottom: 10px;
  transition: box-shadow 0.15s;
}
.article-list li:hover,
.service-list li:hover {
  box-shadow: 0 6px 20px var(--color-shadow);
}

/* Project Outcomes, Process Overview, etc. */
.process-overview,
.project-outcomes {
  background: var(--color-accent);
  border-left: 4px solid var(--color-secondary);
  padding: 22px 18px;
  margin-top: 24px;
  border-radius: var(--border-radius);
}
.process-overview ol{
  margin-left: 20px;
  padding-left: 10px;
}

/* =======================================================
   CARD & GRID COMPONENTS
======================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 6px var(--color-shadow);
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 22px var(--color-shadow);
  transform: translateY(-4px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 18px;
}

/* For wrapping content into a flex row with spacing */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* =======================================================
   CTA & BUTTONS
======================================================== */
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--border-radius);
  padding: 13px 36px;
  font-size: 1rem;
  margin: 6px 0 0 0;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.23s, color 0.15s, border 0.12s, box-shadow 0.17s, transform 0.12s;
  cursor: pointer;
  text-align: center;
  outline: none;
}
.button-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.button-primary:hover, .button-primary:focus {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
}
.button-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1.5px) scale(1.034);
}

/* =======================================================
   TESTIMONIALS
======================================================== */
.testimonials-section .content-wrapper {
  gap: 30px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-secondary);
  box-shadow: 0 2px 10px var(--color-shadow);
  color: var(--color-primary);
  font-size: 1.1rem;
  transition: box-shadow 0.18s, background 0.18s;
  min-width: 220px;
}
.testimonial-card p {
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.08rem;
}
.testimonial-name {
  color: var(--color-secondary);
  font-size: 0.97rem;
  padding-left: 15px;
  font-family: var(--font-body);
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 24px var(--color-shadow);
  background: var(--color-accent);
}
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 13px;
}
.client-logos img {
  height: 36px;
  width: auto;
  filter: grayscale(65%);
  opacity: 0.9;
  transition: filter 0.18s, opacity 0.16s;
}
.client-logos img:hover {
  filter: none;
  opacity: 1;
}

/* =======================================================
   FOOTER
======================================================== */
footer {
  background: var(--color-accent);
}
.footer-section {
  padding: 34px 0 0 0;
  background: var(--color-accent);
  border-top: 1.5px solid var(--color-grey);
}
.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo-contact {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: flex-start;
}
.footer-logo-contact img {
  height: 42px;
  width: auto;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1rem;
  color: var(--color-primary);
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.contact-info img {
  height: 16px;
  width: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.98rem;
  align-items: center;
}
.footer-nav a {
  color: var(--color-primary);
  padding: 4px 7px;
  border-radius: 6px;
  transition: color .15s, background .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-white);
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a img {
  height: 24px;
  width: 24px;
  opacity: 0.85;
  transition: opacity 0.17s;
}
.footer-social a:hover img {
  opacity: 1;
}
@media (min-width: 900px) {
  .footer-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }
}

/* =======================================================
   RESPONSIVE DESIGN (Mobile-first)
======================================================== */
@media (max-width: 999px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .footer-logo-contact {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 22px 6px;
    margin-bottom: 42px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .features-grid, .card-container, .content-grid {
    gap: 16px;
  }
  .feature {
    padding: 16px 8px 10px 8px;
  }
  .testimonial-card {
    padding: 15px 8px;
    min-width: 0;
  }
  header .container {
    height: 56px;
  }
  h1 {
    font-size: 1.45rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.14rem;
    margin-bottom: 10px;
  }
}
@media (max-width: 529px) {
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===============================
   SPECIALTY COMPONENTS
================================= */
.address-map {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-accent);
  padding: 16px 10px;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 4px var(--color-shadow);
  margin-bottom: 15px;
}
.address-map img {
  height: 32px;
  width: 32px;
}

.awards-certifications {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.awards-certifications img {
  height: 36px;
}

.featured-post {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 22px 18px;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 15px rgba(35,57,93,0.09);
  font-size: 1.08rem;
  margin-top: 20px;
}
.featured-post h3 {
  color: var(--color-white);
}

.contact-details {
  background: var(--color-white);
  box-shadow: 0 1px 5px var(--color-shadow);
  border-radius: var(--border-radius);
  padding: 18px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info-hint {
  background: var(--color-muted);
  padding: 12px 10px;
  border-radius: 7px;
  margin-top: 6px;
  font-size: 1rem;
  color: var(--color-primary);
}

/* ===================
   LEGAL PAGES
=================== */
.legal-section {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 9px var(--color-shadow);
  padding: 38px 18px;
  margin: 36px 0;
}
.legal-section h1, .legal-section h2 {
  margin-bottom: 14px;
}
.legal-section ul, .legal-section ol {
  margin-left: 22px;
  margin-bottom: 12px;
}
.legal-section li {
  margin-bottom: 7px;
}

/* ============
   CTA-SECTION
============ */
.cta-section {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 15px var(--color-shadow);
  margin-bottom: 60px;
  padding: 38px 16px 38px 16px;
}
.cta-section h2 {
  color: var(--color-white);
}
.cta-section p {
  color: var(--color-accent);
}
.cta-section .button-primary,
.cta-section .button-secondary {
  margin-top: 12px;
}
@media (max-width: 768px) {
  .cta-section {
    padding: 20px 6px 20px 6px;
    margin-bottom: 38px;
  }
}

/* ===================
   COOKIE CONSENT BANNER
===================== */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: var(--color-white);
  box-shadow: 0 -1px 12px var(--color-shadow);
  border-top: 1.5px solid var(--color-grey);
  width: 100vw;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.28s;
  font-size: 1rem;
  font-family: var(--font-body);
}
#cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
#cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
#cookie-consent-banner button {
  min-width: 110px;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--border-radius);
  border: 1.2px solid var(--color-grey);
  margin: 0 4px 4px 0;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: none;
  transition: background 0.19s, color .16s;
}
#cookie-consent-banner .accept-all {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}
#cookie-consent-banner .accept-all:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
#cookie-consent-banner .reject-all {
  background: var(--color-muted);
  color: var(--color-primary);
}
#cookie-consent-banner .reject-all:hover {
  background: #f9f7ed;
}
#cookie-consent-banner .settings {
  background: var(--color-accent);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
#cookie-consent-banner .settings:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* Cookie Preferences Modal */
#cookie-settings-modal {
  display: none;
  position: fixed;
  z-index: 11000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,57,93, 0.38);
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
}
#cookie-settings-modal.open {
  display: flex;
}
#cookie-settings-modal .modal-content {
  background: var(--color-white);
  border-radius: var(--border-radius);
  max-width: 400px;
  width: 98vw;
  padding: 36px 22px 26px 22px;
  box-shadow: 0 4px 30px rgba(35,57,93,0.18);
  animation: modalIn 0.37s cubic-bezier(.59, .21, .22, .94) both;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes modalIn {
  0%{ transform: translateY(80px) scale(0.95); opacity: 0; }
  100%{ transform: translateY(0) scale(1); opacity: 1; }
}
#cookie-settings-modal h2 {
  font-size: 1.14rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-secondary);
  width: 19px; height: 19px;
  margin: 0 6px 0 0;
}
.cookie-category .always-on {
  color: var(--color-secondary);
  font-size: 0.98rem;
  font-weight: 700;
}
#cookie-settings-modal .modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 8px;
}
#cookie-settings-modal button {
  font-family: var(--font-display);
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--border-radius);
  border: 1.2px solid;
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-grey);
  transition: background 0.17s, color .13s;
}
#cookie-settings-modal .save {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}
#cookie-settings-modal .close {
  background: var(--color-accent);
  color: var(--color-primary);
}
#cookie-settings-modal .close:hover {
  background: var(--color-grey);
}
#cookie-settings-modal .save:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ==============
   UTILITIES
============== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-secondary { color: var(--color-secondary); }
.mt-18 { margin-top: 18px; }
.mt-13 { margin-top: 13px; }
.mt-8 { margin-top: 8px; }
.mb-22 { margin-bottom: 22px; }

/* ==============
   FOCUS VISIBLE
============== */
:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2.5px;
  transition: outline 0.13s;
}

/* END OF STYLE.CSS */
