/* ════════════════════════════════════════════════════════════════════════════
   FINISHING EDGE DRYWALL — site styles
   Lethbridge, Alberta · https://finishingedgedrywall.org/

   Plain CSS, no framework, no build step. Edit this file and refresh.

   Layout
     1.  Tokens (brand colours, type, spacing)  ← change brand colours here
     2.  Reset & base
     3.  Buttons & small parts
     4.  Header / navigation
     5.  Hero + CSS-only plaster textures
     6.  Sections, cards, reviews
     7.  Gallery tiles (photo slots)
     8.  Contact & form
     9.  Footer
     10. Motion (opt-in, never load-bearing)
     11. Responsive
     12. Print

   ── CACHING NOTE ────────────────────────────────────────────────────────────
   _headers gives css/ and js/ `max-age=3600, must-revalidate` (one hour) rather
   than the year-long `immutable` used for assets/. That is deliberate and it is
   the one place this project is NOT shaped like the reference site.

   The reference site inlines a content hash into the css/js FILENAMES
   (style.<hash>.css) at build time, which is what makes a long cache safe. This
   site has no build step by design, so there is no hash to put in the name. With
   no hash, a long cache means a returning visitor keeps the old stylesheet and a
   colour change appears to do nothing. One hour + must-revalidate means a deploy
   is visible on the next refresh, and it still keeps the request off the network
   for the duration of a visit. If you ever want the year-long cache, add a
   content hash to the filename by hand and update index.html to match.

   ── NO EXTERNAL REQUESTS ────────────────────────────────────────────────────
   The CSP in _headers is `default-src 'none'`. There are therefore, by
   construction, no @font-face rules pointing at a CDN, no absolute remote URL, no
   icon font, and no analytics. Type is set in a system stack; every graphic is
   CSS or inline SVG. If you add anything fetched from another origin, the page
   will break rather than degrade — widen the CSP first, and ask whether you want
   the third party at all.
   ════════════════════════════════════════════════════════════════════════════ */

/* ════════════════════════ 1. TOKENS ════════════════════════ */
:root {
  /* Palette. The brand is drywall-and-daylight: troweled plaster greys and whites
     with a single warm accent taken from the grey-gold of a brass trowel. */
  --navy:        #1d2a36;   /* graphite navy — headings, dark bands, footer */
  --navy-soft:   #2a3a4a;   /* lifted navy for gradients and hover */
  --navy-line:   #3c4d5e;   /* hairlines on dark surfaces */
  --slate:       #55677a;   /* secondary type on light. 5.72:1 on --page */
  --slate-light: #8797a6;   /* secondary type on dark. 5.07:1 on --navy */
  --page:        #fbfaf8;   /* page — a warm off-white, like unpainted board */
  --alt:         #f2efe9;   /* alternating band surface */
  --surface:     #ffffff;   /* cards */
  --tint:        #eef1f4;   /* cool plaster tint for card visuals */
  --line:        #e2ded6;   /* hairlines on light */
  --line-cool:   #d7dde3;   /* hairlines on the cool tints */
  --ink:         #16202a;   /* body copy. 14.9:1 on --page */
  --muted:       #6b7280;   /* captions and small print. 5.05:1 on --page */

  /* Accent. --gold is used for fills behind dark text only; --gold-ink is the
     readable form of the same hue for gold TEXT on light surfaces (5.02:1). */
  --gold:        #e8bc4d;   /* trowel brass */
  --gold-deep:   #c9a227;   /* hover / borders */
  --gold-ink:    #8a6b12;   /* gold-toned text that has to pass contrast */
  --gold-wash:   #fbf3dd;   /* faint gold surface */

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 1px 2px rgba(22, 32, 42, .05), 0 12px 32px rgba(22, 32, 42, .07);
  --shadow-lg:   0 2px 4px rgba(22, 32, 42, .06), 0 24px 60px rgba(22, 32, 42, .12);
  --maxw:        1080px;
  --nav-h:       68px;

  /* One system stack for the whole site: no web font, no render-blocking request.
     Ordered so Windows/macOS/Linux each land on something decent, with the metric
     fallbacks last. */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Liberation Sans", "DejaVu Sans", sans-serif;

  /* The grain overlay. A tiny feTurbulence SVG held in a data: URL — one texture
     for the whole page, cached, and nothing is fetched. It is applied at a low
     opacity through .grain::after, which is what keeps a `filter` off every
     element (a blurred SVG filter on a full-width box is genuinely expensive). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ════════════════════════ 2. RESET & BASE ════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The header is sticky, so a jump link would otherwise land under it. */
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--navy-soft); }
a:hover { color: var(--slate); }
h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }
p + p { margin-top: .85em; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.grid { display: grid; gap: 22px; }

/* Small inline icon used next to phone / email / address lines. */
.ico { width: 1.05em; height: 1.05em; flex: 0 0 auto; vertical-align: -.15em; }

/* Keyboard focus must stay obvious — nothing here removes an outline without
   replacing it with something at least as visible. */
:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ════════════════════════ 3. BUTTONS & SMALL PARTS ════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16.5px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-block { display: flex; width: 100%; }

.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold-deep); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }

