/* FirstRing Sites -- alternate designs.

   Same renderSite() pipeline, same data. A design is a SKIN (token overrides
   plus a few component rules) and a SHAPE (its entry in the LAYOUTS table in
   js/app.js: hero, trust, services, reviews, order, nav, call bar). Shapes are
   structured in css/site.css and only skinned here.

   Skins are keyed off the data-family attribute, because two designs can share
   one: the families marked below are worn by more than one design, and the
   per-design differences hang off data-design. Adding a design means a block
   here plus two entries in js/app.js, never a second copy of the generator.

   Default (no attribute) is "signal", styled entirely by css/site.css.

     bold      -- black header + full-bleed photo hero, nav links, numbered
                  services, one feature review, mobile call bar, square edges
     classic   -- (family) serif, warm paper, rules instead of cards
     editorial -- classic's skin at a different shape: centred hero over a wide
                  photo band, about before services, prose services, quote
                  reviews. Deeper paper, centred section heads.
     dark      -- (family) dark surfaces, trade accent brightened for small type
     spotlight -- dark's skin at a different shape: photo hero, stats block,
                  reviews before services, nav links, mobile call bar.

   The trade pack's colour still drives every one of them: packs set
   --pack-accent / --pack-accent-2 / --pack-tint inline, and each design
   restates --accent / --accent-2 / --tint from those. A roofing site and a
   towing site stay different colours inside the same design. */

/* ============================================================== bold
   For the trades that sell on being the ones who show up: towing, roofing,
   excavating. Heavy uppercase headings, no rounded corners anywhere, blocks
   that sit on the page with a hard shadow instead of floating on a soft one. */

html[data-family="bold"] {
  --hero-dark: #0b0b0c;
  --ink: #0b0b0c;
  --ink-soft: #5b6068;
  --line: #d6dae1;
  --paper: #ffffff;
  --paper-2: #f1f3f7;
  --surface: #ffffff;
  --accent-2: #0b0b0c;
  --radius: 0px;
  --btn-radius: 3px;
  --shadow: 8px 8px 0 rgba(11, 11, 12, .10);
}

html[data-family="bold"] h1,
html[data-family="bold"] h2 {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.03;
}
html[data-family="bold"] h3 { font-weight: 800; letter-spacing: -.005em; }
html[data-family="bold"] .eyebrow {
  border-left: 4px solid var(--accent);
  padding-left: .6rem;
  letter-spacing: .16em;
}
html[data-family="bold"] .btn {
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 800;
  font-size: .95rem;
}
html[data-family="bold"] .btn-primary { box-shadow: 5px 5px 0 rgba(11, 11, 12, .22); }
html[data-family="bold"] .btn-primary:active { box-shadow: 2px 2px 0 rgba(11, 11, 12, .22); }
html[data-family="bold"] .btn-outline { border-width: 3px; }

