/* ==========================================================================
   Total Terrain LLC — dark / gold design system
   Built from the Claude Design handoff of 2026-09-11 (round 2 desktop screens,
   round 3 mobile screens). Plain CSS, no build step.
   ========================================================================== */

:root {
  --bg: #100e0b;            /* near-black page background */
  --panel: #1a1712;         /* secondary panel */
  --deep: #0a0908;          /* darkest */
  --gold: #c9a468;          /* accent, from the logo */
  --gold-hover: #d6b47a;
  --cream: #f3ecdf;         /* primary text */
  --white: #ffffff;         /* headlines */
  --line: rgba(243, 236, 223, .08);
  --line-strong: rgba(243, 236, 223, .12);
  --line-input: rgba(243, 236, 223, .16);
  --t85: rgba(243, 236, 223, .85);
  --t80: rgba(243, 236, 223, .8);
  --t75: rgba(243, 236, 223, .75);
  --t70: rgba(243, 236, 223, .7);
  --t65: rgba(243, 236, 223, .65);
  --t60: rgba(243, 236, 223, .6);
  --t50: rgba(243, 236, 223, .5);
  --t45: rgba(243, 236, 223, .45);
  --t40: rgba(243, 236, 223, .4);
  --pad: 48px;              /* page side padding */
  --header-h: 79px;         /* fixed header height on inner pages */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--white); line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
main { display: block; }
body:not(.home) main { padding-top: var(--header-h); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 10px 16px; background: var(--gold); color: var(--bg); font-weight: 700;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 2px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  background: var(--gold); color: var(--bg);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--gold-hover); }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.btn-lg { padding: 16px 32px; font-size: 15.5px; }
.btn-sm { padding: 11px 22px; font-size: 13.5px; letter-spacing: .03em; }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid var(--t40); }
.btn-outline:hover { background: rgba(243, 236, 223, .06); border-color: var(--cream); }
.text-link { font-weight: 700; font-size: 14px; color: var(--gold); }
.text-link:hover { color: var(--gold-hover); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 20px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid rgba(243, 236, 223, .1);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.over-hero { background: transparent; border-bottom-color: transparent; padding: 22px var(--pad); }
.site-header.over-hero.scrolled { background: var(--bg); border-bottom-color: rgba(243, 236, 223, .1); }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.over-hero .brand img { width: 42px; height: 42px; }
.brand-name {
  display: flex; flex-direction: column;
  font-weight: 800; font-size: 15px; letter-spacing: .03em; line-height: 1.1; color: var(--white);
}
.brand-name small { font-weight: 500; font-size: 10px; letter-spacing: .2em; color: var(--gold); }

.header-menu { display: contents; }
.main-nav { display: flex; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--t85); }
.main-nav a { padding: 4px 0; transition: color .15s ease; }
.main-nav a:hover { color: var(--white); }
.main-nav a[aria-current="page"] { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 600; font-size: 14.5px; color: var(--white); }

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

/* ---------- hero (home) ---------- */
.hero {
  position: relative; height: 680px; overflow: hidden;
  display: flex; align-items: center; background: var(--bg);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  filter: saturate(1.05) brightness(.9);
}
.hero-media video { opacity: 0; transition: opacity .8s ease; }
.hero-media video.is-playing { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,14,11,.75) 0%, rgba(16,14,11,.35) 32%, rgba(16,14,11,.55) 70%, rgba(16,14,11,.95) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 76px var(--pad) 0; max-width: 760px; }
.hero-content .eyebrow { letter-spacing: .22em; margin-bottom: 18px; }
.hero h1 { font-size: 64px; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 22px; }
.hero-sub { font-size: 18px; color: var(--t80); max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-rating {
  position: absolute; left: var(--pad); bottom: 28px; z-index: 1;
  display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--t60);
}

/* ---------- home: services strip ---------- */
.services-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding: 80px var(--pad); }
.services-strip > a { display: block; padding: 0 28px; }
.services-strip > a:first-child { padding-left: 0; }
.services-strip > a:last-child { padding-right: 0; }
.svc-num { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.services-strip h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; transition: color .15s ease; }
.services-strip a:hover h3 { color: var(--gold); }
.services-strip p { font-size: 14.5px; color: var(--t65); }

/* ---------- home: photo mosaic ---------- */
.photo-mosaic {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-auto-rows: 180px; gap: 0;
  padding: 0 var(--pad) 80px;
}
.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.photo-mosaic img:first-child { grid-row: span 2; }

