/* ============================================================
   Stanton Construction Group - site.css
   One stylesheet for every page. Replaces the old Stripe-template
   files (colors_and_type.css, mobile.css) and the inline styles.
   Palette: slate neutrals with one terracotta accent (brick and tile).
   Type: Outfit for headlines, Geist for everything else.
   Shape: one radius (10px) everywhere. Motion: hover and press only.
   ============================================================ */

:root {
  color-scheme: light;

  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #eceff2;
  --ink: #1b2430;
  --ink-2: #45505e;
  --mute: #66717f;
  --line: #d9dee4;

  --accent: #b9532f;
  --accent-hover: #9c4426;
  --accent-tint: #f5e4dc;
  --on-accent: #ffffff;

  --band: #1b2430;
  --band-text: #f6f7f8;
  --band-mute: #aab3bf;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 36, 48, 0.06), 0 12px 32px rgba(27, 36, 48, 0.08);
  --wrap: 1120px;
  --gutter: 32px;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #141a21;
    --surface: #1b2430;
    --surface-2: #232d39;
    --ink: #eef1f4;
    --ink-2: #c3cad3;
    --mute: #8f9aa7;
    --line: #2e3945;
    --accent: #c25b36;
    --accent-hover: #d26a44;
    --accent-tint: rgba(194, 91, 54, 0.2);
    --on-accent: #ffffff;
    --band: #0e1319;
    --band-text: #eef1f4;
    --band-mute: #8f9aa7;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 3.9rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.lede { color: var(--ink-2); font-size: 1.125rem; max-width: 56ch; }
.mute { color: var(--mute); }
.eyebrow {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.12s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-band { background: var(--band-text); color: var(--band); }
.btn-band:hover { background: #ffffff; }
@media (prefers-color-scheme: dark) { .btn-band { background: var(--accent); color: #ffffff; } .btn-band:hover { background: var(--accent-hover); } }
.text-link { color: var(--accent); font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand .roof { stroke: var(--accent); }
.brand .floor { stroke: currentColor; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn { padding: 10px 16px; font-size: 0.95rem; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--on-accent); }

/* ---------- Sections ---------- */
section, .hero { padding-block: 96px; }
.tint { background: var(--surface-2); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; max-width: 60ch; }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy h1 { max-width: 12ch; }
.btn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { height: 440px; }

/* ---------- Split (flagship) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 22px; }
.split-photo { height: 480px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; list-style: none; padding: 0; margin: 0; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.facts { display: flex; gap: 36px; flex-wrap: wrap; }
.fact { border-left: 2px solid var(--accent); padding-left: 16px; display: flex; flex-direction: column; gap: 2px; }
.fact strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.fact span { color: var(--mute); font-size: 0.9rem; }

/* ---------- Services (asymmetric grid) ---------- */
.services { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; }
.tile { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.tile-photo { grid-row: 1 / 3; padding: 0; position: relative; overflow: hidden; min-height: 520px; color: #fff; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-photo .tile-text {
  position: relative; margin: auto 20px 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px;
  background: rgba(14, 19, 25, 0.82); border-radius: var(--radius);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tile.tile-photo h3 { color: #ffffff; }
.tile.tile-photo p { color: rgba(255, 255, 255, 0.92); }
.tile-photo .text-link { color: #ffffff; }
.tile-tint { background: var(--surface-2); }
.tile-line { background: var(--surface); border: 1px solid var(--line); }
.tile p { color: var(--ink-2); max-width: 48ch; }
.tile .text-link { margin-top: auto; padding-top: 6px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery .photo { height: 300px; box-shadow: none; }
.gallery figcaption { color: var(--mute); font-size: 0.95rem; }
.gallery-note { margin-top: 28px; color: var(--mute); font-size: 0.95rem; max-width: 60ch; }

/* ---------- Process (stacked rows) ---------- */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--ink-2); max-width: 60ch; }

/* ---------- Band (dark CTA) ---------- */
.band { background: var(--band); color: var(--band-text); padding-block: 88px; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band-copy { display: flex; flex-direction: column; gap: 12px; max-width: 56ch; }
.band p { color: var(--band-mute); font-size: 1.125rem; }

/* ---------- Footer ---------- */
footer { padding: 48px 0 56px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand { font-size: 1rem; }
.footer-brand .mute { font-size: 0.9rem; }
.footer-links { display: flex; gap: 24px; font-size: 0.9rem; color: var(--mute); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Page header (blog, contact) ---------- */
.page-head { padding-block: 72px 56px; }
.page-head .lede { margin-top: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 28px; }
.how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.how li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.how li::before { content: ""; width: 10px; height: 10px; margin-top: 0.5em; border-radius: 2px; background: var(--accent); }
.how strong { display: block; color: var(--ink); font-weight: 500; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; outline: none; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--mute); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field .hint { font-size: 0.85rem; color: var(--mute); }
.form-note { font-size: 0.9rem; color: var(--mute); }
.success { display: none; flex-direction: column; gap: 12px; padding: 24px 0; text-align: left; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; list-style: none; padding: 0; margin: 0; color: var(--ink-2); }
.areas li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post .photo { height: 190px; border-radius: 0; box-shadow: none; }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body .topic { font-size: 0.85rem; color: var(--accent); font-weight: 500; }
.post-body h3 { font-size: 1.15rem; }
.post-body p { color: var(--ink-2); font-size: 0.98rem; }
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.featured .photo { height: 360px; }
.featured-copy { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .featured { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo, .split-photo { height: 340px; }
  .services { grid-template-columns: 1fr; grid-template-rows: auto; }
  .tile-photo { grid-row: auto; min-height: 420px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .posts { grid-template-columns: 1fr 1fr; }
  .steps li { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  section, .hero { padding-block: 64px; }
  .hero { padding-block: 48px 64px; }
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
  .nav .brand-rest { display: none; }
  .nav .brand { font-size: 1.05rem; }
  .hero-photo, .split-photo { height: 260px; }
  .hero-copy h1 { max-width: none; }
  .ticks, .areas, .posts, .gallery, .form-row { grid-template-columns: 1fr; }
  .gallery .photo { height: 240px; }
  .band-inner, .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; }
  .facts { gap: 24px; }
}
