/* ==========================================================================
   Forma Bathrooms — design demo
   Fresh coastal: white + navy + teal + sand, Plus Jakarta Sans, rounded cards and pills.
   ========================================================================== */

:root {
    --bg: #F7FAFB;
    --surface: #FFFFFF;
    --mist: #E6F0F2;
    --ink: #0F2A3D;
    --text: #41566A;
    --muted: #7C8D9C;
    --teal: #2E8C8A;
    --teal-hover: #24706F;
    --teal-soft: rgba(46, 140, 138, 0.12);
    --sand: #F0B58A;
    --sand-soft: rgba(240, 181, 138, 0.16);
    --navy: #0F2A3D;
    --navy-deep: #0B2233;
    --line: #DCE7EB;

    --ff: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 20px;
    --radius-lg: 28px;
    --shadow: 0 10px 30px rgba(15, 42, 61, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 42, 61, 0.14);

    --container: 1240px;
    --gutter: 40px;
    --header-pad: 14px;
    --frame: 12px;
    --mobile-bar-h: 0px;
}

@media (max-width: 1024px) {
    :root { --gutter: 28px; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; --header-pad: 10px; --frame: 8px; --radius-lg: 22px; --mobile-bar-h: 72px; }
}

/* Base ----------------------------------------------------------------- */

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

/* No smooth scroll-behavior on html: it breaks ScrollTrigger's pin measurement after a reload.
   Anchor links scroll smoothly through main.js instead. */
html {
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
    background-color: var(--bg);
}

body {
    margin: 0;
    font-family: var(--ff);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
img { height: auto; } /* lets aspect-ratio win over the height attribute */
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

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

section[id] { scroll-margin-top: 96px; }

/* Type ----------------------------------------------------------------- */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal-hover);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.tag--sand { background: var(--sand-soft); color: var(--sand); }

.title {
    font-size: clamp(32px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ink);
}

.title--light { color: #FFFFFF; }

.head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.head p { max-width: 56ch; font-size: 17px; }
.head a { color: var(--teal); font-weight: 700; }

.head--center { align-items: center; text-align: center; }
.head--center .title { max-width: 18ch; }

.head--row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.head--row > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.head--row .title { max-width: 16ch; }

/* Buttons -------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary { background: var(--teal); color: #FFFFFF; box-shadow: 0 8px 20px rgba(46, 140, 138, 0.28); }
.btn--primary:hover { background: var(--teal-hover); }

.btn--soft { background: var(--mist); color: var(--ink); }
.btn--soft:hover { background: #D7E7EA; }

.btn--light { background: #FFFFFF; color: var(--ink); }
.btn--light:hover { background: var(--bg); }

.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--block { width: 100%; }

/* Logo ----------------------------------------------------------------- */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__mark circle { fill: var(--teal); }
.logo__mark path { fill: #FFFFFF; }

.logo__text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.logo__text span { margin-left: 4px; font-weight: 500; color: var(--teal); }

.logo--light { color: #FFFFFF; }
.logo--light .logo__text span { color: #8FD3CF; }

/* Header: floating pill ------------------------------------------------ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--header-pad) var(--gutter) 0;
    pointer-events: none; /* only the pill catches clicks, not the gap around it */
}

.header__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: var(--container);
    height: 64px;
    margin: 0 auto;
    padding: 0 10px 0 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(15, 42, 61, 0.1);
    pointer-events: auto;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header.is-scrolled .header__bar { background: rgba(255, 255, 255, 0.97); box-shadow: 0 10px 30px rgba(15, 42, 61, 0.14); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }

.nav__list a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nav__list a:hover { background: var(--mist); }
.nav__phone { display: none; }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.header__phone {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mist);
    color: var(--ink);
    transition: background-color 0.2s ease;
}

.header__phone:hover { background: #D7E7EA; }
.header__phone svg { width: 18px; height: 18px; fill: currentColor; }
.header__cta { padding: 12px 22px; }

.burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    cursor: pointer;
}

.burger span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    border-radius: 2px;
    background: #FFFFFF;
    transition: transform 0.3s ease, top 0.3s ease;
}

.burger span:first-child { top: 18px; }
.burger span:last-child { top: 24px; }
.header.is-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.header.is-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1000px) {
    .burger { display: block; }

    /* The menu drops down as a card under the pill. */
    .nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        margin: 0;
        padding: 12px;
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    .header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
    .nav__list { flex-direction: column; gap: 2px; }
    .nav__list a { padding: 14px 16px; border-radius: 14px; font-size: 17px; }

    .nav__phone {
        display: block;
        margin-top: 8px;
        padding: 14px 16px;
        border-radius: 14px;
        background: var(--mist);
        font-weight: 700;
        color: var(--ink);
        text-decoration: none;
    }
}

