/* ==========================================================================
   Daisy Pilates — Color Palette
   ========================================================================== */
:root {
    --color-red: #FF3B30;
    --color-black: #111111;
    --color-white: #FFFFFF;
    --color-offwhite: #F4F3EF;

    --color-bg: var(--color-white);
    --color-bg-alt: var(--color-offwhite);
    --color-text: var(--color-black);
    --color-text-inverse: var(--color-white);
    --color-accent: var(--color-red);

    --font-base: "korolev-rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

picture {
    display: contents;
}

picture source {
    display: none;
}

html {
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-weight: 300;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 24px 0;
    background-color: var(--color-bg-alt);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

nav ul {
    display: flex;
    gap: 32px;
}

nav a {
    position: relative;
    display: inline-block;
    padding: 9px 0;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-black);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.5px;
    background-image: url("images/divider.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 100%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

nav a:hover::after,
nav a.active::after {
    opacity: 1;
}

nav a.nav-brand {
    color: var(--color-accent);
}

.nav-brand-mobile {
    display: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-right: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-black);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-brand-mobile {
        display: inline-block;
    }

    .nav-toggle {
        display: flex;
    }

    nav#site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg-alt);
        box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
    }

    nav#site-nav.nav-open {
        display: block;
    }

    nav#site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 24px;
    }

    nav#site-nav a {
        display: block;
        padding: 12px 0;
    }

    nav#site-nav a::after {
        display: none;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */
main section[id] {
    scroll-margin-top: 88px;
}

#hero {
    padding: 96px 0;
    background-color: var(--color-bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 48px;
}

@media (max-width: 855px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

#hero h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 16px;
}

#hero p {
    font-size: 1.125rem;
    color: var(--color-text);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--color-bg-alt);
    border-radius: 8px;
}

@media (max-width: 855px) {
    .hero-image {
        height: auto;
        aspect-ratio: 3 / 2;
    }
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-black);
    color: var(--color-text-inverse);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
main section:not(#hero) {
    padding: 96px 0;
    background-color: var(--color-bg);
}

main section:not(#hero) .container {
    max-width: 700px;
}

main section#location .container,
main section#about-daisy .container,
main section#testimonials .container {
    max-width: 1000px;
}

main section#about-daisy .container-narrow {
    max-width: 700px;
    margin-top: 64px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.about-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

@media (max-width: 855px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: auto;
        aspect-ratio: 3 / 2;
        object-position: center;
    }
}

.content-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    margin: 40px 0 8px;
}

.location-grid {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.location-grid > div {
    flex: 1 1 320px;
}

.location-map {
    flex: 1 1 400px;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 1/1;
    border: 0;
    border-radius: 8px;
}

.link-directions {
    display: block;
    margin: 8px 0 24px;
    font-weight: 700;
    color: var(--color-accent);
}

main section:not(#hero) h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
}

main section:not(#hero) p {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

main section:not(#hero) h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 5px;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 5px;
}

.placeholder-copy {
    font-style: italic;
    color: #767671;
}

blockquote p {
    font-style: italic;
}

blockquote cite,
blockquote strong {
    margin-left: 8px;
    font-style: normal;
    font-weight: 500;
}

/* ==========================================================================
   Testimonial Slider
   ========================================================================== */
#testimonials h2 {
    text-align: center;
}

.testimonial-slider {
    display: flex;
    align-items: center;
    gap: 24px;
}

.testimonial-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.testimonial-slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.testimonial-slide {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    text-align: center;
}

.testimonial-slide p {
    max-width: 640px;
}

.testimonial-arrow {
    flex-shrink: 0;
    background: none;
    border: 0;
    padding: 8px;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-black);
    cursor: pointer;
    transition: color 0.2s ease;
}

.testimonial-arrow:hover {
    color: var(--color-accent);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
    cursor: pointer;
}

.testimonial-dot.active {
    background-color: var(--color-accent);
}

#location .btn {
    margin-top: 16px;
}

#what-is-pilates img {
    margin-bottom: 100px;
}

@media (max-width: 855px) {
    #what-is-pilates img {
        margin-bottom: 50px;
    }
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
#contact-form p {
    max-width: 480px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 480px;
}

.contact-form label {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-bg-alt);
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-accent);
}

.contact-form .btn {
    align-self: flex-start;
    border: 0;
    cursor: pointer;
}

.form-status {
    margin-top: 16px;
    font-weight: 700;
}

.form-status--success {
    color: #2FA84F;
}

.form-status--error {
    color: var(--color-accent);
}

/* ==========================================================================
   Booking Embed
   ========================================================================== */
main section#book-session .container {
    max-width: 1000px;
    margin-top: -100px
}

.booking-embed {
    width: 100%;
    min-height: 800px;
    border: 0;
}

#book-session h2 {
    text-align: center;
}

/* ==========================================================================
   Divider
   ========================================================================== */
.divider {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
    padding: 0 24px;
    background-color: var(--color-bg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    display: flex;
    justify-content: center;
    padding: 96px 24px;
    background-color: var(--color-bg);
}

.seal {
    width: 56px;
    height: auto;
}
