/* Wise Years Pro — premium mature education theme */

:root {
    --wine: #5c2434;
    --wine-dark: #3d1823;
    --wine-light: #7a3548;
    --gold: #c9a962;
    --gold-light: #dfc88a;
    --gold-muted: rgba(201, 169, 98, 0.35);
    --cream: #faf7f2;
    --cream-dark: #f0ebe3;
    --ink: #1e1a17;
    --ink-muted: #5a534d;
    --white: #ffffff;
    --border: #e5ddd3;
    --focus: #2563eb;
    --error: #b91c1c;
    --success-bg: #ecfdf5;
    --success-border: #6ee7b7;
    --success-text: #065f46;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
    --shadow: 0 4px 24px rgba(30, 26, 23, 0.08);
    --shadow-md: 0 8px 32px rgba(30, 26, 23, 0.1);
    --shadow-lg: 0 12px 48px rgba(30, 26, 23, 0.12);
    --radius: 6px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

::selection {
    background: var(--gold-muted);
    color: var(--ink);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--wine);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover { color: var(--wine-light); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.container {
    width: min(100% - 2.5rem, var(--max-width));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--wine);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* Top bar */
.top-bar {
    background: var(--wine-dark);
    color: var(--cream);
    font-size: 0.875rem;
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar a {
    color: var(--gold-light);
    text-decoration: none;
    margin-left: 1.25rem;
}

.top-bar a:hover { color: var(--white); }

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(30, 26, 23, 0.04);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}

.logo__emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(145deg, var(--wine) 0%, var(--wine-dark) 100%);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.logo__name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
}

.primary-nav {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}

.primary-nav a {
    text-decoration: none;
    color: var(--ink-muted);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 0.25rem;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--wine);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: var(--transition);
}

.header-cta { flex-shrink: 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.03em;
}

.btn--primary {
    background: linear-gradient(145deg, var(--wine-light) 0%, var(--wine) 55%, var(--wine-dark) 100%);
    color: var(--white);
    border-color: var(--wine);
    box-shadow: 0 2px 8px rgba(92, 36, 52, 0.25);
}

.btn--primary:hover {
    background: linear-gradient(145deg, var(--wine) 0%, var(--wine-dark) 100%);
    border-color: var(--wine-dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(92, 36, 52, 0.3);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--wine);
    border-color: var(--wine);
}

.btn--outline:hover {
    background: var(--wine);
    color: var(--white);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn--ghost:hover {
    background: var(--white);
    color: var(--wine);
}

.btn--large { padding: 1rem 2.25rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.text-link {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.text-link--light { color: var(--gold-light); }
.text-link--light:hover { color: var(--white); }

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.75rem;
}

.lead {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 42rem;
}

.text-center { text-align: center; }

/* Hero immersive */
.hero--immersive {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
}

.hero__media {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 24, 35, 0.92) 0%, rgba(61, 24, 35, 0.4) 50%, rgba(61, 24, 35, 0.2) 100%);
}

.hero__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4rem 0;
}

.hero__content {
    color: var(--white);
}

.hero__content h1 { color: var(--white); margin-bottom: 1rem; }
.hero__content .lead { color: rgba(255, 255, 255, 0.88); }
.hero__content .eyebrow { color: var(--gold-light); }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Trust strip */
.trust-strip {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    padding: 2rem 0;
    gap: 1rem;
}

.trust-strip__grid > div {
    position: relative;
    padding: 0.5rem 1rem;
}

.trust-strip__grid > div:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 2.5rem;
    background: var(--border);
}

.trust-strip strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--wine);
}

.trust-strip span {
    font-size: 0.875rem;
    color: var(--ink-muted);
}