@media (max-width: 640px) {
    .header__bar { height: 58px; padding: 0 7px 0 14px; gap: 12px; }
    .header__cta { display: none; }
    .logo__mark { width: 34px; height: 34px; }
    .logo__text { font-size: 19px; }
}

/* Hero: rounded framed video ------------------------------------------- */

.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    padding: var(--frame);
    background: var(--bg);
}

.hero__frame {
    position: relative;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy);
}

.hero__media { position: absolute; inset: 0; }

/* Navy wash at the bottom-left: the captions sit straight on the video, without a card. */
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to top, rgba(11, 34, 51, 0.78) 0%, rgba(11, 34, 51, 0.35) 38%, rgba(11, 34, 51, 0) 62%),
        linear-gradient(to right, rgba(11, 34, 51, 0.45) 0%, rgba(11, 34, 51, 0) 55%);
    pointer-events: none;
}

.hero__slide { position: absolute; inset: 0; }

.hero__canvas,
.hero__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hidden by main.js (.is-video-ready) once the canvas has painted its first frame. */
.hero__poster { transition: opacity 0.3s ease; }
.hero__slide.is-video-ready .hero__poster { opacity: 0; }

/* All caption cards share one anchor at the bottom-left and grow upwards; main.js tweens y. */
.hero__captions {
    position: absolute;
    left: clamp(16px, 3vw, 40px);
    bottom: clamp(16px, 3vw, 40px);
    z-index: 3;
    width: min(540px, calc(100% - 32px));
}

.hero__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
}

.hero__caption.is-active { opacity: 1; visibility: visible; }

.hero__caption .tag {
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
}

.hero__title {
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #FFFFFF;
    text-shadow: 0 2px 24px rgba(11, 34, 51, 0.35);
}

/* Highlighter stroke in sand under the second half of the headline. */
.hl {
    display: inline;
    color: var(--teal);
    background: linear-gradient(transparent 62%, var(--sand-soft) 62%, var(--sand-soft) 92%, transparent 92%);
}