.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(29, 42, 54, .35); }
.btn-ghost:hover { background: rgba(29, 42, 54, .07); color: var(--navy); border-color: var(--navy); }

/* On the dark bands the ghost button has to invert or it disappears. */
.section-dark .btn-ghost, .hero .btn-ghost {
  color: #fff; border-color: rgba(255, 255, 255, .45);
}
.section-dark .btn-ghost:hover, .hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff;
}

/* ════════════════════════ 4. HEADER / NAV ════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 248, .92);
  /* No backdrop-filter on purpose: it forces a composited layer over the whole
     page and janks scrolling on mid-range Android for a barely-visible effect. */
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
/* The real badge. It carries its own light background, so it is presented as a
   rounded square instead of being knocked out. `flex: 0 0 auto` stops the flex
   row from squashing it on a narrow screen. */
.brand-logo {
  width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto;
  background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.brand-name {
  font-weight: 800; font-size: 18.5px; letter-spacing: -.015em; color: var(--navy);
  white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--gold-ink); }

.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a {
  color: var(--navy); text-decoration: none; font-size: 16px; font-weight: 600;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--gold-ink); }
.site-nav .nav-cta {
  display: inline-flex; align-items: center; gap: .45em;
  background: var(--navy); color: #fff; padding: 10px 17px; border-radius: 999px;
  font-weight: 700; white-space: nowrap;
}
.site-nav .nav-cta:hover { background: var(--navy-soft); color: var(--gold); }

/* Hamburger: three bars drawn with a background gradient rather than a glyph, so
   it cannot render as a tofu box on a system without the right symbol font. */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 10px; cursor: pointer;
  position: relative; flex: 0 0 auto;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 50%; width: 18px; height: 2px; border-radius: 2px;
  background: var(--navy); transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -6px; transform: none; }
.nav-toggle-bar::after  { content: ""; left: 0; top: 6px; transform: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-6px) rotate(-45deg); }

/* ════════════════════════ 5. HERO ════════════════════════ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 92px 0 84px;
  color: #fff;
  background:
    radial-gradient(900px 420px at 78% -12%, rgba(232, 188, 77, .22), transparent 62%),
    radial-gradient(700px 380px at 8% 108%, rgba(120, 150, 180, .18), transparent 60%),
    linear-gradient(168deg, #24333f 0%, var(--navy) 52%, #15212b 100%);
}

/* ── The CSS-only plaster texture ────────────────────────────────────────────
   Three stacked repeating gradients stand in for trowel sweeps, plus one shared
   turbulence grain. Everything is generated by the browser: no photo, no SVG
   file, no request. It is sized in percentages and rem so it scales with the
   hero instead of tiling into an obvious wallpaper. */
