/* ============================================================
   CAPOS — Aman-inspired editorial design
   Palette: ivory #F3EEE7 / ink #313131 / taupe neutrals only.
   Serif: EB Garamond. Sans: Inter. Flat surfaces, thin rules.
   ============================================================ */

:root {
    --ivory: #F3EEE7;
    --ivory-deep: #ECE5DA;
    --ink: #313131;
    --ink-soft: #55504A;
    --taupe: #665E56;      /* readable muted text — ≥4.5:1 on ivory */
    --taupe-decor: #8B8178; /* pale tone reserved for decorative rules only */
    --rule: rgba(49, 49, 49, 0.18);
    --rule-soft: rgba(49, 49, 49, 0.10);
    --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --gutter: 24px;
}

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

html {
    scroll-behavior: auto;
    scrollbar-gutter: stable; /* menu open/close must not shift page width */
    overflow-y: scroll;       /* fallback keeps the gutter on older browsers */
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* The hidden attribute always wins — the menu stays closed before JS. */
[hidden] { display: none !important; }

body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------
   Accessibility: skip link + dual-ring keyboard focus
   ------------------------------------------------------------ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
    z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--ivory);
}

.cta-dark:focus-visible,
.footer a:focus-visible {
    box-shadow: 0 0 0 6px #FFFFFF;
}

/* ------------------------------------------------------------
   Masthead
   ------------------------------------------------------------ */
.masthead {
    background: var(--ivory);
    position: relative;
    z-index: 50;
}

.masthead-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.4rem var(--gutter) 1.1rem;
    gap: 1rem;
}

.masthead-side { display: flex; align-items: center; gap: 1.5rem; }
.masthead-right { justify-content: flex-end; }

.menu-btn {
    background: transparent;
    border: 1px solid var(--ink);
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    flex: 0 0 96px;
    height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: relative;
    z-index: 60;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.menu-btn:hover { background: var(--ink); color: var(--ivory); }

/* Menu icon: two thin charcoal lines; becomes a simple X when open
   (driven by aria-expanded, so no text swap is needed). */
.menu-icon { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 24px; height: 10px; }
.menu-icon-line { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform 0.2s ease; }
.menu-btn:hover .menu-icon-line,
.menu-btn:focus-visible .menu-icon-line { background: var(--ivory); }
.menu-btn[aria-expanded="true"] .menu-icon-line:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon-line:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.wordmark {
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    display: block;
}

.wordmark-name {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.45rem;
    letter-spacing: 0.32em;
    margin-right: -0.32em; /* optically recenter tracked text */
}

/* Full Capos logo in the masthead — original transparent white artwork
   rendered as a monochrome ink mark for the ivory background. */
.wordmark img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: brightness(0);
    opacity: 0.85;
}

.masthead-login {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
}
.masthead-login:hover { border-bottom-color: var(--ink); }

.cta-dark {
    display: inline-block;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--ink);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.cta-dark:hover { background: transparent; color: var(--ink); }

/* Header CTA matches the Menu control: same size, same border treatment. */
.masthead .cta-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    flex: 0 0 96px;
    height: 44px;
    box-sizing: border-box;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 0 4px;
    white-space: nowrap;
}
.masthead .cta-dark:hover { background: var(--ink); color: var(--ivory); }

/* Second slim navigation bar */
.subnav {
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
    padding: 0.65rem var(--gutter);
}

.subnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 2.4rem;
}

.subnav a {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.2rem 0;
}
.subnav a:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* Menu overlay: fixed below the masthead, scrolls internally, never
   shifts the page width (html keeps a stable scrollbar gutter). The
   panel is closed via the [hidden] attribute before and after JS. */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    position: fixed;
    top: var(--menu-top, 80px);
    left: 0;
    right: 0;
    z-index: 55;
    box-shadow: 0 18px 30px rgba(49, 49, 49, 0.08);
    max-height: calc(100vh - var(--menu-top, 80px));
    max-height: calc(100dvh - var(--menu-top, 80px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.nav-menu li { border-bottom: 1px solid var(--rule-soft); }
.nav-menu li:last-child { border-bottom: none; }

.nav-menu .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero { padding: 1.2rem var(--gutter) 0; }

.hero-frame {
    height: 48vh;
    max-height: 540px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-caption {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--taupe);
    margin: 0.7rem 0 0;
    text-align: right;
}

/* ------------------------------------------------------------
   Shared editorial elements
   ------------------------------------------------------------ */
.eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--taupe);
    margin: 0 0 1.1rem;
}

