/* =========================================================================
   Instructor page styles
   ========================================================================= */

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-section,
    .fade-in-section.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .instructor-image {
        transition: none;
    }
}

/* -------- Hero -------- */
.instructor-hero {
    padding: 192px var(--margin-mobile) 64px;
    background-color: var(--surface);
    text-align: center;
}

@media (min-width: 768px) {
    .instructor-hero {
        padding: 192px var(--margin-desktop) var(--stack-lg);
    }
}

.instructor-hero-inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

.instructor-hero-title {
    font-family: var(--font-serif);
    font-size: 48px;
    line-height: 56px;
    font-weight: 500;
    color: var(--deep-plum);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.instructor-hero-lead {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 28px;
    color: var(--on-surface-variant);
    max-width: 640px;
    margin-inline: auto;
}

/* -------- Owner feature -------- */
.owner-section {
    padding: var(--stack-lg) var(--margin-mobile) 80px;
    background-color: var(--surface-container-low);
}

@media (min-width: 768px) {
    .owner-section {
        padding-inline: var(--margin-desktop);
    }
}

.owner-inner {
    max-width: var(--container-max);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--stack-lg);
}

@media (min-width: 900px) {
    .owner-inner {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
        align-items: start;
    }
}

.owner-image-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    box-shadow: 0 24px 48px rgba(45, 41, 38, 0.08);
}

/* Keep the portrait in view while the longer story scrolls past */
@media (min-width: 900px) {
    .owner-image-wrap {
        position: sticky;
        top: 120px;
    }
}

.owner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 40%;
    filter: saturate(1.04) contrast(0.95) brightness(1.04);
}

.owner-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--stack-sm);
}

.owner-name {
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 48px;
    font-weight: 500;
    color: var(--deep-plum);
    letter-spacing: -0.01em;
    margin-bottom: var(--stack-md);
}

@media (min-width: 768px) {
    .owner-name {
        font-size: 48px;
        line-height: 56px;
    }
}

.owner-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 var(--stack-md);
}

.owner-credentials li {
    background-color: rgba(125, 86, 45, 0.15);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.owner-body p {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 28px;
    color: var(--on-surface-variant);
    margin-bottom: 20px;
}

.owner-quote {
    margin: var(--stack-md) 0;
    padding-left: var(--stack-md);
    border-left: 3px solid var(--primary);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 24px;
    line-height: 34px;
    color: var(--deep-plum);
}

.owner-body .btn {
    margin-top: var(--stack-sm);
}

/* -------- Team heading -------- */
.team-heading {
    text-align: center;
    margin-bottom: var(--stack-lg);
}

.team-heading h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    line-height: 40px;
    font-weight: 500;
    color: var(--espresso-text);
}

@media (min-width: 768px) {
    .team-heading h2 {
        font-size: 40px;
        line-height: 48px;
    }
}

/* -------- Instructor grid -------- */
.instructor-section {
    padding-block: var(--stack-lg);
    padding-inline: var(--margin-mobile);
    background-color: var(--soft-cream);
}

@media (min-width: 768px) {
    .instructor-section {
        padding-inline: var(--margin-desktop);
    }
}

.instructor-section-inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

.instructor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 768px) {
    .instructor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .instructor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.instructor-card {
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.instructor-card:hover {
    box-shadow: 0 10px 24px rgba(45, 41, 38, 0.12);
}

.instructor-image-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
    /* Keep the soft-light wash blending only with the photo below it */
    isolation: isolate;
}

/* Warm wash over the portraits — the source images run cool and clinical,
   and this pulls them into the studio's warm palette. */
.instructor-image-wrap::after,
.owner-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 212, 168, 0.30), rgba(212, 130, 90, 0.18));
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.instructor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop in toward the face rather than the full head-and-shoulders
       stare, which reads much less like a passport photo */
    transform: scale(1.12);
    transform-origin: center 30%;
    filter: saturate(1.04) contrast(0.93) brightness(1.05);
    transition: transform 0.5s ease;
}

.instructor-card:hover .instructor-image {
    transform: scale(1.16);
}

