/* =====================================================================
   RXHAL — RxDevelopment
   Client: Pukekohe Plastering
   Tier: Free preview (homepage)
   Built: 2026-11-26

   DESIGN SYSTEM: three styles, one page (Build Prompt v2.1 §7.0)
   Style 1 (default) A "clean finish": plaster white, charcoal, terracotta.
            Newsreader (variable serif) + Host Grotesk. Calm, precise, for
            homeowners who care about a smooth finish.
   Style 2  B "Franklin local": deep rural green, cream, ochre. Archivo
            (expanded black) + Schibsted Grotesk.
   Style 3  C "texture": sand and black, plaster grain, condensed heavy
            Bricolage Grotesque + Familjen Grotesk.
   Tokens set per style on html[data-style]; components only use tokens.
   ===================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
    /* Style 1 (default): A "clean finish" */
    --bg: #f6f3ee; --bg-2: #ece7df; --bg-3: #e0d9ce;
    --text: #23262a; --text-dim: #555a60;
    --accent: #b4532a; --accent-ink: #fbf8f3; --accent-text: #9c4320; --btn-border: #b4532a;
    --rule: color-mix(in srgb, var(--text) 16%, transparent);
    --font-display: 'Newsreader', Georgia, serif;
    --font-body: 'Host Grotesk', system-ui, sans-serif;
    --display-weight: 500; --display-stretch: 100%; --display-lh: 1; --display-tracking: -0.02em; --display-case: none;
    --radius: 3px;
    --fs-small: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
    --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
    --fs-lede: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    --fs-h3: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
    --fs-h2: clamp(2.6rem, 1.8rem + 3.6vw, 5.2rem);
    --fs-h1: clamp(3.4rem, 2rem + 7vw, 8.6rem);
    --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3.5rem);
    --section: clamp(4.5rem, 3rem + 6vw, 9rem);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    padding-bottom: 4.5rem; /* room for the mobile dock */
}
/* Fine grain so the black reads as metal, not a void */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 0;
}
main, .bar, .foot { position: relative; z-index: 1; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); line-height: var(--display-lh); letter-spacing: var(--display-tracking); text-transform: var(--display-case); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip {
    position: absolute; left: 1rem; top: -4rem;
    background: var(--accent); color: var(--accent-ink);
    padding: 0.75rem 1rem; font-weight: 600; z-index: 10;
}
.skip:focus { top: 1rem; }

.eyebrow {
    font-size: var(--fs-small);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0.8rem 1.4rem;
    font-weight: 600; font-size: 1rem; text-decoration: none;
    border-radius: var(--radius); border: 2px solid var(--btn-border, var(--accent));
}
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--line { color: var(--text); border-color: var(--text); }
.btn--big { min-height: 56px; padding: 1rem 1.8rem; font-size: 1.1rem; }

/* ── Header ─────────────────────────────────────────────────────────── */
.bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem var(--gutter);
    border-bottom: 1px solid var(--rule);
}
.mark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 0.85; }
.mark__big { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.9rem; text-transform: var(--display-case); font-stretch: var(--display-stretch); letter-spacing: 0.02em; }
.mark__small { font-size: 0.7rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--accent-text); }
.bar__cta { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
    display: grid; gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(3rem, 6vw, 6rem) var(--gutter) var(--section);
}
.hero__title { font-size: var(--fs-h1); margin: 1rem 0 1.5rem; max-width: 11ch; }
.hero__lede { font-size: var(--fs-lede); color: var(--text-dim); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Photo slots: clearly marked spaces for the client's own photos */
.photo-slot {
    position: relative; margin: 0;
    min-height: 22rem;
    border: 1px dashed color-mix(in srgb, var(--text) 35%, transparent);
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--text) 4%, transparent) 14px 15px),
        var(--bg-2);
    display: flex; align-items: flex-end; padding: 1.25rem;
}
.photo-slot__tag {
    font-size: var(--fs-small); color: var(--text-dim);
    border-left: 3px solid var(--accent); padding-left: 0.6rem;
}
.photo-slot--wide { min-height: 16rem; margin-top: clamp(2rem, 4vw, 3.5rem); }

.gauge {
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 9.5rem; aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid var(--rule);
    background: conic-gradient(var(--accent) 0 300deg, transparent 300deg) border-box;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}
/* The ring is masked, so its label sits on the slot's ::after layer */
.hero__photo::after {
    content: "5.0\A 33 reviews";
    white-space: pre;
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 9.5rem; aspect-ratio: 1;
    display: grid; place-items: center; text-align: center;
    font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.05rem; line-height: 1.1;
    text-transform: var(--display-case); color: var(--text);
}