/* ---------- CTA bands ---------- */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  padding: 70px var(--pad); background: var(--panel); border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: var(--t60); font-size: 15px; }
.cta-band.compact { padding: 60px var(--pad); gap: 32px; }
.cta-band.compact h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.cta-band.compact p { font-size: 14.5px; }

/* ---------- footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px var(--pad); background: var(--bg); color: var(--t45); font-size: 13px;
  border-top: 1px solid var(--line);
}
.site-footer a:hover { color: var(--cream); }

/* ---------- inner pages: shared ---------- */
.page-head { padding: 70px var(--pad) 44px; max-width: 700px; }
.page-head h1 { font-size: 46px; font-weight: 800; margin-bottom: 14px; }
.page-head p { font-size: 16.5px; color: var(--t65); }
.page-head.center { max-width: none; text-align: center; }
.page-head.center p { margin-bottom: 16px; }
.page-head.tight { padding-bottom: 36px; }
.page-head.tight h1 { margin-bottom: 0; }
.section { padding: 0 var(--pad) 80px; }
.rating-line { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--t75); }
.rating-line strong { color: var(--white); }

/* ---------- services page ---------- */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.service-card { background: var(--bg); }
.service-card img { width: 100%; height: 260px; object-fit: cover; }
.service-body { padding: 28px; }
.svc-tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.service-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.service-body p { font-size: 14.5px; color: var(--t65); margin-bottom: 18px; }

/* ---------- gallery page ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 2px; background: var(--line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid img.wide { grid-column: span 2; }   /* side-by-side before/after composites */

/* ---------- about page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 76px var(--pad); }
.about-grid .eyebrow { margin-bottom: 16px; }
.about-grid h1 { font-size: 44px; font-weight: 800; margin-bottom: 22px; }
.about-grid p { font-size: 15.5px; color: var(--t70); margin-bottom: 14px; }
.about-grid p:last-child { margin-bottom: 0; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 2px; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-photos img:first-child { grid-row: span 2; }

/* ---------- reviews page ---------- */
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.review { background: var(--panel); padding: 30px; }
.review .stars { font-size: 14px; letter-spacing: 3px; }
.review-text { margin: 16px 0 20px; font-size: 15px; color: var(--t85); line-height: 1.6; }
.review-text p { margin-bottom: 8px; }
.review-text p:last-child { margin-bottom: 0; }
.review-name { font-weight: 700; font-size: 14px; color: var(--white); }
.review-source { font-size: 13px; color: var(--t50); }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; padding: 76px var(--pad); }
.contact-info .eyebrow { margin-bottom: 16px; }
.contact-info h1 { font-size: 40px; font-weight: 800; margin-bottom: 14px; }
.contact-info .lead { font-size: 15.5px; color: var(--t65); margin-bottom: 30px; }
.contact-list { font-size: 15.5px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.contact-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.contact-list strong { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.contact-list a:hover { color: var(--gold); }

.quote-form {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--panel); border: 1px solid rgba(243, 236, 223, .1); padding: 36px;
}
.quote-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote-form legend { font-size: 13px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 14px; font-size: 14px; font-weight: 500;
  border: 1px solid rgba(243, 236, 223, .25); color: var(--cream);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover span { border-color: var(--t60); }
.chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.quote-form input[type="text"], .quote-form input[type="email"], .quote-form input[type="tel"], .quote-form textarea {
  width: 100%; font: inherit; font-size: 15px; font-weight: 400; color: var(--cream);
  padding: 12px 14px; border: 1px solid var(--line-input); border-radius: 0;
  background: rgba(243, 236, 223, .05);
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: var(--t40); }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--gold); }
.quote-form textarea { min-height: 96px; resize: vertical; }
.quote-form .btn { width: 100%; }
.form-note { font-size: 12.5px; color: var(--t50); text-align: center; }
.hidden-field { display: none !important; }

.privacy-policy {
  max-width: 900px; margin: 0 var(--pad) 80px; padding-top: 40px;
  border-top: 1px solid var(--line); font-size: 11px; line-height: 1.7; color: var(--t50);
}
.privacy-policy h2 { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--t70); margin-bottom: 14px; }
.privacy-policy h3 { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--t60); margin: 18px 0 6px; }
.privacy-policy .effective-date { font-style: italic; margin-bottom: 12px; }
.privacy-policy p { margin-bottom: 10px; }
.privacy-policy ul { list-style: disc; padding-left: 20px; margin-bottom: 10px; }
.privacy-policy li { margin-bottom: 4px; }
.privacy-policy a { color: var(--t60); text-decoration: underline; }
.privacy-policy a:hover { color: var(--gold); }

