:root {
  --accent:       #C4622D;
  --accent-hover: #A8511F;
  --accent-light: #F5EDE7;
  --bg:           #FAF8F5;
  --surface:      #FFFFFF;
  --text:         #1E1B18;
  --text-muted:   #6B6560;
  --border:       #E8E2DB;
  --hero-bg:      #1C1917;
  --hero-fg:      #FAF8F5;
  --radius:       8px;
  --max-w:        1100px;
  --gap:          1.5rem;
  --section-pad:  5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAV ────────────────────────────────────────────────── */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--hero-fg);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.75); }

.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 1rem !important;
  font-size: 0.8rem !important;
}

.btn-nav:hover { background: var(--accent-hover) !important; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  padding: 6rem 0 5.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--hero-fg);
}

.subhead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: 1.5rem;
}

.hero-body {
  font-size: 1rem;
  max-width: 580px;
  color: rgba(250, 248, 245, 0.6);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

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

/* ── STATS ───────────────────────────────────────────────── */
.stats {
  background: var(--accent-light);
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}

.stat-detail {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.375rem;
}

.stat-company {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.45;
  margin-top: 0.875rem;
}

/* ── SHARED SECTION STYLES ───────────────────────────────── */
.about, .case-studies, .testimonials, .contact {
  padding: var(--section-pad) 0;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: -1rem;
  margin-bottom: 2.5rem;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about { background: var(--bg); }

.about-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.throughline {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  font-weight: 500;
  max-width: 700px !important;
}

/* ── CASE STUDIES ────────────────────────────────────────── */
.case-studies { background: var(--surface); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  border-color: var(--accent);
}

.card-company {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.card-link:hover { color: var(--accent-hover); }

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

/* 5th card spans full width for a clean close */
.testimonial-card:last-child { grid-column: 1 / -1; }
.testimonial-card:last-child p { max-width: 680px; }

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.15s;
}

.testimonial-card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }

.testimonial-card p {
  font-size: 0.9625rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-card footer strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-card footer span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.relation {
  font-size: 0.75rem !important;
  color: var(--accent) !important;
  font-weight: 500;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact { background: var(--surface); }

.contact > .container > p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
}

.contact-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.contact-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--hero-bg);
  padding: 1.5rem 0;
  font-size: 0.825rem;
  color: rgba(250, 248, 245, 0.4);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .cards-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --section-pad: 3.5rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.25rem;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .nav-links.open { display: flex; }

  .stats-grid  { grid-template-columns: 1fr; }
  .cards-grid  { grid-template-columns: 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card:last-child { grid-column: 1; }

  .hero { padding: 4rem 0 3.5rem; }
}