.hero-texture {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image:
    /* long diagonal sweeps */
    repeating-linear-gradient(112deg,
      rgba(255, 255, 255, .055) 0px, rgba(255, 255, 255, .055) 2px,
      transparent 2px, transparent 26px),
    /* finer cross-sweeps */
    repeating-linear-gradient(21deg,
      rgba(255, 255, 255, .035) 0px, rgba(255, 255, 255, .035) 1px,
      transparent 1px, transparent 14px),
    /* broad soft bands, like a wall lit at an angle */
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .04) 0px, transparent 9rem, rgba(255, 255, 255, .03) 18rem);
}
.hero-texture::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .16; mix-blend-mode: overlay;
}

/* The decorative trowel. Sits behind the copy, tucked to the right, and is
   clipped by the hero so it never causes a horizontal scrollbar. */
.hero-art {
  position: absolute; z-index: -1; pointer-events: none;
  right: -40px; bottom: -30px; width: min(560px, 62vw);
  color: rgba(255, 255, 255, .5);
  opacity: .5;
}
.hero-art svg { width: 100%; height: auto; }

/* ── Photo present ───────────────────────────────────────────────────────────
   The hero now ships WITH a real photograph. These rules are what the :has()
   block further down used to do, kept here as plain rules so the behaviour does
   not depend on :has() support.

   Layering, from back to front:
     .hero-media          z-index -2   the photograph
     .hero-texture/art    z-index -1   CSS fallback, faded right down
     .hero-inner          z-index auto the copy
   The fallback stays in the DOM rather than being deleted, because it is free
   insurance: if the photo 404s or is blocked, the hero is still a designed
   surface instead of a dark rectangle with a broken-image icon. */
.hero-texture { opacity: .22; }
.hero-art { display: none; }

/* Phones see a narrower slice of a 4:3 frame, so bias the crop even further
   toward the ceiling and the far wall — that is where the finished work is. */
@media (max-width: 700px) {
  .hero-media img { object-position: center 32%; }
}

.hero-inner { position: relative; max-width: 720px; }

.hero-kicker {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  color: var(--gold); margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.04; letter-spacing: -.025em; margin-bottom: 20px;
  /* Deliberately NO `filter` here. A filter on an ancestor of background-clipped
     text is the combination WebKit renders unreliably — the clip can fail, and
     because the glyphs are transparent the whole headline then vanishes. It was
     buying very little anyway: the copy sits on the dark end of the photograph,
     not over the bright windows. Not worth a failure mode that only appears on
     phones. */
}

/* ── The headline fills: two words, two metals ───────────────────────────────
   "Finishing Edge" is polished plaster-white — a cool highlight falling to a
   grey base, so it reads as a surface catching light rather than flat #fff.
   "Drywall" is the brand's trowel brass, shaded top to bottom like a blade.

   Two things make this safe everywhere, and both were wrong before:

   1. `-webkit-text-fill-color: transparent`, NOT `color: transparent`. The
      solid `color` on each rule stays as a real, visible fallback: an engine
      that does not understand text-fill-color ignores it and paints that
      colour. With `color: transparent` there was nothing to fall back to.

   2. No @supports gate. The previous version wrapped all of this in
      @supports (background-clip: text), which evaluated TRUE on desktop and
      FALSE on the phone — so phones dropped the brass and the gloss entirely
      and rendered flat white. Clipping a background to glyphs is universal
      enough now that the query costs far more than it protects. */
.hero-title .hero-name,
.hero-title .hl { position: relative; display: inline-block; }

