/* ═══════════ SERVICES ═══════════
   Hub grid + individual service documents. These are pages, not the deck —
   let them scroll, and carry the same bark/moss/linen language. */

html, body {
    overflow: auto;
    height: auto;
    min-height: 100%;
}

/* ═══════════ HUB (services index) ═══════════ */
.services-hub {
    min-height: 100vh;
    padding: calc(var(--topbar-h) + clamp(20px, 4vh, 44px)) 8vw clamp(72px, 10vh, 120px);
    background: var(--bark);
}

.hub-head {
    max-width: 62ch;
    margin: 0 auto clamp(44px, 6vh, 76px);
    text-align: center;
    color: var(--linen);
}

.hub-head .eyebrow {
    display: block;
    margin-bottom: 20px;
    color: var(--moss);
}

.hub-head .display {
    font-size: clamp(44px, 8vw, 92px);
    font-weight: 300;
}

.hub-head .lede {
    margin-top: 18px;
    color: var(--stone);
    font-weight: 300;
}

/* tile grid (shares the projects vocabulary) */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: clamp(16px, 2.4vw, 30px);
    max-width: 1360px;
    margin: 0 auto;
    list-style: none;
}

.tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--moss-shadow);
    text-decoration: none;
    color: var(--linen);
}

.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(20, 17, 12, 0) 32%,
            rgba(20, 17, 12, 0.28) 62%,
            rgba(20, 17, 12, 0.82) 100%);
    transition: background .5s ease;
}

.tile:hover img,
.tile:focus-visible img { transform: scale(1.08); }

.tile:focus-visible {
    outline: 2px solid var(--linen);
    outline-offset: 3px;
}

.tile-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 28px 30px 26px;
    text-shadow: 0 1px 3px rgba(20, 17, 12, 0.7), 0 2px 20px rgba(20, 17, 12, 0.5);
}

.tile-caption .place {
    display: block;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 300;
    letter-spacing: 0.01em;
}

.tile-caption .rule {
    display: block;
    width: 42px;
    height: 1px;
    margin: 14px 0 12px;
    background: rgba(244, 241, 234, 0.7);
    transform-origin: left;
    transform: scaleX(0.7);
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.tile:hover .rule,
.tile:focus-visible .rule { transform: scaleX(1); }

.tile-caption .sub {
    display: block;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(244, 241, 234, 0.92);
}

/* ═══════════ DETAIL (individual service) ═══════════ */
.svc { background: var(--bark); color: var(--linen); }

.svc-hero {
    position: relative;
    min-height: min(72vh, 620px);
    display: flex;
    align-items: flex-end;
    padding: clamp(96px, 16vh, 180px) 8vw clamp(48px, 8vh, 88px);
    background-size: cover;
    background-position: center;
}

.svc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(20, 17, 12, 0.72) 0%,
            rgba(20, 17, 12, 0.5) 40%,
            rgba(20, 17, 12, 0.72) 78%,
            rgba(20, 17, 12, 0.95) 100%);
}

/* Centred so the breadcrumb trail sits over its own title rather than off to
   one side, and on the same 760px column the prose body below already uses. */
.svc-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 1px 3px rgba(20, 17, 12, 0.9), 0 2px 16px rgba(20, 17, 12, 0.6);
}

.svc-hero .eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--linen);
}

.svc-title {
    font-size: clamp(40px, 6.5vw, 82px);
    font-weight: 300;
}

.svc-lede {
    /* auto side margins so the measure-capped block centres with the rest */
    margin: 24px auto 0;
    max-width: 56ch;
    font-size: clamp(18px, 2.2vw, 21px);
    font-weight: 300;
    line-height: 1.55;
    color: rgba(244, 241, 234, 0.94);
}

/* ═══════════ SLIM CTA ═══════════
   One line, flush under the hero, in the same moss wash as the closing CTA so
   the two read as a pair rather than two different offers. Kept to text weight
   throughout — a button up here would compete with the title above it. */
.svc-topcta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 26px;
    padding: 14px 8vw;
    background: rgba(74, 85, 38, 0.22);
    border-bottom: 1px solid rgba(138, 154, 75, 0.28);
    text-align: center;
}

.svc-topcta-text {
    font-size: clamp(15px, 1.8vw, 17px);
    font-weight: 300;
    color: rgba(244, 241, 234, 0.9);
}

.svc-topcta-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 26px;
}

.svc-topcta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--moss);
    text-decoration: none;
    transition: gap .4s ease, color .4s ease;
}

