/* ── Self-hosted fonts (from Google Fonts, latin subset, SIL OFL). See README → Fonts. ──
   Lilita One: headings and the wordmark. Figtree: everything else. */
@font-face {
    font-family: 'Lilita One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/lilita-one.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('/static/fonts/figtree.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Figtree';
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url('/static/fonts/figtree-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    /* Up The Spout: a sunny day after rain. Navy ink carries text, borders and
       the "sticker" shadows; tangerine is the downpipe and every primary
       button; sky is water; sun is highlights. Tangerine, sky and sun are
       fills only: use --accent and --sky-text when they have to be text. */
    --font-display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
    --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --ink: #12284a;            /* navy: text, borders, dark bands */
    --tangerine: #ff7a21;      /* the spout: primary buttons, highlights */
    --sky: #4db0ff;            /* water */
    --sun: #ffd449;            /* labels, ticks, the hero sun */
    --sky-tint: #e6f3ff;
    --sun-tint: #fff1c2;

    --bg-deep: #fff7ea;        /* cream: page ground / alternating sections */
    --bg-primary: #ffffff;     /* main sections */
    --bg-surface: #ffffff;     /* cards */
    --bg-elevated: #fbf6ec;    /* inputs, chips */
    --brand: #12284a;          /* links, focus, labels: 14:1 on white */
    --brand-dim: #0a1a33;
    --brand-tint: rgba(18, 40, 74, 0.06);
    --border-brand: rgba(18, 40, 74, 0.35);
    --accent: #b34700;         /* text-safe tangerine, 5.3:1 on white */
    --accent-glow: rgba(255, 122, 33, 0.28);
    --accent-dim: #8f3900;
    --sky-text: #1561c0;       /* text-safe sky, 5.9:1 on white */
    --ochre: #ffd449;          /* legacy name for the sun fill */
    --text-primary: #12284a;
    --text-secondary: #3d4b63; /* 9:1 on white */
    --text-muted: #5b6678;     /* 5.8:1 on white */
    --border: rgba(18, 40, 74, 0.12);
    --border-strong: #12284a;
    --border-accent: rgba(255, 122, 33, 0.5);

    --radius: 18px;
    --radius-sm: 12px;
    --pop: 4px 4px 0 var(--ink);       /* the sticker shadow */
    --pop-lift: 6px 6px 0 var(--ink);
    color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sun); color: var(--ink); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.page-wrapper { position: relative; z-index: 1; }

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 247, 234, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 2px solid var(--ink);
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1;
}
.nav-brand-icon {
    display: block;
    width: 36px;
    height: 36px;
    margin-right: 0.6rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-brand:hover .nav-brand-icon { transform: rotate(-10deg) scale(1.08); }
/* The wordmark as on the logo lockup: the name over a tracked subline. */
.nav-brand-words { display: flex; flex-direction: column; }
.nav-brand-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 0.2rem;
}
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    border-radius: 3px;
    background: var(--tangerine);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

/* Nav user / Google login */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}
.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
}
.nav-user-name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.nav-logout-form { display: inline; }
.nav-logout-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.nav-logout-btn:hover { color: var(--accent); }

/* ── Shared ── */
section { padding: 6rem 2rem; position: relative; }

.container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Section label: a little sun-yellow sticker, slapped on slightly crooked. */
.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--sun);
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    margin-bottom: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transform: rotate(-2deg);
    width: fit-content;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

/* Marker-pen highlight for a phrase inside a heading. */
.hl {
    background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%);
    padding: 0 0.1em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    min-height: 3rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary {
    background: var(--tangerine);
    color: var(--ink);
    box-shadow: var(--pop);
}
.btn--primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--pop-lift);
}
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost {
    background: var(--bg-surface);
    color: var(--ink);
}
.btn--ghost:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--pop);
    background: var(--sun-tint);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 212, 73, 0.35), transparent 32%),
        var(--bg-deep);
}
.hero > .container { width: 100%; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
    align-items: center;
}
.hero-content { max-width: 640px; }
.hero-overline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.1s forwards;
}
.hero-overline::before {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--sky);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.2vw, 5.9rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin-bottom: 1.75rem;
    text-wrap: balance;
    opacity: 0;
    animation: fadeUp 0.7s 0.25s forwards;
}
.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.65;
    margin-bottom: 2.25rem;
    opacity: 0;
    animation: fadeUp 0.7s 0.4s forwards;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s 0.55s forwards;
}

/* Hero illustration: roof, gutter and downpipe, with leaves flicking up out
   of the gutter and water dripping from the spout. Pure SVG + CSS. */
