/* =========================
   RESET
========================= */
@font-face {
    font-family: "Calling Code";
    src: url("../fonts/CallingCode.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html,
body {
    font-family: "Calling Code", sans-serif;
}

* {
    font-family: "Calling Code", sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fff;
}


/* =========================
   GLOBAL
========================= */

.container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: #555;
}

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


/* =========================
   HEADER
========================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    padding: 25px 0;
}

.header-container {
    width: min(1200px, 90%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

/* Logo's */

.header-logo {
    display: block;
}

.header-logo img {
    display: block;
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: filter 180ms ease;
}

.header-logo.on-light img {
    filter: brightness(0);
}

.header .book-lessons.on-light,
.hero-text-right.on-light p {
    color: #222;
}

.header-logo-left {
    justify-self: start;
}

.header-logo-center {
    justify-self: center;
}

.header-logo-center img {
    max-width: 100px;
}

/* Book lessons */

.book-lessons {
    justify-self: end;
    text-transform: uppercase;
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;

    font-size: 1rem;
    font-weight: 500;
}

.book-lessons:hover {
    opacity: 0.7;
}


/* =========================
   FULL SCREEN HERO
========================= */

.hero {
    position: relative;

    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;

    background-image: url("../images/hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.2);
}

/* Three content panels that belong to the hero and scroll away with it. */
.hero-sections {
    position: absolute;
    z-index: 3;
    left: 5%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 32px);

    pointer-events: none;
}

.hero-panel {
    min-width: 0;
    aspect-ratio: 4 / 5;
}

.hero-panel-slider {
    position: relative;
    width: min(90%, calc((100svh - 220px) * 0.72));
    aspect-ratio: 18 / 25;
    justify-self: start;
    align-self: center;
    overflow: hidden;
    border-radius: 12px;
    background: #1b1b1b;
    pointer-events: auto;
}

.hero-panel-right {
    justify-self: end;
}

.flow-card {
    position: relative;
    width: min(45%, calc((100svh - 220px) * 0.36));
    aspect-ratio: 1 / 1;
    align-self: center;
    justify-self: center;
    overflow: hidden;
    border-radius: 12px;
    color: white;
    background: #7f888c;
    pointer-events: auto;
    container-type: inline-size;
}

.flow-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.flow-title,
.flow-link {
    position: absolute;
    left: 8%;
    right: 8%;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    font-weight: normal;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.flow-title {
    top: 12%;
    margin: 0;
    font-size: 6cqw;
    text-transform: uppercase;
}

.flow-line {
    position: absolute;
    width: 84%;
    height: auto;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
}

.flow-link {
    bottom: 9%;
    font-size: 6.5cqw;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.flow-link[href]:hover {
    opacity: 0.8;
}

.flow-link:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

.photo-slider,
.photo-slide,
.photo-slide img {
    width: 100%;
    height: 100%;
}

.photo-slider {
    position: relative;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.photo-slider:active {
    cursor: grabbing;
}

.photo-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 500ms ease;
}

.photo-slide.is-active {
    opacity: 1;
}

.photo-slide img {
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.slider-progress {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    right: 18px;

    pointer-events: none;
}

.slider-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.progress-track {
    position: relative;
    height: 3px;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.38);
    border-radius: 2px;
}

.progress-fill {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}


/* =========================
   INTRO AFTER HERO
========================= */

.intro {
    min-height: 70vh;
    padding: clamp(80px, 8vw, 140px) 0;
    background: white;
}

.studio-grid {
    width: min(1200px, 90%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 14vw, 180px);
    row-gap: clamp(80px, 13vw, 170px);
    align-items: start;
}

.studio-heading {
    margin: 20px 0 0;
    font-size: clamp(22px, 3vw, 40px);
    font-weight: normal;
    line-height: 1;
}

.studio-heading span {
    display: block;
    font-family: "Times New Roman", serif;
    font-style: italic;
    white-space: nowrap;
}

.studio-heading span:first-child { margin-left: 14%; }
.studio-heading span:nth-child(2) { margin-left: 7%; font-style: normal; }
.studio-heading span:last-child { margin-left: 20%; }

.studio-copy {
    min-width: 0;
    max-width: 430px;
    font-size: clamp(12px, 1.15vw, 15px);
    line-height: 1.75;
}

.studio-copy p { color: #222; }
.studio-story { padding-left: 7%; }
.studio-quote { margin-top: 26px; }

.studio-booking {
    min-width: 0;
    min-height: 360px;
    background: #d9d9d9;
}

.studio-booking iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .studio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }
    .studio-heading { font-size: clamp(24px, 6vw, 40px); }
    .studio-story { padding-left: 0; }
    .studio-copy { max-width: none; font-size: 14px; }
}

/* Memberships: all dividers and +/- icons are CSS, no image assets. */
.memberships {
    padding: 40px 0 120px;
    background: #fff;
}

.memberships-list {
    width: min(1200px, 90%);
    margin: 0 auto;
    border-top: 1px solid #e2e2df;
}

.membership-group {
    border-bottom: 1px solid #e2e2df;
}

.membership-summary {
    position: relative;
    display: block;
    padding: 28px 28px;
    text-align: center;
    list-style: none;
    cursor: pointer;
}

.membership-summary::-webkit-details-marker { display: none; }
.membership-summary::marker { content: ""; }
.membership-summary:focus-visible { outline: 2px solid #777; outline-offset: 4px; }

.membership-title {
    display: block;
    font-size: clamp(24px, 3.2vw, 40px);
    line-height: 1.4;
    font-weight: normal;
}

.membership-subtitle {
    display: block;
    margin-top: 3px;
    color: #8b8b85;
    font-size: clamp(12px, 1.15vw, 14px);
    line-height: 1.6;
}

.membership-toggle {
    position: absolute;
    right: 1px;
    top: calc(28px + clamp(24px, 3.2vw, 40px) * 0.7 - 8px);
    width: 16px;
    height: 16px;
}

.membership-toggle::before,
.membership-toggle::after {
    content: "";
    position: absolute;
    background: #c4c4bf;
}

.membership-toggle::before { left: 0; top: 7px; width: 16px; height: 2px; }
.membership-toggle::after { left: 7px; top: 0; width: 2px; height: 16px; }
.membership-group[open] > .membership-summary .membership-toggle::after { display: none; }

.membership-body { padding: 32px 0 24px; }
.membership-body p { color: #222; font-size: clamp(14px, 1.25vw, 16px); line-height: 1.8; }
.membership-plan p { color: #707070; }
.membership-plan + .membership-plan { margin-top: 28px; }
.membership-plan p + p { margin-top: 12px; }

.membership-plan-heading a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.membership-plan-heading a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
.membership-plan h3 { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; font-weight: normal; margin-bottom: 6px; }
.membership-plan-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: baseline;
}
.membership-plan-heading strong { min-width: 0; overflow-wrap: anywhere; }
.membership-price {
    text-align: right;
    white-space: nowrap;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}
.membership-body .membership-muted { color: #8b8b85; }
.passes-title { text-align: center; font-size: clamp(20px, 2vw, 24px); font-weight: normal; margin: 48px 0 28px; }
.class-passes { font-size: clamp(14px, 1.25vw, 16px); line-height: 1.7; }
.class-passes > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.class-passes > div + div { margin-top: 16px; }
.class-passes dd { margin: 0; white-space: nowrap; text-align: right; }
.membership-students { padding-top: 8px; }

/* =========================
   HERO TEXT
========================= */

.hero-text {
    position: absolute;
    bottom: 40px;
    z-index: 2;

    color: white;

    font-size: 0.9rem;
    line-height: 1.5;
}

.hero-text p {
    margin: 0;
    color: white;
}

.hero-text-left {
    left: 5%;
}

.hero-text-right {
    position: absolute;
    z-index: 100;
    right: 5%;
    text-align: right;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 100px 0;
}

.section-light {
    background: #f7f7f7;
}


/* =========================
   CARDS
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    padding: 2rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
}

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


/* =========================
   BUTTON
========================= */

.button {
    display: inline-block;

    padding: 0.9rem 1.5rem;

    background: #111;
    color: white;

    border-radius: 6px;

    font-weight: 600;
}

.button:hover {
    opacity: 0.8;
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 80px 5% 110px;
    background: #fff;
    text-align: center;
    font-size: 1rem;
    color: #222;
}

.footer-links {
    line-height: 1.6;
    text-transform: uppercase;
}

.footer-links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .navigation {
        display: none;
    }

    .hero {
        padding: 0;
    }


    .hero-sections {
        top: 54%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .hero-panel-slider {
        width: min(100%, calc((100svh - 190px) * 0.5));
        justify-self: start;
    }

    .hero-panel-right {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .hero-panel-center {
        grid-column: 1 / -1;
        grid-row: 2;
        width: min(calc((90vw - 16px) / 4), calc((100svh - 190px) * 0.25));
    }

    .slider-progress {
        top: 12px;
        left: 10px;
        right: 10px;
    }

    .slider-title {
        font-size: clamp(8px, 2.2vw, 12px);
    }

    .section {
        padding: 70px 0;
    }

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

}


/* =========================
   BOOKING MODAL
========================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 1;

    width: min(600px, 100%);
    max-height: 90vh;
    overflow-y: auto;

    padding: 50px;

    background: white;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;

    border: none;
    background: none;

    font-family: inherit;
    font-size: 2rem;
    cursor: pointer;
}

.modal-header {
    margin-bottom: 40px;
}

.modal-header h2 {
    margin: 0;
}


/* =========================
   BOOKING FORM
========================= */

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.85rem;
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    width: 100%;

    padding: 12px 0;

    border: none;
    border-bottom: 1px solid #222;

    background: transparent;

    font-family: inherit;
    font-size: 1rem;

    outline: none;
}

.form-field textarea {
    resize: vertical;
}


.studio-location-title {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.4;
}

#lesrooster, #memberships { scroll-margin-top: 120px; }

/* Book lessons button */

.book-lessons {
    border: none;
    padding: 0;

    background: none;

    color: white;
    font-family: inherit;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;

    cursor: pointer;
}

.book-lessons:hover {
    opacity: 0.7;
}
@media (max-width: 700px) {

    .header-container {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
    }

    .header-logo-center {
        position: static;
        transform: none;
    }

    .header-logo-left img {
        max-width: min(100px, 24vw);
    }

    .header-logo-center img {
        max-width: 50px;
    }

    .header .book-lessons {
        font-size: 0.65rem;
        max-width: 100px;
    }

}
