/* Wellness Bookings Portal — www landing page (static, no build step) */

:root {
    --brand: #3474b7;          /* panel blue, sampled from Rowland's mockup */
    --brand-dark: #24588f;
    --tagline: #2f6db3;
    --ink: #1d2733;
    --feature-top: #4f9be0;
    --feature-bottom: #2b70b8;
    --radius: 6px;
    font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

html, body { margin: 0; }
body { color: var(--ink); background: #fff; line-height: 1.4; -webkit-font-smoothing: antialiased; }

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

a:focus-visible { outline: 3px solid #ffd54a; outline-offset: 3px; }

/* ---------- Layout ---------- */

.layout {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    min-height: 100vh;
}

.panel {
    background: var(--brand);
    color: #fff;
    padding: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 4vw, 5rem);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.panel a { color: #fff; }

.showcase {
    padding: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;      /* keeps the screenshot + logos in view while the panel scrolls */
    overflow: auto;
}

/* ---------- Panel content ---------- */

.masthead h1 {
    margin: 0;
    font-size: clamp(2rem, 3.7vw, 4rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.byline {
    margin: .4rem 0 0;
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    font-weight: 700;
}

.intro p {
    margin: 0 0 1.2rem;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    max-width: 44em;
}

.ticks {
    margin: 1.5rem 0 0;
    padding-left: 1.3em;
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.55;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 4.5rem;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--feature-top), var(--feature-bottom));
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;          /* bold ≥ 18.66px counts as large text for WCAG contrast */
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.contact h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

.contact-list li { display: flex; align-items: center; gap: .75rem; }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

.icon { width: 1.3em; height: 1.3em; flex: none; fill: currentColor; opacity: .9; }

.legal { margin-top: auto; font-size: clamp(.95rem, 1.2vw, 1.15rem); }
.legal p { margin: 0; }

/* ---------- Showcase ---------- */

.tagline {
    margin: 0;
    color: var(--tagline);
    font-size: clamp(1.6rem, 2.35vw, 3rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-shot {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(16, 40, 70, .22), 0 0 0 1px rgba(16, 40, 70, .08);
    transition: transform .15s ease;
}

.hero-shot:hover { transform: scale(1.01); }

.logos {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.logo-ls { width: min(60%, 300px); }
.logo-wt { width: min(30%, 120px); }

/* ---------- Pop-ups (pure CSS via :target) ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(.75rem, 3vw, 3rem);
}

.lightbox:target { display: flex; animation: fade .15s ease-out; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 45, .75);
}

.lightbox figure {
    position: relative;
    margin: 0;
    max-width: min(1200px, 100%);
    max-height: 100%;
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.lightbox h2 {
    margin: 0 2.5rem 1rem 0;
    color: var(--tagline);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.lightbox img {
    max-height: calc(100vh - 14rem);   /* whole figure incl. caption fits on screen */
    width: auto;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(16, 40, 70, .12);
    margin: 0 auto;
}

.lightbox figcaption {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #3a4756;
}

.lightbox-close {
    position: absolute;
    top: .6rem;
    right: .9rem;
    font-size: 2rem;
    line-height: 1;
    color: #555;
    text-decoration: none;
}

.lightbox-close:hover { color: #000; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Stack: masthead → tagline + screenshot → copy → features → contact → logos */
@media (max-width: 860px) {
    .layout { display: flex; flex-direction: column; }
    .panel, .showcase { display: contents; }

    .panel > * { background: var(--brand); color: #fff; margin: 0; padding: 0 1.5rem 2rem; }
    .masthead { order: 1; padding-top: 2rem !important; }
    .intro    { order: 3; padding-top: 2rem !important; }
    .features { order: 4; }
    .contact  { order: 5; }
    .legal    { order: 6; padding-bottom: 2.5rem !important; }

    .showcase > * { background: #fff; }
    .tagline   { order: 2; padding: 1.75rem 1.5rem .75rem; text-align: center; }
    .hero-shot { order: 2; margin: 0 1.5rem 2rem; }
    .logos     { order: 7; padding: 2rem 1.5rem; align-items: center; }

    .showcase { position: static; height: auto; }
}

@media (max-width: 520px) {
    .features { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
    .feature { min-height: 3.5rem; }
    .lightbox figure { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.shot-pending {
    display: grid;
    place-items: center;
    min-height: 40vh;
    min-width: min(70vw, 900px);
    border: 2px dashed #b8c7d9;
    border-radius: 4px;
    color: #6b7a8c;
    font-size: 1.2rem;
}

/* Four-button variant while Booking + Surveys are hidden */
@media (min-width: 521px) {
    .features-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.legal .small-print {
    margin-top: .75rem;
    font-size: .85rem;
    opacity: .85;
    max-width: 48em;
}

.badge-ce { flex: none; display: block; border: none; width: 100px; height: 100px; }   /* Blockmark default is 132px; scales cleanly */
.badge-ce img { width: clamp(56px, 5vw, 76px); }   /* static fallback (commented out in index.html) */

/* three items in the logos row — keep it inside narrow screens */
.logos { gap: clamp(.75rem, 2vw, 2rem); }
.logos > * { min-width: 0; }
.logo-ls { width: min(50%, 300px); }
.logo-wt { width: min(22%, 120px); }