.hero-art {
    position: relative;
    width: 100%;
    max-width: 440px;
    justify-self: end;
    opacity: 0;
    animation: popIn 0.8s 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-art .leaf { transform-box: fill-box; transform-origin: center; animation: leafUp 3.6s ease-out infinite; opacity: 0; }
.hero-art .leaf--2 { animation-delay: 1.2s; }
.hero-art .leaf--3 { animation-delay: 2.4s; }
.hero-art .drip { transform-box: fill-box; animation: drip 1.8s cubic-bezier(0.55, 0, 1, 0.45) infinite; opacity: 0; }
.hero-art .drip--2 { animation-delay: 0.6s; }
.hero-art .drip--3 { animation-delay: 1.2s; }
.hero-art .puddle { transform-box: fill-box; transform-origin: center; animation: puddle 1.8s ease-out infinite; }
.hero-sticker {
    position: absolute;
    left: -0.5rem;
    bottom: 10%;
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 50%;
    background: var(--tangerine);
    border: 3px solid var(--ink);
    box-shadow: var(--pop);
    display: grid;
    place-content: center;
    text-align: center;
    transform: rotate(-10deg);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-sticker:hover { transform: rotate(-4deg) scale(1.05); }
.hero-sticker small { font-family: var(--font-body); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.hero-sticker strong { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; line-height: 1; }

/* ── Services ── */
.services-section { background: var(--bg-primary); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
/* Cards are stickers: a hard ink outline that lifts and casts a solid
   shadow on hover. */
.service-card {
    background: var(--bg-surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--tangerine);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--pop-lift);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.service-icon::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--sky);
    display: inline-block;
    flex: none;
}
.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.6rem;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

/* ── Portfolio CTA ── */
.portfolio-cta-section {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}
.portfolio-cta {
    background: var(--sun-tint);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--pop-lift);
    padding: 3rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.portfolio-cta-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    line-height: 1.7;
}
.portfolio-cta .section-title { margin-bottom: 0.75rem; }
.portfolio-cta .section-label { margin-bottom: 0.75rem; }

/* ── Contact ── */
.contact-section {
    background: var(--sky-tint);
}
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-text .section-title { margin-bottom: 1rem; }
.contact-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.contact-email {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sky-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.8; }
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0.5rem;
}
.contact-detail-item {
    border-left: 4px solid var(--sky);
    padding-left: 1.25rem;
}
.contact-detail-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.contact-detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}
.contact-detail-value a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-detail-value a:hover { color: var(--brand); }

/* ── Portfolio page ── */
.page-header {
    padding: 9rem 2rem 4rem;
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 212, 73, 0.4), transparent 30%),
        var(--bg-deep);
    border-bottom: 2px solid var(--ink);
}
.page-header .section-title { font-size: clamp(2.5rem, 5.5vw, 4.2rem); line-height: 1; }
.page-header-intro {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 560px;
    line-height: 1.7;
}

.portfolio-section {
    padding: 4rem 2rem 6rem;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.project-card {
    display: block;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.75rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}
.project-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(18, 40, 74, 0.08);
}
.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}
.project-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}
.project-card .arrow {
    color: var(--text-muted);
    transition: all 0.25s;
    font-size: 1.1rem;
}
.project-card:hover .arrow {
    color: var(--brand);
    transform: translate(3px, -3px);
}
.project-card .domain {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--accent-dim);
    letter-spacing: 0.03em;
    margin-bottom: 0.6rem;
}
.project-card .desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.project-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 122, 33, 0.08);
    border: 1px solid rgba(255, 122, 33, 0.2);
    border-radius: 3px;
    color: var(--accent-dim);
    margin-top: 0.75rem;
}
.project-tag--soon { color: var(--accent); border-color: var(--border-accent); }

/* ── Other domains ── */
.domains-section {
    padding: 3rem 2rem 5rem;
    border-top: 1px solid var(--border);
}
.domains-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.domain-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.domain-chip:hover {
    border-color: var(--border-accent);
    background: var(--bg-elevated);
}
.domain-chip .chip-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.domain-chip:hover .chip-arrow {
    color: var(--brand);
    transform: translate(2px, -2px);
}

/* ── Quote page ── */
.quote-section {
    padding: 3rem 2rem 6rem;
}

.quote-group {
    background: var(--bg-surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 2.25rem;
    margin-bottom: 1.5rem;
}

.quote-group-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.quote-group-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    margin-top: -0.75rem;
}

.quote-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.quote-field label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-elevated);
    border: 2px solid rgba(18, 40, 74, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(77, 176, 255, 0.35);
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
    color: var(--text-muted);
}

.quote-field textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-field--full {
    grid-column: 1 / -1;
    margin-top: 1.25rem;
}
.quote-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.quote-field select option { background: var(--bg-elevated); color: var(--text-primary); }
.quote-field--error input,
.quote-field--error select,
.quote-field--error textarea { border-color: rgba(220, 38, 38, 0.6); }
.field-error {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #b91c1c;
}
.form-alert {
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid rgba(185, 28, 28, 0.35);
    color: #991b1b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* Option groups */
.quote-option-group {
    margin-bottom: 1.75rem;
}
.quote-option-group:last-child {
    margin-bottom: 0;
}

.quote-option-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quote-option-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    margin-top: -0.1rem;
}

.quote-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.quote-option {
    cursor: pointer;
}

.quote-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quote-option-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.quote-option input:checked + .quote-option-card {
    border-color: var(--brand);
    background: var(--brand-tint);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.quote-option-card:hover {
    border-color: var(--border-accent);
}

.quote-option-name {
    font-size: 0.92rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.quote-option-cost {
    font-family: var(--font-body);
    font-size: 0.76rem;
    color: var(--accent-dim);
}

/* Summary */
.quote-summary {
    position: sticky;
    bottom: 0;
    background: var(--bg-surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    padding: 2rem 2.25rem;
    margin-top: 1.5rem;
}

.quote-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.quote-summary-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quote-summary-value {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.quote-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

.quote-summary-total .quote-summary-label {
    font-weight: 600;
    color: var(--text-primary);
}

.quote-summary-total .quote-summary-value {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 500;
}

.quote-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1.25rem;
}

.quote-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* AI Estimate result */
.quote-estimate {
    margin-top: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    overflow: hidden;
}

.quote-estimate-header {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 0.75rem 1.25rem;
    background: rgba(255, 122, 33, 0.05);
    border-bottom: 1px solid var(--border);
}

.quote-estimate-body {
    padding: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.quote-estimate-body p {
    margin-bottom: 0.75rem;
}

.quote-estimate-body ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.quote-estimate-body li {
    margin-bottom: 0.35rem;
}

.quote-estimate-body strong {
    color: var(--text-primary);
}

.quote-submit-area {
    margin-top: 1rem;
}

.quote-submit-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 1rem;
}

.quote-range-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0.5rem 0 1rem;
    font-style: italic;
}

.quote-submit-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0.25rem;
}

.quote-submit-note strong {
    color: var(--text-secondary);
}

.quote-turnstile {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0;
    min-height: 65px; /* reserve the widget's height so the button doesn't jump */
}

.quote-submit-error {
    font-size: 0.85rem;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid rgba(153, 27, 27, 0.25);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    margin: 0 0 0.75rem;
    text-align: center;
}
.quote-submit-error[hidden] { display: none; }

/* Terminal "you already have a quote" state — informational, not an error */
.quote-submit-notice {
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--brand-tint);
    border: 1px solid var(--border-brand);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}
