/* =================================================================
   LORD GYPSUM DRYWALL INC.
   Art direction: rugged premium trades — charcoal surfaces,
   gypsum off-white, warm ochre/amber accent. Heavy Satoshi hierarchy.
   ================================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-hero: clamp(2.75rem, 1rem + 6.5vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-default: 1180px;

  --font-display: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* LIGHT — gypsum / concrete */
:root, [data-theme="light"] {
  --color-bg: #f4f1ea;
  --color-surface: #fbfaf6;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ece7dd;
  --color-border: #d9d3c6;
  --color-divider: #e3ddd1;

  --color-text: #1f1d18;
  --color-text-muted: #6b6557;
  --color-text-faint: #a59e8e;
  --color-text-inverse: #f6f3ec;

  --color-ink: #1b1a17;          /* deep charcoal sections */
  --color-ink-2: #25231f;

  --color-primary: #c06a14;       /* warm ochre / amber */
  --color-primary-hover: #a4570d;
  --color-primary-active: #8a4709;
  --color-primary-soft: #f0e2cf;

  --shadow-sm: 0 1px 2px rgba(40,36,28,.07);
  --shadow-md: 0 6px 20px rgba(40,36,28,.10);
  --shadow-lg: 0 18px 44px rgba(40,36,28,.16);
}

/* DARK — job-site night */
[data-theme="dark"] {
  --color-bg: #16150f;
  --color-surface: #1d1b15;
  --color-surface-2: #232118;
  --color-surface-offset: #211f17;
  --color-border: #36332a;
  --color-divider: #2a281f;

  --color-text: #ece8dd;
  --color-text-muted: #9c9583;
  --color-text-faint: #6a6456;
  --color-text-inverse: #16150f;

  --color-ink: #100f0b;
  --color-ink-2: #1b1a14;

  --color-primary: #e08a2e;
  --color-primary-hover: #f0a047;
  --color-primary-active: #f6b366;
  --color-primary-soft: #2e2616;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 44px rgba(0,0,0,.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #16150f; --color-surface: #1d1b15; --color-surface-2: #232118;
    --color-surface-offset: #211f17; --color-border: #36332a; --color-divider: #2a281f;
    --color-text: #ece8dd; --color-text-muted: #9c9583; --color-text-faint: #6a6456;
    --color-text-inverse: #16150f; --color-ink: #100f0b; --color-ink-2: #1b1a14;
    --color-primary: #e08a2e; --color-primary-hover: #f0a047; --color-primary-active: #f6b366;
    --color-primary-soft: #2e2616;
  }
}

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

html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  min-height: 100dvh; line-height: 1.6;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-bg);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.08; font-family: var(--font-display); font-weight: 600; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

a, button, [role="button"], input, textarea, select {
  transition: color var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

::selection { background: var(--color-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--color-ink); color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5); border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--content-default); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-4);
}
.eyebrow.light { color: var(--color-primary-active); }
[data-theme="dark"] .eyebrow.light, :root:not([data-theme]) .eyebrow.light { color: var(--color-primary); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  letter-spacing: .01em; padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md); border: 1.5px solid transparent;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--color-text-inverse); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-block { width: 100%; padding-block: var(--space-4); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: var(--radius-md); color: var(--color-text); border: 1.5px solid var(--color-border);
}
.icon-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.site-header.scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 72px; }

.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--color-text); }
.brand-logo {
  width: 64px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}
.brand-mark { color: var(--color-text); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.brand-sub { font-size: .62rem; font-weight: 700; letter-spacing: .26em; color: var(--color-text-muted); margin-top: 3px; }

.nav ul { display: flex; gap: var(--space-6); }
.nav a { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); position: relative; }
.nav a:hover { color: var(--color-text); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--color-primary); transition: width var(--transition-interactive); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.menu-toggle { display: none; }

