/* Design tokens */
:root {
  --bg-0: #ffffff;
  --bg-1: #ffffff;
  --card: #ffffff;
  --elev: rgba(0, 0, 0, 0.04);
  --text-0: #0f141a;
  --text-1: #4b5563;
  --muted: #6b7280;
  --primary: #111111;
  --primary-2: #111111;
  --accent: #111111;
  --danger: #c81e1e;
  --shadow: none;
  --radius: 0;
  --radius-sm: 0;
  --radius-lg: 0;
  --container: 1200px;
  --header-h: 72px;
}

/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-0);
  background: var(--bg-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3 { font-family: "Space Grotesk", Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { color: var(--text-1); margin: 0 0 8px; }

/* Utilities */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: calc(var(--header-h) + 32px) 0 72px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 0; }
.hidden { display: none; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 0; border: 1px solid #111; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease; text-decoration: none; font-weight: 600; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #ffffff; box-shadow: none; }
.btn-primary:hover { filter: none; background: #000; }
.btn-ghost { color: var(--text-0); border-color: #d1d5db; background: transparent; }
.btn-sm { padding: 10px 12px; border-radius: 0; }

.gradient-sep { height: 1px; width: 100%; background: #e5e7eb; margin-top: 36px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #ffffff; border-bottom: 1px solid #e5e7eb; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-0); text-decoration: none; font-weight: 700; letter-spacing: 0.2px; }
.brand-mark { color: var(--primary-2); }
.menu { list-style: none; display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; }
.menu a { color: var(--text-0); text-decoration: none; padding: 10px 12px; border-radius: 0; }
.menu a:hover { background: #f3f4f6; }
.menu-cta .btn { padding: 10px 14px; }

/* Header CTA overrides */
.menu .btn.btn-primary { color: #ffffff; background: #111111; border-color: #111111; }
.menu .btn.btn-primary:hover { color: #ffffff; background: #000000; }

.nav-toggle { display: none; position: relative; width: 42px; height: 42px; border-radius: 0; border: 1px solid #d1d5db; background: #ffffff; color: var(--text-0); }
.nav-toggle .bar { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text-0); transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease; }
.nav-toggle .bar:nth-child(2) { top: 14px; }
.nav-toggle .bar:nth-child(3) { top: 20px; }
.nav-toggle .bar:nth-child(4) { top: 26px; }

/* Hero */
.hero { padding-top: 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero-copy p { font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; margin: 18px 0 10px; }
.hero-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.hero-media { position: relative; border-radius: 0; overflow: hidden; box-shadow: none; border: 1px solid #e5e7eb; }
.hero-media img { aspect-ratio: 4/3; object-fit: cover; }
.media-overlay { display: none; }

/* Sections */
.section-head { margin-bottom: 22px; }

/* Services */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid #e5e7eb; border-radius: 0; overflow: hidden; box-shadow: none; }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 16px; }
.checklist { color: var(--muted); padding-left: 18px; margin: 8px 0 0; }
.checklist li { margin: 6px 0; }

/* Work gallery */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tile { border-radius: 0; overflow: hidden; border: 1px solid #e5e7eb; background: #ffffff; }
.tile img { width: 100%; height: 140px; object-fit: cover; filter: saturate(0.95) contrast(1.02); }

/* Process */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.step { background: var(--card); border: 1px solid #e5e7eb; border-radius: 0; padding: 16px; }
.step h3 { margin-bottom: 6px; font-size: 1.05rem; }

/* Process 1:1 aspect and palette */
.steps .step { aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; counter-increment: step; }
.steps .step:nth-child(1) { background: #f8f5f1; border-color: #e6dccf; }
.steps .step:nth-child(2) { background: #f4ece4; border-color: #e2d6c8; }
.steps .step:nth-child(3) { background: #efe7dc; border-color: #ddcfbf; }
.steps .step:nth-child(4) { background: #eae0d5; border-color: #d6c7b9; }

/* Background numeric mark */
.steps .step::before { content: counter(step); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: rgba(17,17,17,0.08); font-size: clamp(100px, 22vw, 260px); line-height: 1; z-index: 0; pointer-events: none; }

/* Foreground typography in steps */
.steps .step h3 { position: relative; z-index: 1; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; margin-bottom: 8px; }
.steps .step p { position: relative; z-index: 1; font-size: 1.1rem; color: var(--text-1); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 12px 0 0; list-style: none; }
.badges li { background: #f9fafb; padding: 8px 12px; border-radius: 0; border: 1px solid #e5e7eb; color: var(--text-1); font-size: 0.95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: start; }
.contact-meta p { margin: 0 0 6px; }
.contact-form { background: var(--card); border: 1px solid #e5e7eb; border-radius: 0; padding: 16px; box-shadow: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; margin: 8px 0; }
label { color: var(--text-0); font-weight: 600; font-size: 0.95rem; }
input, select, textarea { width: 100%; background: #ffffff; border: 1px solid #d1d5db; color: var(--text-0); padding: 12px 12px; border-radius: 0; outline: none; transition: border-color 0.15s ease, background 0.15s ease; }
input::placeholder, textarea::placeholder { color: #9aa3af; }
input:focus, select:focus, textarea:focus { border-color: #111111; background: #ffffff; box-shadow: none; outline: 2px solid #111111; outline-offset: 1px; }
.choice { display: inline-flex; align-items: center; gap: 8px; margin-right: 12px; color: var(--text-1); }
.captcha { margin-top: 8px; }
.actions { margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid #e5e7eb; background: #ffffff; padding: 24px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.footer-links { display: flex; list-style: none; gap: 12px; margin: 0; padding: 0; }
.footer-links a { color: var(--text-1); text-decoration: none; padding: 6px 8px; border-radius: 0; }
.footer-links a:hover { color: var(--text-0); background: #f3f4f6; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(10px); will-change: transform, opacity; }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 600ms ease, transform 600ms ease; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .menu { display: none; position: absolute; right: 20px; top: calc(var(--header-h) + 10px); flex-direction: column; background: #ffffff; border: 1px solid #e5e7eb; padding: 8px; border-radius: 0; box-shadow: none; }
  .menu.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .hero-highlights { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Focus styles */
:where(a, button, input, select, textarea) { outline-offset: 2px; }
:where(a, button):focus-visible { outline: 2px solid #111111; border-radius: 0; }

/* Location bar */
.location-bar { background: #000000; border-bottom: 1px solid #000000; }
.location-inner { display: flex; align-items: center; gap: 8px; height: 48px; font-size: 1rem; color: #ffffff; font-weight: 600; letter-spacing: 0.2px; }
.location-inner svg { color: #ffffff; }

/* Contact form alignment fixes */
.field-row .field input[type="text"],
.field-row .field input[type="email"],
.field-row .field input[type="tel"],
.field-row .field select {
  height: 44px;
}

fieldset.field { /* override generic .field grid for fieldsets */
  border: 0;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
fieldset.field legend {
  flex-basis: 100%;
  font-weight: 700;
  margin: 0 0 6px;
}
fieldset.field .choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
fieldset.field .choice input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #111111;
}