.hero-title .hero-name {
  color: #ffffff;
  background-image: linear-gradient(176deg, #ffffff 0%, #f7fafc 46%, #d8e2ea 82%, #c6d2de 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .hl {
  color: var(--gold);
  background-image: linear-gradient(176deg, #fff3c4 0%, var(--gold) 44%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The accent under "Drywall": one crisp trowel pass — and, on a company called
   Finishing Edge, literally the finished edge of the word. It is a thin rule
   sitting clear BELOW the letters, not a bar behind them: the word is brass now,
   and a thick stroke overlapping brass glyphs muddies both. Tapered at each end,
   skewed and very slightly rotated so it reads hand-drawn rather than ruled. */
.hero-title .hl::after {
  content: ""; position: absolute;
  left: -.02em; right: -.02em; bottom: -.075em; height: .085em;
  background: linear-gradient(90deg,
    rgba(232, 188, 77, .05) 0%, var(--gold) 8%, #ffe9a8 38%,
    var(--gold) 70%, rgba(201, 162, 39, .08) 100%);
  border-radius: 999px;
  transform: rotate(-.7deg) skewX(-7deg); transform-origin: left center;
  z-index: -1;
}

/* One slow sheen raking across the brass word as the page settles, like light
   moving over a polished blade. A single pass, never a loop — a looping shimmer
   on a headline is a distraction, and it is precisely what reduced-motion users
   are asking not to receive.

   The trick that makes it safe: the sheen layer is 300% wide with the highlight
   at its midpoint, and BOTH animation extremes land on plain brass. So the
   resting state, the end state and the no-animation state are identical, and a
   browser that never runs the animation still shows a correct fill.

   Wide screens only, deliberately. This is the most exotic declaration in the
   file — a 300%-wide second background layer over clipped text — and it is the
   one piece with no visual purpose on a phone, where the word already fills a
   third of the screen. Phones get the clean brass gradient and skip the
   machinery. */
@media (prefers-reduced-motion: no-preference) and (min-width: 701px) {
  .hero-title .hl {
    background-image:
      linear-gradient(100deg,
        rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, .9) 50%,
        rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%),
      linear-gradient(176deg, #fff3c4 0%, var(--gold) 44%, var(--gold-deep) 100%);
    background-size: 300% 100%, 100% 100%;
    background-position: 0% 0, 0 0;
    background-repeat: no-repeat, no-repeat;
    animation: hero-sheen 4.5s cubic-bezier(.35, 0, .25, 1) 1s 1;
  }
}
@keyframes hero-sheen {
  from { background-position: 100% 0, 0 0; }
  to   { background-position: 0% 0, 0 0; }
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px); color: #d8e0e8; max-width: 34em;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-phone { font-size: 17px; color: #d8e0e8; display: flex; align-items: center; gap: .5em; }
.hero-phone a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); }
.hero-phone a:hover { color: var(--gold); }

/* ── Hero photo frame ────────────────────────────────────────────────────────
   <figure class="hero-media"> fills the hero and the <img> inside it covers.
   object-fit:cover crops rather than stretches, and object-position is set above
   centre (see the note in the hero block) because these are construction photos
   where the work that matters is in the upper half of the frame. */
.hero-media { position: absolute; inset: 0; z-index: -2; display: block; margin: 0; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
/* Legibility ramp over the photo. A separate layer, deliberately: the photograph
   itself is never darkened in the file, so it can be swapped without touching
   this, and the ramp can be retuned without re-exporting anything.

   The ramp is biased to the LEFT rather than being a flat scrim, because the
   headline and body copy sit on the left and the subject of the photograph — the
   taped ceiling line, the arch, the window wall — is on the right. Darkening the
   whole frame evenly was the first attempt and it buried the work being sold.
   It also hides the upscaling softness of a 960px original on a large display. */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(21, 33, 43, .90) 0%, rgba(21, 33, 43, .72) 46%,
      rgba(21, 33, 43, .38) 100%),
    linear-gradient(180deg,
      rgba(21, 33, 43, .46) 0%, rgba(21, 33, 43, .10) 42%, rgba(21, 33, 43, .72) 100%);
}
/* On a phone the copy spans the full width, so an even scrim is the only thing
   that keeps the whole block readable — there is no "right side" to protect. */
@media (max-width: 700px) {
  .hero-media::after {
    background: linear-gradient(180deg,
      rgba(21, 33, 43, .68) 0%, rgba(21, 33, 43, .64) 45%, rgba(21, 33, 43, .86) 100%);
  }
}

