@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #171A1C;
  --secondary: #2A2F31;
  --bg: #F3F1EC;
  --surface: #FFFFFF;
  --accent: #C8753D;
  --text: #171A1C;
  --muted: #6D706F;
  --line: #E2DFD6;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

h1, h2, h3, .brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px; position: absolute; top: 0; left: 0; right: 0; z-index: 30;
}
.site-header.solid { position: sticky; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; color: inherit; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff; padding: 11px 22px;
  font-size: 0.82rem; font-weight: 600; transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--primary); }

.header-right { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid currentColor; border-radius: 2px;
  font-size: 1.1rem; cursor: pointer; color: inherit;
}

@media (max-width: 900px) {
  .nav-links {
    display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px;
    flex-direction: column; align-items: flex-start; gap: 4px; justify-content: center;
    background: var(--primary); color: #fff; padding: 40px 32px;
    transform: translateX(100%); transition: transform 0.28s ease; z-index: 50;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 12px 0; width: 100%; color: #fff; }
  .nav-cta { margin-top: 12px; }
  .menu-toggle { display: flex; position: relative; z-index: 60; }
}

.nav-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(23,26,28,0.45); z-index: 40;
}
.nav-backdrop.open { display: block; }

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .container { padding: 0 22px; } }

.section { padding: 90px 0; }
.section-num { color: var(--accent); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; }
.section-title { font-size: 2.1rem; margin-bottom: 16px; }
.section-subtitle { color: var(--muted); font-size: 1rem; max-width: 540px; margin-bottom: 48px; }

/* Hero — full-bleed image, framed with padding rather than bleeding
   edge-to-edge, per the request for a softer, less "raw template" feel */
.hero-frame { padding: 18px; background: var(--bg); }
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; color: #fff;
  border-radius: 18px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,26,28,0.15) 0%, rgba(23,26,28,0.25) 40%, rgba(23,26,28,0.88) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 44px 56px; max-width: 640px; }
@media (max-width: 700px) { .hero-content { padding: 0 24px 40px; } }
.hero h1 { font-size: 3rem; line-height: 1.05; margin-bottom: 16px; text-transform: uppercase; }
@media (max-width: 700px) { .hero h1 { font-size: 2.1rem; } }
.hero p { font-size: 0.98rem; color: rgba(255,255,255,0.85); max-width: 420px; margin-bottom: 26px; }
.hero-tags { display: flex; gap: 18px; margin-top: 24px; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6); flex-wrap: wrap; }

.btn-primary {
  background: var(--accent); color: #fff; border: none; padding: 15px 30px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; display: inline-block; transition: background 0.15s ease;
}
.btn-primary:hover { background: #A85F2E; }
.btn-outline {
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.5); border-radius: 8px;
  padding: 15px 30px; font-size: 0.88rem; font-weight: 600; cursor: pointer; display: inline-block; backdrop-filter: blur(2px);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.15); }
.btn-dark { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 15px 30px; font-size: 0.88rem; font-weight: 600; cursor: pointer; display: inline-block; }
.btn-dark:hover { background: var(--secondary); }

/* Editorial project grid */
.project-masonry { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 800px) { .project-masonry { grid-template-columns: 1fr; } }
.project-masonry > a:first-child { grid-row: span 2; }

.project-card { position: relative; overflow: hidden; background: var(--secondary); display: block; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; aspect-ratio: 4/5; }
.project-masonry > a:not(:first-child) .project-card img { aspect-ratio: 4/3; }
.project-card:hover img { transform: scale(1.04); }
.project-card-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px;
  background: linear-gradient(0deg, rgba(23,26,28,0.85) 0%, transparent 100%); color: #fff;
}
.project-card-type { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 4px; }
.project-card-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.15rem; }
.project-card-loc { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* Simple grid for full listing page */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

/* Numbered services list */
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.service-name { font-size: 1.15rem; margin-bottom: 6px; }
.service-desc { color: var(--muted); font-size: 0.92rem; max-width: 480px; }

/* How it works — a connected timeline, deliberately different from the
   plain numbered Services list so two adjacent sections don't read as
   the same repeated pattern */
.steps { display: flex; flex-direction: column; max-width: 480px; }
.step-item { display: flex; gap: 20px; padding-bottom: 34px; }
.step-item:last-child { padding-bottom: 0; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-circle {
  width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.92rem; flex-shrink: 0;
}
.step-line { flex: 1; width: 2px; background: var(--line); margin-top: 6px; min-height: 16px; }
.step-item:last-child .step-line { display: none; }
.step-content { padding-top: 8px; }
.step-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; }

/* Facts row instead of fake statistics */
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
@media (max-width: 700px) { .facts-row { grid-template-columns: 1fr; gap: 30px; } }
.fact-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.fact-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; }

.final-cta { background: var(--primary); color: #fff; text-align: center; padding: 100px 24px; }
.final-cta h2 { color: #fff; margin-bottom: 14px; font-size: 2rem; }
.final-cta p { color: rgba(255,255,255,0.7); margin-bottom: 30px; }

.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

.site-footer { padding: 40px 0; text-align: center; font-size: 0.8rem; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line); }

.page-hero { background: var(--primary); color: #fff; padding: 160px 0 60px; }
.page-hero h1 { font-size: 2.4rem; text-transform: uppercase; }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 12px; }
