/* ==========================================================================
   Cayman Islands National Coaching Academy
   Heritage design system — finalised brand-colour rules.
   Navy ground · Honeycomb Yellow accent · Teal interactive · Palatino display.
   ========================================================================== */
:root {
    --navy: #0B2545;         /* Deep professional navy — headers, banners */
    --navy-deep: #07182E;
    --slate: #134074;        /* Sub-headings / emphasis */
    --teal: #00B4D8;         /* Interactive / CTA fill (white text) */
    --teal-deep: #0096B1;    /* Teal as text on light, and CTA hover */
    --honeycomb: #E6B800;    /* Taglines, key stats, dividers, partner CTAs */
    --honeycomb-hi: #F2C94C;

    --text: #1D2A44;         /* Body — near-navy */
    --text-muted: #4A5568;
    --text-light: #F4F6F9;   /* Off-white on dark grounds */
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;       /* Cool grey alternating surface */
    --border: #E2E8F0;

    --display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 6px;
    --maxw: 1200px;
    --shadow-sm: 0 4px 6px rgba(11, 37, 69, 0.06);
    --shadow-md: 0 14px 34px rgba(11, 37, 69, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.14; text-wrap: balance; }
section[id] { scroll-margin-top: 90px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--honeycomb); color: var(--navy); padding: .75rem 1.25rem; z-index: 2000; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--honeycomb); outline-offset: 3px; border-radius: 4px; }

/* ===== Eyebrow / rule / section heads ===== */
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--honeycomb); }
.rule { width: 56px; height: 3px; background: var(--honeycomb); margin-top: .8rem; border-radius: 2px; }
.sec-head { max-width: 62ch; margin-bottom: 3rem; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy); margin: .7rem 0 .2rem; }
.sec-head p { color: var(--text-muted); font-size: 1.05rem; margin-top: .8rem; }
.brand-lockup { display: flex; align-items: center; gap: .9rem; }
.sec-logo { width: 50px; height: 50px; border-radius: 50%; flex: none; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--sans); font-weight: 650; font-size: .95rem;
    background: var(--teal); color: #fff;
    padding: .9rem 1.9rem; border-radius: 4px; border: 2px solid transparent;
    box-shadow: 0 6px 16px rgba(0, 180, 216, .28);
    transition: background .25s, transform .18s, border-color .2s;
}
.btn:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-gold { background: var(--honeycomb); color: var(--navy); box-shadow: 0 6px 16px rgba(230, 184, 0, .3); }
.btn-gold:hover { background: var(--honeycomb-hi); }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--teal); color: var(--teal-deep); box-shadow: none; }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-muted { background: #E2E8F0; color: var(--text-muted); box-shadow: none; }
.btn-muted:hover { background: #D6DEE9; color: var(--navy); transform: none; }
.btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ===== Header ===== */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid var(--honeycomb); }
.nav-container { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text-light); }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.15; letter-spacing: .3px; }
nav .nav-links { display: flex; gap: 1.7rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-light); font-weight: 500; font-size: .92rem; }
.nav-links a:hover { color: var(--honeycomb-hi); }
.nav-cta { background: var(--teal); color: #fff !important; padding: .5rem 1.1rem; border-radius: 4px; font-weight: 600; }
.nav-cta:hover { background: var(--teal-deep); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--text-light); border-radius: 3px; }

/* ===== Hero (photo) ===== */
.hero {
    position: relative; background: var(--navy); color: #EEF3FB; overflow: hidden;
    background-image:
        radial-gradient(1100px 500px at 80% -10%, rgba(0, 180, 216, .16), transparent 60%),
        radial-gradient(800px 500px at 8% 120%, rgba(230, 184, 0, .10), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-top: 5rem; padding-bottom: 5.4rem; }
/* Let the columns shrink below their content's intrinsic width so the hero
   never forces the page wider than the viewport on small screens. */
.hero-inner > * { min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); color: #fff; margin: 1.1rem 0 1.2rem; }
.hero h1 em { font-style: normal; color: var(--honeycomb-hi); }
.hero .lead { font-size: 1.15rem; color: #C3D0E6; max-width: 46ch; margin-bottom: 2rem; font-weight: 300; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-meta { margin-top: 2.2rem; display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .82rem; color: #9FB0CB; }
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--honeycomb); }

