/* =============================================
   LUMIDEST MAKEOVERS — 3D version
   Loaded after style.css by 3d.html only. Same blush, cocoa and clay
   page as the classic version, with an editorial split hero and gentle
   depth on scroll: content rises in with a slight 3D tilt, and panels
   lean softly as they pass through the screen (js/3d.js).
   ============================================= */

.is-3d .hero { background: transparent; }
.is-3d body {
    background:
        radial-gradient(70% 55% at 50% 8%, var(--blush-light) 0%, transparent 70%),
        var(--blush);
    background-attachment: fixed;
}

/* ---------- hero: editorial split ---------- */
.hero--split {
    position: relative;
    min-height: 100svh;
    display: flex; flex-direction: column;
    padding-top: var(--nav-h);
}
/* one large hairline arch behind the stage */
.hero--split::before {
    content: ''; position: absolute; pointer-events: none;
    top: calc(var(--nav-h) + 3vh); right: max(calc((100vw - 1320px) / 2), 2vw);
    width: min(44vw, 620px); height: min(calc(100svh - var(--nav-h) - 3vh - 64px), 860px);
    border: 1px solid rgba(184, 120, 102, 0.28); border-bottom: 0;
    border-radius: 999px 999px 0 0;
}
.hero__grid {
    flex: 1;
    display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    align-items: center; gap: clamp(32px, 5vw, 88px);
    padding-block: clamp(20px, 4vh, 48px);
}
.hero--split .hero__copy { display: block; text-align: left; min-width: 0; }
.hero__overline { display: flex; align-items: center; gap: 16px; }
.hero__overline::before { content: ''; width: 44px; height: 1px; background: var(--clay); }
.hero--split .hero__title { font-size: clamp(2.9rem, 5.4vw, 5.75rem); max-width: 11ch; }
.hero--split .hero__lede { max-width: 40ch; margin-top: 28px; }
.hero--split .hero__actions { justify-content: flex-start; margin-top: 38px; }
.hero__actions .btn__icon { transition: transform .4s var(--ease); }
.hero__actions .btn:hover .btn__icon { transform: translateX(4px); }

.hero__meta {
    display: flex; flex-wrap: wrap; gap: 0;
    margin-top: clamp(32px, 5vh, 56px); padding-top: 22px;
    border-top: 1px solid var(--line);
}
.hero__meta > div { padding-right: clamp(20px, 2.6vw, 40px); margin-right: clamp(20px, 2.6vw, 40px); border-right: 1px solid var(--line); }
.hero__meta > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__meta dt { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--clay-ink); margin-bottom: 6px; }
.hero__meta dd { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }

/* the stage: three tall arch pillars holding the lead photos */
.hero__stage { position: relative; height: min(62svh, 600px); display: grid; align-items: end; }
.hero--split .hero__arches {
    margin: 0; max-width: none; height: 82%;
    grid-template-columns: 1fr 1.35fr 1fr; align-items: end;
}
.hero--split .arch { height: 86%; aspect-ratio: auto; }
.hero--split .arch--centre { height: 100%; }

/* a small turning seal */
.seal {
    position: absolute; left: -2%; bottom: 12%;
    width: clamp(96px, 9vw, 128px); aspect-ratio: 1;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(248, 240, 234, 0.72);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -22px rgba(59, 46, 40, 0.45), inset 0 0 0 1px rgba(184, 120, 102, 0.25);
}
.seal svg { position: absolute; inset: 6%; width: 88%; height: 88%; animation: spin 32s linear infinite; }
.seal text { font-family: var(--sans); font-size: 8.4px; font-weight: 500; letter-spacing: 0.18em; fill: var(--clay-ink); }
.seal__mark { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 2.4vw, 2.4rem); color: var(--clay-display); line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* fine service ticker along the foot of the hero */
.ticker {
    position: relative; z-index: 1; overflow: hidden;
    border-top: 1px solid var(--line);
    padding-block: 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 70s linear infinite; }