.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.2vw, 2.1rem);
    line-height: 1.25;
    margin: 0 0 1.2rem;
}

.section-sub {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto;
}

.line-link {
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--taupe-decor);
}
.line-link:hover { text-decoration-color: var(--ink); }

/* ------------------------------------------------------------
   Introduction
   ------------------------------------------------------------ */
.intro {
    text-align: center;
    padding: 5.5rem var(--gutter) 4.5rem;
}

.intro-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    line-height: 1.2;
    margin: 0 auto 1.6rem;
    max-width: 690px;
}

.intro-lede {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 690px;
    margin: 0 auto 2rem;
}

/* Short hero intro bullet points: small disc markers, hanging indent. */
.intro-points {
    margin: 0 0 2rem;
    padding: 0 0 0 1.25rem;
    list-style: disc outside;
}
.intro-points li {
    padding-left: 0.3rem;
    margin: 0 0 0.7rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
.intro-points li:last-child { margin-bottom: 0; }

.intro-link { margin: 0; }

/* ------------------------------------------------------------
   Editorial trio
   ------------------------------------------------------------ */
.trio { padding: 1rem var(--gutter) 5rem; }

.trio-grid {
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: var(--gutter);
    align-items: start;
    max-width: 1240px;
    margin: 0 auto;
}

.trio-item { margin: 0; }
.trio-item img { width: 100%; object-fit: cover; }
.trio-portrait { margin-top: 3.5rem; }
.trio-raised { margin-top: 1.5rem; }

.trio-caption {
    text-align: center;
    font-style: italic;
    color: var(--taupe);
    font-size: 1.02rem;
    margin: 2.5rem auto 0;
}

/* ------------------------------------------------------------
   Spaces we care for
   ------------------------------------------------------------ */
.spaces {
    padding: 4.5rem var(--gutter);
    border-top: 1px solid var(--rule-soft);
}

.section-head {
    text-align: center;
    max-width: 690px;
    margin: 0 auto 3.5rem;
}

.space-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem var(--gutter);
    max-width: 1240px;
    margin: 0 auto;
}

.space img {
    width: 100%;
    height: auto;
    margin-bottom: 1.4rem;
}

.space h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.45rem;
    margin: 0 0 0.7rem;
}

.space > p {
    color: var(--ink-soft);
    margin: 0 0 0.6rem;
}

.space-more { margin-top: 0.6rem; }

.space-more summary {
    cursor: pointer;
    list-style: none;
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--taupe-decor);
}
.space-more summary::-webkit-details-marker { display: none; }
.space-more summary:hover { text-decoration-color: var(--ink); }
.space-more summary::after { content: " +"; }
.space-more[open] summary::after { content: " \2212"; }

.space-more ul {
    list-style: none;
    margin: 1rem 0 1.1rem;
    padding: 0;
    border-top: 1px solid var(--rule-soft);
}

.space-more li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 1rem;
    color: var(--ink-soft);
}

/* Smaller editorial features */
.space-minor {
    max-width: 1240px;
    margin: 4.5rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem var(--gutter);
    padding-top: 3.5rem;
    border-top: 1px solid var(--rule-soft);
}

.space-minor-item img {
    width: 100%;
    height: auto;
    margin-bottom: 1.3rem;
}

.space-minor-item h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.3rem;
    margin: 0 0 0.6rem;
}

.space-minor-item p {
    color: var(--ink-soft);
    margin: 0 0 0.8rem;
}