.quote-submit-notice[hidden] { display: none; }

/* Quote responsive */
@media (max-width: 768px) {
    .quote-fields {
        grid-template-columns: 1fr;
    }
    .quote-options {
        flex-direction: column;
    }
    .quote-section {
        padding: 2rem 1.25rem 4rem;
    }
    .quote-group {
        padding: 1.5rem;
    }
    .quote-summary {
        position: static;
    }
}

/* ── Footer ── */
footer {
    padding: 3rem 2rem 2.5rem;
    background: var(--ink);
    color: #fff7ea;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-copy {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 247, 234, 0.75);
}
.footer-copy strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: #fff7ea; margin-right: 0.6rem; }
.footer-icon { display: block; width: 34px; height: 34px; margin-right: 0.75rem; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}
.footer-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 247, 234, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--sun); }

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.9) rotate(-2deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}
/* A leaf flicks up out of the gutter, spins, and fades. */
@keyframes leafUp {
    0% { opacity: 0; transform: translate(0, 0) rotate(0); }
    12% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translate(14px, -90px) rotate(200deg); }
}
/* A drop leaves the spout and falls to the puddle. */
@keyframes drip {
    0% { opacity: 0; transform: translateY(0) scale(0.6); }
    15% { opacity: 1; transform: translateY(4px) scale(1); }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translateY(22px) scale(1); }
}
@keyframes puddle {
    0%, 70% { transform: scaleX(1); }
    85% { transform: scaleX(1.12); }
    100% { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .hero-art .leaf, .hero-art .drip { display: none; }
    .reveal { opacity: 1; transform: none; }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    /* Not enough room for brand + full link row side by side:
       brand on row one, links on their own row underneath */
    nav { flex-wrap: wrap; row-gap: 0.5rem; }
    .nav-links { order: 3; width: 100%; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
}

@media (max-width: 768px) {
    nav { padding: 0.75rem 1.25rem; flex-wrap: wrap; row-gap: 0.5rem; }
    .nav-brand { font-size: 1.3rem; }
    .nav-brand-icon { width: 30px; height: 30px; margin-right: 0.5rem; }
    .nav-links { gap: 0.4rem 1.1rem; }
    .nav-links a { font-size: 0.88rem; }
    .nav-user-name { display: none; }
    .nav-user { margin-left: 0; padding-left: 0.5rem; }
    section { padding: 4rem 1.25rem; }
    .hero { min-height: auto; padding-top: 8.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-art { max-width: 320px; justify-self: center; }
    .hero-sticker { width: 6.75rem; height: 6.75rem; left: -1.5rem; }
    .hero-sticker strong { font-size: 1.9rem; }
    .portfolio-cta { flex-direction: column; align-items: flex-start; padding: 2rem; }
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .services-grid { grid-template-columns: 1fr; }
    .page-header { padding: 8.5rem 1.25rem 3rem; }
    .portfolio-section { padding: 3rem 1.25rem 4rem; }
    .domains-section { padding: 2rem 1.25rem 4rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .stack-section { padding: 3rem 1.25rem 4rem; }
    .stack-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.75rem; }
    .hero-desc { font-size: 1rem; }
}

/* ── Admin ── */
.admin-section {
    padding: 3rem 2rem 6rem;
}

.admin-login-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2.25rem;
}

.admin-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}
.admin-alert--error {
    background: #fef2f2;
    border: 1px solid rgba(185, 28, 28, 0.35);
    color: #991b1b;
}

.admin-group {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.admin-group-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-group-fields {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 140px;
}
.admin-field--wide { flex: 1; min-width: 200px; }
.admin-field--narrow { width: 70px; min-width: 70px; }

.admin-field label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.admin-input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    transition: border-color 0.2s;
}
.admin-input:focus {
    outline: none;
    border-color: var(--brand);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.admin-table th {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 0.4rem 0.3rem;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 0.3rem;
    vertical-align: middle;
}

.admin-table .td-center { text-align: center; }

.admin-table input[type="text"],
.admin-table input[type="number"] {
    width: 100%;
    padding: 0.35rem 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
}
.admin-table input[type="text"]:focus,
.admin-table input[type="number"]:focus {
    outline: none;
    border-color: var(--brand);
}

.admin-table input[type="radio"] {
    accent-color: var(--brand);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-icon:hover {
    border-color: #dc2626;
    color: #b91c1c;
    background: #fef2f2;
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.admin-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}
.admin-status--success {
    background: #dcfce7;
    border: 1px solid rgba(22, 101, 52, 0.3);
    color: #166534;
}
.admin-status--error {
    background: #fef2f2;
    border: 1px solid rgba(185, 28, 28, 0.35);
    color: #991b1b;
}

.admin-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.admin-empty {
    color: var(--text-secondary);
    font-style: italic;
}

.admin-quotes-table-wrap {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.admin-quotes-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-quotes-table th {
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.admin-quotes-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(18, 40, 74, 0.06);
    color: var(--text-primary);
}

.admin-quotes-table tbody tr:hover {
    background: rgba(18, 40, 74, 0.03);
}

.status-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge--paid,
.status-badge--verified {
    background: #dcfce7;
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.3);
}

.status-badge--draft,
.status-badge--pending {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid rgba(133, 77, 14, 0.3);
}

@media (max-width: 768px) {
    .admin-group-header { flex-direction: column; }
    .admin-group-fields { flex-direction: column; }
    .admin-field--narrow { width: 100%; }
    .admin-table { font-size: 0.7rem; }
    .admin-quotes-table { font-size: 0.75rem; }
    .admin-actions { flex-direction: column; }
}

/* ── Tooltips ── */
.tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--brand);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--brand);
    cursor: help;
    vertical-align: middle;
    margin-left: 0.4rem;
    flex-shrink: 0;
    transition: all 0.2s;
}
.tip::before { content: '?'; }
.tip:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-tint);
}
.tip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 280px;
    padding: 0.65rem 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(18, 40, 74, 0.15);
}
.tip:hover::after {
    opacity: 1;
}
.tip--below::after {
    bottom: auto;
    top: calc(100% + 8px);
}
.tip--align-right::after {
    left: 0;
    transform: none;
}