/* Header: a black bar with the trade colour underlining it. */
html[data-family="bold"] .site-header {
  background: var(--ink);
  border-bottom: 4px solid var(--accent);
  backdrop-filter: none;
}
html[data-family="bold"] .brand-name { color: #fff; }
html[data-family="bold"] .brand-sub { color: rgba(255, 255, 255, .62); }
html[data-family="bold"] .brand-icon { border-radius: 2px; }

/* Hero: black, with the photo squared off and offset in the accent colour. */
html[data-family="bold"] .hero {
  background: var(--hero-dark);
  color: #fff;
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}
html[data-family="bold"] .hero .lead,
html[data-family="bold"] .hero-note { color: rgba(255, 255, 255, .72); }
html[data-family="bold"] .hero-badge {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .28);
  color: #fff;
  border-radius: 2px;
  box-shadow: none;
}
html[data-family="bold"] .hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
html[data-family="bold"] .hero .btn-outline:hover { background: #fff; color: var(--ink); }
html[data-family="bold"] .hero-photo img {
  border-radius: 0;
  box-shadow: 14px 14px 0 var(--accent);
}
html[data-family="bold"] .photo-credit { border-radius: 0; }

/* Trust strip: a solid band of the trade colour. */
html[data-family="bold"] .trust {
  background: var(--accent);
  border-block: 0;
}
html[data-family="bold"] .trust-k { color: rgba(255, 255, 255, .75); }
html[data-family="bold"] .trust-v { color: #fff; }
html[data-family="bold"] .trust-v .star { color: #fff; }

/* Cards become blocks: 2px ink outline, no shadow, square icon tiles. */
html[data-family="bold"] .service,
html[data-family="bold"] .review,
html[data-family="bold"] .faq,
html[data-family="bold"] .about-facts,
html[data-family="bold"] .review-empty { border: 2px solid var(--ink); }
html[data-family="bold"] .about-facts { background: var(--paper-2); }
html[data-family="bold"] .service-icon {
  border-radius: 0;
  background: var(--ink);
  color: #fff;
}
html[data-family="bold"] .expect li::before { border-radius: 2px; }
html[data-family="bold"] .chip {
  border-radius: 2px;
  border: 2px solid var(--ink);
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .05em;
}
html[data-family="bold"] .sample-tag { border-radius: 2px; }
html[data-family="bold"] .review-stars { letter-spacing: .12em; }

html[data-family="bold"] .contact-big { text-transform: none; }
html[data-family="bold"] .site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .66);
  border-top: 4px solid var(--accent);
}
html[data-family="bold"] .firstring-badge {
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .75);
  border-radius: 2px;
}
html[data-family="bold"] .firstring-badge b { color: #fff; }

/* --- bold's structural blocks (hero overlay, nav, numbered services,
   feature review, call bar). The shapes are in css/site.css; this is the skin. */
html[data-family="bold"] .site-nav a { color: #fff; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
html[data-family="bold"] .hero-overlay .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(11, 11, 12, .66) 0, rgba(11, 11, 12, .26) 55%, rgba(11, 11, 12, .05) 100%),
    linear-gradient(180deg, rgba(11, 11, 12, .2) 0, rgba(11, 11, 12, .3) 55%, rgba(11, 11, 12, .68) 100%);
}
html[data-family="bold"] .hero-phone { letter-spacing: -.04em; }
html[data-family="bold"] .hero-overlay .hero-badge { border-radius: 2px; }
html[data-family="bold"] .service-row { border-top-width: 2px; border-top-color: var(--ink); }
html[data-family="bold"] .service-num { font-size: 1.3rem; }
html[data-family="bold"] .review-feature { border-left-width: 6px; padding-left: 1.6rem; }
html[data-family="bold"] .review-quote { font-weight: 800; letter-spacing: -.02em; }
html[data-family="bold"] .review-quote-long { font-weight: 600; letter-spacing: 0; }
html[data-family="bold"] .review-list li { border: 2px solid var(--ink); }
html[data-family="bold"] .callbar { border-top: 3px solid var(--accent); }
html[data-family="bold"] .callbar .btn { letter-spacing: .02em; font-size: .88rem; }

html[data-family="bold"] .splash { background: var(--paper-2); }
html[data-family="bold"] .splash-form { border: 2px solid var(--ink); box-shadow: 10px 10px 0 rgba(11, 11, 12, .10); }

/* ============================================================== classic
   For the trades sold on judgement rather than muscle: tree work, septic,
   plumbing, electrical. Serif headings on warm paper, hairline rules where
   the default has cards, reviews set as pull quotes. */

