/* ==========================================================================
   Gandhi Foundation
   Mobile-first stylesheet. Every class here is generated by
   templates/render.py, so markup and CSS cannot drift apart.
   ========================================================================== */

:root {
    --primary:      #a84412;
    --primary-dark: #7d300c;
    --gold:         #d59a32;
    --cream:        #fffaf1;
    --light:        #f6f2ea;
    --dark:         #25211e;
    --text:         #5e5954;
    --white:        #ffffff;
    --border:       #e8dfd2;
    --green:        #3d6b4f;

    --shadow-sm: 0 5px 25px rgba(0, 0, 0, .04);
    --shadow:    0 15px 45px rgba(50, 35, 20, .10);

    --radius: 14px;
    --container: 1180px;

    /* Fluid spacing: no stepped breakpoint overrides needed. */
    --space-section: clamp(3rem, 8vw, 5.6rem);
    --gutter: clamp(1.1rem, 4vw, 2rem);

    /* Set from JS so the nav panel never needs a magic number. */
    --header-height: 72px;

    --tap: 44px;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--white);
    color: var(--text);
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    /* Backstop: nothing may scroll the page sideways. */
    overflow-x: clip;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

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

.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 3000;
    transform: translate(-50%, -140%);
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

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

.section {
    padding-block: var(--space-section);
}

.section--light { background: var(--light); }
.section--cream { background: var(--cream); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
    color: var(--dark);
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    /* Floor lowered from 2.7rem so it can actually shrink on a 360px screen. */
    font-size: clamp(2rem, 7vw, 4.2rem);
    letter-spacing: -.015em;
}

h2 {
    font-size: clamp(1.6rem, 4.5vw, 2.9rem);
    letter-spacing: -.01em;
}

h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

.eyebrow--light { color: #f0c66b; }

.section-heading {
    max-width: 46rem;
    margin-inline: auto;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    text-align: center;
}

.section-heading--left {
    margin-inline: 0;
    text-align: left;
}

.section-heading h2 { margin-bottom: .75rem; }

.section-intro {
    font-size: 1.03rem;
    margin-bottom: 0;
}

.prose { max-width: 46rem; }
.prose--center { margin-inline: auto; text-align: center; }

.empty-state {
    max-width: 40rem;
    margin-inline: auto;
    padding: 2rem 1.5rem;
    background: var(--light);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.breadcrumb {
    font-size: .85rem;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 1rem;
}

.breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb span { color: rgba(255, 255, 255, .9); }

/* --------------------------------------------------------------------------
   Buttons — never below the 44px tap minimum
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: var(--tap);
    padding: .7rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.btn--primary { background: var(--primary); color: var(--white); }
.btn--secondary { background: var(--green); color: var(--white); }
.btn--outline { border-color: currentColor; color: var(--white); }
.btn--light { background: var(--white); color: var(--primary); }

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.button-row--center { justify-content: center; }

@media (hover: hover) and (pointer: fine) {
    .btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
    .btn--secondary:hover { background: #2f5540; transform: translateY(-2px); }
    .btn--outline:hover { background: var(--white); color: var(--primary); }
    .btn--light:hover { transform: translateY(-2px); }
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
    /* position: relative so the panel can hang off the real height,
       instead of the old hard-coded top: 78px. */
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(10px)) {
    .site-header { backdrop-filter: blur(10px); }
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
    padding-block: .6rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-shrink: 0;
}

.logo__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 1.3rem;
    line-height: 1;
}