.ticker span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.375rem; color: var(--cocoa); white-space: nowrap; }
.ticker i { width: 5px; height: 5px; transform: rotate(45deg); background: var(--clay); opacity: 0.7; flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
    .hero--split::before { display: none; }
    .hero__grid { grid-template-columns: minmax(0, 1fr); padding-top: 40px; gap: 48px; }
    .hero__stage { height: min(62svh, 520px); width: min(100%, 460px); justify-self: center; }
    .seal { left: 0; bottom: 6%; }
}
@media (max-width: 600px) {
    .hero__meta > div { padding-right: 16px; margin-right: 16px; }
    .hero__meta dd { font-size: 1.0625rem; }
    .ticker span { font-size: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
    .seal svg, .ticker__track { animation: none; }
}

/* ---------- depth on the page itself ---------- */
/* the 3D tilt must never widen the page (it pushed the phone menu icon off-screen) */
.is-3d main > section, .is-3d .footer { overflow-x: clip; }
.is-3d main > section > .wrap, .is-3d .footer > .wrap { perspective: 1600px; }

.is-3d.js [data-reveal] {
    transform: perspective(1000px) translateY(40px) rotateX(-12deg);
    transform-origin: 50% 100%;
}
.is-3d.js [data-reveal].is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .is-3d.js [data-reveal] { transform: none; }
}

/* ---------- reviews: calm, readable type for real (often long) Google reviews ---------- */
.is-3d .quote { padding-top: 8px; }
.is-3d .quote::before {
    content: '\201C'; display: block; height: 0.62em; margin-bottom: 18px;
    font-family: var(--serif); font-size: 5.5rem; line-height: 1; color: var(--clay-soft); opacity: 0.8;
}
.is-3d .quote blockquote {
    font-family: var(--serif); font-style: normal; font-weight: 400;
    font-size: clamp(1.25rem, 1.75vw, 1.625rem); line-height: 1.6; letter-spacing: 0.005em;
    max-width: 50ch; margin-inline: auto; color: var(--blush);
    text-wrap: pretty; -webkit-line-clamp: 6;
}
.is-3d .quote figcaption { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; }
.is-3d .quote figcaption a, .is-3d .quote figcaption > span:first-child { color: var(--blush); }
.is-3d .quote__more { margin-top: 14px; }

/* ---------- phones: richer, less "long list of text" ---------- */
@media (max-width: 600px) {
    :root { --section: 76px; }

    /* hero: photos first, then the words */
    .hero__grid { gap: 36px; padding-top: 24px; }
    .hero__stage { order: -1; height: 360px; width: 100%; }
    .seal { width: 88px; left: 2%; bottom: 8%; }
    .hero--split .hero__title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
    .hero__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
    .hero__meta > div { padding: 0 10px; margin: 0; border-right: 1px solid var(--line); }
    .hero__meta > div:first-child { padding-left: 0; }
    .hero__meta > div:last-child { border-right: 0; padding-right: 0; }
    .hero__meta dt { font-size: 0.5625rem; letter-spacing: 0.2em; }
    .hero__meta dd { font-size: 0.9375rem; }

    /* services: each one becomes a soft card */
    .menu { gap: 10px; }
    .menu > li { background: var(--blush-light); border: 1px solid var(--line); }
    .menu__row { padding: 22px 18px; border: 0; grid-template-columns: 46px 1fr; }
    .menu__no { font-size: 1.75rem; line-height: 1; color: var(--clay); }

    /* why-us: a swipeable row of cards */
    .difference__list {
        display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px;
        scrollbar-width: none;
    }
    .difference__list::-webkit-scrollbar { display: none; }
    .difference__list article {
        flex: 0 0 78%; scroll-snap-align: center;
        padding: 30px 22px; background: var(--blush-light); border: 1px solid var(--line);
    }
    .difference__list article[data-reveal] { transform: none; }

    /* reviews */
    .is-3d .quote::before { font-size: 4.25rem; margin-bottom: 10px; }
    .is-3d .quote blockquote { font-size: 1.1875rem; -webkit-line-clamp: 8; }
}