.hero-photo { position: relative; }
.photo-frame { position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 22px 50px rgba(0, 0, 0, .42); border: 4px solid var(--honeycomb); }
.photo-frame::after { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 3px; background: var(--honeycomb); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

/* ===== Credibility strip ===== */
.creds { background: var(--navy-deep); color: #fff; border-top: 1px solid rgba(230, 184, 0, .22); }
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.4rem 0; text-align: center; }
.cred b { font-family: var(--display); display: block; font-size: 2rem; color: var(--honeycomb-hi); line-height: 1; }
.cred span { font-size: .82rem; color: #B9C6DD; }
.cred + .cred { border-left: 1px solid rgba(255, 255, 255, .08); }

/* ===== Accreditation ===== */
.accred-inner { display: grid; grid-template-columns: auto 1fr; gap: 3.2rem; align-items: center; }
.accred-badge { width: 210px; height: auto; justify-self: center; }
.accred-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--navy); margin: .7rem 0 1rem; max-width: 20ch; }
.accred-text p { color: var(--text-muted); max-width: 62ch; }
.accred-meta { margin-top: 1.1rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); font-weight: 600; }
.accred-meta b { color: var(--teal-deep); }

/* ===== LMS in-development note ===== */
.lms-note { margin-top: 1.6rem; background: var(--bg-alt); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: flex; gap: .9rem; align-items: flex-start; }
.lms-tag { flex: none; background: var(--teal); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 4px; margin-top: .15rem; }
.lms-note p { margin: 0; font-size: .92rem; color: var(--text-muted); }
.lms-note strong { color: var(--navy); }

/* ===== Notice / closed-state panel ===== */
.notice { background: var(--bg-alt); border: 1px solid var(--border); border-left: 3px solid var(--honeycomb); border-radius: var(--radius); padding: 1.8rem 2rem; }
.notice h2 { color: var(--navy); margin-top: 0; }

