/*
Theme Name: Under Slab Tunneling Services 2027
Theme URI: https://underslab-2027.example
Author: Dynamic Digital
Description: Cross-section trenchless slab repair landing page
Version: 1.0
*/

@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-style: normal; src: url('assets/fonts/bigshoulders-900.ttf') format('truetype'); font-display: swap; }
  @font-face { font-family: 'Archivo'; font-weight: 400; font-style: normal; src: url('assets/fonts/archivo-400.ttf') format('truetype'); font-display: swap; }
  @font-face { font-family: 'Archivo'; font-weight: 700; font-style: normal; src: url('assets/fonts/archivo-700.ttf') format('truetype'); font-display: swap; }
  @font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; src: url('assets/fonts/plexmono-400.ttf') format('truetype'); font-display: swap; }
  @font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; src: url('assets/fonts/plexmono-500.ttf') format('truetype'); font-display: swap; }

  :root {
    --caliche: #E8E1D3;
    --caliche-elevated: #DED5C2;
    --panel: #F6F1E6;
    --substrate: #1B1712;
    --ink: #24201A;
    --ink-soft: #564C3D;
    --ink-faint: #83775F;
    --copper: #A85A21;
    --copper-strong: #C6702B;
    --lumen: #C77E1D;
    --line: rgba(36,32,26,0.18);
    --chip-bg: rgba(36,32,26,0.06);
    --bg: var(--caliche);
    --bg-elevated: var(--caliche-elevated);
    --chalk: #EFE7D8;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #1B1712;
      --bg-elevated: #251F17;
      --panel: #211B14;
      --ink: #EFE7D8;
      --ink-soft: #C6BAA3;
      --ink-faint: #8F836A;
      --copper: #E08A3E;
      --copper-strong: #FFC857;
      --lumen: #FFC857;
      --line: rgba(239,231,216,0.14);
      --chip-bg: rgba(239,231,216,0.07);
    }
  }
  :root[data-theme="dark"] {
    --bg: #1B1712; --bg-elevated: #251F17; --panel: #211B14; --ink: #EFE7D8; --ink-soft: #C6BAA3; --ink-faint: #8F836A;
    --copper: #E08A3E; --copper-strong: #FFC857; --lumen: #FFC857; --line: rgba(239,231,216,0.14); --chip-bg: rgba(239,231,216,0.07);
  }
  :root[data-theme="light"] {
    --bg: #E8E1D3; --bg-elevated: #DED5C2; --panel: #F6F1E6; --ink: #24201A; --ink-soft: #564C3D; --ink-faint: #83775F;
    --copper: #A85A21; --copper-strong: #C6702B; --lumen: #C77E1D; --line: rgba(36,32,26,0.18); --chip-bg: rgba(36,32,26,0.06);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Archivo', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

  h1, h2, h3 { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; margin: 0; line-height: 0.95; }
  .mono { font-family: 'IBM Plex Mono', monospace; }
  .eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-strong); font-weight: 500; }

  header { position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
  .nav-row { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem); gap: 1rem; }
  .logo { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 1.05rem; line-height: 0.95; letter-spacing: 0.01em; }
  .logo span { display: block; color: var(--copper-strong); font-size: 0.62em; }
  nav.links { display: flex; gap: 1.75rem; font-size: 0.86rem; font-weight: 700; font-family: 'Archivo', sans-serif; }
  nav.links a { text-decoration: none; opacity: 0.78; }
  nav.links a:hover, nav.links a:focus-visible { opacity: 1; }
  .btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 4px; padding: 0.7rem 1.3rem; font-weight: 700; font-size: 0.86rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: 'Archivo', sans-serif; }
  .btn-primary { background: var(--copper-strong); color: #1B1712; }
  .btn-primary:hover { background: var(--copper); }
  .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--lumen); outline-offset: 3px; }
  @media (max-width: 760px) { nav.links { display: none; } }

  /* cross-section hero */
  .cross-section { display: flex; flex-direction: column; }
  .surface-band { background: var(--caliche-elevated); padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.75rem, 6vw, 4rem); position: relative; }
  .roofline { width: 84px; height: 40px; margin-bottom: 1.25rem; opacity: 0.85; }
  .surface-copy { max-width: 46ch; }
  .surface-copy .lede { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.15rem; margin-top: 0.5rem; }
  .grade-line-wrap { position: relative; height: 0; }
  .grade-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--copper-strong) 0 10px, transparent 10px 18px); z-index: 5; }
  .grade-tag { position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); top: -11px; background: var(--copper-strong); color: #1B1712; font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.08em; padding: 0.25rem 0.55rem; border-radius: 3px; z-index: 6; }
  .below-grade { position: relative; min-height: min(72vh, 640px); overflow: hidden; }
  .below-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: url(#duotone-tunnel); }
  .below-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,11,7,0.72) 0%, rgba(15,11,7,0.28) 30%, rgba(15,11,7,0.62) 100%); }
  .below-content { position: relative; z-index: 2; padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem); max-width: 1180px; margin: 0 auto; }
  .below-content h1 { color: var(--chalk); font-size: clamp(2.3rem, 6.6vw, 4.6rem); max-width: 16ch; }
  .below-sub { color: #DED2BC; max-width: 48ch; margin-top: 1.4rem; font-family: 'Archivo', sans-serif; font-size: 1.05rem; }
  .below-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.1rem; }
  .below-ctas .ghost-link { color: var(--chalk); text-decoration: none; font-weight: 700; font-size: 0.9rem; border-bottom: 1px solid rgba(239,231,216,0.4); padding-bottom: 2px; font-family: 'Archivo', sans-serif; }

  .spec-strip { background: var(--bg-elevated); border-bottom: 1px solid var(--line); }
  .spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
  .spec-item { padding: clamp(1.5rem, 4vw, 2.1rem) clamp(1rem, 3vw, 1.6rem); border-left: 1px solid var(--line); }
  .spec-item:first-child { border-left: none; }
  .spec-value { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: clamp(1.35rem, 3.4vw, 2rem); color: var(--copper-strong); font-variant-numeric: tabular-nums; }
  .spec-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.4rem; }
  @media (max-width: 760px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } .spec-item:nth-child(odd) { border-left: none; } }

  section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
  .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
  .section-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
  .section-head p { color: var(--ink-soft); max-width: 42ch; font-family: 'Archivo', sans-serif; text-transform: none; }
  @media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 1rem; } }

  .method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .method-step { background: var(--panel); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.85rem; }
  .method-num { font-family: 'IBM Plex Mono', monospace; color: var(--copper-strong); font-size: 0.85rem; }
  .method-step h3 { font-size: 1.35rem; }
  .method-step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; font-family: 'Archivo', sans-serif; text-transform: none; }
  @media (max-width: 800px) { .method-grid { grid-template-columns: 1fr; } }

  .why { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
  .why-photo { border-radius: 4px; overflow: hidden; aspect-ratio: 4/5; }
  .why-photo img { width: 100%; height: 100%; object-fit: cover; filter: url(#duotone-tunnel); }
  .why-copy h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 1.1rem; }
  .why-copy p { color: var(--ink-soft); max-width: 52ch; font-family: 'Archivo', sans-serif; text-transform: none; }
  @media (max-width: 800px) { .why { grid-template-columns: 1fr; } .why-photo { order: -1; } }

  .coverage { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .chip { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; padding: 0.5rem 0.9rem; border-radius: 3px; background: var(--chip-bg); border: 1px solid var(--line); }

  .cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
  .cta-grid h2 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 12ch; }
  .contact-card { background: var(--panel); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; }
  .contact-row { display: flex; flex-direction: column; gap: 0.3rem; }
  .contact-row .k { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
  .contact-row .v { font-family: 'IBM Plex Mono', monospace; font-size: 1.05rem; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: 3px; padding: 0.5rem 0.7rem; background: var(--chip-bg); }
  @media (max-width: 800px) { .cta-grid { grid-template-columns: 1fr; } }

  footer { border-top: 1px solid var(--line); padding: 2.25rem 0; }
  .footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--ink-faint); font-family: 'Archivo', sans-serif; }

  /* lead form + Talk-to-Alex widget (2026-08-13) */
  .header-cta { display: flex; align-items: center; gap: 1.25rem; }
  .header-phone { font-size: 0.86rem; color: var(--copper-strong); text-decoration: none; font-weight: 500; letter-spacing: 0.04em; }
  .btn-outline { background: transparent; color: inherit; border: 1px solid var(--copper-strong); }
  .below-ctas .btn-outline { color: var(--chalk); }
  .btn-outline:hover { background: color-mix(in srgb, var(--copper-strong) 14%, transparent); }
  .btn-block { width: 100%; justify-content: center; }
  .lead-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.25rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .form-row.full { grid-template-columns: 1fr; }
  @media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
  .lead-form input, .alex-phone-row input { font-family: 'Archivo', sans-serif; font-size: 0.92rem; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 3px; background: var(--chip-bg); color: var(--ink); width: 100%; box-sizing: border-box; }
  .lead-form input::placeholder, .alex-phone-row input::placeholder { color: var(--ink-faint); }
  .lead-form input:focus, .alex-phone-row input:focus { outline: 2px solid var(--copper-strong); outline-offset: 1px; }
  .form-status, .alex-status { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--copper-strong); margin: 0.35rem 0 0; min-height: 1em; }
  .talk-to-alex { border-top: 1px dashed var(--line); padding-top: 1rem; }
  .alex-phone-row { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
  .alex-phone-row[hidden] { display: none; }
  .contact-row .v-link { text-decoration: none; color: var(--copper-strong); font-weight: 500; }
  footer a { color: inherit; }