/* On the video the highlight is colour only: the sand stroke turns muddy over the footage. */
.hero .hl { color: #9BE0DB; background: none; }

.hero__text { font-size: 17px; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 12px rgba(11, 34, 51, 0.4); }
.hero__text strong { color: #FFFFFF; }

.hero__actions .btn--soft {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
}

.hero__actions .btn--soft:hover { background: rgba(255, 255, 255, 0.24); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Chapter pills; --fill (0..1, from main.js) fills each pill from the left. */
.hero__progress {
    position: absolute;
    right: clamp(16px, 3vw, 40px);
    bottom: clamp(16px, 3vw, 40px);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero__progress li {
    position: relative;
    overflow: hidden;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
    color: rgba(15, 42, 61, 0.7);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.hero__progress li.is-active { background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.hero__progress span { position: relative; z-index: 1; }

.hero__progress i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--teal);
    transform: scaleX(var(--fill, 0));
    transform-origin: left;
}

@media (max-width: 900px) {
    .hero__captions { right: 16px; width: auto; bottom: 64px; }
    .hero__progress { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
    .hero__progress li { flex: 1; text-align: center; }
}

@media (max-width: 640px) {
    .hero__captions { left: 10px; right: 10px; bottom: 58px; }
    .hero__progress { left: 10px; right: 10px; bottom: 10px; gap: 6px; }
    .hero__progress li { padding: 8px 10px; font-size: 12px; }
    .hero__caption { gap: 12px; }
    .hero__text { font-size: 15px; }
    .hero__actions .btn { padding: 12px 18px; font-size: 14px; }
    .hero__actions .btn--soft { display: none; } /* keeps the caption to one row of buttons */
    .tag { font-size: 12px; padding: 5px 12px; }
}

/* Phones held sideways: under ~500px of height (less with Safari's bars) the caption reaches the header,
   so it gets smaller and the chapter pills become a slim row at the bottom. */
@media (orientation: landscape) and (max-height: 500px) {
    .hero__captions { left: 16px; right: 16px; bottom: 52px; width: auto; max-width: 600px; }
    .hero__caption { gap: 8px; }
    .hero__caption .tag { font-size: 11px; padding: 4px 10px; }
    .hero__title { font-size: clamp(24px, 7.5vh, 34px); }
    .hero__text { font-size: 14px; line-height: 1.45; }
    .hero__actions .btn { padding: 9px 16px; font-size: 13px; }

    .hero__progress { left: 16px; right: 16px; bottom: 12px; justify-content: center; gap: 6px; }
    .hero__progress li { flex: 1; text-align: center; padding: 6px 10px; font-size: 12px; }
}

/* Stats ---------------------------------------------------------------- */

.stats { padding: clamp(28px, 4vw, 48px) 0 0; }

.stats__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stats__list li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stats__icon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal);
    font-size: 20px;
}

.stats__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stats__list strong { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.stats__list li > span:last-child { font-size: 14px; line-height: 1.35; color: var(--muted); }

@media (max-width: 1000px) { .stats__list { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 520px) {
    .stats__list { gap: 10px; }
    .stats__list li { grid-template-columns: 1fr; padding: 16px; row-gap: 2px; }
    .stats__icon { grid-row: auto; width: 40px; height: 40px; margin-bottom: 8px; }
    .stats__list strong { font-size: 22px; }
}

/* Sections ------------------------------------------------------------- */

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tight { padding-top: 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.78); }

/* Project showcase ----------------------------------------------------- */

.showcase {
    padding: clamp(24px, 4vw, 56px);
    border-radius: var(--radius-lg);
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
}

.showcase__head {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px 48px;
    align-items: end;
    margin-bottom: 32px;
}

.showcase__head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.compare {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy-deep);
    user-select: none;
}

.compare img { width: 100%; height: 100%; object-fit: cover; }

.compare__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    margin-left: -1.5px;
    background: #FFFFFF;
    pointer-events: none;
}

.compare__handle::after {
    content: "⟷";
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--teal);
    border: 3px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 22px;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.compare__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.compare__tag {
    position: absolute;
    top: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
}

.compare__tag--before { left: 14px; }
.compare__tag--after { right: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }

.chips li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(240, 181, 138, 0.4);
    background: var(--sand-soft);
    font-weight: 700;
    color: #FFFFFF;
}

.chips span { font-size: 13px; font-weight: 600; color: var(--sand); }

.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.days li {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.days img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.days div { padding: 14px 16px 16px; }
.days span { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8FD3CF; }
.days p { font-weight: 600; line-height: 1.4; color: #FFFFFF; }

@media (max-width: 900px) {
    .showcase__head { grid-template-columns: 1fr; }
    .days { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .compare { aspect-ratio: 4 / 3; }
    .compare__handle::after { width: 44px; height: 44px; font-size: 18px; }
    .days { gap: 10px; }
    .days div { padding: 10px 12px 12px; }
    .days p { font-size: 14px; }
    .chips li { padding: 8px 14px; font-size: 14px; }
}

/* Services: bento ------------------------------------------------------ */

.bento {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.bento__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.bento__item h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.bento__item p { flex: 1; font-size: 15px; }

/* The last card spans the two right-hand columns under the other two. */
.bento__item:last-child { grid-column: 2 / 4; }

.bento__item--feature {
    position: relative;
    grid-row: 1 / 3;
    justify-content: flex-end;
    min-height: 460px;
    padding: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
}

.bento__item--feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bento__item--feature:hover img { transform: scale(1.04); }

.bento__item--feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 34, 51, 0.85) 0%, rgba(11, 34, 51, 0.1) 60%);
}

.bento__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px; }
.bento__item--feature h3 { font-size: 30px; color: #FFFFFF; }
.bento__item--feature .price { background: var(--sand); color: var(--ink); }

.badge-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--teal-soft);
}

.badge-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }

.price {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--sand-soft);
    font-size: 13px;
    font-weight: 800;
    color: #B46A33;
}

@media (max-width: 1000px) {
    .bento { grid-template-columns: 1fr 1fr; }
    .bento__item--feature { grid-column: 1 / 3; grid-row: auto; min-height: 380px; }
    .bento__item:last-child { grid-column: auto; }
}

@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; }
    .bento__item--feature { grid-column: auto; min-height: 340px; }
    .bento__item { padding: 24px; }
    .bento__body { padding: 24px; }
}

/* Process: sticky head + vertical steps --------------------------------- */

.process {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: clamp(40px, 7vw, 112px);
    align-items: start;
}

.process__head {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.process__head p { max-width: 40ch; font-size: 17px; }

.vsteps { position: relative; display: flex; flex-direction: column; gap: 16px; }

/* The line that threads the numbered circles. */
.vsteps::before {
    content: "";
    position: absolute;
    left: 51px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--teal) 0 6px, transparent 6px 12px);
    opacity: 0.4;
}

.vsteps li {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    align-items: start;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
}

.vsteps__num {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 6px var(--teal-soft);
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
}

