:root {
    --bg: #fffaf3;
    --surface: #ffffff;
    --ink: #2a2927;
    --muted: #6a6259;
    --accent: #d94f35;
    --accent-soft: #ffe7cf;
    --line: #ecd8c5;
    --radius: 20px;
    --shadow: 0 12px 35px rgba(80, 43, 12, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, #ffe7cf 0, rgba(255, 231, 207, 0) 26%),
        radial-gradient(circle at 88% 22%, #ffe1da 0, rgba(255, 225, 218, 0) 20%),
        var(--bg);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Fraunces', serif;
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: var(--accent);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 243, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 56px;
    height: 56px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text small {
    color: var(--muted);
}

.site-nav {
    display: flex;
    gap: 0.2rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    font-weight: 500;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--accent-soft);
    color: #81321f;
}

.hero {
    position: relative;
    min-height: 58vh;
    display: grid;
    align-items: center;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero-home::before {
    background-image: url('../images/eliza-2.jpg');
    background-position: center 22%;
}

.hero-programs::before {
    background-image: url('../images/marie-working.jpg');
}

.hero-contact::before {
    background-image: url('../images/studio-wheel.jpg');
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(39, 19, 8, 0.75), rgba(39, 19, 8, 0.35) 60%, rgba(39, 19, 8, 0.1));
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 760px;
    padding: 4rem 0;
}

.hero-content h1 {
    font-size: clamp(2rem, 3.6vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.button:hover {
    opacity: 0.92;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.section {
    padding: 4.6rem 0;
}

.section-accent {
    background: linear-gradient(180deg, #fff2e4, #fffaf3);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-intro {
    color: var(--muted);
}

.grid-two {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.media-card {
    margin: 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--line);
}

.media-card img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.cards {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.two-up {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.program-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 0.4rem;
}

.meta {
    color: #884631;
    font-size: 0.96rem;
}

ul,
ol {
    margin: 0.55rem 0 0;
    padding-left: 1.2rem;
}

.testimonials {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.quote-author {
    color: var(--muted);
    margin-top: 0.7rem;
    font-weight: 600;
}

.gallery-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.85rem;
}

.gallery-item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--surface);
    aspect-ratio: 1 / 1;
}

.gallery-trigger {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 180ms ease;
}

.gallery-trigger:hover img,
.gallery-trigger:focus-visible img {
    transform: scale(1.04);
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 15, 10, 0.84);
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 1080px);
    height: min(88vh, 760px);
    height: min(88dvh, 760px);
    display: grid;
    place-items: center;
}

.lightbox-dialog img {
    max-width: min(94vw, 1080px);
    max-height: min(82vh, 700px);
    max-height: min(82dvh, 700px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

.lightbox-nav,
.lightbox-close {
    position: absolute;
    border: 0;
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 1.2rem;
    display: grid;
    place-items: center;
}

.lightbox-close {
    top: 0.4rem;
    right: 0.4rem;
}

.lightbox-prev {
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 0.4rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: #f5ebe2;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff4e9;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

@media (max-width: 880px) {
    .header-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        flex-wrap: wrap;
    }

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

    .hero {
        min-height: 50vh;
    }

    .hero-home::before {
        background-position: center 16%;
    }

    .lightbox-prev {
        left: -0.1rem;
    }

    .lightbox-next {
        right: -0.1rem;
    }
}