/* ════════════════════════ FACT BAND ════════════════════════ */
.fact-band { background: var(--navy); color: #fff; border-top: 1px solid var(--navy-line); }
.fact-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 26px 22px; text-align: center;
}
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-num { font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.fact-label { font-size: 14.5px; color: var(--slate-light); }

/* ════════════════════════ 6. SECTIONS, CARDS, REVIEWS ════════════════════════ */
.section { padding: 78px 0; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--navy); color: #e6ebf0; }
.section-dark a { color: var(--gold); }
.section-dark a:hover { color: #fff; }

.section-kicker {
  font-size: 13.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em;
  color: var(--gold-ink); margin-bottom: 10px;
}
.section-dark .section-kicker, .hero .section-kicker { color: var(--gold); }
.section-title { font-size: clamp(26px, 3.7vw, 38px); margin-bottom: 14px; color: var(--navy); }
.section-dark .section-title { color: #fff; }
.section-lead { font-size: 18px; color: var(--slate); max-width: 46em; margin-bottom: 34px; }
.section-dark .section-lead { color: #c3ced8; }

/* --- service cards --- */
.services-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── Card photos ─────────────────────────────────────────────────────────────
   Each card now carries a real job photo. The frame is a fixed height so the
   three cards stay level regardless of what the images contain; object-fit:cover
   crops rather than distorts. The grain overlay is dropped (::after: none) —
   over a photograph it just looks like dirt on the lens.

   To swap a card photo: change the src/srcset in index.html. Do not overwrite
   the file — /assets/* is cached immutable for a year. */
.card-visual {
  position: relative; height: 235px; border-bottom: 1px solid var(--line-cool);
  overflow: hidden; background: var(--tint);
}
/* The source photos are portrait (3:4) and this frame is landscape, so the crop
   is severe whatever we do. 235px tall shows enough of each room to read as a
   real job rather than a band of ceiling; object-position sits below centre
   because the subject (fireplace, surround, ceiling line) is in the lower
   two-thirds of these frames. */
.card-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 72%;
}

.card-body { padding: 22px 22px 26px; }
.card-body h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.card-body p { color: var(--slate); font-size: 16.5px; }

/* --- about --- */
.about-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 46px; align-items: start; }
.about-copy p { color: var(--slate); }
.ticks { margin: 20px 0 4px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 30px; color: var(--navy); font-weight: 600; font-size: 16.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 8px;
  border-left: 2.5px solid var(--gold-deep); border-bottom: 2.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}
.about-cta { margin-top: 26px; }

/* The about-column photo: a real finished-room shot with a caption bar, rather
   than a decorative plate. aspect-ratio reserves the space from the 3:4 files so
   nothing jumps as the image arrives. */
.plate {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-cool); background: var(--tint);
  box-shadow: var(--shadow); margin: 0;
}
.plate img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4;
  object-fit: cover; object-position: center 42%;
}
.plate figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px 13px;
  background: linear-gradient(180deg, rgba(21, 33, 43, 0) 0%, rgba(21, 33, 43, .85) 58%);
}
.plate-label { font-size: 16.5px; font-weight: 700; color: #fff; }
.plate-note { font-size: 14.5px; color: #c9d3dc; }

.side-points { display: grid; gap: 18px; margin-top: 26px; }
.side-point {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.side-point h3 { font-size: 17px; color: var(--navy); margin-bottom: 5px; }
.side-point p { font-size: 15.5px; color: var(--slate); }

/* --- reviews ---
   `columns` rather than grid: the seven reviews are wildly different lengths, and
   a masonry-ish column flow keeps them from leaving big holes. One column on a
   phone, where a quote wants the full width anyway. */
.reviews-grid { display: block; columns: 3; column-gap: 22px; }
.review {
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--navy-line); border-radius: var(--radius);
  padding: 22px 22px 18px; margin-bottom: 22px;
}
.review blockquote { position: relative; }
/* Decorative opening quote, drawn as a glyph in a pseudo-element so it is not
   read out by a screen reader as part of the testimonial. */
.review blockquote::before {
  content: "\201C"; position: absolute; left: -2px; top: -26px;
  font-size: 58px; line-height: 1; color: var(--gold); opacity: .35;
  pointer-events: none;
}
.review blockquote p { color: #dbe3ea; font-size: 16.5px; }
.review figcaption {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--navy-line);
  font-weight: 700; font-size: 15.5px; color: #fff; font-style: normal;
}
/* Attribution block: initials only. The original page used one shared generic
   "user" avatar image for every review, which is not a real photo of anybody —
   initials are honest and cost no request. */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--gold); color: var(--navy);
  font-size: 13.5px; font-weight: 800; letter-spacing: .02em;
}