.svc-topcta-link:hover { gap: 14px; color: var(--linen); }

/* The shared phone link pads itself to button height so it lines up in the
   closing CTA's flex row; in a one-line band that padding is all bloat. */
.svc-topcta .cta-tel { padding: 0 2px; }

/* prose body */
.svc-body {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(56px, 9vh, 104px) 8vw clamp(64px, 10vh, 120px);
}

.svc-prose p {
    font-size: clamp(17px, 2vw, 19px);
    font-weight: 300;
    line-height: 1.72;
    color: rgba(244, 241, 234, 0.9);
}

.svc-prose p + p { margin-top: 22px; }

/* Optional in-body figure — drawings and plans, shown light on the dark page. */
.svc-figure {
    margin-top: clamp(40px, 6vh, 72px);
    background: var(--paper);
    padding: clamp(10px, 1.4vw, 16px);
}

.svc-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.svc-figure figcaption {
    padding: 14px 4px 4px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--slate);
}

/* Break the figure out past the prose column so plan detail stays legible. */
@media (min-width: 1180px) {
    .svc-figure {
        width: 1040px;
        margin-left: -140px;
    }
}

.svc-h2 {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 300;
    margin-bottom: 24px;
}

.svc-list-block { margin-top: clamp(44px, 7vh, 72px); }

.svc-list {
    list-style: none;
    display: grid;
    gap: 2px;
}

.svc-list li {
    position: relative;
    padding: 16px 0 16px 30px;
    border-bottom: 1px solid var(--rule);
    border-color: rgba(229, 225, 215, 0.14);
    font-size: clamp(16px, 1.9vw, 18px);
    font-weight: 300;
    color: rgba(244, 241, 234, 0.92);
}

.svc-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 25px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--moss);
}

.svc-closing { margin-top: clamp(40px, 6vh, 64px); }

/* client reviews */
.svc-reviews {
    margin-top: clamp(48px, 7vh, 76px);
    padding-top: clamp(32px, 5vh, 48px);
    border-top: 1px solid rgba(229, 225, 215, 0.14);
}

.svc-reviews > .eyebrow {
    display: block;
    color: var(--moss);
    margin-bottom: 24px;
}

.svc-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(20px, 3vw, 32px);
}

.svc-review {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-review .rev-stars {
    color: var(--moss);
    font-size: 14px;
    letter-spacing: 0.12em;
    line-height: 1;
}

.svc-review blockquote {
    font-size: clamp(17px, 2vw, 19px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: rgba(244, 241, 234, 0.92);
}

.svc-review figcaption {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(244, 241, 234, 0.82);
}

.svc-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--moss);
    text-decoration: none;
    transition: gap .4s ease;
}

.svc-reviews-link:hover { gap: 14px; }

/* service areas */
.svc-areas {
    margin-top: clamp(48px, 7vh, 76px);
    padding-top: clamp(32px, 5vh, 48px);
    border-top: 1px solid rgba(229, 225, 215, 0.14);
}

.svc-areas .eyebrow {
    display: block;
    color: var(--moss);
    margin-bottom: 12px;
}

.svc-areas p {
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 300;
    color: rgba(244, 241, 234, 0.9);
}

.svc-areas strong { font-weight: 500; color: var(--linen); }

/* CTA */
.svc-cta {
    margin-top: clamp(48px, 7vh, 76px);
    padding: clamp(36px, 5vw, 52px);
    background: rgba(74, 85, 38, 0.22);
    border: 1px solid rgba(138, 154, 75, 0.28);
    text-align: center;
}

.svc-cta-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
}

.svc-cta-sub {
    margin-top: 12px;
    color: var(--stone);
    font-weight: 300;
}

.svc-cta-links {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.svc-btn {
    display: inline-block;
    padding: 14px 30px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    color: var(--bark);
    background: var(--moss);
    transition: background .4s ease, transform .4s ease;
}

.svc-btn:hover { background: #9BAC58; transform: translateY(-2px); }

.svc-btn.ghost {
    background: transparent;
    color: var(--linen);
    border: 1px solid rgba(244, 241, 234, 0.4);
}

.svc-btn.ghost:hover { background: rgba(244, 241, 234, 0.08); border-color: var(--linen); }

@media (max-width: 600px) {
    .tiles { grid-template-columns: 1fr; }
    .svc-hero { min-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
    .tile img { transition: none; }
    .tile:hover img, .tile:focus-visible img { transform: scale(1.02); }
    .svc-btn:hover { transform: none; }
}
