/* ==========================================================================
   Acurona — design tokens
   ========================================================================== */

@font-face {
    font-family: "Unbounded";
    src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
}
@font-face {
    font-family: "Albert Sans";
    src: url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Albert Sans";
    src: url("../fonts/albert-sans-latin-wght-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Brand palette (from the brief) */
    --night:   #141666;
    --indigo:  #351268;
    --plum:    #501466;   /* logo colour — primary */
    --orchid:  #7F0F74;
    --berry:   #A81056;
    --violet:  #8010A8;
    --forest:  #106B53;
    --jade:    #10A888;
    --gold:    #7F620F;

    /* Neutrals */
    --ink:     #1d1426;
    --muted:   #5e5468;
    --line:    #e6e0ea;
    --paper:   #faf8fb;
    --mist:    #f3eef5;
    --white:   #ffffff;

    --font-head: "Unbounded", system-ui, sans-serif;
    --font-body: "Albert Sans", system-ui, sans-serif;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(53, 18, 104, .25);
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--plum);
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }

p { margin: 0 0 1em; }
a { color: var(--orchid); text-underline-offset: 3px; }
a:hover { color: var(--berry); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--jade); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--plum); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 1rem;
}
.lead { font-size: 1.15em; color: var(--muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--orchid); color: #fff; }
.btn-accent { background: var(--jade); color: #06231b; }
.btn-accent:hover { background: #13c09c; color: #06231b; }
.btn-ghost { border-color: var(--plum); color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--plum); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 251, .88);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-logo { height: 48px; width: auto; }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .08em; color: var(--plum); }
.brand-sub { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--plum); margin-top: .35rem; opacity: .8; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--jade); }
.nav-cta { padding: .65rem 1.2rem; font-size: .78rem; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--plum); border-radius: 2px; transition: transform .2s ease; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: 76px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 1rem;
        padding: 1.5rem var(--gutter) 2rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s;
    }
    .nav.open { transform: none; visibility: visible; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav-cta { justify-content: center; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tint { background: var(--mist); }
.section-dark { background: linear-gradient(135deg, var(--night), var(--indigo) 55%, var(--plum)); color: #ece6f3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--jade); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--night) 0%, var(--indigo) 45%, var(--plum) 75%, var(--orchid) 100%);
    color: #f1ebf6;
    padding-block: clamp(4rem, 10vw, 8rem);
}
.hero::after {
    content: "";
    position: absolute; right: -10%; top: -20%;
    width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
    background: radial-gradient(circle, rgba(16,168,136,.35), transparent 65%);
    pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--jade); }
.hero .lead { color: #d9cfe4; max-width: 34em; }
.hero-media .ph, .hero-media img { aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius); object-fit: cover; width: 100%; }
.hero-media .ph { background: linear-gradient(160deg, rgba(255,255,255,.15), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.2); color: #fff; }

.page-hero { background: linear-gradient(120deg, var(--indigo), var(--plum)); color: #e9e0f1; padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .eyebrow { color: var(--jade); }
.page-hero p { max-width: 46em; color: #d9cfe4; font-size: 1.1em; margin: 0; }

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

/* Image placeholder (until real photos are supplied) */
.ph {
    display: grid; place-items: center;
    background: repeating-linear-gradient(45deg, var(--mist), var(--mist) 12px, #ece5f0 12px, #ece5f0 24px);
    color: var(--muted);
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    text-align: center;
    font-size: .8rem;
    padding: 1rem;
}
.ph span { background: rgba(255,255,255,.75); color: var(--plum); padding: .3rem .7rem; border-radius: 999px; }

/* Highlights strip */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--accent, var(--plum));
}
.pillar .ph, .pillar img { margin-bottom: 1.25rem; aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.pillar p { color: var(--muted); margin: 0; }
.accent-plum  { --accent: var(--plum); }
.accent-green { --accent: var(--forest); }
.accent-gold  { --accent: var(--gold); }

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

/* Care list */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1.5rem 0 0; }
.chips li { background: var(--white); border: 1px solid var(--line); padding: .45rem .9rem; border-radius: 999px; font-size: .92rem; }
.section-dark .chips li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }

/* Split (image + text) */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse { grid-template-columns: 1.2fr .8fr; }
.split.reverse > :first-child { order: 2; }
.split .ph, .split img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); width: 100%; }
@media (max-width: 860px) {
    .split, .split.reverse { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
    .split .ph, .split img { aspect-ratio: 16 / 11; }
}

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.5rem 0 2rem; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--plum); line-height: 1; }
.stat span { font-size: .9rem; color: var(--muted); }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex; flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ph, .card img { aspect-ratio: 16 / 10; margin: -1.75rem -1.75rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; width: calc(100% + 3.5rem); max-width: none; object-fit: cover; }
.card p { color: var(--muted); }
.card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-link::after { content: " →"; }