/* --- plain three-up (painting & remodeling) --- */
.three-grid { grid-template-columns: repeat(3, 1fr); }
.plain {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.plain h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.plain p { color: var(--slate); font-size: 16.5px; }

/* ════════════════════════ 7. GALLERY (REAL PHOTOS) ════════════════════════
   Eight genuine job photos as <figure> elements. The caption is real text, not
   baked into the image, so it is readable by a search engine and a screen
   reader. Clicking a tile enlarges it — js/main.js wires the lightbox to any
   .tile that contains an <img>. */
.gallery-grid { grid-template-columns: repeat(3, 1fr); }

.tile {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-cool); background: var(--tint);
  box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* aspect-ratio holds the 3:4 frame from the very first paint, so the grid does
   not jump as eight lazy-loaded images arrive one by one. object-position is
   slightly above centre because these are construction photos: the work that
   matters (ceiling line, taped seams) is in the upper half of every frame. */
.tile img {
  display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4;
  object-fit: cover; object-position: center 42%;
  transition: transform .35s ease;
}
.tile:hover img { transform: scale(1.03); }

.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 13px; color: #fff; font-size: 15px; font-weight: 600;
  /* The ramp is what keeps the caption readable over a pale drywall photo — a
     solid bar would hide too much of the picture at this size. */
  background: linear-gradient(180deg,
    rgba(21, 33, 43, 0) 0%, rgba(21, 33, 43, .55) 45%, rgba(21, 33, 43, .88) 100%);
}

/* ════════════════════════ 8. CONTACT & FORM ════════════════════════ */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: start; }

.contact-info h3 { font-size: 22px; color: #fff; margin-bottom: 16px; }
.contact-line {
  display: flex; align-items: flex-start; gap: .6em;
  color: #cfd9e2; font-size: 17px; margin-bottom: 12px;
}
.contact-line .ico { margin-top: .25em; color: var(--gold); }
.contact-line a { text-decoration: none; word-break: break-word; }
.contact-line a:hover { text-decoration: underline; }
.contact-note {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05); border-left: 3px solid var(--gold);
  color: #cfd9e2; font-size: 16px;
}
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.socials a { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; font-weight: 600; }
.socials a:hover { text-decoration: underline; }

.quote-form {
  background: var(--surface); border-radius: var(--radius); padding: 26px 24px 24px;
  box-shadow: var(--shadow-lg); display: grid; gap: 14px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 700; color: var(--navy); }
.req { color: #b4462f; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16.5px; color: var(--ink);
  background: #fdfcfb; border: 1.5px solid var(--line-cool); border-radius: var(--radius-sm);
  padding: 12px 13px; width: 100%;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-deep); background: #fff;
}
/* Marked by js/main.js only after a failed submit, so the very first paint never
   shows red on a form nobody has touched. */
