:root {
    --ink: #17231d;
    --muted: #66756c;
    --paper: #fbfaf5;
    --surface: #ffffff;
    --line: #dfe7df;
    --leaf: #2f6f4e;
    --leaf-dark: #1f5138;
    --sun: #e4ad5b;
    --rose: #c36f5b;
    --shadow: 0 20px 60px rgba(31, 81, 56, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 250, 245, 0.92);
    border-bottom: 1px solid rgba(223, 231, 223, 0.75);
    backdrop-filter: blur(16px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand.center {
    justify-content: center;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: var(--leaf);
    border-radius: 50%;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #33443a;
    font-weight: 700;
}

.nav-cta {
    color: #fff;
    background: var(--leaf);
    border-radius: 999px;
    padding: 10px 16px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: calc(100svh - 72px);
    display: grid;
    align-items: end;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(19, 36, 27, 0.82), rgba(19, 36, 27, 0.42), rgba(19, 36, 27, 0.12)),
        url("../img/yoga-hero.svg") center/cover no-repeat,
        #244635;
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 32%;
    content: "";
    background: linear-gradient(0deg, var(--paper), rgba(251, 250, 245, 0));
}

.hero-content {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto 9vh;
    color: #fff;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--sun);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.05;
}

h1 {
    max-width: 720px;
    font-size: clamp(2.6rem, 9vw, 5.6rem);
}

h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.hero-copy {
    max-width: 620px;
    margin: 20px 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.8vw, 1.2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 13px 20px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    color: #fff;
    background: var(--leaf);
}

.button.secondary {
    color: var(--leaf-dark);
    background: #fff;
    border: 1px solid var(--line);
}

.button.light {
    color: var(--leaf-dark);
    background: #fff;
}

.button.full {
    width: 100%;
}

.hero-stats {
    display: grid;
    max-width: 620px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.hero-stats div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.hero-stats strong {
    display: block;
    font-size: 1.6rem;
}

.hero-stats span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
}

.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
}

.intro p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.section-heading {
    grid-column: 1 / -1;
    margin-bottom: 16px;
}

.benefit-band {
    width: 100%;
    max-width: none;
    padding-right: max(20px, calc((100% - 1180px) / 2));
    padding-left: max(20px, calc((100% - 1180px) / 2));
    background: #203b2f;
    color: #fff;
}

.benefit-band .section-heading {
    width: min(760px, 100%);
}

.benefit-grid,
.process-grid,
.credential-grid {
    display: grid;
    gap: 18px;
}

.benefit-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
}

.benefit-grid article,
.process-grid article,
.testimonials article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.benefit-grid article {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.benefit-grid span,
.process-grid span {
    display: inline-grid;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    place-items: center;
    color: var(--leaf-dark);
    background: var(--sun);
    border-radius: 50%;
    font-weight: 900;
}

.benefit-grid p {
    color: rgba(255, 255, 255, 0.76);
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.class-card,
.price-card,
.form,
.schedule-list {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.class-card {
    overflow: hidden;
}

.class-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef4ed;
}

.class-card div {
    padding: 20px;
}

.class-card p,
.price-card p,
.schedule-row p {
    color: var(--muted);
}

.class-card span {
    display: inline-block;
    margin-top: 8px;
    color: var(--leaf-dark);
    font-weight: 800;
}

.class-card ul,
.price-card ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    color: var(--muted);
    list-style: none;
}

.class-card li,
.price-card li {
    position: relative;
    padding-left: 22px;
}

.class-card li::before,
.price-card li::before {
    position: absolute;
    left: 0;
    color: var(--leaf);
    content: "✓";
    font-weight: 900;
}

.instructor-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.instructor-photo {
    min-height: 460px;
    display: grid;
    align-items: end;
    padding: 28px;
    color: #fff;
    background:
        linear-gradient(0deg, rgba(23, 35, 29, 0.78), rgba(23, 35, 29, 0.08)),
        url("../img/yoga-hero.svg") center/cover no-repeat;
}

.instructor-photo span {
    max-width: 260px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.2rem;
    line-height: 1.05;
}

.instructor-copy {
    display: grid;
    align-content: center;
    padding: clamp(28px, 6vw, 58px);
}

.instructor-copy p {
    color: var(--muted);
}

.credential-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
}

.credential-grid div {
    padding: 16px;
    background: #f4f7f1;
    border-radius: 8px;
}

.credential-grid strong,
.credential-grid span {
    display: block;
}

.credential-grid span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.schedule-list {
    overflow: hidden;
}

