
/* ------------------------------------------------------------
   1. FONT DECLARATION
   ------------------------------------------------------------ */

@font-face {
    font-family: 'Playfair Display';
    src: url('../font/PlayfairDisplay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* ------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES
   ------------------------------------------------------------ */

:root {
    --home-bg: #120d0a;
    --home-panel: #2f2219;
    --home-panel-soft: #4f3726;
    --home-card: #e7d7c4;
    --home-card-deep: #d3bea7;
    --home-accent: #d29a58;
    --home-accent-soft: #f0cf9c;
    --home-text: #f5ecdf;
    --home-text-muted: rgba(245, 236, 223, 0.72);
    --home-ink: #241812;
    --home-line: rgba(245, 236, 223, 0.16);
    --home-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
    --font-grown: 'Playfair Display', serif;
}


/* ------------------------------------------------------------
   3. BASE & RESET
   ------------------------------------------------------------ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-home {
    margin: 0;
    background-image: linear-gradient(rgba(18, 13, 10, 0.85), rgba(18, 13, 10, 0.85)),
                      url('../image/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--home-text);
    font-family: var(--font-grown);
}

.home-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    min-height: 0;
    padding: 0 22px;
}


/* ------------------------------------------------------------
   4. ACCESSIBILITY
   ------------------------------------------------------------ */

.skip-link {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 20;
    padding: 12px 16px;
    border: 2px solid var(--home-accent-soft);
    border-radius: 12px;
    background: #fff7ed;
    color: #2d190e;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--home-accent-soft);
    outline-offset: 3px;
}


/* ------------------------------------------------------------
   5. NAVIGATION
   ------------------------------------------------------------ */

.hero-home {
    padding: 8px 22px 0;
}

.hero-home--compact {
    padding-bottom: 0;
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 28px;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
    background: rgba(6, 5, 4, 0.82);
    border: 1px solid rgba(210, 154, 88, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
}

.brand-mark {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.brand-mark__title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark__subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--home-text-muted);
}

.hero-nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-nav__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(245, 236, 223, 0.82);
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-nav__links a:not(.hero-nav__login) {
    position: relative;
}

.hero-nav__links a:not(.hero-nav__login)::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--home-accent);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.hero-nav__links a:hover,
.hero-nav__links a:focus-visible {
    color: var(--home-accent-soft);
    transform: translateY(-1px);
}

.hero-nav__links a:not(.hero-nav__login):hover::after,
.hero-nav__links a:not(.hero-nav__login):focus-visible::after {
    transform: scaleX(1);
}

.hero-nav__login {
    padding: 10px 18px;
    border: 1px solid rgba(240, 207, 156, 0.45);
    border-radius: 999px;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown__primary-link {
    display: inline-flex;
    align-items: center;
}

/* Toggle button is rendered as a button[type=button] for a11y but should
   read visually as just another nav link (matches ENQUIRE / LOG IN row). */
.nav-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: rgba(245, 236, 223, 0.82);
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-dropdown__toggle::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--home-accent);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle:focus-visible,
.nav-dropdown__toggle[aria-expanded="true"] {
    color: var(--home-accent-soft);
    transform: translateY(-1px);
}

.nav-dropdown__toggle:hover::after,
.nav-dropdown__toggle:focus-visible::after,
.nav-dropdown__toggle[aria-expanded="true"]::after {
    transform: scaleX(1);
}

.nav-dropdown__toggle-icon {
    font-size: 0.86rem;
    line-height: 1;
}

.nav-dropdown__toggle .bi {
    font-size: 0.78rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-dropdown__toggle[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

/* Menu panel — the JS toggles the [hidden] attribute, so the panel is
   simply not rendered when collapsed; when open it gets a panel chrome
   directly on the <ul> (no extra .nav-dropdown__menu-inner wrapper required
   by the markup). */
.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 200px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: rgba(6, 5, 4, 0.96);
    border: 1px solid rgba(210, 154, 88, 0.3);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    z-index: 200;
}

.nav-dropdown__menu[hidden] {
    display: none;
}

.nav-dropdown__menu li {
    list-style: none;
    margin: 0;
}

.nav-dropdown__menu a {
    display: block;
    padding: 10px 22px;
    color: rgba(245, 236, 223, 0.82);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    border-radius: 0;
    transform: none !important;
}

.nav-dropdown__menu a::after {
    display: none !important;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
    color: var(--home-accent) !important;
    background: rgba(210, 154, 88, 0.12);
    transform: none !important;
}


/* ------------------------------------------------------------
   6. HERO & STAGE
   ------------------------------------------------------------ */

.hero-stage {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    border: 1px solid rgba(210, 154, 88, 0.22);
    border-radius: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('../image/background.jpg') center center / cover no-repeat;
    box-shadow: var(--home-shadow);
    isolation: isolate;
}


.hero-stage__grain,
.hero-stage__halo {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-stage__grain {
    opacity: 0.22;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px),
        radial-gradient(circle at 80% 40%, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px),
        radial-gradient(circle at 45% 68%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px);
    background-size: 220px 220px, 170px 170px, 140px 140px;
}

.hero-stage__halo {
    filter: blur(3px);
}

.hero-stage__halo--left {
    background: radial-gradient(circle at 25% 16%, rgba(255, 245, 224, 0.24), transparent 20%);
}

.hero-stage__halo--right {
    background: radial-gradient(circle at 78% 22%, rgba(255, 245, 224, 0.18), transparent 18%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 80px 74px;
    text-align: center;
    animation: riseIn 0.9s ease-out both;
}

.hero-copy__eyebrow,
.overline {
    margin: 0 0 18px;
    color: rgba(240, 207, 156, 0.88);
    font-size: 0.8rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-family: var(--font-grown);
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.06em;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.hero-copy__body {
    max-width: 520px;
    margin: 28px auto 0;
    font-size: 1.08rem;
    line-height: 1.85;
    color: rgba(245, 236, 223, 0.86);
}

.hero-copy__actions,
.cta-panel__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
}


/* ------------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------------ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 194px;
    padding: 15px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.button--solid {
    border-color: transparent;
    background: linear-gradient(135deg, var(--home-accent-soft) 0%, var(--home-accent) 100%);
    color: #2d190e;
}

.button--outline {
    border-color: rgba(240, 207, 156, 0.48);
    background: rgba(19, 13, 10, 0.18);
    color: var(--home-text);
}

.button--compact {
    min-width: 0;
    justify-content: flex-start;
}

.btn-primary {
    background: linear-gradient(135deg, var(--home-accent-soft) 0%, var(--home-accent) 100%);
    color: #2d190e;
    border-radius: 999px;
    font-family: var(--font-grown);
    letter-spacing: 0.1em;
    border: none;
}

.btn-primary:hover {
    background: var(--home-accent);
    color: #2d190e;
}

.btn-primary:focus-visible {
    background: var(--home-accent);
    color: #2d190e;
}


/* ------------------------------------------------------------
   8. SHARED TYPOGRAPHY & LABELS
   ------------------------------------------------------------ */

.hero-copy h1,
.section-heading h2,
.section-heading__title,
.platform-copy h2,
.cta-panel h2 {
    margin: 0;
    font-family: var(--font-grown);
    font-weight: 400;
    letter-spacing: 0.1em;
}

.section-heading__title,
.platform-copy h2,
.cta-panel h2 {
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    line-height: 1.04;
}

.section-heading h1 {
    font-family: var(--font-grown) !important;
    font-weight: 400;
    color: #f5ecdf;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-heading__text {
    margin-top: 20px;
    color: rgba(36, 24, 18, 0.74);
}

.section-title {
    font-family: var(--font-grown);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-align: center;
    margin: 0 0 48px;
    line-height: 1.1;
}

.program-card__label,
.pillar-card__number,
.journey-card__step,
.atelier-caption span {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(240, 207, 156, 0.9);
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.atelier-caption strong {
    display: block;
    font-family: var(--font-grown);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.platform-copy p,
.overview-card p,
.program-card p,
.pillar-card p,
.journey-card p,
.cta-panel__copy p {
    font-size: 1rem;
    line-height: 1.82;
}

/* ------------------------------------------------------------
   9. LAYOUT & SECTIONS
   ------------------------------------------------------------ */

.section {
    max-width: 1320px;
    margin: 0 auto 28px;
    overflow: hidden;
}

.section--overview,
.section--courses,
.section--cta {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
}

.section--overview {
    padding-top: 100px;
}

.section--cta {
    text-align: center;
    padding-bottom: 60px;
}

/* ------------------------------------------------------------
   14. CONTACT & ENQUIRY SECTION
   ------------------------------------------------------------ */

.contact-shell {
    display: flex;
    justify-content: center;
    padding: 20px 82px;
    width: 100%;
}

.contact-shell--page {
    padding-top: 0;
}

.contact-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 10px;
}

.contact-copy h2 {
    margin: 0;
    font-family: var(--font-grown);
    font-weight: 400;
    letter-spacing: 0.1em;
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    line-height: 1.04;
}

.contact-copy__body {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.82;
    color: var(--home-text-muted);
}

.contact-highlights {
    display: grid;
    gap: 16px;
    margin-top: 34px;
}

.contact-highlight {
    padding: 20px 22px;
    border: 1px solid rgba(240, 207, 156, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.contact-highlight span {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(240, 207, 156, 0.9);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact-highlight strong {
    display: block;
    font-size: 0.96rem;
    line-height: 1.7;
    font-weight: 400;
    color: rgba(245, 236, 223, 0.88);
}

.enquiry-card {
    padding: 34px 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(88, 60, 41, 0.6), rgba(18, 12, 9, 0.84));
    border: 1px solid rgba(240, 207, 156, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 232, 206, 0.06);
    max-width: 100%;
    width: 100%;
}

.enquiry-card--cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.enquiry-card__header h3 {
    margin: 0;
    font-family: var(--font-grown);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.enquiry-card__header p:last-child {
    margin: 14px 0 0;
    color: var(--home-text-muted);
    line-height: 1.7;
}

.enquiry-card .message {
    margin: 22px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.enquiry-card .message.success {
    background: rgba(63, 123, 70, 0.24);
    border: 1px solid rgba(115, 193, 122, 0.36);
    color: #dff4df;
}

.enquiry-card .message.error {
    background: rgba(138, 48, 44, 0.26);
    border: 1px solid rgba(225, 110, 103, 0.34);
    color: #ffd8d4;
}

.enquiry-card .message.hidden {
    display: none;
}

.flash-region:empty {
    display: none;
}

/* ---- Enquiry toast notification ---- */
.enquiry-toast-region {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(480px, calc(100vw - 40px));
    pointer-events: none;
}

.enquiry-toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(30, 74, 34, 0.96);
    border: 1px solid rgba(115, 193, 122, 0.5);
    border-radius: 14px;
    color: #dff4df;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    pointer-events: all;
    position: relative;
    overflow: hidden;
    animation: enquiry-toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.enquiry-toast--out {
    animation: enquiry-toast-out 0.3s ease forwards;
}

@keyframes enquiry-toast-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

@keyframes enquiry-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

.enquiry-toast__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(115, 193, 122, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #a3e6a8;
    margin-top: 1px;
}

.enquiry-toast__message {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.enquiry-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(163, 230, 168, 0.7);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-top: -1px;
    transition: color 0.15s;
}

.enquiry-toast__close:hover {
    color: #dff4df;
}

.enquiry-toast__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(115, 193, 122, 0.5);
    transform-origin: left;
    animation: enquiry-toast-bar linear both;
}

@keyframes enquiry-toast-bar {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

.enquiry-form {
    margin-top: 24px;
}

.site-contact .enquiry-card,
.site-contact .enquiry-form,
.site-contact .enquiry-form input,
.site-contact .enquiry-form select,
.site-contact .enquiry-form textarea,
.site-contact .enquiry-form button {
    font-family: 'Playfair Display', serif;
}

.enquiry-intro {
    margin: 0 0 30px;
    color: var(--home-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
}

.enquiry-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.enquiry-field {
    display: flex;
    flex-direction: column;
}

.enquiry-field--full {
    grid-column: 1 / -1;
}

.enquiry-field--checkbox-align {
    justify-content: center;
    padding-bottom: 0;
}

.enquiry-form label {
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240, 207, 156, 0.92);
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    width: 100%;
    border: 1px solid rgba(240, 207, 156, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 250, 245, 0.92);
    color: #1a0f07;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.enquiry-form label.enquiry-checkbox input[type="checkbox"],
.enquiry-form input[type="checkbox"] {
    display: inline-block !important;
    flex: 0 0 18px;
    position: static !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: var(--home-accent);
}

.enquiry-form input,
.enquiry-form select {
    padding-left: 20px !important;
}

.enquiry-form textarea {
    min-height: 150px;
    resize: vertical;
}

.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
    color: rgba(26, 15, 7, 0.4);
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    outline: none;
    border-color: rgba(240, 207, 156, 0.46);
    box-shadow: 0 0 0 3px rgba(210, 154, 88, 0.16);
}

.enquiry-form input.is-invalid,
.enquiry-form select.is-invalid,
.enquiry-form textarea.is-invalid,
.enquiry-form__form.was-validated input:invalid,
.enquiry-form__form.was-validated select:invalid,
.enquiry-form__form.was-validated textarea:invalid {
    border-color: #ff5c4d;
    background: #fff4f2;
    box-shadow: 0 0 0 3px rgba(255, 92, 77, 0.22);
}

.enquiry-form input[type="checkbox"].is-invalid,
.enquiry-form__form.was-validated input[type="checkbox"]:invalid {
    outline: 3px solid rgba(255, 92, 77, 0.82);
    outline-offset: 2px;
    box-shadow: none;
}

.enquiry-form .error-message {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 12px;
    background: rgba(180, 30, 20, 0.55);
    border: 2px solid #ff5c4d;
    border-radius: 8px;
    color: #fff0ee;
    font-size: 0.85rem;
    font-weight: 600;
}

.enquiry-error-summary {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(180, 30, 20, 0.45);
    border: 2px solid #ff5c4d;
    border-radius: 12px;
    color: #fff0ee;
}

.enquiry-error-summary:focus {
    outline: 3px solid #ff5c4d;
    outline-offset: 2px;
}

.enquiry-error-summary__title {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.enquiry-error-summary__list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88rem;
    line-height: 1.8;
}

.enquiry-error-summary__list a {
    color: #fff0ee;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.enquiry-error-summary__list a:hover {
    color: #ffffff;
}

.field-help {
    margin: 6px 0 0;
    color: var(--home-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.field-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(210, 154, 88, 0.22);
    color: var(--home-accent);
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    cursor: default;
    position: relative;
    vertical-align: middle;
    margin-left: 5px;
}

.field-info-icon::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 13, 10, 0.96);
    color: var(--home-text);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(210, 154, 88, 0.25);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.field-info-icon:hover::after,
.field-info-icon:focus::after {
    opacity: 1;
}

.enquiry-form label.enquiry-checkbox,
.enquiry-checkbox {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    margin: 0;
    color: rgba(240, 207, 156, 0.92);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.enquiry-form label.enquiry-checkbox span,
.enquiry-checkbox span {
    display: inline-block;
    padding-top: 0;
}

.enquiry-section-label {
    margin: 0 0 12px;
    color: var(--home-accent-soft);
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.enquiry-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.enquiry-form__note {
    margin: 0;
    max-width: 460px;
    color: var(--home-text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.course-category-link {
    display: block;
    text-decoration: none;
}

.course-category-card {
    background: rgba(47, 34, 25, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(210, 154, 88, 0.3);
    padding: 56px 40px;
    text-align: center;
    box-shadow: var(--home-shadow);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.course-category-link:hover .course-category-card,
.course-category-link:focus-visible .course-category-card {
    border-color: rgba(210, 154, 88, 0.7);
    transform: translateY(-4px);
}

/* ------------------------------------------------------------------------
   Public courses page — BEM classes consumed by templates/Courses/index.php.
   These were refactored from inline `style="..."` attributes in commit
   7d1f459 (Fix responsive admin and payment layouts) but the matching
   selectors never landed in this stylesheet, so on production the headings
   inherited cake.css default heading colour and the description / CTA text
   inherited the parent <a>'s default link colour (blue on dark background).
   ------------------------------------------------------------------------ */

.courses-page-heading {
    text-align: center;
    padding: 60px 20px 20px;
}

.courses-page-eyebrow {
    font-family: var(--font-grown);
    color: var(--home-accent);
    letter-spacing: 0.3em;
    margin-bottom: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.courses-page-title {
    font-family: var(--font-grown);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #f5ecdf;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    line-height: 1;
}

.courses-page-divider {
    width: 60px;
    height: 2px;
    background: var(--home-accent);
    margin: 24px auto 0;
    opacity: 0.6;
}

.course-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 60px auto 100px;
    padding: 0 20px;
}

.course-category-card__icon,
.empty-state .icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    /* The parent card inherits a serif body font that has no emoji glyphs
       on Windows (renders as tofu / # placeholder). Force the platform's
       colour-emoji font so 🏺 / 🧶 / 📖 render correctly across macOS,
       Windows and Linux. */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
                 "Noto Color Emoji", "EmojiOne Color", emoji, sans-serif;
    line-height: 1;
}

.course-category-card__title {
    font-family: var(--font-grown);
    font-size: 2rem;
    color: #f5ecdf;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 12px;
}

.course-category-card__description {
    font-family: var(--font-grown);
    color: var(--home-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.course-category-card__cta {
    font-family: var(--font-grown);
    color: var(--home-accent);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 24px 0 0;
}

/* Mobile: stack the two category cards vertically below ~720px so the
   grid does not squeeze the 2rem headings into ribbons. */
@media (max-width: 720px) {
    .course-category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px auto 60px;
    }

    .course-category-card {
        padding: 40px 28px;
    }
}

.enquiry-card .alert-success {
    background: rgba(63, 123, 70, 0.24) !important;
    border: 1px solid rgba(115, 193, 122, 0.36) !important;
    border-radius: 8px !important;
    color: #dff4df !important;
    padding: 12px 16px !important;
    font-family: var(--font-grown) !important;
    font-size: 0.95rem !important;
    margin-bottom: 16px !important;
}

.enquiry-card .alert-success .btn-close {
    display: none !important;
}

.enquiry-card .alert-danger {
    background: rgba(138, 48, 44, 0.4) !important;
    border: 1px solid rgba(225, 110, 103, 0.34) !important;
    border-radius: 8px !important;
    color: #ffd8d4 !important;
    padding: 12px 16px !important;
    font-family: var(--font-grown) !important;
    font-size: 0.95rem !important;
    margin-bottom: 16px !important;
}

.enquiry-card .alert-danger .btn-close {
    display: none !important;
}

/* ------------------------------------------------------------
   15. FLIP CARDS (COURSES)
   ------------------------------------------------------------ */

.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    justify-items: center;
}

.flip-card {
    width: 100%;
    max-width: 350px;
    display: flex;
}

.flip-card__content {
    width: 100%;
    padding: 28px;
    border-radius: 16px;
    border: 2px solid rgba(210, 154, 88, 0.8);
    background: rgba(47, 34, 25, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.flip-card:hover .flip-card__content,
.flip-card:focus-within .flip-card__content {
    border-color: var(--home-accent-soft);
    box-shadow: 0 0 30px rgba(210, 154, 88, 0.15);
    transform: translateY(-5px);
}

.flip-card__content h3 {
    font-family: var(--font-grown);
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.flip-card__content .overline {
    color: var(--home-accent-soft) !important;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.flip-card__description {
    margin: 0 0 24px;
    font-family: var(--font-grown);
    color: #f5ecdf;
    line-height: 1.7;
    flex: 1;
}

.flip-card__meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(245, 236, 223, 0.2);
    padding-top: 20px;
}

.flip-card__meta-label {
    font-family: var(--font-grown);
    font-size: 0.9rem;
    color: #f5ecdf;
    font-weight: 400;
}

.flip-card__meta-value {
    font-family: var(--font-grown);
    font-weight: 700;
    color: var(--home-accent-soft);
    font-size: 1.1rem;
}

.flip-card__actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}


/* ------------------------------------------------------------
   16. LOGIN PAGE
   ------------------------------------------------------------ */

/* Bootstrap card overrides */
body.site-home .card {
    background: linear-gradient(180deg, #fffcf8 0%, #f9f3eb 100%);
}

body.site-home .card-body label,
body.site-home .card-body p,
body.site-home .card-body input,
body.site-home .card-body select,
body.site-home .card-body textarea,
body.site-home .card-body .form-group,
body.site-home .card-header h3 {
    font-family: var(--font-grown);
}

/* Portal class cards */
body.site-home .portal-class-card {
    background: #2f2219;
}

body.site-home .portal-class-card h3,
body.site-home .portal-class-card p,
body.site-home .portal-class-card__eyebrow,
body.site-home .portal-class-card__meta {
    color: var(--home-text);
}

body.site-home .portal-class-card__meta {
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

body.site-home .portal-class-card p,
body.site-home .portal-class-card [style*="color: #555"] {
    color: var(--home-text) !important;
}

body.site-home .portal-class-card {
    border: 5px solid rgba(210, 154, 88, 0.8) !important;
    border-bottom: 5px solid rgba(210, 154, 88, 1) !important;
}

body.site-home .portal-class-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.site-home .portal-class-card__header h3 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 !important;
}

/* Portal entry cards */
.portal-entry-card h3 {
    font-family: var(--font-grown);
    font-weight: 400;
}

.portal-entry-card__label,
.portal-entry-card p,
.portal-entry-card__hint {
    font-family: var(--font-grown);
}

/* Login form */
.card-header h3 {
    font-family: var(--font-grown);
    font-weight: 400;
}

.login-form label,
.portal-login-note,
.portal-login-hint,
.register-link,
.form-group label {
    font-family: var(--font-grown);
}

.login-submit-btn,
.login-page-wrap button[type="submit"] {
    background: linear-gradient(135deg, var(--home-accent-soft) 0%, var(--home-accent) 100%);
    color: #2d190e;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    font-family: var(--font-grown);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
}
.login-page-wrap .login-input {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(210, 154, 88, 0.35) !important;
    color: #f5ecdf !important;
    font-family: var(--font-grown) !important;
    font-size: 1rem !important;
    margin-top: 8px !important;
}


/* ------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------ */

.home-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 24px 14px;
    color: rgba(245, 236, 223, 0.64);
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

.home-footer a {
    color: rgba(240, 207, 156, 0.88);
}

body.site-default .home-shell,
body.site-contact .home-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.site-default main,
body.site-contact main {
    flex: 1;
}

body.site-default .home-footer,
body.site-contact .home-footer {
    margin-top: auto;
}

/* ------------------------------------------------------------
   18. ANIMATIONS & KEYFRAMES
   ------------------------------------------------------------ */

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes driftPlant {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    50% {
        transform: rotate(-2deg) translateY(-6px);
    }
}

@keyframes pulseRing {
    0%, 100% {
        transform: scale(1);
        box-shadow: inset 0 0 0 1px rgba(27, 18, 11, 0.35);
    }
    50% {
        transform: scale(1.03);
        box-shadow: inset 0 0 0 1px rgba(27, 18, 11, 0.35), 0 0 24px rgba(210, 154, 88, 0.15);
    }
}


/* ------------------------------------------------------------
   19. MEDIA QUERIES
   ------------------------------------------------------------ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast */
@media (prefers-contrast: more) {
    :root {
        --home-text: #fffaf2;
        --home-text-muted: rgba(255, 250, 242, 0.94);
        --home-line: rgba(255, 250, 242, 0.45);
    }

    .hero-nav,
    .hero-stage,
    .section,
    .overview-card,
    .enquiry-card,
    .contact-highlight {
        border-color: rgba(255, 250, 242, 0.58);
        box-shadow: none;
    }

    .section--overview,
    .overview-card--story {
        background: #f6ebda;
        color: #1d120c;
    }

    .section-heading__text,
    .hero-copy__body,
    .contact-copy__body,
    .enquiry-card__header p:last-child,
    .field-help,
    .enquiry-form__note {
        color: inherit;
    }

    .button--solid {
        background: #ffd8a8;
        color: #1d120c;
    }

    .button--outline,
    .hero-nav__login {
        background: transparent;
        border-color: currentColor;
    }
}

/* Forced colors (Windows High Contrast) */
@media (forced-colors: active) {
    body.site-home {
        background: Canvas;
        color: CanvasText;
    }

    .hero-stage__grain,
    .hero-stage__halo,
    .hero-stage__meta,
    .hero-art,
    .atelier-scene {
        display: none;
    }

    .hero-nav,
    .hero-stage,
    .section,
    .overview-card,
    .enquiry-card,
    .contact-highlight {
        background: Canvas;
        color: CanvasText;
        border: 1px solid CanvasText;
        box-shadow: none;
    }

    .button,
    .hero-nav__login,
    .skip-link {
        border: 1px solid ButtonText;
        background: ButtonFace;
        color: ButtonText;
    }
}

/* Tablet: max 1180px */
@media (max-width: 1180px) {
    .hero-copy {
        padding-left: 100px;
        padding-right: 100px;
    }

    .hero-copy__facts,
    .journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .platform-shell,
    .contact-shell {
        display: grid;
        grid-template-columns: 1fr;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .section--overview,
    .section--courses,
    .section--cta {
        padding: 60px 32px;
    }

    .flip-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small tablet: max 980px */
@media (max-width: 980px) {
    .hero-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-nav__links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-stage {
        min-height: 0;
    }

    .hero-stage__meta {
        display: none;
    }

    .hero-art__panel--arch {
        left: 38px;
    }

    .hero-art__panel--slats {
        left: 220px;
    }

    .hero-art__rings {
        left: 190px;
    }

    .hero-art__arch-outline {
        left: 290px;
        width: 250px;
        height: 220px;
    }

    .hero-art__console {
        left: 220px;
        width: 310px;
    }

    .hero-art__botanical {
        right: 44px;
        width: 150px;
        height: 218px;
    }

    .hero-copy {
        padding: 56px 40px 72px;
    }

    .hero-copy__facts,
    .platform-pillars {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .overview-grid,
    .program-grid,
    .platform-shell,
    .journey-grid,
    .contact-shell {
        padding-left: 34px;
        padding-right: 34px;
    }
}

/* Mobile: max 640px */
@media (max-width: 640px) {
    .hero-home,
    main {
        padding-left: 0;
        padding-right: 0;
    }

    .brand-mark__title {
        font-size: 1.24rem;
    }

    .hero-stage {
        min-height: 0;
    }

    .hero-art__panel--arch {
        left: 22px;
        width: 118px;
        height: 330px;
    }

    .hero-art__panel--slats {
        left: 154px;
        width: 92px;
        height: 220px;
    }

    .hero-art__rings {
        left: 126px;
        top: 234px;
        gap: 14px;
    }

    .hero-art__rings span {
        width: 70px;
        height: 70px;
    }

    .hero-art__arch-outline {
        left: 170px;
        top: 264px;
        width: 150px;
        height: 126px;
    }

    .hero-art__console {
        left: 106px;
        bottom: 176px;
        width: 220px;
        height: 132px;
    }

    .hero-art__vessel--left {
        left: 180px;
    }

    .hero-art__vessel--center {
        left: 226px;
    }

    .hero-art__vessel--right {
        left: 282px;
    }

    .hero-art__botanical {
        right: 16px;
        bottom: 234px;
        width: 110px;
        height: 176px;
    }

    .hero-copy {
        padding: 52px 24px 64px;
    }

    .hero-copy__actions,
    .enquiry-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-copy__facts,
    .journey-grid,
    .enquiry-form__grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .overview-grid,
    .program-grid,
    .platform-shell,
    .journey-grid,
    .contact-shell {
        padding-left: 22px;
        padding-right: 22px;
    }

    .overview-card--story,
    .platform-copy,
    .program-card,
    .pillar-card,
    .journey-card,
    .enquiry-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-footer {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 18px;
        padding-right: 18px;
        letter-spacing: 0.08em;
    }

    .flip-card-grid {
        grid-template-columns: 1fr;
    }
}
