/* ==========================================================================
   ZenSlide — landing page template for yoga and wellness studios.

   Warm stone and sage. Calm here means space and slow contrast, not a page
   full of soft-focus gradients.
   ========================================================================== */

:root {
    --paper:   #f7f5f0;
    --paper-2: #eeeae1;
    --ink:     #23261f;
    --muted:   #64695c;
    --rule:    #ddd8cc;
    --sage:    #5a6b52;
    --sage-2:  #46543f;

    --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --serif: ui-serif, Georgia, 'Times New Roman', serif;
    --wrap: 72rem;
    --gutter: clamp(1.25rem, 5vw, 3rem);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 2px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 50%; top: 0;
    translate: -50% -150%;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--sage);
    color: #fff;
    font-size: 0.8125rem;
    text-decoration: none;
}

.skip-link:focus-visible { translate: -50% 0; }

/* --- Masthead ------------------------------------------------------------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}

.masthead__inner {
    height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.wordmark {
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: clamp(0.875rem, 3vw, 2rem);
    list-style: none;
    padding: 0;
}

.nav a {
    font-size: 0.8125rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.nav a:hover { color: var(--ink); }

/* --- Buttons -------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 0.9rem 1.9rem;
    background: var(--sage);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s var(--ease);
}

.btn:hover { background: var(--sage-2); }

.btn--small { padding: 0.55rem 1.1rem; font-size: 0.8125rem; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: clamp(30rem, 88svh, 46rem);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ink);
}

.slides { position: absolute; inset: 0; }

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s var(--ease);
}

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

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Keeps the type legible over whatever photograph is showing. */
.slides::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 22, 18, 0.25) 0%, rgba(20, 22, 18, 0.78) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-block: clamp(3rem, 9vw, 5.5rem);
    color: #fff;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.125rem, 1.4rem + 3.4vw, 4rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.015em;
    max-width: 16ch;
}

.hero__lede {
    margin-top: 1.25rem;
    margin-bottom: 2rem;
    max-width: 46ch;
    opacity: 0.9;
}

.hero__controls {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(1.25rem, 4vw, 2rem);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dot {
    width: 9px; height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    transition: background-color 0.2s var(--ease);
}

.dot.is-active { background: #fff; }

.pause {
    display: grid;
    place-items: center;
    width: 1.75rem; height: 1.75rem;
    margin-left: 0.4rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.pause__icon {
    width: 8px; height: 9px;
    border-left: 3px solid #fff;
    border-right: 3px solid #fff;
}

/* Swaps the two bars for a single triangle when paused. */
.pause.is-paused .pause__icon {
    width: 0; height: 0;
    margin-left: 2px;
    border: 5px solid transparent;
    border-left: 8px solid #fff;
}

/* --- Sections ------------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 9vw, 6rem); }
.section--alt { background: var(--paper-2); }

.section__label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 0.75rem;
}

.section__title {
    font-family: var(--serif);
    font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
    max-width: 22ch;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* --- Class cards ---------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.section--alt .card { background: var(--paper); }

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

.card__body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.card h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }

.card p { color: var(--muted); font-size: 0.9375rem; }

.card__meta {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.75rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage) !important;
}

/* --- Timetable ------------------------------------------------------------ */

.table-scroll { overflow-x: auto; }

.timetable {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    text-align: left;
}

.timetable th,
.timetable td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--rule);
}

.timetable thead th {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.timetable tbody th { font-weight: 500; width: 10rem; }

.timetable .is-empty { color: var(--muted); opacity: 0.7; }

/* --- Pricing -------------------------------------------------------------- */

.prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.price {
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--rule);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price--featured {
    border-color: var(--sage);
    box-shadow: 0 0 0 1px var(--sage);
}

.price h3 {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.price__amount {
    font-family: var(--serif);
    font-size: 2.25rem;
    line-height: 1;
}

.price__amount span { font-size: 0.9375rem; color: var(--muted); font-family: var(--font); }

.price p:last-child { color: var(--muted); font-size: 0.9375rem; }

/* --- Visit ---------------------------------------------------------------- */

.visit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}

.visit p { color: var(--muted); max-width: 44ch; }

.visit__image { width: 100%; border-radius: 10px; object-fit: cover; }

.details { margin-block: 2rem; border-top: 1px solid var(--rule); }

.details > div {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
}

.details dt {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.details dd { margin: 0; font-size: 0.9375rem; }

/* --- Footer --------------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--rule);
    padding-block: 2rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
}

.footer p { max-width: 52ch; }
.footer strong { color: var(--ink); }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 52rem) {
    .visit { grid-template-columns: 1fr; }
    .visit__image { order: -1; max-height: 20rem; }
}

@media (max-width: 44rem) {
    .masthead .btn--small { display: none; }
    .nav { gap: 0.875rem; }
}

/* --- Motion --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