.schedule-row {
    display: grid;
    width: 100%;
    grid-template-columns: 120px 120px 1fr 120px;
    gap: 18px;
    align-items: center;
    padding: 20px;
    color: inherit;
    font: inherit;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.schedule-row:hover,
.schedule-row:focus-visible {
    background: #f4f7f1;
    box-shadow: inset 5px 0 0 var(--leaf);
}

.schedule-row:focus-visible {
    outline: 3px solid rgba(47, 111, 78, 0.22);
    outline-offset: -3px;
}

.schedule-row.selected {
    background: #eef4ed;
    box-shadow: inset 5px 0 0 var(--leaf);
}

.schedule-row:last-child {
    border-bottom: 0;
}

.schedule-row span {
    color: var(--rose);
    font-weight: 800;
}

.schedule-row strong {
    font-size: 1.15rem;
}

.schedule-row p {
    margin: 0;
}

.schedule-row em {
    justify-self: end;
    min-width: 98px;
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    background: var(--leaf);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.schedule-row.selected em {
    background: var(--rose);
}

.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.process-grid {
    grid-template-columns: repeat(3, 1fr);
}

.price-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 26px;
}

.price-card .button {
    margin-top: 6px;
}

.price-card.highlighted {
    color: #fff;
    background: var(--leaf-dark);
    border-color: var(--leaf-dark);
}

.price-card.highlighted p {
    color: rgba(255, 255, 255, 0.82);
}

.price-card.highlighted .price {
    color: #fff;
}

.price-card.highlighted ul {
    color: rgba(255, 255, 255, 0.82);
}

.price-card.highlighted li::before {
    color: var(--sun);
}

.price {
    margin: 4px 0;
    color: var(--leaf-dark);
    font-size: 2rem;
    font-weight: 800;
}

.plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plan-meta span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--leaf-dark);
    background: #eef4ed;
    font-size: 0.82rem;
    font-weight: 800;
}

.price-card.highlighted .plan-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.testimonials article p {
    margin-top: 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.testimonials article strong {
    color: var(--leaf-dark);
}

.booking-section,
.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    gap: 36px;
    align-items: start;
}

.booking-copy {
    position: sticky;
    top: 96px;
}

.booking-copy p:last-child,
.contact p {
    color: var(--muted);
}

.booking-points {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.booking-points span {
    position: relative;
    padding: 14px 16px 14px 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(31, 81, 56, 0.08);
    font-weight: 800;
}

.booking-points span::before {
    position: absolute;
    left: 16px;
    color: var(--leaf);
    content: "✓";
}

.selected-slot {
    display: grid;
    gap: 4px;
    padding: 16px;
    color: var(--leaf-dark);
    background: #eef4ed;
    border: 1px solid #bfd3bf;
    border-radius: 8px;
}

.selected-slot span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq {
    display: grid;
    gap: 14px;
}

.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(31, 81, 56, 0.08);
}

.faq summary {
    padding: 18px 20px;
    color: var(--leaf-dark);
    cursor: pointer;
    font-weight: 900;
}

.faq details p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--muted);
}

.form {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.form label {
    display: grid;
    gap: 8px;
    color: #3c4c42;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfdccf;
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(47, 111, 78, 0.18);
    border-color: var(--leaf);
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 42px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.footer a {
    color: var(--leaf-dark);
    font-weight: 800;
}

.message-page {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 20px;
}

.message-card {
    width: min(560px, 100%);
    padding: 34px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.message-card h1 {
    margin-top: 22px;
    font-size: clamp(2rem, 7vw, 3rem);
}

.message-card p {
    color: var(--muted);
}

.admin {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}

.admin-login {
    margin: 10vh auto 0;
}

.form-error {
    color: #a13f31;
    font-weight: 800;
}

.admin-section {
    margin-top: 42px;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--leaf-dark);
    background: #eef4ed;
    font-size: 0.82rem;
    text-transform: uppercase;
}

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .nav-cta {
        text-align: center;
    }

    .intro,
    .instructor-card,
    .booking-section,
    .contact {
        grid-template-columns: 1fr;
    }

    .booking-copy {
        position: static;
    }

    .class-grid,
    .pricing,
    .benefit-grid,
    .process-grid,
    .testimonials {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .nav,
    .section,
    .footer,
    .admin {
        width: auto;
        padding-right: 16px;
        padding-left: 16px;
    }

    .hero {
        min-height: calc(100svh - 72px);
    }

    .hero-media {
        background:
            linear-gradient(0deg, rgba(19, 36, 27, 0.88), rgba(19, 36, 27, 0.2)),
            url("../img/yoga-hero.svg") center/cover no-repeat,
            #244635;
    }

    .hero-content {
        width: auto;
        margin: 0 16px 8vh;
    }

    .hero-actions {
        display: grid;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .class-grid,
    .pricing,
    .benefit-grid,
    .process-grid,
    .testimonials {
        grid-template-columns: 1fr;
    }

    .instructor-photo {
        min-height: 320px;
    }

    .schedule-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .schedule-row em {
        justify-self: start;
        margin-top: 8px;
    }

    .footer {
        flex-direction: column;
    }
}
