/* ==========================================================================
   September Holiday Programme, "Bloom & Grow" (The White Orchid)
   --------------------------------------------------------------------------
   Standalone public marketing page. Deliberately self-contained: it does NOT
   load css/style-*.css, because it renders The White Orchid's own brand
   system rather than Canopy's app chrome. Tokens below are ported verbatim
   from the design system's colors_and_type.css; every rule references a
   variable rather than a hex value.

   Scoped under .shp-page so nothing here can leak into the app if this file
   is ever loaded alongside the Canopy stylesheets.
   ========================================================================== */

/* ---------- BRAND FONTS ---------- */
/* Romie is licensed to The White Orchid; Syne is OFL; Fira Sans (already in
   /fonts for the app) is the body face. Aboreto is intentionally absent: it
   is logo-only and the logo ships as an image. */
@font-face {
    font-family: "Romie";
    src: url("/fonts/Romie-Regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Romie";
    src: url("/fonts/Romie-Italic.woff2") format("woff2");
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: "Syne";
    src: url("/fonts/Syne-Variable.woff2") format("woff2");
    font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Fira Sans TWO";
    src: url("/fonts/FiraSans-Light.woff2") format("woff2");
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Fira Sans TWO";
    src: url("/fonts/FiraSans-Regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Fira Sans TWO";
    src: url("/fonts/FiraSans-Medium.woff2") format("woff2");
    font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- DESIGN TOKENS (The White Orchid) ---------- */
.shp-page {
    /* Primary palette */
    --tw-burnham:      #254E48;
    --tw-burnham-dk:   #1B3B36;
    --tw-smoke:        #F5F6E7;
    --tw-smoke-warm:   #EFF1DC;
    --tw-celadon:      #B4D6C0;
    --tw-jet-soft:     #4D504D;
    --tw-tangerine:    #F6644E;
    --tw-wisteria:     #DEC5D8;

    /* Semantic aliases */
    --bg:              var(--tw-smoke);
    --bg-soft:         var(--tw-smoke-warm);
    --bg-raised:       #FFFFFF;
    --bg-deep:         var(--tw-burnham);
    --fg:              var(--tw-burnham);
    --fg-muted:        var(--tw-jet-soft);
    --fg-on-deep:      var(--tw-smoke);
    --fg-on-deep-soft: var(--tw-celadon);
    --line:            color-mix(in srgb, var(--tw-burnham) 14%, transparent);
    --line-on-deep:    color-mix(in srgb, var(--tw-smoke) 22%, transparent);

    /* Type */
    --font-serif: "Romie", "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --font-syne:  "Syne", ui-sans-serif, system-ui, sans-serif;
    --font-body:  "Fira Sans TWO", "Fira Sans", ui-sans-serif, system-ui, sans-serif;

    /* Radii, shadows, motion */
    --radius-lg:   20px;
    --radius-2xl:  40px;
    --radius-pill: 999px;
    --shadow-xs:   0 1px 2px rgba(37, 78, 72, 0.06);
    --shadow-md:   0 8px 22px -8px rgba(37, 78, 72, 0.18), 0 2px 6px rgba(37, 78, 72, 0.06);
    --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast:    140ms;
    --dur-slow:    420ms;

    /* Layout */
    --shp-container:        1216px;
    --shp-container-narrow: 768px;
    --shp-gutter:           32px;
}

/* ---------- PAGE SHELL ---------- */
.shp-page {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.shp-page *, .shp-page *::before, .shp-page *::after { box-sizing: border-box; }

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

.shp-container {
    position: relative;
    max-width: var(--shp-container);
    margin: 0 auto;
}
.shp-container--narrow { max-width: var(--shp-container-narrow); }

/* Shared section primitives */
.shp-section {
    position: relative;
    padding: 88px var(--shp-gutter);
    overflow: hidden;
}
.shp-section--flush-top { padding-top: 0; }
.shp-section--deep {
    background: var(--bg-deep);
    color: var(--fg-on-deep);
}

.shp-eyebrow {
    font-family: var(--font-syne);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tw-burnham);
    opacity: 0.7;
}
.shp-section--deep .shp-eyebrow,
.shp-eyebrow--on-deep {
    color: var(--fg-on-deep-soft);
    opacity: 1;
}

.shp-h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
    margin: 16px 0 0;
}

.shp-ornament {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

/* ---------- 1. HERO ---------- */
.shp-hero {
    position: relative;
    background: var(--bg-deep);
    color: var(--fg-on-deep);
    padding: 72px var(--shp-gutter) 88px;
    overflow: hidden;
}
.shp-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}
/* The 72% burnham wash is a legibility requirement, not decoration. */
.shp-hero__scrim {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--tw-burnham) 72%, transparent);
}
.shp-hero__watermark {
    right: -90px;
    bottom: -120px;
    width: 420px;
    opacity: 0.16;
}
.shp-hero__logo {
    height: 56px;
    width: auto;
    display: block;
}
.shp-hero__eyebrow {
    font-family: var(--font-syne);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 56px;
    color: var(--fg-on-deep-soft);
}
.shp-hero__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 92px);
    line-height: 1.02;
    margin: 18px 0 0;
    max-width: 16em;
    color: var(--fg-on-deep);
}
.shp-hero__lede {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.35;
    margin: 22px 0 0;
    max-width: 22em;
    color: var(--fg-on-deep);
}
.shp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}
.shp-pill {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--tw-smoke) 12%, transparent);
    border: 1px solid var(--line-on-deep);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.shp-pill--celadon {
    background: var(--tw-celadon);
    color: var(--tw-burnham-dk);
    border: 0;
}