/* ── Facts strip ────────────────────────────────────────────────────── */
.facts {
    display: grid; gap: 1px;
    background: var(--rule);
    border-block: 1px solid var(--rule);
}
.fact { background: var(--bg); padding: 1.75rem var(--gutter); display: grid; gap: 0.25rem; }
.fact__big { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.8rem); line-height: 1; text-transform: var(--display-case); font-stretch: var(--display-stretch); color: var(--accent-text); }
.fact__small { color: var(--text-dim); }

/* ── Section heads ──────────────────────────────────────────────────── */
.section-head { display: grid; gap: 0.75rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-title { font-size: var(--fs-h2); }

/* ── Spec sheet ─────────────────────────────────────────────────────── */
.spec { padding: var(--section) var(--gutter); }
.spec__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.spec__row {
    display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; row-gap: 0.4rem;
    padding: 1.4rem 0; border-bottom: 1px solid var(--rule);
}
.spec__num { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--accent-text); padding-top: 0.35rem; }
.spec__name { font-size: var(--fs-h3); }
.spec__desc { grid-column: 2; color: var(--text-dim); max-width: 46ch; }

/* ── Reviews ────────────────────────────────────────────────────────── */
.words { padding: var(--section) var(--gutter); background: var(--bg-2); border-block: 1px solid var(--rule); }
.words__grid { display: grid; gap: 1.25rem; }
.quote { margin: 0; padding: 1.75rem; background: var(--bg); border: 1px solid var(--rule); display: grid; gap: 1.25rem; align-content: space-between; }
.quote p { font-size: var(--fs-lede); line-height: 1.45; }
.quote footer { font-size: var(--fs-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.quote--lead p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem); line-height: 1.05; text-transform: var(--display-case); font-stretch: var(--display-stretch); }

/* ── Book it in ─────────────────────────────────────────────────────── */
.visit { padding: var(--section) var(--gutter); }
.visit__title { font-size: var(--fs-h1); color: var(--accent-text); }
.visit__lede { font-size: var(--fs-lede); color: var(--text-dim); max-width: 38ch; margin: 1.5rem 0 2rem; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.visit__details { display: grid; gap: 1.25rem; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.visit__details dt { font-size: var(--fs-small); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.visit__details dd { margin: 0.25rem 0 0; font-size: var(--fs-lede); }

/* ── Footer + mobile dock ───────────────────────────────────────────── */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 2rem var(--gutter); border-top: 1px solid var(--rule); color: var(--text-dim); font-size: var(--fs-small); }
.dock {
    position: fixed; inset: auto 0 0 0; z-index: 5;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--rule); border-top: 1px solid var(--rule);
}
.dock__btn { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; background: var(--bg-2); color: var(--text); font-weight: 600; text-decoration: none; }
.dock__btn--solid { background: var(--accent); color: var(--accent-ink); }

/* ── Larger screens ─────────────────────────────────────────────────── */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .dock { display: none; }
    .bar__cta { display: inline-flex; }
    .facts { grid-template-columns: repeat(3, 1fr); }
    .words__grid { grid-template-columns: 1.4fr 1fr; }
    .quote--lead { grid-row: span 2; }
    .visit__details { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .hero { grid-template-columns: 1.25fr 1fr; align-items: end; }
    .hero__photo { min-height: 34rem; }
    .spec__row { grid-template-columns: 5rem 1fr 1.2fr; align-items: baseline; }
    .spec__desc { grid-column: 3; }
}

/* ── Motion (only for people who haven't asked for less) ────────────── */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
    .js .reveal.is-in { opacity: 1; transform: none; }
    .btn, .dock__btn { transition: transform 0.2s var(--ease), background-color 0.2s var(--ease); }
    .btn:hover { transform: translateY(-2px); }
    .btn--line:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
}

/* ── Preview bar (remove on launch) ─────────────────────────────────── */
/* Pattern from the SKFT preview: page 1 of 8 is open, the rest are locked
   teasers. Every locked page and the button go to rxhal.com/development. */
