:root {
  --color-primary: #31471f;
  --color-primary-light: #5b6135;
  --color-accent: #5a92b5;
  --color-dark: #1f2423;
  --color-text: #3d4543;
  --color-muted: #6b7280;
  --color-bg: #f7f8f6;
  --color-white: #ffffff;
  --color-border: #e5e7e2;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(49, 71, 31, 0.12);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-height: 84px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Libre Franklin", var(--font-sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-dark);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.logo img {
  height: 64px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a,
.nav-dropdown > button {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-desktop a:hover,
.nav-dropdown > button:hover,
.nav-desktop a.active {
  color: var(--color-primary);
  background: rgba(49, 71, 31, 0.06);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 0.7rem 1.25rem !important;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
}

.header-cta:hover {
  background: var(--color-primary-light);
  color: var(--color-white) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: 0.2s;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 36, 35, 0.45);
  z-index: 1090;
}

.mobile-nav-backdrop.open {
  display: block;
}

.mobile-nav {
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 0;
  background: var(--color-white);
  overflow: hidden;
  z-index: 1100;
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transition: max-height 0.3s ease;
}

.mobile-nav.open {
  visibility: visible;
  pointer-events: auto;
  max-height: calc(100dvh - var(--header-height));
  max-height: calc(100svh - var(--header-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-inner {
  padding: 0.5rem 1.25rem 1.5rem;
}

.mobile-nav a,
.mobile-nav summary {
  display: block;
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav details {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav details[open] summary {
  color: var(--color-primary);
  border-bottom-color: transparent;
}

.mobile-nav details a {
  padding: 0.9rem 0 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 400;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.4;
}

.mobile-nav details a:last-child {
  border-bottom: none;
  margin-bottom: 0.25rem;
}

.mobile-nav summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.mobile-nav summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--color-muted);
}

.mobile-nav details[open] summary::after {
  content: "−";
}

.mobile-nav summary::-webkit-details-marker { display: none; }

.mobile-nav-cta {
  margin-top: 1rem;
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(480px, 75vh, 680px);
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 36, 35, 0.85) 0%, rgba(49, 71, 31, 0.75) 55%, rgba(90, 146, 181, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.hero h1 { color: var(--color-white); margin-bottom: 1.25rem; }
.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #4a7f9e;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-dark:hover {
  background: var(--color-primary-light);
  color: var(--color-white);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt { background: var(--color-bg); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card h3 { margin-bottom: 0.75rem; }

.service-card p {
  color: var(--color-muted);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.card-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
}

.card-link::after { content: " →"; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item span {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-item {
  padding: 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(49, 71, 31, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
}

.split.reverse .split-content { order: 2; }
.split.reverse .split-media { order: 1; }

/* Industries */
.industry-list {
  display: grid;
  gap: 1.25rem;
}

.industry-item {
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.industry-item h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.industry-item p { margin: 0; color: var(--color-muted); }

/* Areas */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.area-tag {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-white);
}

.faq-item summary {
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 1.25rem 1.15rem;
  margin: 0;
  color: var(--color-muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 4rem 0;
}

.cta-band h2 { color: var(--color-white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 600px; margin: 0 auto 2rem; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-card h3 { margin-top: 1.5rem; }
.contact-info-card h3:first-child { margin-top: 0; }

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(90, 146, 181, 0.2);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

.form-success,
.form-error {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.form-success { background: #e8f5e9; color: #2e7d32; }
.form-error { background: #ffebee; color: #c62828; }
.form-success.show, .form-error.show { display: block; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  color: var(--color-white);
  background: var(--color-primary);
}

.page-hero.has-image .page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero.has-image .page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 36, 35, 0.92) 0%, rgba(49, 71, 31, 0.8) 100%);
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--color-white); }
.page-hero p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; max-width: 640px; }

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.value-card {
  padding: 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

/* Team */
.team-department {
  margin-bottom: 3.5rem;
}

.team-department-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.team-card-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
}

.team-card-placeholder {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-border) 100%);
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.team-card-body h3 {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.team-card-title {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.team-card-bio {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

/* Community */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.community-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.community-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.community-card-body {
  padding: 1.5rem;
}

.community-card-body h3 {
  margin-bottom: 0.75rem;
}

.community-card-body p {
  margin: 0;
  color: var(--color-muted);
}

/* Photo gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.showcase-grid img {
  height: 260px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  width: min(220px, 100%);
  height: auto;
  max-height: 84px;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Sub-services */
.subservice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.subservice-card img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
  height: 220px;
  object-fit: cover;
  width: 100%;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-content,
  .split.reverse .split-media { order: unset; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop, .header-cta-desktop { display: none; }
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1110;
  }
  body.menu-open .site-header {
    z-index: 1110;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}