/* ---------- 2. PROGRAMME HIGHLIGHTS ---------- */
.shp-highlights__ornament {
    left: -160px;
    top: 40px;
    width: 460px;
    opacity: 0.28;
}
.shp-highlights__title { max-width: 24em; }

.shp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 56px;
}
.shp-card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
}
.shp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.shp-card__index {
    font-family: var(--font-syne);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tw-burnham);
    opacity: 0.6;
}
.shp-card__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    margin: 14px 0 12px;
}
.shp-card__body {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 300;
    text-wrap: pretty;
    margin: 0;
}

/* ---------- 3. EXCURSION ---------- */
.shp-excursion__ornament {
    right: -140px;
    bottom: -100px;
    width: 480px;
    opacity: 0.14;
}
.shp-excursion__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 56px;
    align-items: start;
}
.shp-excursion__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.2;
    margin: 16px 0 0;
    color: var(--fg-on-deep);
}
.shp-excursion__date {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    margin: 24px 0 0;
    color: var(--fg-on-deep);
}
.shp-excursion__notes {
    display: grid;
    gap: 20px;
}
/* Deliberately heading-less: the section H2 is the excursion's only title. */
.shp-note {
    border: 1px solid var(--line-on-deep);
    border-radius: var(--radius-lg);
    padding: 28px;
    background: color-mix(in srgb, var(--tw-smoke) 8%, transparent);
}
.shp-note p {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 300;
    text-wrap: pretty;
    margin: 0;
    color: var(--fg-on-deep);
}

/* ---------- 4. TIMETABLE ---------- */
.shp-timetable__title { margin-bottom: 8px; }
.shp-timetable__hint {
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    opacity: 0.75;
}
.shp-table-wrap {
    margin-top: 40px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    box-shadow: var(--shadow-xs);
    -webkit-overflow-scrolling: touch;
}
/* table-layout: fixed + the widths below keep Monday to Friday evenly
   spaced regardless of cell content. Deliberate: do not switch to auto. */
.shp-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 900px;
    font-size: 14px;
    table-layout: fixed;
}
.shp-table th {
    text-align: left;
}
.shp-table thead th {
    padding: 18px 16px;
    font-family: var(--font-syne);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tw-burnham);
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    width: 17%;
}
.shp-table thead th:first-child {
    padding: 18px 20px;
    border-left: 0;
    width: 150px;
}
.shp-table tbody th {
    padding: 14px 20px;
    font-weight: 500;
    font-size: 13px;
    color: var(--tw-burnham);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.shp-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    vertical-align: top;
}
.shp-table tbody tr:last-child th,
.shp-table tbody tr:last-child td { border-bottom: 0; }

/* Named activities read as headline content; routine blocks recede. */
.shp-cell--activity { font-weight: 500; }
.shp-cell--routine {
    font-weight: 300;
    color: var(--fg-muted);
}
.shp-cell--excursion {
    padding: 16px;
    background: var(--tw-celadon);
    color: var(--tw-burnham-dk);
}
.shp-cell__eyebrow {
    font-family: var(--font-syne);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.75;
}
.shp-cell__title {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.25;
    margin-top: 8px;
}