.vsteps h3 { margin: 4px 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.vsteps p { font-size: 15px; }

@media (max-width: 900px) {
    .process { grid-template-columns: 1fr; }
    .process__head { position: static; }
}

@media (max-width: 520px) {
    .vsteps li { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
    .vsteps__num { width: 44px; height: 44px; font-size: 18px; }
    .vsteps::before { left: 39px; }
}

/* Included + offer ----------------------------------------------------- */

.included {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.ticks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.ticks li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

.ticks li::before {
    content: "";
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.offer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--teal);
    color: rgba(255, 255, 255, 0.88);
}

/* Soft water ripples in the corner. */
.offer::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04);
}

.offer > * { position: relative; }
.offer .tag--sand { background: var(--sand); color: var(--ink); }
.offer h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: #FFFFFF; }

.offer__options { display: flex; flex-wrap: wrap; gap: 8px; }

.offer__options li {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

.offer__promise { padding: 16px; border-radius: 16px; background: rgba(11, 34, 51, 0.18); font-size: 15px; }
.offer__promise strong { color: #FFFFFF; }

@media (max-width: 900px) { .included { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } }

/* Reviews -------------------------------------------------------------- */

.rating {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 600;
}

.rating strong { font-size: 24px; font-weight: 800; color: var(--ink); }
.stars { color: #E9A23B; letter-spacing: 2px; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.review {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.review blockquote { flex: 1; font-size: 17px; font-weight: 500; line-height: 1.55; color: var(--ink); }

.review__author {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: center;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}

.review__author small { grid-column: 2; font-size: 13px; font-weight: 600; color: var(--muted); }

.avatar {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--ink);
    font-weight: 800;
}

/* Phones: a swipeable row instead of a stack. */
@media (max-width: 860px) {
    .reviews {
        display: flex;
        gap: 12px;
        margin: 0 calc(var(--gutter) * -1);
        padding: 0 var(--gutter) 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        scrollbar-width: none;
    }

    .reviews::-webkit-scrollbar { display: none; }
    .review { flex: 0 0 min(84%, 360px); scroll-snap-align: start; }
}

/* About + areas -------------------------------------------------------- */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius-lg); }

.about__badges {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about__badges li {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.about__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.about__text > p { font-size: 17px; }

.areas {
    width: 100%;
    margin-top: 12px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--mist);
}

.areas h3 { margin-bottom: 12px; font-size: 15px; font-weight: 800; color: var(--ink); }
.areas__list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.areas__list li {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.postcode { display: flex; flex-wrap: wrap; gap: 8px; }
.postcode input { flex: 1; min-width: 0; text-transform: uppercase; }
.postcode input::placeholder { text-transform: none; }
.postcode__result { flex-basis: 100%; min-height: 1.5em; font-size: 14px; font-weight: 700; }
.postcode__result.is-ok { color: var(--teal-hover); }
.postcode__result.is-maybe { color: #B46A33; }

@media (max-width: 900px) {
    .about { grid-template-columns: 1fr; }
    .about__media img { aspect-ratio: 4 / 3; }
}

/* Form fields ---------------------------------------------------------- */

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    font-size: 16px; /* 16px stops iOS zooming into the field */
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-soft);
}

input.is-invalid { border-color: #D2554A; box-shadow: 0 0 0 4px rgba(210, 85, 74, 0.12); }
textarea { resize: vertical; }

/* FAQ ------------------------------------------------------------------ */

.faq { max-width: 860px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }

.faq__list details {
    border-radius: var(--radius);
    background: var(--surface);
    transition: box-shadow 0.3s ease;
}

.faq__list details[open] { box-shadow: var(--shadow); }

.faq__list summary {
    position: relative;
    padding: 22px 72px 22px 26px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    list-style: none;
    cursor: pointer;
}

.faq__list summary::-webkit-details-marker { display: none; }

.faq__list summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 50%;
    background:
        linear-gradient(#FFFFFF, #FFFFFF) center / 12px 2px no-repeat,
        linear-gradient(#FFFFFF, #FFFFFF) center / 2px 12px no-repeat,
        var(--teal);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 26px 24px; }

@media (max-width: 520px) {
    .faq__list summary { padding: 18px 64px 18px 20px; font-size: 16px; }
    .faq__list details p { padding: 0 20px 20px; }
}

/* Contact -------------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.contact__info { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact__info > p { font-size: 17px; }

.contact__list { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.contact__list li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

.contact__list span { font-size: 13px; font-weight: 700; color: #8FD3CF; padding-top: 1px; }
.contact__list a { font-weight: 700; text-decoration: none; }

.lead-form {
    padding: clamp(22px, 3.5vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    color: var(--text);
}

.lead-form__steps {
    display: flex;
    gap: 6px;
    padding: 6px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: var(--mist);
}

.lead-form__steps li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lead-form__steps b {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--line);
    font-size: 12px;
    color: var(--ink);
}

.lead-form__steps li.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(15, 42, 61, 0.08); }
.lead-form__steps li.is-active b,
.lead-form__steps li.is-done b { background: var(--teal); color: #FFFFFF; }
.lead-form__steps li.is-done { color: var(--teal-hover); }

.lead-form__step { display: flex; flex-direction: column; gap: 16px; }
.lead-form__step[hidden] { display: none; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.optional { font-weight: 500; color: var(--muted); }

.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; }

.choice span {
    display: block;
    padding: 14px 8px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.choice input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-hover); }
.choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.lead-form__nav { display: flex; justify-content: space-between; gap: 10px; }

.lead-form__done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lead-form__done[hidden] { display: none; }
.lead-form__done:focus { outline: none; }
.lead-form__done h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }

.lead-form__check {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--teal);
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 800;
}

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

@media (max-width: 480px) {
    .lead-form__row { grid-template-columns: 1fr; }
    .choice { grid-template-columns: 1fr; }
    .lead-form__nav .btn { flex: 1; padding-left: 14px; padding-right: 14px; }
    .contact__list li { grid-template-columns: 1fr; gap: 2px; }
}

/* Footer --------------------------------------------------------------- */

.footer {
    position: relative;
    padding: 56px 0 calc(28px + var(--mobile-bar-h));
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.66);
    font-size: 15px;
}

/* A wave of the footer colour rising into the navy contact section. */
.footer__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 1px);
    width: 100%;
    height: 40px;
    fill: var(--navy-deep);
}