/* Sections */
.section { padding: 5.5rem 0; }
.section--wine {
    background: linear-gradient(165deg, var(--wine-dark) 0%, var(--wine) 45%, #4a1f2c 100%);
    color: var(--white);
}
.section--cream {
    background: var(--cream);
    border-block: 1px solid var(--border);
}

.section--wine h2, .section--wine h3 { color: var(--white); }

.section-header {
    max-width: 42rem;
    margin-bottom: 3rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: 1rem;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-header--center h2::after {
    margin-inline: auto;
}

.section-header--light .lead,
.section-header--light p { color: rgba(255, 255, 255, 0.85); }

.section-header--center {
    text-align: center;
    margin-inline: auto;
}

/* Editorial split */
.editorial-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.editorial-split__figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.editorial-split__figure img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.editorial-split__figure:hover img {
    transform: scale(1.03);
}

.editorial-split__text p + p {
    margin-top: 1rem;
}

/* Course showcase */
.course-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.course-showcase__card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.course-showcase__card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.course-showcase__card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.course-showcase__body { padding: 1.5rem; }

.course-showcase__price {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.course-showcase__body h3 {
    margin: 0 0 0.75rem;
    font-size: 1.375rem;
}

.course-showcase__body h3 a {
    color: var(--white);
    text-decoration: none;
}

.course-showcase__body h3 a:hover { color: var(--gold-light); }

.course-showcase__body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    margin: 0 0 1rem;
}

/* Pillar grid */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pillar-card {
    padding: 2rem 2rem 2rem 2.25rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pillar-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pillar-card h3 { margin-top: 0; color: var(--wine); }

/* Testimonials */
.testimonial-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.testimonial-panel__quote {
    margin: 0;
    padding: 2.25rem 2rem 2rem 2.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--border);
}

.testimonial-panel__quote::before {
    content: '\201C';
    position: absolute;
    top: 0.75rem;
    left: 1.25rem;
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--gold-muted);
    pointer-events: none;
}

.testimonial-panel__quote p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.testimonial-panel__quote footer {
    font-size: 0.875rem;
    color: var(--ink-muted);
    font-style: normal;
}

/* CTA banner */
.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 3.25rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.cta-banner__text h2 { margin-top: 0; }

/* Studio showcase */
.studio-showcase__figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.studio-showcase__figure img {
    width: 100%;
    height: clamp(280px, 42vw, 480px);
    object-fit: cover;
}

.studio-showcase__caption {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--ink-muted);
    background: var(--white);
    text-align: center;
    letter-spacing: 0.04em;
}

/* Page hero */
.page-hero {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: min(480px, 60vw);
    height: min(480px, 60vw);
    background: radial-gradient(circle, var(--gold-muted) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero--compact { padding: 3.5rem 0; }

.page-hero--with-media {
    padding: 3rem 0 3.5rem;
}

.page-hero__split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.page-hero__figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.page-hero__figure img {
    width: 100%;
    height: clamp(220px, 32vw, 360px);
    object-fit: cover;
}

.page-hero--legal {
    background: var(--wine-dark);
    color: var(--white);
}

.page-hero--legal h1 { color: var(--white); }
.page-hero--legal .lead { color: rgba(255, 255, 255, 0.85); }

.legal-meta {
    font-size: 0.875rem;
    color: var(--gold-light);
    margin-top: 1rem;
}

/* Course catalog */
.course-catalog__item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.course-catalog__item:first-child { padding-top: 0; }
.course-catalog__item--reverse { direction: rtl; }
.course-catalog__item--reverse > * { direction: ltr; }

.course-catalog__media {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.course-catalog__media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-catalog__media:hover img {
    transform: scale(1.04);
}

.course-detail__hero img {
    width: 100%;
    height: clamp(240px, 40vw, 420px);
    object-fit: cover;
}

.course-catalog__meta {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--wine-light);
    text-transform: uppercase;
}

.course-catalog__price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--wine);
    margin: 0.5rem 0 1rem;
}

.course-catalog__price span {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-muted);
    font-weight: 400;
}

.course-catalog__list {
    margin: 1rem 0 1.5rem;
    padding-left: 1.25rem;
}

.course-catalog__list li { margin-bottom: 0.35rem; }

.info-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.info-columns h3 { color: var(--wine); margin-top: 0; }

/* Course detail */
.course-detail__hero {
    margin: 0 0 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.course-detail__grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.course-detail__outline li { margin-bottom: 0.75rem; }

.course-sidebar-card {
    position: sticky;
    top: 6rem;
    padding: 2rem;
    background: var(--cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.course-sidebar-card__price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--wine);
    margin: 0;
}

.course-sidebar-card__note {
    font-size: 0.875rem;
    color: var(--ink-muted);
    margin: 0 0 1.5rem;
}

.course-sidebar-card dl {
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
}

.course-sidebar-card dt {
    font-weight: 600;
    color: var(--wine);
    margin-top: 0.75rem;
}

.course-sidebar-card dt:first-child { margin-top: 0; }

.course-sidebar-card dd { margin: 0.15rem 0 0; color: var(--ink-muted); }

.track-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.track-grid article {
    padding: 1.25rem;
    background: var(--cream);
    border-radius: var(--radius);
}

.track-grid h3 { margin-top: 0; font-size: 1.125rem; color: var(--wine); }

/* Instructors */
.instructor-grid { display: flex; flex-direction: column; gap: 4rem; }

.instructor-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.instructor-card--reverse { direction: rtl; }
.instructor-card--reverse > * { direction: ltr; }

.instructor-card__photo {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.instructor-card__photo img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instructor-card__photo:hover img {
    transform: scale(1.04);
}

.instructor-card__body h2 {
    margin-top: 0;
    color: var(--wine);
}

.instructor-card__role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

/* Prose layout */
.prose-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.prose-layout__figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: sticky;
    top: 6rem;
}

.prose-layout__content h2 {
    color: var(--wine);
    margin-top: 2rem;
}

.prose-layout__content h2:first-child { margin-top: 0; }

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-layout__form {
    padding: 2.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form .form-group { margin-bottom: 1.25rem; }

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--cream);
    transition: var(--transition);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #d4cbc0;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid var(--focus);
    outline-offset: 0;
    border-color: var(--focus);
}