html[data-family="classic"] {
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --ink: #241f1a;
  --ink-soft: #6d6357;
  --line: #e3d9c9;
  --paper: #fbf7f0;
  --paper-2: #f4ecdd;
  --surface: #fffdf8;
  --accent-2: #2a241d;
  --tint: color-mix(in srgb, var(--pack-accent, #1d4ed8) 12%, #f4ecdd);
  --radius: 5px;
  --btn-radius: 6px;
  --shadow: 0 14px 30px rgba(70, 52, 28, .10);
}

html[data-family="classic"] h1,
html[data-family="classic"] h2,
html[data-family="classic"] h3 { font-weight: 700; letter-spacing: -.005em; }
html[data-family="classic"] .hero h1 { font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
html[data-family="classic"] .eyebrow {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}
html[data-family="classic"] .lead { font-size: 1.14rem; line-height: 1.6; }
html[data-family="classic"] .btn { font-weight: 600; letter-spacing: .01em; }
html[data-family="classic"] .btn-primary { box-shadow: 0 3px 10px rgba(70, 52, 28, .18); }
html[data-family="classic"] .btn-outline { border-width: 1.5px; border-color: var(--ink-soft); }

html[data-family="classic"] .hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
/* A framed print rather than a floating photo. */
html[data-family="classic"] .hero-photo img {
  border-radius: 2px;
  border: 9px solid var(--surface);
  box-shadow: 0 18px 38px rgba(70, 52, 28, .20);
}
html[data-family="classic"] .hero-badge { border-radius: 3px; box-shadow: none; }
html[data-family="classic"] .trust { background: var(--paper); }
html[data-family="classic"] .trust-k { font-weight: 600; letter-spacing: .14em; }
html[data-family="classic"] .trust-v { font-family: var(--font-head); font-weight: 700; }

/* Services: a ruled list, no boxes. */
html[data-family="classic"] .services-grid { gap: 0 2.5rem; }
html[data-family="classic"] .service {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.5rem 0;
}
html[data-family="classic"] .service-icon {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
}

/* Reviews: pull quotes off a rule, in the heading serif. */
html[data-family="classic"] .review {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  padding: .2rem 0 .2rem 1.3rem;
}
html[data-family="classic"] .review-sample { border-left-style: dashed; }
html[data-family="classic"] .review-text {
  font-family: var(--font-head);
  font-size: 1.06rem;
  line-height: 1.55;
}
html[data-family="classic"] .review-stars { font-size: .95rem; }
html[data-family="classic"] .sample-tag { border-radius: 3px; }

html[data-family="classic"] .about-facts { border: 1px solid var(--line); background: var(--surface); }
html[data-family="classic"] .faq {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
html[data-family="classic"] .faqs { gap: 0; }
html[data-family="classic"] .faq summary { padding-inline: 0; font-family: var(--font-head); }
html[data-family="classic"] .faq p { padding-inline: 0; }
html[data-family="classic"] .chip { border-radius: 3px; background: transparent; }
html[data-family="classic"] .contact-big { font-family: var(--font-head); }
html[data-family="classic"] .site-footer { background: var(--paper); }
html[data-family="classic"] .firstring-badge { border-radius: 3px; }

html[data-family="classic"] .splash { background: var(--paper-2); }
html[data-family="classic"] .splash-mark span,
html[data-family="classic"] .splash-title { font-family: var(--font-head); }

/* ============================================================== dark
   Reads as a newer, more expensive site: dark surfaces, the trade colour
   brightened so it still carries on black, glow instead of drop shadow.
   Everything stays high-contrast -- a phone number nobody can read costs
   the customer a call. */

html[data-family="dark"] {
  /* The trade colour is kept at full strength for fills -- a #b91c1c button
     with white text reads fine on black, and washing it toward white turns a
     roofer's red into salmon. Small type and icons drawn IN the trade colour
     are the ones that fail on a dark ground, so those get --accent-bright. */
  --accent-bright: color-mix(in srgb, var(--pack-accent, #1d4ed8) 55%, #ffffff);
  --accent-2: #070a11;
  --tint: color-mix(in srgb, var(--pack-accent, #1d4ed8) 20%, #0c1017);
  --ink: #eef1f7;
  --ink-soft: #9aa4b6;
  --line: #26304a;
  --paper: #0c1017;
  --paper-2: #101724;
  --surface: #151d2c;
  --radius: 16px;
  --shadow: 0 20px 45px rgba(0, 0, 0, .55);
}

html[data-family="dark"] body { background: var(--paper); }
html[data-family="dark"] .site-header {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom-color: var(--line);
}
html[data-family="dark"] .hero h1 { letter-spacing: -.03em; }
html[data-family="dark"] .hero-badge { box-shadow: none; }
html[data-family="dark"] .hero-photo img {
  box-shadow: 0 24px 55px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
}
html[data-family="dark"] .btn-primary { box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 45%, transparent); }
/* Drawn in the trade colour on a dark ground: brighten so they stay readable. */
html[data-family="dark"] .eyebrow,
html[data-family="dark"] .service-icon,
html[data-family="dark"] .sample-tag,
html[data-family="dark"] .faq summary::after { color: var(--accent-bright); }
html[data-family="dark"] .review-text { color: var(--ink); }
html[data-family="dark"] .btn-outline { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 55%, transparent); }
html[data-family="dark"] .btn-outline:hover { background: var(--ink); color: var(--paper); }
html[data-family="dark"] .service-icon { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* The contact block is already dark; give it an edge so it does not merge
   with the section above it. */
html[data-family="dark"] .contact {
  background: linear-gradient(180deg, var(--surface) 0, var(--accent-2) 100%);
  border-top: 1px solid var(--line);
}
html[data-family="dark"] .about-facts { border: 1px solid var(--line); }
html[data-family="dark"] .fact { border-bottom-color: rgba(255, 255, 255, .08); }
html[data-family="dark"] .ph { background: color-mix(in srgb, var(--surface) 80%, transparent); }
html[data-family="dark"] .site-footer { background: var(--paper); }
html[data-family="dark"] .photo-credit { background: rgba(0, 0, 0, .6); }

html[data-family="dark"] .splash {
  background:
    radial-gradient(60% 50% at 20% 10%, color-mix(in srgb, var(--pack-accent, #1d4ed8) 22%, transparent) 0, transparent 60%),
    radial-gradient(50% 40% at 90% 90%, #182036 0, transparent 60%),
    var(--paper);
}
html[data-family="dark"] .splash-hint { color: var(--ink-soft); }
html[data-family="dark"] .splash-or { color: var(--ink-soft); }

/* ============================================================== editorial
   Classic's paper and serif, inherited through the classic family, at the
   centred, prose shape. Only the differences live here. */

html[data-design="editorial"] {
  --paper: #fcf9f3;
  --paper-2: #f2e9d9;
  --radius: 3px;
}

/* Centred section heads to match the centred hero. The about section keeps its
   two-column shape, so its heading stays left. */
html[data-design="editorial"] .section > .wrap > .eyebrow,
html[data-design="editorial"] .section > .wrap > h2,
html[data-design="editorial"] .section > .wrap > .lead { text-align: center; }
/* .eyebrow is inline-block, so it needs to fill the row before centring works. */
html[data-design="editorial"] .section > .wrap > .eyebrow { display: block; }
html[data-design="editorial"] .section > .wrap > .lead { margin-inline: auto; }
html[data-design="editorial"] .about > .wrap > div > .eyebrow,
html[data-design="editorial"] .about > .wrap > div > h2 { text-align: left; }

html[data-design="editorial"] .hero-band img { border-block: 1px solid var(--line); }
html[data-design="editorial"] .hero-centered .hero-badge { margin-inline: auto; }
html[data-design="editorial"] .service-prose h3 { font-size: 1.18rem; }
html[data-design="editorial"] .review-quotes { margin-inline: auto; }
html[data-design="editorial"] .quote-item { justify-items: center; text-align: center; }
html[data-design="editorial"] .quote-text { font-style: italic; }
html[data-design="editorial"] .quote-item .review-meta { justify-content: center; gap: .6rem; }
html[data-design="editorial"] .review-quotes-long .quote-item { justify-items: start; text-align: left; }
html[data-design="editorial"] .review-quotes-long .quote-text { font-style: normal; }
html[data-design="editorial"] .review-quotes-long .review-meta { justify-content: space-between; }
html[data-design="editorial"] .area-chips { justify-content: center; }
html[data-design="editorial"] .faqs { max-width: 780px; margin-inline: auto; }

/* ============================================================== spotlight
   Dark's palette, inherited through the dark family, at the photo-hero, stats,
   reviews-first shape. */

html[data-design="spotlight"] {
  --hero-dark: #090d14;
  --paper: #090d14;
  --surface: #131a27;
  --radius: 18px;
}

html[data-design="spotlight"] .site-nav a { color: var(--ink); }
html[data-design="spotlight"] .trust-stats {
  background: linear-gradient(180deg, var(--surface) 0, var(--paper) 100%);
  border-block: 0;
}
html[data-design="spotlight"] .trust-stats .stat b { color: var(--accent-bright); }
html[data-design="spotlight"] .trust-stats .stat b .star { color: var(--accent-bright); }
html[data-design="spotlight"] .hero-overlay .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(9, 13, 20, .62) 0, rgba(9, 13, 20, .24) 55%, rgba(9, 13, 20, .04) 100%),
    linear-gradient(180deg, rgba(9, 13, 20, .16) 0, rgba(9, 13, 20, .3) 62%, var(--paper) 100%);
}
/* White, not the accent: over 122 different Google photos the accent tint is
   the first thing to lose contrast, and this is the number they have to read. */
html[data-design="spotlight"] .hero-phone { color: #fff; }