/* ------------------------------------------------------------
   Full-width still + care section
   ------------------------------------------------------------ */
.still img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.care { padding: 5rem var(--gutter); }

.care-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem var(--gutter);
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
}

.care-visual { margin: 0; }
.care-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.care-text p {
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 0 1.1rem;
}

.care-text .section-title { margin-bottom: 1.4rem; }

/* ------------------------------------------------------------
   Client access
   ------------------------------------------------------------ */
.access {
    padding: 4.5rem var(--gutter);
    border-top: 1px solid var(--rule-soft);
    text-align: center;
}

.access-inner { max-width: 690px; margin: 0 auto; }

.access-lede {
    font-size: 1.12rem;
    color: var(--ink-soft);
    margin: 0 0 2.2rem;
}

.access-ctas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Enquiry
   ------------------------------------------------------------ */
.enquire {
    padding: 4.5rem var(--gutter);
    border-top: 1px solid var(--rule-soft);
}

.enquire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem var(--gutter);
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.enquire-invite p {
    color: var(--ink-soft);
    max-width: 460px;
    margin: 0 0 1.2rem;
}

.enquire-contact { line-height: 2; }
.enquire-contact a { color: var(--ink); }

.enquire-action {
    border-left: 1px solid var(--rule-soft);
    padding-left: var(--gutter);
}

.enquire-cta { margin-bottom: 1.4rem; }

.enquire-note {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0 0 0.9rem;
}

.enquire-note a, .privacy-link { color: var(--ink); }

/* ------------------------------------------------------------
   FAQs
   ------------------------------------------------------------ */
.faqs {
    padding: 4.5rem var(--gutter) 5rem;
    border-top: 1px solid var(--rule-soft);
}

.faqs-inner { max-width: 760px; margin: 0 auto; }
.faqs .section-title { margin-bottom: 2rem; }

.faq-list { border-top: 1px solid var(--rule); }

.faq-item { border-bottom: 1px solid var(--rule); }

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.2rem 0;
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-family: var(--sans);
    font-weight: 400;
    color: var(--taupe);
    flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
    color: var(--ink-soft);
    margin: 0;
    padding: 0 0 1.3rem;
    max-width: 640px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
    border-top: 1px solid var(--rule);
    padding: 3.5rem var(--gutter) 2rem;
    background: var(--ivory);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem var(--gutter);
    max-width: 1240px;
    margin: 0 auto 3rem;
}

.footer-wordmark { font-size: 1.1rem; margin-bottom: 1rem; display: inline-block; }

.footer-wordmark img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.85;
}

.footer-brand p {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin: 0 0 0.8rem;
}

.footer-brand a { color: var(--ink); text-decoration: none; }
.footer-brand a:hover { text-decoration: underline; }

.footer-col h4 {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--taupe);
    font-weight: 500;
    margin: 0 0 1rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--ink-soft);
    padding: 0.25rem 0;
}

.footer-col a {
    color: var(--ink-soft);
    text-decoration: none;
}
.footer-col a:hover { color: var(--ink); text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid var(--rule-soft);
    padding-top: 1.4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1240px;
    margin: 0 auto;
}

.footer-bottom p {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--taupe);
    margin: 0;
}

.footer-bottom a { color: var(--taupe); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .subnav { display: none; }
    .masthead-login { display: none; }
}

@media (max-width: 820px) {
    .service-scope-grid { grid-template-columns: 1fr; gap: 2.8rem; }
    .service-gallery { grid-template-columns: 1fr; }
    .intro-solo { padding-top: 4.5rem; }

    .trio-grid { grid-template-columns: 1fr 1fr; }
    .trio-portrait { margin-top: 0; }
    .trio-raised { margin-top: 0; }
    .trio-landscape:first-child { grid-column: 1 / -1; }

    .space-grid,
    .space-minor,
    .care-grid,
    .enquire-grid { grid-template-columns: 1fr; gap: 2.8rem; }

    .enquire-action {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--rule-soft);
        padding-top: 2.5rem;
    }

    .footer-inner { grid-template-columns: 1fr 1fr; }
}