.form-group--error input,
.form-group--error textarea { border-color: var(--error); }

.form-note {
    font-size: 0.875rem;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    color: var(--error);
    font-size: 0.9375rem;
}

.form-alert p { margin: 0; }

.form-success {
    padding: 2.25rem;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.form-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #10b981;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.form-success h3 {
    margin-top: 0;
    color: var(--success-text);
    font-size: 1.75rem;
}

.form-success__meta {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--ink-muted);
}

.contact-details {
    padding: 2.25rem;
    background: linear-gradient(165deg, var(--cream) 0%, var(--white) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-details h3 {
    margin-top: 0;
    color: var(--wine);
}

.contact-details dl { margin: 0; }

.contact-details dt {
    font-weight: 600;
    color: var(--wine);
    margin-top: 1rem;
}

.contact-details dt:first-child { margin-top: 0; }

.contact-details dd { margin: 0.15rem 0 0; }

.contact-details__note {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--ink-muted);
}

/* Map */
.map-wrap {
    position: relative;
    min-height: 400px;
    background: var(--cream-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.map-wrap iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
}

.map-fallback { padding: 2rem; text-align: center; }

/* Legal content */
.legal-content {
    max-width: 48rem;
}

.legal-content h2 {
    color: var(--wine);
    margin-top: 2.5rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

.legal-content ul, .legal-content ol {
    padding-left: 1.5rem;
}

.legal-content li { margin-bottom: 0.5rem; }

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.cookie-table th,
.cookie-table td {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    text-align: left;
}

.cookie-table th {
    background: var(--cream);
    font-weight: 600;
}

.cookie-table code {
    font-size: 0.8125rem;
    background: var(--cream);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

/* Error page */
.error-page__inner {
    text-align: center;
    max-width: 32rem;
    margin-inline: auto;
    padding: 4rem 0;
}

.error-page__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Footer */
.site-footer {
    background: var(--wine-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
}

.site-footer a {
    color: var(--gold-light);
    text-decoration: none;
}

.site-footer a:hover { color: var(--white); }

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.site-footer__name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    color: var(--white);
    margin: 0 0 0.5rem;
}

.site-footer__tagline,
.site-footer__hours {
    font-size: 0.9375rem;
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__heading {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li { margin-bottom: 0.5rem; }

.site-footer address {
    font-style: normal;
    font-size: 0.9375rem;
}

.site-footer address p { margin: 0 0 0.5rem; }

.site-footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer__disclaimer {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
}

.cookie-banner__inner {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

.cookie-banner h2 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
}

.cookie-banner p {
    font-size: 0.9375rem;
    color: var(--ink-muted);
    margin: 0 0 1rem;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-banner__link {
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .editorial-split,
    .course-detail__grid,
    .prose-layout,
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .page-hero__split { grid-template-columns: 1fr; gap: 2rem; }
    .course-catalog__item,
    .course-catalog__item--reverse { grid-template-columns: 1fr; direction: ltr; gap: 1.75rem; }
    .instructor-card,
    .instructor-card--reverse { grid-template-columns: 1fr; direction: ltr; gap: 1.75rem; }
    .prose-layout__figure { position: static; }
    .course-sidebar-card { position: static; }
    .editorial-split__figure img { min-height: 280px; }
}

.nav-backdrop {
    display: none;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 1.5rem, var(--max-width));
    }

    body.nav-open { overflow: hidden; }

    .top-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 0.65rem 0;
    }

    .top-bar a {
        margin-left: 0;
        margin-right: 1rem;
    }

    .top-bar__links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 1rem;
    }

    .site-header__inner {
        padding: 0.75rem 0;
        gap: 0.75rem;
    }

    .logo__emblem {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }

    .logo__name { font-size: 1.125rem; }

    .nav-toggle {
        display: flex;
        z-index: 210;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .header-cta { display: none; }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(30, 26, 23, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 150;
        border: 0;
        padding: 0;
        cursor: pointer;
    }

    body.nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        gap: 0.25rem;
        padding: 5rem 1.5rem 2rem;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        margin-left: 0;
        z-index: 200;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .primary-nav.is-open { transform: translateX(0); }

    .primary-nav a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1.0625rem;
        border-bottom: 1px solid var(--border);
    }

    .primary-nav a::after { display: none; }

    .section { padding: 3.5rem 0; }

    .page-hero { padding: 2.5rem 0; }
    .page-hero--compact { padding: 2.25rem 0; }
    .page-hero--with-media { padding: 2.25rem 0 2.75rem; }

    .page-hero__figure img {
        height: clamp(200px, 52vw, 280px);
    }

    .hero--immersive { min-height: 68vh; min-height: 68dvh; }

    .hero__overlay { padding: 2.5rem 0; }

    .hero__content h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); }

    .hero__content .lead { font-size: 1.0625rem; }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn { width: 100%; }

    .trust-strip__grid > div:not(:last-child)::after { display: none; }

    .trust-strip__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 1.5rem 0;
    }

    .trust-strip strong { font-size: 1.5rem; }

    .editorial-split { gap: 2rem; }

    .section-header { margin-bottom: 2rem; }

    .course-showcase,
    .pillar-grid,
    .testimonial-panel,
    .track-grid,
    .info-columns { grid-template-columns: 1fr; }

    .course-showcase { gap: 1.25rem; }

    .course-showcase__card img { height: 200px; }

    .pillar-card { padding: 1.5rem; }

    .testimonial-panel { gap: 1.25rem; }

    .testimonial-panel__quote {
        padding: 1.75rem 1.25rem 1.5rem 1.75rem;
    }

    .testimonial-panel__quote::before { font-size: 3rem; }

    .testimonial-panel__quote p { font-size: 1.125rem; }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .cta-banner .btn { width: 100%; }

    .course-catalog__item { padding: 2rem 0; }

    .course-catalog__media img { min-height: 220px; }

    .instructor-grid { gap: 2.5rem; }

    .instructor-card__photo img { height: 280px; }

    .contact-layout { gap: 1.5rem; }

    .contact-layout__form,
    .contact-details { padding: 1.5rem; }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        min-height: 48px;
    }

    .contact-form textarea { min-height: 140px; }

    .contact-form .btn { width: 100%; }

    .form-success { padding: 1.75rem 1.25rem; }

    .map-wrap,
    .map-wrap iframe,
    .map-placeholder { min-height: 280px; height: 280px; }

    .cookie-banner { padding: 1rem; }

    .cookie-banner__inner { width: min(100% - 1rem, var(--max-width)); }

    .cookie-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions .btn { width: 100%; }

    .cookie-banner__link {
        margin-left: 0;
        text-align: center;
        display: block;
        padding-top: 0.25rem;
    }

    .site-footer { padding: 3rem 0 1.5rem; }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .legal-content { max-width: none; }

    .cookie-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .error-page__inner { padding: 2.5rem 0; }

    .error-page__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-page__actions .btn { width: 100%; }

    .studio-showcase__figure img { height: clamp(220px, 55vw, 320px); }

    .course-sidebar-card { padding: 1.5rem; }

    .course-sidebar-card__price { font-size: 2rem; }

    .btn {
        min-height: 48px;
        padding: 0.85rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 1.25rem, var(--max-width));
    }

    body { font-size: 1rem; }

    h1 { font-size: clamp(1.75rem, 9vw, 2.25rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 1.875rem); }

    .section { padding: 2.75rem 0; }

    .page-hero::before {
        width: 100%;
        height: 100%;
        top: -20%;
        right: -30%;
    }

    .trust-strip__grid { grid-template-columns: 1fr; }

    .trust-strip__grid > div {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .trust-strip__grid > div:last-child { border-bottom: 0; }

    .hero--immersive { min-height: 62vh; min-height: 62dvh; }

    .hero__overlay { padding: 2rem 0; }

    .course-catalog__price { font-size: 1.5rem; }

    .cta-banner { padding: 1.5rem 1.25rem; }

    .top-bar { font-size: 0.8125rem; }

    .eyebrow { font-size: 0.75rem; }

    .lead { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