/* ---------- 5. FEES ---------- */
.shp-fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.shp-fee {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.shp-fee--deep {
    background: var(--bg-deep);
    color: var(--fg-on-deep);
    border: 0;
}
.shp-fee__label {
    font-family: var(--font-syne);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tw-burnham);
    opacity: 0.65;
}
.shp-fee--deep .shp-fee__label {
    color: var(--fg-on-deep-soft);
    opacity: 1;
}
.shp-fee__amount-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 20px;
}
.shp-fee__amount {
    font-family: var(--font-serif);
    font-size: 56px;
    line-height: 1;
}
.shp-fee__unit {
    font-size: 15px;
    font-weight: 300;
    opacity: 0.75;
}
.shp-fee--deep .shp-fee__unit { opacity: 0.8; }
.shp-fee__note {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.45;
    margin: 16px 0 0;
}
.shp-fee__note--serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    line-height: 1.4;
}

/* ---------- 6. TERMS ---------- */
.shp-terms__intro {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.5;
    margin: 20px 0 0;
}
.shp-terms__list {
    margin: 36px 0 0;
    display: grid;
    gap: 24px;
}
.shp-term {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.shp-term dt {
    font-weight: 500;
    font-size: 16px;
}
.shp-term dd {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
}

/* ---------- 7. FOOTER / CTA ---------- */
.shp-footer {
    position: relative;
    background: var(--bg-deep);
    color: var(--fg-on-deep);
    padding: 96px var(--shp-gutter);
    overflow: hidden;
}
.shp-footer__pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    pointer-events: none;
}
.shp-footer__inner { text-align: center; }
/* brightness(0) invert(1) renders the burnham motif ivory. Replace with an
   ivory master asset when the school supplies one. */
.shp-footer__motif {
    height: 76px;
    width: 76px;
    opacity: 0.55;
    filter: brightness(0) invert(1);
}
.shp-footer__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(30px, 4.5vw, 52px);
    line-height: 1.2;
    color: var(--fg-on-deep);
    margin: 28px 0 0;
}
.shp-footer__lede {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 21px;
    line-height: 1.4;
    margin: 20px 0 0;
    color: var(--fg-on-deep);
}
/* The two lg buttons total ~800px, which overflows the 768px footer column
   and wraps them into a lopsided stack. Let the row alone break out of the
   narrow container so it stays a single centred row on desktop; it still
   wraps naturally once the viewport itself gets tight. */
.shp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 40px auto 0;
    width: max-content;
    max-width: 100%;
}
@media (min-width: 900px) {
    .shp-cta-row {
        max-width: none;
        margin-left: 50%;
        transform: translateX(-50%);
    }
}
.shp-footer__meta {
    font-family: var(--font-syne);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-on-deep-soft);
    margin-top: 64px;
}

/* ---------- BUTTONS (design system, p.69) ---------- */
.shp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-syne);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 14px;
    padding: 18px 48px;
    border-radius: var(--radius-2xl);
    border: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
}
.shp-btn:active { transform: translateY(1px); }
.shp-btn svg { flex: none; }
.shp-btn--on-deep {
    background: var(--tw-tangerine);
    color: #fff;
}
.shp-btn--on-deep:hover {
    background: var(--tw-wisteria);
    color: var(--tw-burnham);
}
.shp-btn--ghost-on-deep {
    background: transparent;
    color: var(--tw-smoke);
    box-shadow: inset 0 0 0 2px var(--tw-smoke);
}
.shp-btn--ghost-on-deep:hover {
    background: var(--tw-smoke);
    color: var(--tw-burnham);
}

/* ---------- RESPONSIVE ---------- */
/* The grids are auto-fit/minmax and the type is clamp()ed, so the layout
   collapses on its own. These only pull the generous desktop gutters and
   section rhythm in on small screens. */
@media (max-width: 640px) {
    .shp-page { --shp-gutter: 20px; }
    .shp-section { padding-top: 64px; padding-bottom: 64px; }
    .shp-hero { padding-top: 48px; padding-bottom: 64px; }
    .shp-footer { padding-top: 72px; padding-bottom: 72px; }
    .shp-card, .shp-fee { padding: 26px; }
    .shp-excursion__grid { gap: 36px; }
    .shp-hero__eyebrow { margin-top: 40px; }
    .shp-btn { width: 100%; justify-content: center; padding: 18px 28px; }
    .shp-footer__meta { margin-top: 48px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    .shp-page *,
    .shp-page *::before,
    .shp-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