/* Compact single-row phone header: Menu left, centered logo,
   "Get a quote" right — equal controls, no second row. */
@media (max-width: 767px) {
    .masthead-row {
        padding: 16px;
        gap: 8px;
        min-height: 80px;
    }
    .wordmark img { width: clamp(88px, 28vw, 105px); }
}

@media (max-width: 480px) {
    :root { --gutter: 18px; }

    .hero-frame { height: 45vh; }
    .still img { height: 42vh; }

    .trio-grid { grid-template-columns: 1fr; }
    .trio-landscape:first-child { grid-column: auto; }

    .masthead-row { padding-top: 1.1rem; gap: 0.5rem; }
    .wordmark img { width: 125px; }
    .cta-dark { padding: 0.55rem 1.1rem; font-size: 0.7rem; }

    .intro { padding-top: 3.5rem; padding-bottom: 3rem; }
    .intro-title { font-size: 34px; line-height: 1.1; }
    .spaces, .care, .access, .enquire, .faqs { padding-top: 3rem; padding-bottom: 3rem; }

    .access-ctas { gap: 1.2rem; }

    .scope { padding-top: 3rem; padding-bottom: 3rem; }
    .service-links { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .service-links ul { gap: 0.7rem 1.6rem; }
    .space-minor-textonly { padding: 1.8rem 1.4rem; }

    .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-bottom { flex-direction: column; }
}

/* ------------------------------------------------------------
   Service landing pages
   ------------------------------------------------------------ */

/* Mobile menu: service sub-links under "Our services" */
.nav-services { list-style: none; margin: 0; padding: 0 0 0.4rem; }
.nav-services a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.2rem 0 0.2rem 1.1rem;
    font-family: var(--sans);
    font-size: 0.88rem;
    color: var(--ink-soft);
    text-decoration: none;
}
.nav-services a:hover,
.nav-services a[aria-current="page"] { color: var(--ink); }

/* Homepage service cards: link to the dedicated page */
.space-page-link { margin: 0.55rem 0 0; }

/* Medical feature on the homepage: refined text-only panel */
.space-minor-textonly {
    border: 1px solid var(--rule-soft);
    background: var(--ivory-deep);
    padding: 2.4rem 2rem;
    display: flex;
    align-items: center;
}
.space-minor-textonly .space-minor-text { max-width: 46ch; }

/* Service page: scope & scheduling section */
.scope {
    padding: 4.5rem var(--gutter);
    border-top: 1px solid var(--rule-soft);
}
.service-scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem var(--gutter);
    max-width: 1100px;
    margin: 0 auto;
}
.scope-heading {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--taupe);
    font-weight: 500;
    margin: 0 0 1rem;
}
.scope-list {
    margin: 0;
    padding: 0 0 0 1.2em;
    list-style: disc outside;
}
.scope-list li {
    display: list-item;
    list-style: disc;
    border: 0;
    padding: 0;
    margin: 0 0 12px;
    line-height: 1.65;
    color: var(--ink-soft);
    font-size: 1.02rem;
}
.scope-list li:last-child { margin-bottom: 0; }