body { padding-bottom: 7.75rem; }
.pv {
    position: fixed; left: 0; right: 0; bottom: 3.5rem; z-index: 6;
    background: var(--bg-2); border-top: 1px solid var(--rule);
    padding: 0.55rem var(--gutter);
}
.pv__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1340px; margin: 0 auto; }
.pv__left { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.pv__pill { background: var(--accent); color: var(--accent-ink); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 2px; }
.pv__text { font-size: 0.8rem; color: var(--text-dim); }
.pv__text strong { color: var(--text); font-weight: 600; }
.pv__pages { display: none; }
.pv__page { position: relative; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border: 1px solid transparent; border-radius: 2px; white-space: nowrap; text-decoration: none; }
.pv__page--active { color: var(--accent-text); border-color: var(--accent-text); }
.pv__page--locked { color: var(--text-dim); border: 1px dashed var(--rule); }
.pv__page--locked::after { content: "\1F512" / ""; position: absolute; top: -6px; right: -4px; font-size: 0.55rem; }
.pv__page--locked:hover, .pv__page--locked:focus-visible { color: var(--pv-hover, inherit); border-style: solid; }
.pv__cta { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1rem; background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; border-radius: 2px; white-space: nowrap; }
.pv__short { font-size: 0.78rem; }
@media (max-width: 767px) { .pv__text { display: none; } }
@media (min-width: 768px) { .pv__short { display: none; } }
@media (min-width: 768px) {
    body { padding-bottom: 3.75rem; }
    .pv { bottom: 0; }
}
@media (min-width: 1100px) {
    .pv__pages { display: flex; gap: 0.4rem; flex: 1; justify-content: center; flex-wrap: nowrap; }
}
@media (min-width: 1100px) and (max-width: 1439px) { .pv__text { display: none; } }

/* The call bar steps aside when the contact section (with its own buttons) is on screen */
.dock.is-hidden { transform: translateY(100%); visibility: hidden; }
.dock.is-hidden ~ .pv, .pv:has(~ .dock.is-hidden) { bottom: 0; }
@media (prefers-reduced-motion: no-preference) { .dock, .pv { transition: transform 0.25s ease, bottom 0.25s ease, visibility 0.25s; } }

/* 404 page */
.notfound { padding-bottom: 0; }
.notfound .hero { min-height: 70vh; display: grid; align-content: center; gap: 1.5rem; }


/* ── Style 2: B "Franklin local" — deep green, cream, ochre ── */
html[data-style="2"] {
    --bg: #1f3d2b; --bg-2: #264a34; --bg-3: #2e573e;
    --text: #f3eedd; --text-dim: #cfc9b4;
    --accent: #e0ad4c; --accent-ink: #1b2a1f; --accent-text: #e0ad4c; --btn-border: #e0ad4c;
    --rule: color-mix(in srgb, var(--text) 18%, transparent);
    --font-display: 'Archivo', 'Arial Black', sans-serif;
    --font-body: 'Schibsted Grotesk', system-ui, sans-serif;
    --display-weight: 900; --display-stretch: 115%; --display-lh: 0.95; --display-tracking: -0.01em; --display-case: uppercase;
    --radius: 0;
}
/* ── Style 3: C "texture" — sand + black, plaster grain ── */
html[data-style="3"] {
    --bg: #e9dfcf; --bg-2: #ddd1bd; --bg-3: #d0c2aa;
    --text: #111111; --text-dim: #4a443b;
    --accent: #111111; --accent-ink: #e9dfcf; --accent-text: #111111; --btn-border: #111111;
    --rule: color-mix(in srgb, var(--text) 20%, transparent);
    --font-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
    --font-body: 'Familjen Grotesk', system-ui, sans-serif;
    --display-weight: 800; --display-stretch: 75%; --display-lh: 0.9; --display-tracking: -0.01em; --display-case: uppercase;
    --radius: 0;
}
/* Layout touches per style */
html:not([data-style]) .hero__title, html[data-style="1"] .hero__title { font-style: italic; max-width: 14ch; }
html:not([data-style]) .fact__big, html[data-style="1"] .fact__big { font-style: italic; }
html[data-style="2"] .hero__title { max-width: 15ch; font-size: clamp(2.4rem, 1.3rem + 4.6vw, 6rem); }
html[data-style="3"] body::before { opacity: 0.12; }
html[data-style="3"] .hero__title { font-size: clamp(3.2rem, 1.6rem + 7.5vw, 9rem); max-width: 12ch; }
body::before { mix-blend-mode: multiply; }
html[data-style="2"] body::before { mix-blend-mode: normal; }

/* ── Style switcher (in the preview bar) ── */
.pv__styles { display: flex; align-items: center; gap: 0.3rem; }
.pv__styles-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-right: 0.15rem; }
.pv__style { min-width: 44px; min-height: 44px; padding: 0 0.6rem; border: 1px solid var(--rule); background: transparent; color: var(--text); font: 600 0.8rem var(--font-body); border-radius: var(--radius); cursor: pointer; }
.pv__style[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 767px) { .pv__short { display: none; } .pv__styles-label { display: none; } }

/* pv compact: laptops 1100–1439px fit chips + style buttons + CTA on one line */
@media (min-width: 1100px) and (max-width: 1439px) {
    .pv__inner { gap: 0.6rem; }
    .pv__pages { gap: 0.25rem; }
    .pv__page { font-size: 0.62rem; padding: 0.25rem 0.45rem; letter-spacing: 0.05em; }
    .pv__styles-label { display: none; }
    .pv__cta { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
}

.pv__cta-short { display: none; }
@media (max-width: 479px) { .pv__cta-long { display: none; } .pv__cta-short { display: inline; } .pv__inner { gap: 0.5rem; } .pv__cta { padding: 0.5rem 0.8rem; } }