.logo__text strong {
    display: block;
    color: var(--dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.2;
}

.logo__text span {
    display: block;
    color: var(--primary);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: var(--tap);
    min-width: var(--tap);
    padding: .5rem .8rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--dark);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-toggle__label { line-height: 1; }

@media (max-width: 359px) {
    /* Very narrow phones: keep the bars, drop the word. */
    .nav-toggle__label { position: absolute; width: 1px; height: 1px;
        overflow: hidden; clip-path: inset(50%); }
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle__bars {
    position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile: the panel hangs off the header's real height and scrolls itself. */
.nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .5rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 15px 25px rgba(0, 0, 0, .08);
}

.nav.is-open { display: block; }

.nav__list { list-style: none; }

.nav__link {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    padding: .55rem .25rem;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
}

.nav__list li:last-child .nav__link { border-bottom: 0; }

.nav__link.is-current { color: var(--primary); }

.nav__link--cta {
    margin-top: .75rem;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border: 0;
    border-radius: 50px;
}

@media (hover: hover) and (pointer: fine) {
    .nav__link:hover { color: var(--primary); }
    .nav__link--cta:hover { background: var(--primary-dark); color: var(--white); }
}

/* Desktop nav */
@media (min-width: 900px) {
    .nav-toggle { display: none; }

    .nav {
        position: static;
        display: block;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
    }

    .nav__list {
        display: flex;
        align-items: center;
        gap: clamp(.7rem, 1.6vw, 1.4rem);
    }

    .nav__link {
        min-height: 0;
        padding: .4rem 0;
        border-bottom: 0;
        font-size: .88rem;
        white-space: nowrap;
    }

    .nav__link--cta {
        margin-top: 0;
        padding: .6rem 1.1rem;
    }
}

/* --------------------------------------------------------------------------
   Heroes
   -------------------------------------------------------------------------- */

.hero {
    display: flex;
    align-items: center;
    /* Never taller than the viewport on a phone. */
    min-height: min(38rem, 88svh);
    padding-block: clamp(3rem, 10vw, 5rem);
    color: var(--white);
    background-color: #241710;
    background-image:
        linear-gradient(100deg, rgba(31, 21, 13, .88), rgba(31, 21, 13, .45)),
        var(--hero-image, none);
    background-size: cover;
    background-position: center;
}

.hero__content { max-width: 46rem; }

.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.hero__text {
    max-width: 40rem;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.page-hero {
    padding-block: clamp(3rem, 9vw, 6rem);
    color: var(--white);
    background-color: #4a2612;
    background-image:
        linear-gradient(100deg, rgba(63, 31, 16, .9), rgba(110, 55, 22, .62)),
        var(--hero-image, none);
    background-size: cover;
    background-position: center;
}

.page-hero h1 { color: var(--white); margin-bottom: .75rem; }

.page-hero__text {
    max-width: 44rem;
    color: rgba(255, 255, 255, .9);
}

/* --------------------------------------------------------------------------
   Grid and cards
   -------------------------------------------------------------------------- */

.grid {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.4rem);
    grid-template-columns: 1fr;
}

@media (min-width: 620px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.35rem, 3vw, 1.75rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.section--light .card,
.section--cream .card { background: var(--white); }

.card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1.1rem;
    background: #fff0df;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
}

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

.card__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: var(--tap);
    margin-top: auto;
    padding-top: .75rem;
    color: var(--primary);
    font-weight: 700;
    font-size: .92rem;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
    .card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* --------------------------------------------------------------------------
   Split (image + text)
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    gap: clamp(1.75rem, 5vw, 4rem);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 860px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--reverse .split__media { order: 2; }
}

.split__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.split__body { min-width: 0; }

.check-list {
    list-style: none;
    margin-block: 1.25rem;
}

.check-list li {
    position: relative;
    padding: .4rem 0 .4rem 1.9rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .4rem;
    color: var(--primary);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
    display: grid;
    gap: clamp(.75rem, 2vw, 1.25rem);
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 860px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
    padding: clamp(1.25rem, 3vw, 1.9rem) 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.stat__value {
    margin-bottom: .25rem;
    color: var(--primary);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat__label {
    font-size: .88rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Steps — numbered because the order is real
   -------------------------------------------------------------------------- */

.steps {
    counter-reset: step;
    list-style: none;
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.4rem);
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .steps { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
}

.step {
    counter-increment: step;
    position: relative;
    padding: 1.5rem 1.4rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: .6rem;
    color: var(--primary);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.step__title { margin-bottom: .35rem; }

/* --------------------------------------------------------------------------
   Banner
   -------------------------------------------------------------------------- */

.banner {
    padding: clamp(1.75rem, 6vw, 4rem);
    border-radius: 22px;
    color: var(--white);
    background-color: var(--primary-dark);
    background-image:
        linear-gradient(100deg, rgba(104, 43, 10, .95), rgba(168, 68, 18, .78)),
        var(--banner-image, none);
    background-size: cover;
    background-position: center;
}

.banner h2 { color: var(--white); margin-bottom: .85rem; }
.banner p { max-width: 44rem; color: rgba(255, 255, 255, .92); }
.banner strong { color: var(--white); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
    background: var(--green);
    color: var(--white);
    text-align: center;
}

.cta h2 { color: var(--white); margin-bottom: .75rem; }

.cta p {
    max-width: 42rem;
    margin-inline: auto;
    color: rgba(255, 255, 255, .92);
}

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */

.people {
    display: grid;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.person { text-align: center; }

.person__media {
    display: grid;
    place-items: center;
    width: 130px;
    height: 130px;
    margin: 0 auto 1rem;
    background: #f5e9d8;
    border: 5px solid #f5e9d8;
    border-radius: 50%;
    overflow: hidden;
}

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

.person__initials {
    margin: 0;
    color: var(--primary);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.1rem;
    line-height: 1;
}

.person h3 { margin-bottom: .2rem; }

.person__role {
    margin-bottom: .4rem;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.person__bio { font-size: .92rem; }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.timeline {
    list-style: none;
    max-width: 44rem;
    margin-inline: auto;
    padding-left: 1.75rem;
    border-left: 2px solid var(--border);
}

.timeline__item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
    content: "";
    position: absolute;
    left: calc(-1.75rem - 7px);
    top: .45rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid var(--white);
    border-radius: 50%;
}

.timeline__year {
    margin-bottom: .2rem;
    color: var(--primary);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .08em;
}

.timeline__item h3 { margin-bottom: .3rem; }

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */

.quote-section { background: var(--dark); }

.quote {
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}

.quote p {
    color: var(--white);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    line-height: 1.35;
    margin-bottom: 1rem;
}

.quote cite {
    color: var(--gold);
    font-size: .9rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Table — scrolls inside its own box, never the page
   -------------------------------------------------------------------------- */

.table-wrap {
    max-width: 46rem;
    margin-inline: auto;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    -webkit-overflow-scrolling: touch;
}

.info-table {
    width: 100%;
    min-width: 28rem;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }

.info-table th {
    width: 45%;
    background: #fbf4e8;
    color: var(--dark);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Notice
   -------------------------------------------------------------------------- */

.notice {
    max-width: 46rem;
    margin: 2rem auto 0;
    padding: 1.1rem 1.25rem;
    background: #fff8ec;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    font-size: .93rem;
}

.notice__title {
    margin-bottom: .3rem;
    color: var(--dark);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
    display: grid;
    gap: clamp(.6rem, 2vw, 1rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.gallery__item {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    background: #eadfce;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem .9rem .7rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .72), transparent);
    color: var(--white);
    font-size: .88rem;
    font-weight: 600;
    text-align: left;
}

@media (hover: hover) and (pointer: fine) {
    .gallery__item:hover img { transform: scale(1.06); }
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .5rem;
    padding: calc(1rem + env(safe-area-inset-top)) calc(.5rem + env(safe-area-inset-right))
             calc(1rem + env(safe-area-inset-bottom)) calc(.5rem + env(safe-area-inset-left));
    background: rgba(0, 0, 0, .93);
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
    grid-column: 2;
    text-align: center;
    min-width: 0;
}

.lightbox__figure img {
    max-width: 100%;
    max-height: 74svh;
    margin-inline: auto;
    border-radius: 10px;
}

.lightbox__figure figcaption {
    margin-top: .9rem;
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
}

.lightbox__close,
.lightbox__nav {
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }

.lightbox__close {
    position: absolute;
    top: calc(.75rem + env(safe-area-inset-top));
    right: calc(.75rem + env(safe-area-inset-right));
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .lightbox__close:hover,
    .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
}

body.is-locked { overflow: hidden; }

@media (min-width: 900px) {
    /* The drawer does not exist here, so never leave the page locked. */
    body.is-locked { overflow: visible; }
}

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */

.events {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.4rem);
}

.event {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: clamp(1.15rem, 3vw, 1.6rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.event__date {
    display: grid;
    place-content: center;
    min-width: 4.2rem;
    padding: .7rem .5rem;
    background: var(--primary);
    border-radius: 10px;
    color: var(--white);
    text-align: center;
    margin-bottom: 0;
}

.event__day {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1;
}

.event__month {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.event__tag {
    margin-bottom: .35rem;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.1rem;
    margin-bottom: 0;
    font-size: .88rem;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-layout {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.75rem);
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 900px) {
    .contact-layout { grid-template-columns: .85fr 1.15fr; }
}

.contact-info { min-width: 0; }

.contact-detail {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-detail h3 {
    font-size: 1rem;
    margin-bottom: .2rem;
}

.contact-detail a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.contact-detail__icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    background: #fff0df;
    border-radius: 50%;
    color: var(--primary);
}

.form-card {
    padding: clamp(1.25rem, 4vw, 2.2rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.form-card h2 {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .form-row { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}

.form-field { margin-bottom: 1.1rem; }

.form-field label {
    display: block;
    margin-bottom: .4rem;
    color: var(--dark);
    font-size: .88rem;
    font-weight: 600;
}

.form-optional { color: var(--text); font-weight: 400; }

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    min-height: var(--tap);
    padding: .7rem .85rem;
    background: #fffdf9;
    border: 1px solid #dcd1c2;
    border-radius: 8px;
    /* 16px exactly: anything smaller makes iOS Safari zoom on focus. */
    font-size: 16px;
}

.form-field textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--primary);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
    border-color: #b0332a;
}

.form-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: .93rem;
}

.form-status:empty { display: none; }

.form-status[data-state="ok"] {
    padding: .8rem 1rem;
    background: #eaf4ee;
    border-left: 4px solid var(--green);
    border-radius: 6px;
    color: #2c5a3e;
}

.form-status[data-state="error"] {
    padding: .8rem 1rem;
    background: #fdeeec;
    border-left: 4px solid #b0332a;
    border-radius: 6px;
    color: #8f2820;
}

/* Map — sized explicitly; a bare iframe defaults to 300x150 and overflows. */
.map-section { line-height: 0; }

.map-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 26rem;
    border: 0;
}

@media (max-width: 600px) {
    .map-frame { aspect-ratio: 4 / 3; }
}

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

.site-footer {
    padding-block: clamp(2.75rem, 7vw, 4rem) 1.5rem;
    background: #211d1a;
    color: #d5cec7;
}

.footer__grid {
    display: grid;
    gap: clamp(1.75rem, 4vw, 2.75rem);
    grid-template-columns: 1fr;
}

@media (min-width: 620px) {
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
}

.footer__col { min-width: 0; }

.footer__col--brand p { font-size: .9rem; }

.logo--footer { margin-bottom: 1rem; }
.logo--footer .logo__text strong { color: var(--white); }

.footer__heading {
    margin-bottom: .9rem;
    color: var(--white);
    font-size: 1.05rem;
}

.footer__links { list-style: none; }

.footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    font-size: .92rem;
}

.footer__address { font-size: .9rem; }

.site-footer a { color: #d5cec7; }

@media (hover: hover) and (pointer: fine) {
    .site-footer a:hover { color: #f1bd58; }
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    margin-top: clamp(2rem, 5vw, 3rem);
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem;
}

.footer__bottom p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Reveal animation
   Visible by default — JS opts in to hiding, so a script failure can never
   leave the page blank.
   -------------------------------------------------------------------------- */

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .js-reveal .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .lightbox, .skip-link { display: none; }
    body { color: #000; }
}