/* Medical page: disinfection & sanitation editorial section */
.disinfection-list { max-width: 690px; margin: 0 auto; }
.disinfection-list .scope-list strong { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.disinfection-note { font-size: 0.95rem; color: var(--ink-soft); margin: 1.4rem 0 0; }

/* Medical page: text-only opening until approved photos arrive */
.intro-solo { padding-top: 7rem; }

/* Gallery slots: code-only until the owner's photos are uploaded.
   The [hidden] attribute keeps the section invisible; when photos are
   added and [hidden] is removed, this grid renders them undistorted. */
.service-gallery[hidden] { display: none; }
.service-gallery {
    padding: 1rem var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
    width: 100%;
    min-width: 0;
    max-width: 1240px;
    margin: 0 auto;
    align-items: start;
}
.service-gallery > * { min-width: 0; max-width: 100%; }
/* Reserved geometry before lazy load: aspect-ratio classes pin the
   final box (portrait 3:4, landscape 4:3) so nothing jumps 0 → full. */
.service-gallery img {
    display: block;
    min-width: 0;
    width: 100%;
    height: auto;
    max-width: min(100%, 800px);
    object-fit: contain;
    margin-inline: auto;
}
.service-gallery img.ar-34 { aspect-ratio: 3 / 4; max-width: min(100%, 420px); }
.service-gallery img.ar-43 { aspect-ratio: 4 / 3; max-width: min(100%, 747px); }
.service-gallery img:only-child { grid-column: 1 / -1; }

/* Cross-links to the other service pages */
.service-links {
    padding: 3.5rem var(--gutter);
    border-top: 1px solid var(--rule-soft);
}
.service-links-inner { max-width: 1100px; margin: 0 auto; }
.service-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 2.4rem;
}
.service-links a {
    font-family: var(--sans);
    font-size: 0.88rem;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--taupe-decor);
    padding-bottom: 2px;
}
.service-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ------------------------------------------------------------
   Owner work photos: main-and-detail editorial compositions.
   Genuine Capos work photography — natural proportions, no
   distortion, no aggressive cropping of portrait shots.
   ------------------------------------------------------------ */
.space-media {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 1.4rem;
}
.space-media img {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    display: block;
}
.space-media-even { grid-template-columns: 1fr 1fr; }

/* Portrait-friendly hero frame for portrait work photos */
.hero-frame-tall {
    height: auto;
    max-height: none;
    aspect-ratio: 3 / 4;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 820px) {
    .space-media { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Save84: unified photographic treatment.
   Split hero (headline + genuine showroom photo) and one equal
   4:3 lead media window per service on the homepage. Genuine
   photos are never altered — only consistently framed.
   ------------------------------------------------------------ */
.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem var(--gutter) 4.5rem;
}
.hero-split-text { max-width: 560px; }
.hero-split-media {
    margin: 0;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 560px;
    overflow: hidden;
    background: var(--ivory-deep);
}
.hero-split-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* One equal lead photo per service card, identical 4:3 window */
.space-media-single {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ivory-deep);
    margin-bottom: 1.4rem;
}
.space-media-single img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.space .eyebrow { margin-bottom: 0.4rem; }

/* How-we-work text, centered without the stock towel image */
.care-text-solo {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}
.care-text-solo p { margin-left: auto; margin-right: auto; }

/* Very subtle unifying tone for genuine work photos only */
.hero-split-media img,
.space-media-single img,
.service-gallery img {
    filter: brightness(1.02) saturate(0.98);
}

@media (max-width: 820px) {
    .space-grid { grid-template-columns: 1fr; }
}

@media (max-width: 699px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        padding-top: 24px;
    }
    .hero-split-media { max-height: none; }
}

/* ------------------------------------------------------------
   Service pages: homepage-style split intro — text/H1/CTA on the
   left, mapped lead photo on the right in a compact, proportional
   frame (never cropped). Mobile: text first, then photo. Support
   photos appear once, further down, proportional and uncropped.
   ------------------------------------------------------------ */
.service-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem var(--gutter) 4.5rem;
}
.service-intro-text { max-width: 560px; }
.service-intro-media {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--ivory-deep);
}
/* Lead photo: reserved box before load (portrait 3:4, landscape 4:3),
   height capped at 520px on desktop via the max-width caps below. */
.service-intro-media img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}
.service-intro-media img.ar-34 { aspect-ratio: 3 / 4; max-width: min(100%, 390px); }
.service-intro-media img.ar-43 { aspect-ratio: 4 / 3; max-width: min(100%, 694px); }
@media (max-width: 699px) {
    .service-intro {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        padding-top: 2.2rem;
    }
    .service-intro-media img { max-height: 60vh; }
    .service-intro-media img.ar-34 { max-width: min(100%, 45vh); }
}