/* Full-length shots (e.g. seated on a reformer) leave the face small in a
   4:5 frame — zoom harder, anchored on the face, so the card still reads
   as a portrait. */
/* Doubled class so this beats .instructor-image on specificity, not file order */
.instructor-image.instructor-image-full {
    transform: scale(1.45);
    transform-origin: 50% 32%;
}

.instructor-card:hover .instructor-image.instructor-image-full {
    transform: scale(1.5);
}

/* Small source files (e.g. Amber's 219px photo) blur when zoomed, so show
   them at natural crop with no hover zoom. Remove once a larger photo lands. */
.instructor-image.instructor-image-lowres,
.instructor-card:hover .instructor-image.instructor-image-lowres {
    transform: none;
}

/* Stand-in until a headshot arrives — keeps the grid even without a
   broken-image icon. */
.instructor-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--surface-container-high), var(--secondary-fixed));
    font-family: var(--font-serif);
    font-size: 72px;
    color: var(--deep-plum);
    opacity: 0.85;
}

.instructor-card-body {
    padding: var(--stack-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.instructor-tag {
    display: inline-block;
    background-color: rgba(125, 86, 45, 0.15);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    align-self: flex-start;
}

.instructor-card-body h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: var(--espresso-text);
    margin-bottom: 16px;
}

/* Studio role for instructors who also hold a staff position */
.instructor-role {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: -8px 0 16px;
}

.instructor-bio {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--on-surface-variant);
    flex-grow: 1;
    margin-bottom: 24px;
}

.instructor-link {
    width: 100%;
    text-align: center;
    border: 1px solid var(--warm-grey);
    color: var(--espresso-text);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    display: block;
}

.instructor-link:hover {
    background-color: var(--surface-container);
}

/* -------- Work with us -------- */
.work-section {
    padding: var(--stack-lg) var(--margin-mobile);
    background-color: var(--surface-container-low);
}

@media (min-width: 768px) {
    .work-section {
        padding-inline: var(--margin-desktop);
    }
}

.work-inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

.work-heading {
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: var(--stack-lg);
    text-align: center;
}

.work-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--stack-sm);
}

.work-heading h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    line-height: 40px;
    font-weight: 500;
    color: var(--espresso-text);
    margin-bottom: var(--stack-sm);
}

@media (min-width: 768px) {
    .work-heading h2 {
        font-size: 40px;
        line-height: 48px;
    }
}

.work-heading p {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 28px;
    color: var(--on-surface-variant);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.work-card {
    background-color: var(--surface-container-lowest);
    border-radius: 2rem;
    padding: var(--stack-md);
}

.work-card .material-symbols-outlined {
    color: var(--primary);
    font-size: 32px !important;
    margin-bottom: var(--stack-sm);
    display: block;
}

.work-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 30px;
    font-weight: 500;
    color: var(--espresso-text);
    margin-bottom: 12px;
}

.work-card p {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--on-surface-variant);
}

.work-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--stack-md);
    margin-top: var(--stack-lg);
    padding-top: var(--stack-md);
    border-top: 1px solid rgba(200, 206, 211, 0.4);
}

@media (min-width: 768px) {
    .work-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--stack-lg);
    }
}

.work-cta p {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 28px;
    color: var(--espresso-text);
    max-width: 620px;
}

.work-cta .btn {
    flex: 0 0 auto;
}

/* -------- Final CTA -------- */
.instructor-cta {
    padding: 96px var(--margin-mobile);
    background-color: var(--surface-container-high);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .instructor-cta {
        padding-inline: var(--margin-desktop);
    }
}

.instructor-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom right,
        rgba(133, 57, 115, 0.05),
        rgba(125, 86, 45, 0.05)
    );
    pointer-events: none;
}

.instructor-cta-inner {
    max-width: var(--container-max);
    margin-inline: auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.instructor-cta-inner h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    line-height: 40px;
    font-weight: 500;
    color: var(--deep-plum);
    margin-bottom: 24px;
}

.instructor-cta-inner p {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 28px;
    color: var(--on-surface-variant);
    margin-bottom: var(--stack-lg);
    max-width: 600px;
    margin-inline: auto;
}

