:root {
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --primary: #2f7d6b;
  --primary-600: #286a5a;
  --primary-700: #205647;
  --accent: #d4a24c;
  --success: #3aa17a;
  --warning: #d4a24c;
  --error: #e06464;
}

/* Light theme (default) */
:root,
[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-soft: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f1f5fa;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #16202e;
  --text-muted: #4a5a70;
  --text-dim: #7a8a9e;
  --accent-soft: rgba(212, 162, 76, 0.16);
  --shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.22);
  --header-bg: rgba(246, 248, 251, 0.7);
  --header-bg-scrolled: rgba(246, 248, 251, 0.95);
  --hero-glow-1: rgba(47, 125, 107, 0.14);
  --hero-glow-2: rgba(212, 162, 76, 0.12);
  --cta-glow: rgba(47, 125, 107, 0.10);
  --why-tint: rgba(47, 125, 107, 0.05);
  --hero-badge-bg: rgba(255, 255, 255, 0.9);
  --focus-ring: rgba(47, 125, 107, 0.18);
  --primary-shadow: rgba(47, 125, 107, 0.45);
  --mobile-nav-bg: rgba(246, 248, 251, 0.98);
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0f1a2e;
  --surface: #131f36;
  --surface-2: #182846;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eef7;
  --text-muted: #9fb0c8;
  --text-dim: #6c7e99;
  --accent-soft: rgba(212, 162, 76, 0.12);
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(11, 18, 32, 0.55);
  --header-bg-scrolled: rgba(11, 18, 32, 0.92);
  --hero-glow-1: rgba(47, 125, 107, 0.18);
  --hero-glow-2: rgba(212, 162, 76, 0.10);
  --cta-glow: rgba(47, 125, 107, 0.16);
  --why-tint: rgba(47, 125, 107, 0.06);
  --hero-badge-bg: rgba(11, 18, 32, 0.85);
  --focus-ring: rgba(47, 125, 107, 0.22);
  --primary-shadow: rgba(47, 125, 107, 0.8);
  --mobile-nav-bg: rgba(11, 18, 32, 0.98);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px -12px var(--primary-shadow);
}
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-logo {
  height: 38px;
  width: auto;
  border-radius: 6px;
}
.footer-logo { height: 42px; }
.brand-name { font-size: 1.02rem; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.primary-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}
.primary-nav a:hover { color: var(--text); }
.primary-nav .nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
}
.primary-nav .nav-cta:hover { background: var(--primary-600); color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--hero-glow-1), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, var(--hero-glow-2), transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
}
.hero .lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 36px;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
}
.hero-stats dt {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.hero-stats dd {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
}
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: var(--hero-badge-bg);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-badge strong { font-size: 0.92rem; }
.hero-badge span { font-size: 0.78rem; color: var(--text-muted); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Feature grid (About) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { color: var(--text-muted); margin: 0; font-size: 0.94rem; }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.service-card:hover::before { transform: scaleY(1); }
.service-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.service-card h3 { font-size: 1.1rem; margin: 8px 0 8px; }
.service-card p { color: var(--text-muted); margin: 0; font-size: 0.94rem; }

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why-card {
  padding: 24px;
  border-left: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--why-tint), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.why-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.why-card p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

/* Process */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.process-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.process-list .step {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.process-list h3 { font-size: 1rem; margin-bottom: 4px; }
.process-list p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

/* Industries */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.industry-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.industry-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.industry-card p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

/* CTA / Contact */
.section-cta {
  background:
    radial-gradient(700px 400px at 90% 10%, var(--cta-glow), transparent 60%),
    var(--bg-soft);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.cta-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.cta-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.cta-tile h3 { font-size: 1rem; margin-bottom: 6px; color: var(--accent); }
.cta-tile p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.field textarea { resize: vertical; }
.form-status {
  margin: 12px 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 38ch;
  margin-top: 14px;
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  transition: color 0.18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--accent);
}
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}
.faq-answer p { margin: 0; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .hero { padding: 120px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media img { height: 340px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .feature-grid,
  .service-grid,
  .why-grid,
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .primary-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--mobile-nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .primary-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .primary-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .primary-nav .nav-cta {
    text-align: center;
    margin-top: 12px;
    border-bottom: none;
  }
  .menu-toggle { display: flex; }
  .header-actions { display: flex; align-items: center; gap: 10px; }

  .feature-grid,
  .service-grid,
  .why-grid,
  .industry-grid,
  .process-list,
  .cta-tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 64px 0; }
  .hero { padding: 108px 0 56px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