@media (max-width: 768px) {
    .tip::after {
        max-width: 220px;
        font-size: 0.72rem;
    }
}


/* ── Nav extras ── */
.nav-links a.nav-cta {
    padding: 0.45rem 1.1rem;
    min-height: 2.5rem;
    font-size: 0.95rem;
    margin-left: 0.25rem;
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}
.nav-links a.nav-cta:hover { color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.nav-phone {
    color: var(--accent) !important;
    font-weight: 800 !important;
}

/* ── Hero extras ── */
.hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    margin-top: 2.25rem;
    padding: 0;
    opacity: 0;
    animation: fadeUp 0.7s 0.7s forwards;
}
.hero-points li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-points li::before {
    content: '\2713';
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--sun);
    border: 2px solid var(--ink);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 900;
    flex-shrink: 0;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 1rem;
}
.section-intro a { color: var(--sky-text); font-weight: 600; }
.portfolio-more { margin-top: 2.5rem; }
.crumb { color: inherit; text-decoration: none; }
.crumb:hover { text-decoration: underline; }

/* ── Service cards (catalogue) ── */
a.service-card {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.service-card p { flex: 1; }
.service-card-more {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent);
}
.service-card--featured {
    grid-column: 1 / -1;
    background: var(--sun-tint);
}
.service-card--featured::before { transform: scaleX(1); }
.service-card--featured h3 { font-size: 1.85rem; }
.service-card--featured p { max-width: 640px; }
.services-grid--related { margin-top: 2rem; }
.services-grid--related .service-card--featured { grid-column: auto; }

.featured-section { background: var(--bg-deep); }
.portfolio-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ── How it works ── */
.how-section { background: var(--sky-tint); }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.75rem 1.5rem;
    margin-top: 4rem;
}
.steps--compact { margin-top: 1.5rem; }
.step {
    background: var(--bg-surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
}
.step-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tangerine);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    color: var(--ink);
    margin: -3.4rem 0 1rem;
}
.step h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.step p { color: var(--text-secondary); font-size: 1rem; line-height: 1.65; }

/* ── Pricing ── */
.pricing-section { background: var(--bg-deep); }
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.price-card {
    background: var(--bg-surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
}
.price-card--highlight { box-shadow: var(--pop-lift); }
.price-card-kicker {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.price-card-amount {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
}
.price-card-plus {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.price-card-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}
.price-card .aside-btn { margin-top: 1rem; }
.price-points {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 2rem;
}
.price-points li {
    color: var(--text-secondary);
    font-size: 1rem;
    padding-left: 2rem;
    position: relative;
}
.price-points li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0.1rem;
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--sun);
    border: 2px solid var(--ink);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 900;
}

.pricing-grid--single { grid-template-columns: 1fr 1fr; align-items: center; }
.pricing-grid--single .price-points { margin-top: 0; grid-template-columns: 1fr; }
@media (max-width: 768px) { .pricing-grid--single { grid-template-columns: 1fr; } }

/* Packages */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.package-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
}
.package-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.package-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    margin-bottom: 0.35rem;
}
.package-from {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.package-from strong { color: var(--accent); font-size: 1rem; letter-spacing: 0; }
.package-blurb {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* ── Tech stack (software development) ── */
.stack-section {
    padding: 4rem 2rem 5rem;
    border-top: 1px solid var(--border);
}
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.stack-group {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
}
.stack-kicker {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 1.25rem;
}
.stack-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.stack-item { display: flex; flex-direction: column; gap: 0.2rem; }
.stack-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-primary);
}
.stack-name a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border-brand); }
.stack-name a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.stack-note {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}
.stack-disclaimer {
    margin-top: 2rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 640px;
}

/* ── Payment methods ── */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
}
.payment-label, .payment-note {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.payment-note { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.9rem; margin-left: 0.5rem; }
.payment-chip {
    padding: 0.35rem 0.8rem;
    font-weight: 600;
    border: 2px solid rgba(18, 40, 74, 0.2);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-surface);
}

/* ── Guarantees ── */
.guarantee-section { background: var(--ink); color: #fff7ea; }
.guarantee-section .section-title { color: #fff7ea; }
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.guarantee-badge {
    border: 2px solid rgba(255, 247, 234, 0.25);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.2s;
}
.guarantee-badge:hover { border-color: var(--sun); transform: rotate(-1deg); }
.guarantee-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--sun);
    margin-bottom: 0.6rem;
}
.guarantee-badge p { color: rgba(255, 247, 234, 0.82); font-size: 1rem; line-height: 1.65; }