/* ---------- thanks page ---------- */
.thanks { padding: 90px var(--pad) 110px; max-width: 640px; }
.thanks h1 { font-size: 44px; font-weight: 800; margin-bottom: 14px; }
.thanks p { font-size: 16.5px; color: var(--t65); margin-bottom: 30px; }
.thanks .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .hero h1 { font-size: 54px; }
  .services-strip { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .services-strip > a:nth-child(2n+1) { padding-left: 0; }
  .services-strip > a:nth-child(2n) { padding-right: 0; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { gap: 22px; }
  .header-phone { display: none; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; --header-h: 65px; }

  /* header collapses to logo + hamburger; menu drops down */
  .site-header, .site-header.over-hero { padding: 16px var(--pad); gap: 12px; }
  .brand img, .over-hero .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 14px; }
  .brand-name small { display: none; }
  .nav-toggle { display: flex; }
  .header-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 8px var(--pad) 22px;
    background: var(--bg); border-bottom: 1px solid rgba(243, 236, 223, .1);
  }
  .nav-open .header-menu { display: flex; }
  .site-header.over-hero.nav-open { background: var(--bg); border-bottom-color: rgba(243, 236, 223, .1); }
  .main-nav { flex-direction: column; gap: 0; font-size: 16px; }
  .main-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .header-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .header-phone { display: flex; justify-content: center; padding: 13px; border: 1.5px solid var(--t40); border-radius: 2px; }
  .header-actions .btn { width: 100%; padding: 14px; font-size: 15px; }

  /* hero */
  .hero { height: 520px; }
  .hero-content { padding-top: 66px; }
  .hero-content .eyebrow { font-size: 11px; letter-spacing: .16em; margin-bottom: 12px; }
  .hero h1 { font-size: 36px; line-height: 1.1; margin-bottom: 14px; }
  .hero h1 br { display: none; }
  .hero-sub { font-size: 15px; margin-bottom: 22px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; padding: 15px; font-size: 15px; }
  .hero-rating { display: none; }

  /* home sections */
  .services-strip { grid-template-columns: 1fr; gap: 24px; padding: 40px var(--pad); }
  .services-strip > a { padding: 0; }
  .services-strip h3 { font-size: 19px; margin-bottom: 4px; }
  .services-strip p { font-size: 14px; }
  .svc-num { font-size: 12px; margin-bottom: 8px; }
  .photo-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 2px; padding-bottom: 40px; }
  .photo-mosaic img:first-child { grid-row: auto; }
  .photo-mosaic img:nth-child(5) { display: none; }
  .cta-band, .cta-band.compact { flex-direction: column; text-align: center; gap: 16px; padding: 36px var(--pad); }
  .cta-band h2 { font-size: 24px; }
  .cta-band .btn { width: 100%; }
  .site-footer { justify-content: center; text-align: center; padding: 18px var(--pad); font-size: 12px; }

  /* inner pages */
  .page-head { padding: 36px var(--pad) 24px; }
  .page-head h1 { font-size: 30px; margin-bottom: 10px; }
  .page-head p { font-size: 14.5px; }
  .page-head .eyebrow { font-size: 11px; letter-spacing: .16em; margin-bottom: 10px; }
  .section { padding-bottom: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card img { height: 180px; }
  .service-body { padding: 18px 0 22px; }
  .service-body h3 { font-size: 19px; }
  .service-body p { font-size: 14px; margin-bottom: 10px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; padding: 36px var(--pad); }
  .about-grid h1 { font-size: 28px; margin-bottom: 14px; }
  .about-grid p { font-size: 14.5px; }
  .about-photos { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 6px; }
  .about-photos img:first-child { grid-row: auto; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review { padding: 20px; }
  .review-text { font-size: 14px; margin: 12px 0 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; padding: 36px var(--pad); }
  .contact-info h1 { font-size: 28px; margin-bottom: 10px; }
  .contact-info .lead { font-size: 14.5px; margin-bottom: 22px; }
  .contact-list { font-size: 14.5px; }
  .contact-list li { padding: 14px 0; }
  .quote-form { padding: 22px; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .chip span { padding: 8px 12px; font-size: 13px; }
  .thanks { padding: 50px var(--pad) 70px; }
  .thanks h1 { font-size: 30px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 14px; background: transparent; }
  .gallery-grid img.wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