.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }

.footer h3 { margin-bottom: 14px; font-size: 14px; font-weight: 800; color: #FFFFFF; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #FFFFFF; }
.footer__tagline { max-width: 34ch; margin-top: 16px; }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* Mobile bar ----------------------------------------------------------- */

.mobile-bar { display: none; }

@media (max-width: 640px) {
    .mobile-bar {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 90;
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 6px;
        padding: 6px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: var(--shadow-lg);
        transform: translateY(140%);
        transition: transform 0.35s ease;
    }

    /* Shown once the hero has scrolled away (the hero card has its own CTAs). */
    .mobile-bar.is-visible { transform: none; }
    .mobile-bar .btn { padding: 12px 10px; box-shadow: none; }
    .mobile-bar .btn--ghost { border-color: transparent; background: var(--mist); }
}

/* Page preloader ------------------------------------------------------- */
/* Covers the page until the hero clip can be scrolled (main.js). Only shown when the inline <head> script has
   set html.is-loading, so without JS the page is never blocked. */

.preloader { display: none; }

.is-loading,
.is-loading body { overflow: hidden; }

.is-loading .preloader,
.preloader.is-leaving {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.is-leaving { opacity: 0; visibility: hidden; }

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 0 16px;
    text-align: center;
}

/* The logo's drop, filling with water as the clip arrives; the surface rolls and the drop bobs gently. */
.preloader__drop {
    width: 96px;
    height: auto;
    overflow: visible;
    animation: preloader-bob 2.4s ease-in-out infinite alternate;
}

.preloader__outline { fill: none; stroke: var(--teal); stroke-width: 1.1; stroke-linejoin: round; }

/* SVG user units: the water's surface rises from the tip (y 28) to the top of the drop (y 7). */
.preloader__water {
    transform: translateY(calc(28px - var(--progress, 0) * 21px));
    transition: transform 0.4s ease;
}

.preloader__wave { fill: var(--teal); animation: preloader-wave 1.6s linear infinite; }
.preloader__wave--back { fill: #9BE0DB; transform: translateY(-0.6px); animation-duration: 2.6s; animation-direction: reverse; }

@keyframes preloader-wave {
    from { translate: 0 0; }
    to { translate: 8px 0; }
}

@keyframes preloader-bob {
    from { transform: translateY(-3px); }
    to { transform: translateY(3px); }
}

.preloader__bar {
    position: relative;
    width: min(220px, 70vw);
    height: 6px;
    border-radius: 999px;
    background: var(--mist);
    overflow: hidden;
}

.preloader__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--progress, 0) * 100%);
    border-radius: inherit;
    background: linear-gradient(to right, var(--teal), #9BE0DB);
    transition: width 0.3s ease;
}

.preloader__text {
    margin: 0;
    font-family: var(--ff);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.preloader__value { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .preloader__drop, .preloader__wave { animation: none; }
}