/* ── Service areas ── */
.areas-section { background: var(--bg-primary); }
.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}
.area-chip {
    padding: 0.4rem 0.95rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--bg-surface);
}
.area-note {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 640px;
}
.areas-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: start;
}
.areas-grid .area-list { margin-top: 0; }
.area-map {
    height: 380px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--pop);
    background: var(--bg-surface);
    overflow: hidden;
    isolation: isolate; /* keep Leaflet panes under the sticky nav */
}
.area-map.leaflet-container { font-family: inherit; }
.area-map-caption {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}
.area-map-label { background: none; border: 0; pointer-events: none; }
.area-map-label span {
    position: absolute;
    left: 0; top: 0;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
}
@media (max-width: 900px) {
    .areas-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .area-map { height: 300px; }
}

/* ── Service detail page ── */
.service-section { padding: 4rem 2rem; }
.service-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
    align-items: start;
}
.service-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.service-body h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 400;
    margin: 2.25rem 0 1rem;
}
/* Legal pages (/privacy, /terms): single-column long-form prose. */
.legal-body { max-width: 68ch; }
.legal-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.legal-body h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}
.legal-body .checklist { margin-bottom: 1.25rem; }
.legal-body .checklist li { line-height: 1.7; }
.legal-footnote {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem !important;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}
.checklist li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 900;
}
.checklist--small li { font-size: 0.85rem; color: var(--text-secondary); }
.service-aside {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.service-aside .price-card { padding: 1.5rem 1.6rem; }
.service-aside .price-card-amount { font-size: 2.1rem; }
.aside-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 0 0.25rem;
}
.aside-guarantees {
    list-style: none;
    padding: 0.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.aside-guarantees li {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
}
.aside-guarantees li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
}
.aside-btn { justify-content: center; width: 100%; }
.aside-area {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    padding: 0 0.25rem;
}
.aside-area a { color: var(--brand); }
.aside-steps {
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.related-section { background: var(--bg-primary); border-top: 2px solid var(--ink); }

/* ── Book CTA ── */
.cta-section { background: var(--bg-deep); border-top: 2px solid var(--ink); }
.book-cta {
    background: var(--tangerine);
    border: 2px solid var(--ink);
    box-shadow: var(--pop-lift);
    border-radius: var(--radius);
    padding: 3rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.book-cta .section-title { margin-bottom: 0.5rem; }
.book-cta .section-label { margin-bottom: 0.75rem; }
.book-cta-text p { color: var(--ink); max-width: 480px; line-height: 1.65; font-size: 1.05rem; }
.book-cta .btn--primary { background: var(--sun); }
.book-cta .section-label { background: #fff; }
.book-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    flex-shrink: 0;
}
.book-cta-actions .btn { justify-content: center; }
.book-cta-email {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    text-align: center;
}
.book-cta-email:hover { text-decoration: underline; }

/* ── Book page ── */
.book-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}
.book-form .quote-group + .quote-group { margin-top: 1.5rem; }
.book-form .quote-option-group { margin-top: 1.5rem; }
.book-form .quote-btn { width: auto; }
.book-submit { margin-top: 1.5rem; }
.book-submit .quote-submit-note { text-align: left; margin-top: 0.75rem; }
.book-aside .price-card { padding: 1.5rem 1.6rem; }

.td-wrap { white-space: normal; min-width: 260px; max-width: 420px; }
.status-badge--new {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid rgba(30, 64, 175, 0.3);
}
.status-badge--spam,
.status-badge--contacted,
.status-badge--booked,
.status-badge--done {
    background: rgba(18, 40, 74, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ── Responsive (new sections) ── */
@media (max-width: 900px) {
    .service-card--featured { grid-column: auto; }
    .service-layout, .book-layout { grid-template-columns: 1fr; gap: 2rem; }
    .service-aside { position: static; }
}
@media (max-width: 768px) {
    .nav-cta { display: none; }
    .steps, .guarantee-grid, .pricing-grid { grid-template-columns: 1fr; }
    .price-points { grid-template-columns: 1fr; }
    .book-cta { flex-direction: column; align-items: flex-start; padding: 2rem; }
    .book-cta-actions { width: 100%; }
    .service-section { padding: 3rem 1.25rem; }
    .price-card-amount { font-size: 2.1rem; }
    .service-card--featured h3 { font-size: 1.5rem; }
    .portfolio-cta-actions { width: 100%; }
}


/* ── Fix it yourself ── */
.diy-section { background: var(--bg-primary); border-top: 2px solid var(--ink); }
.guides-section { padding: 3rem 2rem 5rem; }
.help-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    background: var(--sun-tint);
    border: 2px solid var(--ink);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.help-banner strong { color: var(--text-primary); }
.help-banner a:not(.btn) { color: var(--brand); }
.help-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.help-banner--slim { padding: 0.9rem 1.25rem; margin-bottom: 2rem; font-size: 0.9rem; }
.guide-group + .guide-group { margin-top: 3rem; }
.guide-group .section-label { margin-bottom: 1.25rem; }
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.75rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}
.guide-card:hover { border-color: var(--border-accent); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(18, 40, 74, 0.1); }
.guide-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 0.6rem;
}
.guide-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; flex: 1; }
.guide-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.guide-card-meta--header { margin: 1rem 0 0; }
.guide-kicker { color: var(--brand); }
.guide-time { color: var(--text-muted); }
.guide-level {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.guide-level--easy { color: #166534; border-color: rgba(22,101,52,0.35); background: #dcfce7; }
.guide-level--fiddly { color: #854d0e; border-color: rgba(133,77,14,0.35); background: #fef9c3; }
.guide-title { max-width: 820px; }
.guide-before {
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--accent);
    background: var(--bg-surface);
    border-radius: 0 6px 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.guide-before strong { color: var(--text-primary); }
.guide-body h2:first-of-type { margin-top: 1.5rem; }
.guide-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
    display: grid;
    gap: 1rem;
}
.guide-steps li {
    counter-increment: step;
    position: relative;
    padding: 1rem 1.25rem 1rem 3.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
}
.guide-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.1rem;
    top: 1rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guide-steps a, .checklist a, .guide-stop a:not(.btn) { color: var(--brand); }
.guide-steps code, .guide-steps kbd {
    font-family: var(--font-body);
    font-size: 0.85em;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.1rem 0.4rem;
    color: var(--text-primary);
}
.guide-steps code { display: inline-block; margin: 0.25rem 0; }
.checklist--plain li { color: var(--text-secondary); }
.guide-stop {
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
}
.guide-stop-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.guide-stop p { color: var(--text-secondary); margin-bottom: 1.25rem; }
.aside-service-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.4rem; }
.aside-links ul { list-style: none; padding: 0.25rem; margin: 0; display: grid; gap: 0.5rem; }
.aside-links a { color: var(--text-secondary); font-size: 0.88rem; text-decoration: none; line-height: 1.4; }
.aside-links a:hover { color: var(--brand); }
@media (max-width: 768px) {
    .help-banner { flex-direction: column; align-items: flex-start; }
    .guides-section { padding: 2rem 1.25rem 4rem; }
    .guides-grid { grid-template-columns: 1fr; }
}

/* ── Admin: bookings / invoices / calendar ── */
.admin-nav {
    display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem;
    margin-top: 1rem; font-size: 0.85rem;
}
.admin-nav a { color: var(--text-secondary); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.admin-nav a:hover { color: var(--text-primary); }
.admin-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.page-header .section-label a { color: inherit; }

.admin-flash { text-align: left; margin: 0 0 1.5rem; }
.admin-muted { color: var(--text-muted); font-size: 0.85rem; }
.admin-adclick { margin-top: 0.5rem; max-width: 560px; }
.admin-ok { color: #166534; font-size: 0.85rem; word-break: break-all; }
.admin-total { font-family: var(--font-body); font-size: 1.1rem; color: var(--text-secondary); margin-left: 0.5rem; }
.admin-heading-link { font-size: 0.8rem; font-weight: 500; margin-left: 0.75rem; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.admin-stat {
    display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none;
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem;
}
.admin-stat:hover { border-color: var(--border-brand); }
.admin-stat-n { font-family: var(--font-body); font-size: 1.5rem; color: var(--text-primary); }
.admin-stat-l { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.admin-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.25rem; }
.admin-filters a {
    font-size: 0.75rem; text-decoration: none; color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: 9999px; padding: 0.2rem 0.7rem; background: var(--bg-surface);
}
.admin-filters a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.admin-filter-n { opacity: 0.7; }
.admin-filters a.admin-filters-new { margin-left: auto; color: var(--brand); border-color: var(--brand); font-weight: 600; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.admin-grid--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.admin-col { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.admin-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; min-width: 0; }
.admin-card .admin-quotes-table-wrap { margin-bottom: 0.75rem; }
.admin-card p { font-size: 0.9rem; margin: 0 0 0.5rem; }
.admin-card-title { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.85rem; }
.admin-quote { margin: 0; padding: 0.75rem 1rem; border-left: 3px solid var(--border); background: var(--bg-elevated); white-space: pre-wrap; font-size: 0.9rem; border-radius: 0 4px 4px 0; }
.admin-list { list-style: none; padding: 0; margin: 0 0 0.75rem; font-size: 0.9rem; }
.admin-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.admin-list li:last-child { border-bottom: 0; }

.admin-form-inline { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; }
.admin-form-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-form-inline .admin-field { min-width: 120px; }
.admin-check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-secondary); padding-bottom: 0.4rem; }
.admin-btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.admin-btn-row form { display: inline; }
.admin-row-actions { margin-top: 0.6rem; }
.admin-details summary { cursor: pointer; font-size: 0.85rem; color: var(--text-secondary); margin: 0.5rem 0; }
.admin-details form { margin-top: 0.75rem; }
.admin-search { margin-bottom: 1.25rem; }

/* Search-as-you-type indicator. Absolutely positioned inside the field so it
   overlays the input instead of widening the row — a spinner that takes part in
   the flex layout shunts the whole row sideways every time it appears.
   The 200ms transition-delay means it never shows at all on a fast search. */
.admin-search .admin-field--wide { position: relative; }
.admin-search-indicator {
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    font-size: .75rem;
    color: var(--muted, #6b7280);
    pointer-events: none;
}
.htmx-request .admin-search-indicator,
.htmx-request.admin-search-indicator { transition: opacity 150ms ease-in 200ms; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
.btn--danger { color: #991b1b; border-color: rgba(185, 28, 28, 0.35); }
.btn--danger:hover { background: #fef2f2; }
textarea.admin-input { resize: vertical; }
select.admin-input { min-height: 2.15rem; }

/* Address autocomplete (admin) */
.addr-wrap { position: relative; }
.addr-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
}
.addr-suggestion { padding: 0.5rem 0.75rem; cursor: pointer; font-size: 0.8rem; }
.addr-suggestion:hover, .addr-suggestion.addr-active { background: rgba(0, 0, 0, 0.06); }
.addr-verified { display: none; color: #15803d; text-transform: none; letter-spacing: normal; }
.addr-verified.visible { display: inline; }

.td-num { text-align: right; white-space: nowrap; }
.inv-lines th, .inv-lines td { padding-left: 0.4rem; padding-right: 0.4rem; }
.inv-lines input.admin-input { min-width: 3.5rem; }
.inv-lines td:first-child { width: 100%; }
.inv-lines td:first-child input { min-width: 10rem; }
.inv-lines .inv-qty { width: 4rem; text-align: right; }
.inv-lines .inv-unit { width: 6rem; text-align: right; }
.inv-lines tfoot td { padding-top: 0.75rem; border-bottom: 0; font-size: 0.95rem; }
.zeller-copy { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0.5rem 0 0.75rem; font-size: 0.9rem; align-items: center; }
.zeller-copy > div { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.zeller-copy code { font-family: var(--font-body); background: var(--bg-elevated); padding: 0.15rem 0.5rem; border-radius: 3px; }
.copy-btn { font-size: 1rem; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.inv-bank { border-collapse: collapse; font-size: 0.9rem; margin: 0.25rem 0 0.75rem; }
.inv-bank td { padding: 0.2rem 1rem 0.2rem 0; }
.inv-bank td:first-child { color: var(--text-muted); }

/* status badges for the booking/invoice lifecycle */
.status-badge--booked, .status-badge--sent { background: #dbeafe; color: #1e40af; border: 1px solid rgba(30, 64, 175, 0.3); }
.status-badge--done, .status-badge--invoiced { background: #fef9c3; color: #854d0e; border: 1px solid rgba(133, 77, 14, 0.3); }
.status-badge--cancelled, .status-badge--void { background: #fee2e2; color: #991b1b; border: 1px solid rgba(153, 27, 27, 0.3); }
.status-badge--contacted { background: rgba(18, 40, 74, 0.05); color: var(--text-secondary); border: 1px solid var(--border); }

/* calendar */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.cal-week-label { margin-left: auto; font-size: 0.9rem; color: var(--text-secondary); font-family: var(--font-body); }
.cal-wrap { overflow-x: auto; }
.cal {
    display: grid; grid-template-columns: 3.5rem repeat(7, minmax(110px, 1fr));
    min-width: 860px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.cal-head { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); text-align: center; }
.cal-head.cal-today { color: #fff; background: var(--brand); }
.cal-gutter { border-left: 0 !important; }
.cal-hours { position: relative; height: var(--col-px); }
.cal-hour { height: calc(var(--slot-px) * 4); font-size: 0.65rem; color: var(--text-muted); text-align: right; padding-right: 0.4rem; font-family: var(--font-body); transform: translateY(-0.5em); }
.cal-col { position: relative; height: var(--col-px); border-left: 1px solid var(--border); }
.cal-col.cal-today { background: var(--brand-tint); box-shadow: inset 1px 0 0 var(--brand), inset -1px 0 0 var(--brand); }
.cal-slot { display: block; height: var(--slot-px); border-top: 1px solid rgba(18, 40, 74, 0.035); box-sizing: border-box; }
.cal-slot--hour { border-top-color: var(--border); }
a.cal-slot:hover { background: rgba(255, 122, 33, 0.12); cursor: pointer; }
.cal-event {
    position: absolute; left: 3px; right: 3px; overflow: hidden; box-sizing: border-box;
    background: #dbeafe; border: 1px solid rgba(30, 64, 175, 0.35); border-left-width: 3px; border-radius: 8px;
    padding: 0.15rem 0.35rem; font-size: 0.7rem; line-height: 1.25; text-decoration: none; color: #1e3a8a; z-index: 1;
}
.cal-event:hover { z-index: 2; box-shadow: 0 2px 8px rgba(18, 40, 74, 0.15); }
.cal-event--done, .cal-event--invoiced { background: #fef9c3; border-color: rgba(133, 77, 14, 0.4); color: #713f12; }
.cal-event--paid { background: #dcfce7; border-color: rgba(22, 101, 52, 0.4); color: #14532d; }
.cal-event--new, .cal-event--contacted { background: rgba(18, 40, 74, 0.05); border-color: var(--border); color: var(--text-secondary); }
.cal-event-time { display: block; font-family: var(--font-body); font-size: 0.6rem; opacity: 0.8; }
.cal-event-name { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event-sub { display: block; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Busy time from the admin's other Google calendars: times only, never titles. */
.cal-busy {
    position: absolute; left: 0; right: 0; box-sizing: border-box; z-index: 0; pointer-events: none;
    border-top: 1px solid rgba(18, 40, 74, 0.18); border-bottom: 1px solid rgba(18, 40, 74, 0.18);
    background: repeating-linear-gradient(135deg, rgba(18, 40, 74, 0.10) 0 4px, rgba(18, 40, 74, 0.03) 4px 8px);
}
.cal-busy-label { position: absolute; right: 3px; bottom: 1px; font-size: 0.55rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* Calendar sync settings page */
.admin-card + .admin-card { margin-top: 1.25rem; }
.admin-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 0 0 1rem; font-size: 0.9rem; }
.admin-dl dt { color: var(--text-secondary); }
.admin-dl dd { margin: 0; font-weight: 600; }
.admin-error-text { color: #b91c1c; font-weight: 400 !important; font-family: var(--font-body); font-size: 0.8rem; word-break: break-word; }
.admin-note { font-size: 0.9rem; color: var(--text-secondary); margin: 0 0 1rem; max-width: 62ch; }
.admin-note--small { font-size: 0.8rem; margin-top: 0.85rem; margin-bottom: 0; }
.admin-card .admin-actions { display: flex; justify-content: flex-start; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; }
.admin-checklist { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.4rem; }
.admin-checklist label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.admin-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

@media (max-width: 900px) {
    .admin-grid, .admin-grid--wide { grid-template-columns: minmax(0, 1fr); }
    .inv-parties { grid-template-columns: 1fr; }
}

/* ── SEO pass: service-area pages, 404 ── */
a.area-chip { text-decoration: none; transition: border-color 0.2s, color 0.2s; }
a.area-chip:hover { background: var(--sun); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.area-note a { color: var(--brand); }
.areas-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.area-index-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg-surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.area-index-card:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.area-index-name { font-weight: 600; color: var(--text-primary); }
.area-index-meta { font-family: var(--font-body); font-size: 0.72rem; color: var(--text-muted); }
.notfound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.notfound-grid .service-card { opacity: 1; transform: none; }
.aside-note a { color: var(--brand); text-decoration: none; }
.aside-note a:hover { text-decoration: underline; }
/* Suburb hero: text left, photo right on desktop; compact strip under the intro on phones. */
.area-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;
}
.area-photo { margin: 0; }
.area-photo-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--ink);
    background: var(--bg-elevated);
    box-shadow: var(--pop-lift);
}
.area-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}
.area-photo-tag {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.area-photo figcaption {
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.66rem;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.area-photo figcaption a { color: inherit; }
.area-photo figcaption a:hover { color: var(--brand); }
@media (max-width: 959px) {
    .area-photo-via { display: none; }
}
@media (min-width: 960px) {
    .area-hero--photo {
        grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 440px);
        gap: 3.5rem;
    }
    .area-hero--photo .area-photo img { aspect-ratio: 4 / 3; }
    .area-hero--photo .area-photo { transform: rotate(-1.2deg); }
    .area-hero--photo .area-photo figcaption { text-align: left; padding-left: 0.25rem; }
}

/* ── Review card (/admin/review-card) ────────────────────────────────────────
   A leave-behind card that also works held up on a phone screen: big QR, high
   contrast, and a print rule that puts it alone on the page. */
.review-card {
    max-width: 380px;
    margin: 0 auto 2rem;
    padding: 1.75rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: #fff;
    text-align: center;
}
.review-card-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.review-card-lead { font-size: 0.9rem; color: var(--text-secondary); margin: 0 0 1.25rem; }
.review-card-qr { display: block; margin: 0 auto 1rem; width: 260px; height: 260px; image-rendering: pixelated; }
.review-card-url {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    word-break: break-all;
}
.review-card-sign { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.review-steps { margin: 0 0 1rem; padding-left: 1.2rem; font-size: 0.9rem; line-height: 1.6; }
.review-steps li { margin-bottom: 0.5rem; }

@media print {
    @page { margin: 18mm; }
    .no-print, nav, footer { display: none !important; }
    body, .admin-section { background: #fff !important; }
    .admin-section { padding: 0 !important; }
    .review-card {
        margin: 0;
        border-color: #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* ── Up The Spout additions ── */

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Price list inside the price card */
.price-list { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1rem; }
.price-list th, .price-list td { padding: 0.65rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-list th { text-align: left; font-weight: 600; color: var(--text-primary); font-size: 0.98rem; }
.price-list-note { display: block; font-weight: 400; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.1rem; }
.price-list-amount {
    text-align: right; white-space: nowrap; padding-left: 1rem;
    font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.price-list-extra th, .price-list-extra .price-list-amount { color: var(--accent); }
.price-list-extra .price-list-amount { font-size: 1.25rem; }
.price-list tr:last-child th, .price-list tr:last-child td { border-bottom: 0; }

/* Booking: property picker, extras, live total */
.property-picker { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.property-option {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem;
    padding: 0.9rem 1.1rem; border: 2px solid rgba(18, 40, 74, 0.2); border-radius: var(--radius-sm);
    background: var(--bg-surface); cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.property-option:hover { border-color: var(--border-brand); }
.property-option:has(input:checked) { border-color: var(--ink); background: var(--sun-tint); box-shadow: 3px 3px 0 var(--ink); }
.property-option input { accent-color: var(--tangerine); width: 1.15rem; height: 1.15rem; margin: 0; }
.property-option-name { display: block; font-weight: 600; color: var(--text-primary); }
.property-option-note { display: block; font-size: 0.85rem; color: var(--text-muted); }
.property-option-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.property-extras { display: grid; gap: 0.5rem; margin-top: 1rem; }
.check-option { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; color: var(--text-primary); font-size: 0.95rem; }
.check-option input { accent-color: var(--tangerine); width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; flex: none; }
.check-option-note { display: block; color: var(--text-muted); font-size: 0.84rem; }
.price-total {
    display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.2rem 1rem;
    margin-top: 1.25rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
    background: var(--sun-tint);
    border: 2px solid var(--ink);
}
.price-total-label { font-weight: 600; color: var(--text-primary); }
.price-total-amount { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-total-note { grid-column: 1 / -1; font-size: 0.84rem; color: var(--text-muted); }
.label-optional { font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: normal; }
@media (max-width: 560px) {
    .property-option { grid-template-columns: auto 1fr; }
    .property-option-price { grid-column: 2; }
}

/* Plan comparison table on /pricing */
.plan-table td:first-child { font-weight: 600; }

/* FAQ */
.faq-list { display: grid; gap: 0.6rem; max-width: 760px; }
.faq-item { border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--bg-surface); padding: 1rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--text-primary); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--accent); font-weight: 900; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 0.6rem; color: var(--text-secondary); font-size: 0.95rem; }