.mobile-nav { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.mobile-nav ul { display: flex; flex-direction: column; padding: var(--space-4) 0; }
.mobile-nav a { display: block; padding: var(--space-3) clamp(1.25rem,4vw,3rem); font-weight: 500; font-size: var(--text-base); }
.mobile-nav a:hover { background: var(--color-surface-offset); color: var(--color-primary); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: clamp(540px, 82vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 68% 37%, rgba(255,188,73,.22) 0%, rgba(255,188,73,0) 28%),
    linear-gradient(180deg, rgba(5,5,4,.18) 0%, rgba(5,5,4,.20) 35%, rgba(5,5,4,.70) 78%, rgba(5,5,4,.94) 100%),
    linear-gradient(90deg, rgba(5,5,4,.82) 0%, rgba(5,5,4,.42) 48%, rgba(5,5,4,.12) 100%);
}
.hero-content { position: relative; z-index: 1; color: #f5f1e8; padding-block: var(--space-16); }
.experience-badge {
  position: absolute;
  right: clamp(1rem, 3vw, 3rem);
  bottom: clamp(8rem, 19vh, 12rem);
  width: min(220px, 26vw);
  padding: var(--space-5);
  border: 1px solid rgba(255,207,138,.38);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(7,7,5,.72), rgba(67,43,13,.50));
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
}
.experience-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.04em;
  color: #ffbd4d;
}
.experience-copy {
  display: block;
  max-width: 12ch;
  margin-top: var(--space-3);
  color: #f4ead9;
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-content .eyebrow { color: #ffce8a; }
.hero h1 {
  font-family: var(--font-body);
  font-size: var(--text-hero);
  font-weight: 900;
  letter-spacing: 0;
  word-spacing: .08em;
  line-height: .98;
  color: #fbf8f1;
}
.hero h1 .accent { color: var(--color-primary); }
[data-theme="dark"] .hero h1 .accent, :root:not([data-theme]) .hero h1 .accent { color: #f0a047; }
.hero-lede { max-width: 56ch; margin-top: var(--space-5); font-size: var(--text-lg); color: #e4ddcf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }

.hero-stats { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(245,241,232,.22); }
.hero-stats li { display: flex; flex-direction: column; }
.stat-k { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fbf8f1; }
.stat-v { font-size: var(--text-xs); letter-spacing: .04em; color: #c9c1b1; margin-top: 2px; }

/* ---------- INTRO STRIP ---------- */
.strip { background: var(--color-ink); color: var(--color-text-inverse); }
[data-theme="light"] .strip { color: #f5f1e8; }
.strip-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; padding-block: clamp(3rem,6vw,5.5rem); }
.strip-statement { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.18; color: #f5f1e8; }
.strip-body { color: #c4bdac; max-width: 54ch; }

/* ---------- SECTIONS ---------- */
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.section-head { max-width: 64ch; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-2xl); letter-spacing: -.01em; }
.section-sub { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--text-lg); }

/* ---------- SERVICES ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.service-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px;
  background: var(--color-primary); transform: scaleY(0); transform-origin: top;
  transition: transform var(--transition-interactive);
}
.service-card:hover { border-color: var(--color-primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: grid; place-items: center; background: var(--color-primary-soft);
  color: var(--color-primary); margin-bottom: var(--space-5);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.service-card p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.6; }

/* ---------- FEATURE ---------- */
.feature-section { background: var(--color-surface-offset); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.feature-grid + .feature-grid { margin-top: clamp(3rem,6vw,5rem); }
.feature-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.feature-copy h2 { font-size: var(--text-2xl); margin: var(--space-2) 0 var(--space-4); }
.feature-copy p { color: var(--color-text-muted); }
.feature-grid.reverse .feature-figure { order: 2; }
@media (max-width: 860px) { .feature-grid.reverse .feature-figure { order: 0; } }

.check-list { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.check-list li { position: relative; padding-left: var(--space-8); font-size: var(--text-sm); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  border-radius: var(--radius-sm); background: var(--color-primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c06a14' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* ---------- AREA ---------- */
.area-section { position: relative; color: #f5f1e8; padding-block: clamp(4rem,9vw,8rem); }
.area-media { position: absolute; inset: 0; z-index: 0; }
.area-media img { width: 100%; height: 100%; object-fit: cover; }
.area-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,11,8,.86) 0%, rgba(12,11,8,.62) 50%, rgba(12,11,8,.30) 100%); }
.area-content { position: relative; z-index: 1; max-width: 620px; }
.area-content h2 { font-size: var(--text-2xl); color: #fbf8f1; }
.area-lede { margin-top: var(--space-4); color: #dcd5c6; font-size: var(--text-lg); }
.area-tags { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.area-tags li {
  font-size: var(--text-sm); font-weight: 500; padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(245,241,232,.32); border-radius: var(--radius-full); color: #f0ebde;
}

/* ---------- PROCESS ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
.process-step { position: relative; padding-top: var(--space-6); border-top: 2px solid var(--color-border); }
.process-step:hover { border-color: var(--color-primary); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--color-primary); display: block; margin-bottom: var(--space-3); }
.process-step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.process-step p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------- TRUST ---------- */
.trust-section { background: var(--color-ink); color: #f5f1e8; }
.trust-section .section-head h2 { color: #fbf8f1; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.trust-card { background: var(--color-ink-2); border: 1px solid rgba(245,241,232,.12); border-radius: var(--radius-lg); padding: var(--space-6); }
.trust-card:hover { border-color: var(--color-primary); }
.trust-card h3 { font-size: var(--text-lg); color: #fbf8f1; margin-bottom: var(--space-3); }
.trust-card p { color: #b6af9e; font-size: var(--text-sm); }
.pull-quote {
  margin-top: clamp(2.5rem,5vw,4rem); text-align: center; max-width: 28ch; margin-inline: auto;
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); color: #fbf8f1; line-height: 1.25;
}
.pull-quote cite { display: block; margin-top: var(--space-4); font-family: var(--font-body); font-style: normal; font-size: var(--text-sm); font-weight: 500; color: var(--color-primary); }
[data-theme="light"] .pull-quote cite { color: #f0a047; }

/* ---------- QUOTE ---------- */
.quote-section { background: var(--color-surface-offset); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem,5vw,5rem); align-items: start; }
.quote-intro h2 { font-size: var(--text-2xl); margin: var(--space-2) 0 var(--space-4); }
.quote-intro p { color: var(--color-text-muted); }
.contact-list { margin-top: var(--space-8); display: grid; gap: var(--space-4); }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.contact-label { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-faint); font-weight: 700; }
.contact-list a { color: var(--color-primary); font-weight: 700; }
.contact-list a:hover { text-decoration: underline; }

.quote-form { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(1.5rem,3vw,2.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 700; }
.field .opt { font-weight: 400; color: var(--color-text-faint); }
.field input, .field select, .field textarea {
  background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); font-size: var(--text-sm); resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px var(--color-primary-soft); }
.form-actions { display: flex; flex-direction: column; gap: var(--space-3); }
.form-note { font-size: var(--text-xs); color: var(--color-text-faint); text-align: center; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--color-ink); color: #cdc6b6; padding-top: clamp(3rem,6vw,5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--space-8); padding-bottom: var(--space-12); }
.footer-brand svg { color: #f5f1e8; margin-bottom: var(--space-4); }
.footer-name { font-family: var(--font-display); font-weight: 700; letter-spacing: .05em; color: #f5f1e8; }
.footer-tag { font-size: var(--text-sm); color: #968f7f; margin-top: var(--space-2); max-width: 32ch; }
.footer-heading { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: #7d7666; font-weight: 700; margin-bottom: var(--space-4); }
.footer-nav ul { display: grid; gap: var(--space-2); }
.footer-nav a, .footer-email { font-size: var(--text-sm); color: #cdc6b6; }
.footer-nav a:hover, .footer-email:hover { color: var(--color-primary); }
.footer-email { font-weight: 700; color: var(--color-primary); }
.footer-region { font-size: var(--text-sm); color: #968f7f; margin-top: var(--space-3); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); padding-block: var(--space-6); border-top: 1px solid rgba(245,241,232,.1); font-size: var(--text-xs); color: #7d7666; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .service-grid, .trust-grid, .process-list { grid-template-columns: repeat(2, 1fr); }
  .experience-badge { right: var(--space-5); width: 190px; }
}
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .strip-grid, .feature-grid, .quote-grid { grid-template-columns: 1fr; }
  .feature-figure img { aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .experience-badge {
    position: static;
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding: var(--space-3) var(--space-4);
  }
  .experience-copy { max-width: 18ch; margin-top: 0; }
}
@media (max-width: 560px) {
  .service-grid, .trust-grid, .process-list, .quote-form { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--space-5); }
  .brand-logo { width: 52px; height: 32px; }
  .experience-number { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