.field.is-bad input, .field.is-bad textarea { border-color: #b4462f; background: #fdf4f2; }

/* Honeypot — moved off-screen and shrunk, NOT display:none, because some bots
   skip fields that are display:none. */
.hp-field {
  position: absolute !important; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.quote-form .btn { margin-top: 2px; }
.form-hint { font-size: 15px; color: var(--muted); text-align: center; }
.form-hint.is-good { color: #1d6b3f; font-weight: 600; }
.form-hint.is-bad { color: #a53c26; font-weight: 600; }

/* ════════════════════════ 9. FOOTER ════════════════════════ */
.site-footer {
  background: #15212b; color: var(--slate-light);
  padding: 40px 0 22px; border-top: 1px solid var(--navy-line);
}
.footer-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 30px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
/* The badge needs a surface of its own on the dark footer — the artwork has a
   light background, so it is shown as a rounded tile rather than blended in. */
.footer-logo {
  width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto;
  background: #fff; padding: 2px;
}
.footer-brand p { color: #c9d3dc; font-size: 15.5px; }
.footer-brand strong { color: #fff; font-size: 16.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: 320px; }
.footer-links a, .footer-contact a { color: #c9d3dc; text-decoration: none; font-size: 15.5px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); text-decoration: underline; }
.footer-contact { font-size: 15.5px; line-height: 1.8; }
.footer-legal {
  text-align: center; margin-top: 30px; padding-top: 18px; font-size: 14.5px;
  color: #7d8b98; border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ════════════════════════ LIGHTBOX ════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; padding: 24px;
  background: rgba(12, 20, 27, .92);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox-cap { color: #cfd9e2; font-size: 15.5px; margin-top: 12px; text-align: center; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; width: 46px; height: 46px;
  font-size: 30px; line-height: 1; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

/* ════════════════════════ 10. MOTION ════════════════════════
   Everything in this block is OPT-IN and additive. The default state is fully
   visible, and .reveal-ready (added by js/main.js) is what switches on the
   animated state — so a JS failure or a blocked script can never leave the page
   blank. js/main.js also runs a 3s failsafe that removes .reveal-ready if
   anything is still hidden, because a business site must not depend on an
   animation firing. */
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  .card:hover, .tile:hover, .btn:active { transform: none; }
}

/* ════════════════════════ 11. RESPONSIVE ════════════════════════ */
/* Mobile-first in spirit: the narrow rules come last so they win, but the base
   styles above are already single-column and phone-legible. */
@media (max-width: 960px) {
  .services-grid, .three-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; gap: 34px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 30px; }
  .reviews-grid { columns: 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-art { width: min(460px, 72vw); opacity: .38; }
}

@media (max-width: 860px) {
  /* With JS off the nav stays a visible wrapped list; with JS on,
     js/main.js adds .js to <html> and this block turns it into a panel. */
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--page); border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px; box-shadow: var(--shadow-lg);
  }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .js .site-nav .nav-cta {
    justify-content: center; margin-top: 12px; padding: 13px 17px; border-bottom: 0;
  }
  /* The nav panel is positioned against the header, which must be the containing
     block; sticky already establishes that. */
  .nav-row { position: relative; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero { padding: 62px 0 58px; }
  .hero-art { display: none; }
  .section { padding: 58px 0; }
  .fact-row { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .services-grid, .three-grid, .gallery-grid { grid-template-columns: 1fr; }
  .reviews-grid { columns: 1; }
  .tile { min-height: 210px; }
  .footer-row { flex-direction: column; gap: 22px; }
  .btn { padding: 13px 22px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 16.5px; }
  .brand-logo { width: 42px; height: 42px; border-radius: 10px; }
  .hero-actions .btn { width: 100%; }
}

/* ════════════════════════ 12. PRINT ════════════════════════
   A quote request often gets printed for the truck. Strip the dark bands (they
   drink toner), drop the decorative layers, and keep the phone number and
   address legible on paper. */
@media print {
  .site-header, .hero-art, .hero-texture, .fact-band, .lightbox, .quote-form { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .section, .section-dark { background: #fff; color: #000; padding: 14pt 0; }
  .section-title, .section-dark .section-title { color: #000; }
  .review { border-color: #999; background: none; }
  .review blockquote p, .section-dark .section-lead { color: #000; }
  a { color: #000; text-decoration: none; }
  a[href^="tel:"]::after { content: " (" attr(href) ")"; }
}