/* Technique detail list */
.tech-list { display: grid; gap: 1.25rem; }
.tech {
    display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: center;
    background: var(--white); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--line);
    scroll-margin-top: 100px;
}
.tech .ph, .tech img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); object-fit: cover; width: 100%; }
.tech h3 { margin-bottom: .4em; }
.tech p { margin: 0; color: var(--muted); }
.tech .tag { display: inline-block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); font-weight: 700; margin-bottom: .4rem; }
@media (max-width: 700px) { .tech { grid-template-columns: 1fr; gap: 1rem; } }

/* Programmes */
.programme { scroll-margin-top: 100px; }
.programme + .programme { border-top: 1px solid var(--line); }
.sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.5rem; }
.session { background: var(--mist); border-radius: var(--radius-sm); padding: 1rem 1.1rem; border-left: 4px solid var(--jade); }
.session:nth-child(2) { border-left-color: var(--gold); }
.session:nth-child(3) { border-left-color: var(--berry); }
.session strong { display: block; font-family: var(--font-head); color: var(--plum); font-size: 1.15rem; }
.session strong small { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--muted); }
.session span { font-size: .92rem; color: var(--muted); line-height: 1.4; display: block; margin-top: .25rem; }
@media (max-width: 700px) { .sessions { grid-template-columns: 1fr; } }

.anchor-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.anchor-nav a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; }
.anchor-nav a:hover { background: #fff; color: var(--plum); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote { margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.5rem; font-size: 1.05rem; line-height: 1.6; color: #f3edf8; }
.quote blockquote::before { content: "«"; display: block; font-family: var(--font-head); font-size: 2.5rem; line-height: 1; color: var(--jade); margin-bottom: .4rem; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: #cfc4dc; }
.quote .initials { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--jade); color: #06231b; font-weight: 700; font-family: var(--font-head); font-size: .8rem; }
.quote figcaption strong { color: #fff; display: block; }
/* Testimonial portrait: 72px circle (upload square images, ideally 400x400) */
.quote .avatar, .quote .initials { flex: none; width: 72px; height: 72px; border-radius: 50%; }
.quote .avatar { object-fit: cover; aspect-ratio: 1; border: 2px solid var(--jade); }
.quote .avatar-ph { background: rgba(16,168,136,.15); color: var(--jade); border: 2px dashed rgba(16,168,136,.7); font-size: 1rem; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* Book feature */
.book { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.book .ph, .book img { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; border-radius: 6px; box-shadow: 0 18px 30px -14px rgba(0,0,0,.4); }
@media (max-width: 700px) { .book { grid-template-columns: 1fr; } .book .ph, .book img { max-width: 200px; } }

.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.press .ph, .press img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: top; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
@media (max-width: 700px) { .press { grid-template-columns: 1fr 1fr; } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--forest), #0c5a46); color: #e3f5ef; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .75rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 600; position: relative; color: var(--plum); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-size: 1.3rem; color: var(--jade); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; color: var(--ink);
    padding: .8rem 1rem; border: 1px solid #d4cadb; border-radius: var(--radius-sm); background: var(--white);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--jade); border-color: var(--jade); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: .3rem; accent-color: var(--plum); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.notice.ok { background: #e2f6f0; color: #0b4a3a; border: 1px solid #a8e2d2; }
.notice.err { background: #fbe7ef; color: #7a0c3e; border: 1px solid #f1b6cd; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.25rem; }
.info-card h3 { font-size: 1rem; }
.info-card address { font-style: normal; }
.map { border: 0; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--mist); display: block; }

/* Booking */
.booking-frame { width: 100%; min-height: 760px; border: 0; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.booking-fallback { text-align: center; background: var(--white); border: 2px dashed #d4cadb; border-radius: var(--radius); padding: clamp(2rem, 6vw, 4rem); }

/* Prose (legal pages) */
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--night); color: #c9c2dc; padding-top: 4rem; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; padding-bottom: 3rem; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .08em; color: #fff; margin-bottom: .5rem; }
.footer-slogan { max-width: 22em; }
.footer-h { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--jade); margin-bottom: 1rem; }
.site-footer address { font-style: normal; }
.hours { display: grid; grid-template-columns: auto auto; gap: .2rem 1rem; margin: 0; font-size: .92rem; }
.hours dd { margin: 0; color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}