/* ===== Collaborators ===== */
.collab-head { text-align: center; max-width: 44ch; margin: 0 auto 2.6rem; }
.collab-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); margin-top: .6rem; }
.collab-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 1.8rem; }
.collab-logo { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 2rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; width: 260px; height: 200px; }
.collab-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* ===== Sections ===== */
.band { padding: 5.2rem 0; }
.band.alt { background: var(--bg-alt); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.pillar { background: var(--bg); border: 1px solid var(--border); border-top: 3px solid var(--honeycomb); border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pillar .ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: rgba(0, 180, 216, .12); color: var(--slate); margin-bottom: 1.1rem; }
.pillar .ico svg { width: 27px; height: 27px; }
.pillar h3 { font-size: 1.2rem; color: var(--slate); margin-bottom: .5rem; }
.pillar p { font-size: .93rem; color: var(--text-muted); }

/* Mission */
.mission { text-align: center; }
.mission h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--navy); max-width: 22ch; margin: .8rem auto 1.2rem; }
.mission p { max-width: 62ch; margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--slate), var(--navy)); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: #fff; max-width: 22ch; margin: 0 auto 1rem; }
.cta-band p { color: #C3D0E6; max-width: 54ch; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ===== Courses ===== */
.course-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.course-card { background: var(--navy); color: #fff; border-radius: 8px; padding: 2.4rem; position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.course-card .flag { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--honeycomb); color: var(--navy); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 4px; }
.course-card .eyebrow { color: var(--honeycomb-hi); }
.course-card h3 { color: #fff; font-size: 1.7rem; margin: .6rem 0 .7rem; }
.course-card p { color: #C9D5EA; font-size: .95rem; }
.course-card ul { list-style: none; margin: 1.3rem 0 1.8rem; display: grid; gap: .6rem; }
.course-card li { font-size: .93rem; color: #C9D5EA; padding-left: 1.5rem; position: relative; }
.course-card li::before { content: "✓"; position: absolute; left: 0; color: var(--honeycomb-hi); font-weight: 700; }
.steps { display: grid; gap: 1.1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step .n { font-family: var(--display); font-size: 1.4rem; color: var(--honeycomb); width: 2.6rem; height: 2.6rem; border: 1.5px solid var(--honeycomb); border-radius: 50%; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.step h4 { font-family: var(--display); font-size: 1.05rem; color: var(--slate); margin-bottom: .1rem; }
.step p { font-size: .9rem; color: var(--text-muted); }

/* ===== Workshop ===== */
.workshop { display: grid; grid-template-columns: .78fr 1.22fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--bg); }
.ws-date { background: var(--navy); color: #fff; padding: 2.6rem 2rem; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.ws-date .mon { font-size: 1.15rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--honeycomb); }
.ws-date .num { font-family: var(--display); font-size: 3.4rem; line-height: 1; margin: .25rem 0; }
.ws-date .yr { font-size: 1.35rem; font-weight: 600; color: #DCE6F5; letter-spacing: .1em; }
.ws-body { padding: 2.4rem; }
.ws-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.ws-body .tag { color: var(--honeycomb); font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.ws-body h3 { font-size: 1.5rem; color: var(--navy); margin: .3rem 0 1.2rem; }
.ws-detail { display: grid; gap: .55rem; margin-bottom: 1.6rem; }
.ws-detail div { display: flex; gap: .8rem; font-size: .95rem; color: var(--text-muted); }
.ws-detail b { color: var(--text); font-weight: 650; min-width: 92px; }
.ws-body h3 a { color: inherit; }
.ws-body h3 a:hover { color: var(--teal-deep); }
.ws-intro { color: var(--text-muted); font-size: .98rem; margin: -.6rem 0 1.2rem; }
.ws-deadline { margin-top: 1.1rem; font-size: .9rem; color: var(--text-muted); }
.ws-deadline b { color: var(--navy); }
.workshop + .workshop { margin-top: 1.6rem; }
.events-empty { color: var(--text-muted); font-size: 1rem; }
.events-empty a { color: var(--teal-deep); font-weight: 600; }
.events-all { margin-top: 2rem; }
.events-all a { font-size: .84rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); }

/* ===== Event list (past events) ===== */
.past-events { margin-top: 3rem; }
.past-events h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 1rem; }
.event-list { display: grid; gap: .6rem; }
.event-row { display: grid; grid-template-columns: 12rem 1fr auto; align-items: center; gap: 1rem; background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--honeycomb); border-radius: var(--radius); padding: .95rem 1.2rem; transition: transform .2s, box-shadow .2s; }
.event-row:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.er-date { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.er-title { font-weight: 600; color: var(--navy); }
.er-more { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); }

/* ===== Event detail page ===== */
.event-hero .event-partner { color: var(--honeycomb); font-weight: 600; font-size: .95rem; margin-top: .7rem; }
.event-layout { display: grid; grid-template-columns: 1.55fr .9fr; gap: 3rem; align-items: start; }
.event-h2 { font-size: 1.4rem; color: var(--navy); margin: 2.4rem 0 1rem; }
.event-main > .prose + .event-h2 { margin-top: 2rem; }
.event-audience { color: var(--text-muted); font-size: .98rem; margin-bottom: 1rem; }
.event-notice { background: var(--bg-alt); border-left: 3px solid var(--border); border-radius: var(--radius); padding: .9rem 1.2rem; font-size: .93rem; color: var(--text-muted); margin-bottom: 1.8rem; }
.event-notice a { color: var(--teal-deep); font-weight: 600; }
.topic-list { list-style: none; display: grid; gap: .55rem; }
.topic-list li { position: relative; padding-left: 1.7rem; color: var(--text); }
.topic-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; background: var(--honeycomb); border-radius: 2px; transform: rotate(45deg); }
/* Flex, not grid: with no photo the text must still fill the width. */
.instructor { display: flex; gap: 1.6rem; align-items: flex-start; }
.instructor-photo { flex: none; width: 150px; }
.instructor-text { flex: 1; min-width: 0; }
.instructor-photo img { border-radius: var(--radius); border: 3px solid var(--honeycomb); }
.instructor-text h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .6rem; }
.event-aside { position: sticky; top: 100px; }
.event-facts { background: var(--bg-alt); border: 1px solid var(--border); border-top: 3px solid var(--honeycomb); border-radius: var(--radius); padding: 1.6rem; }
.ef-row { display: grid; gap: .1rem; padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--border); }
.ef-row b { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.ef-row span { color: var(--navy); font-weight: 500; }
.ef-rsvp p { font-size: .92rem; color: var(--text-muted); margin-bottom: .9rem; }
.ef-rsvp b { color: var(--navy); }
.ef-rsvp .btn { width: 100%; text-align: center; justify-content: center; }
.ef-note { margin-top: .8rem; font-size: .86rem; font-style: italic; }
.ef-closed a { color: var(--teal-deep); font-weight: 600; }
.ef-cta { display: block; width: 100%; text-align: center; margin-top: .8rem; }

/* ===== Flyer ===== */
.flyer { margin: 0; }
.flyer img { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.flyer a { display: block; }
.flyer a:hover img { box-shadow: 0 18px 40px rgba(11, 37, 69, .2); }
.flyer figcaption { margin-top: .9rem; font-size: .9rem; color: var(--text-muted); }
.flyer figcaption a { color: var(--teal-deep); font-weight: 700; }
.ws-flyer { flex: none; width: 92px; margin-left: auto; align-self: flex-start; }
.ws-flyer img { border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow-sm); }
.ws-head { display: flex; gap: 1.2rem; align-items: flex-start; }
.ws-head > div { min-width: 0; }

/* ===== Sponsorship tiers ===== */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
.tier { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 1.8rem 1.4rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.tier.flagship { border: 2px solid var(--honeycomb); position: relative; }
.tier.flagship::before { content: "Flagship"; position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%); background: var(--honeycomb); color: var(--navy); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .8rem; border-radius: 20px; }
.tier .name { font-family: var(--display); font-size: 1.35rem; color: var(--navy); }
.tier .price { font-family: var(--display); font-size: 1.5rem; color: var(--honeycomb); margin: .3rem 0 1rem; font-variant-numeric: tabular-nums; }
.tier .price small { display: block; font-size: .7rem; font-weight: 500; color: var(--text-muted); letter-spacing: .04em; font-family: var(--sans); }
.tier ul { list-style: none; display: grid; gap: .5rem; margin-bottom: 1.5rem; flex: 1; }
.tier li { font-size: .86rem; color: var(--text-muted); padding-left: 1.2rem; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.tier .btn { justify-content: center; width: 100%; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: var(--text-light); padding: 3.2rem 0 2rem; border-top: 3px solid var(--honeycomb); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { color: var(--honeycomb); margin-bottom: 1rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--text-light); opacity: .85; }
.footer-grid a:hover { opacity: 1; color: var(--honeycomb-hi); }
.footer-grid p { opacity: .85; font-size: .92rem; max-width: 40ch; }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social-links a { font-size: .76rem; border: 1px solid rgba(255, 255, 255, .16); padding: .3rem .7rem; border-radius: 20px; opacity: 1; }
.social-links a:hover { border-color: var(--honeycomb); color: var(--honeycomb-hi); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; opacity: .8; }

/* ===== Inner pages (About, policies, forms) ===== */
.page-hero { background: var(--navy); color: #fff; padding: 3.6rem 0 3.2rem; border-bottom: 2px solid var(--honeycomb); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: #fff; margin-top: .6rem; }
.page-hero .lead { color: #C3D0E6; font-size: 1.12rem; max-width: 60ch; margin-top: 1rem; font-weight: 300; }
.page-hero .lead p { margin-bottom: .6rem; }

/* Long-form prose (policies, About body) */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--navy); margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.25rem; color: var(--slate); margin: 1.8rem 0 .6rem; }
.prose p { color: var(--text-muted); margin-bottom: 1.1rem; }
.prose ul, .prose ol { color: var(--text-muted); margin: 0 0 1.2rem 1.3rem; display: grid; gap: .45rem; }
.prose li { padding-left: .2rem; }
.prose a:not(.btn) { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.btn):hover { color: var(--navy); }
.doc-download { margin-top: 2.4rem; }
.doc-download .btn { color: #fff; text-decoration: none; }

/* Policy index grid */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.policy-card { background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--honeycomb); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.policy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.policy-card h3 { font-size: 1.15rem; color: var(--slate); margin-bottom: .5rem; }
.policy-card p { font-size: .9rem; color: var(--text-muted); flex: 1; }
.policy-more { margin-top: 1rem; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); }

/* Registration form */
.form-narrow { max-width: 720px; }
.form-legend { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.6rem; }
.req { color: #B00020; font-weight: 700; }
.registration-form { display: grid; gap: 1.3rem; }
.form-field { display: grid; gap: .4rem; }
.form-field label { font-weight: 650; font-size: .92rem; color: var(--navy); }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=number],
.form-field input[type=url], .form-field input[type=date], .form-field input[type=datetime-local],
.form-field textarea, .form-field select {
    width: 100%; font: inherit; color: var(--text); background: var(--bg);
    border: 1px solid var(--border); border-radius: 4px; padding: .7rem .85rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 180, 216, .18);
}
.form-field ul { list-style: none; display: grid; gap: .5rem; }
.form-field ul li { display: flex; align-items: flex-start; gap: .55rem; }
.form-field input[type=checkbox], .form-field input[type=radio] { margin-top: .35rem; flex: none; }
.form-field .help { color: var(--text-muted); font-size: .82rem; }
.form-field .error { color: #B00020; font-size: .82rem; font-weight: 600; }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select { border-color: #B00020; }
.registration-form > .btn { justify-self: start; margin-top: .5rem; }

/* ===== Auth (login / signup / password reset) ===== */
.auth { background: var(--bg-alt); }
.auth-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.6rem 2.4rem;
    box-shadow: 0 12px 44px rgba(11, 37, 69, .07);
}
.auth-card h1 { font-size: 1.9rem; margin-bottom: 1.6rem; }
.auth-card form { display: grid; gap: 1.1rem; }
.auth-card p { color: var(--text-muted); }
.auth-card label { display: block; font-weight: 650; font-size: .92rem; color: var(--navy); margin-bottom: .4rem; }
.auth-card input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]) {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    color: var(--text);
    background: var(--bg);
}
.auth-card input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 180, 216, .15); }
.auth-card button, .auth-card [type=submit], .auth-card .button {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    border: 0;
    font: inherit;
    font-weight: 600;
    padding: .8rem 1.6rem;
    border-radius: 8px;
    cursor: pointer;
}
.auth-card button:hover, .auth-card [type=submit]:hover, .auth-card .button:hover { background: var(--teal-deep); }
.auth-card a { color: var(--teal-deep); font-weight: 600; }
.auth-card [type=checkbox] + label, .auth-card label > [type=checkbox] { display: inline; }
.auth-messages { list-style: none; display: grid; gap: .5rem; margin-bottom: 1.4rem; }
.auth-messages li { padding: .7rem .9rem; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--border); font-size: .9rem; }
.auth-messages li.error { border-color: #B00020; color: #B00020; }
.auth-messages li.success { border-color: var(--teal-deep); color: var(--teal-deep); }

/* ===== Error pages (404) ===== */
.error-page { text-align: center; padding: 6rem 0; }
.error-page .hero-actions { justify-content: center; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-photo { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
    .creds-grid, .pillars, .tiers, .policy-grid { grid-template-columns: repeat(2, 1fr); }
    .cred + .cred { border-left: 0; }
    .course-layout, .workshop, .event-layout { grid-template-columns: 1fr; }
    .event-aside { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .accred-inner { grid-template-columns: 1fr; text-align: center; gap: 1.8rem; }
    .accred-badge { width: 180px; }
    .accred-text h2, .accred-text p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 820px) {
    .nav-toggle { display: block; }
    nav .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); max-height: 0; overflow: hidden; transition: max-height .3s; box-shadow: 0 8px 12px rgba(0, 0, 0, .2); }
    nav .nav-links.open { max-height: 420px; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 1rem; }
}
@media (max-width: 560px) {
    .creds-grid, .pillars, .tiers, .policy-grid, .footer-grid { grid-template-columns: 1fr; }
    .event-row { grid-template-columns: 1fr; gap: .3rem; }
    .instructor { flex-direction: column; }
    .ws-flyer { display: none; }
    .instructor-photo { max-width: 150px; }
    .footer-bottom { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
    * { transition-duration: .001ms !important; }
}
