/* ==========================================================================
   Sunbury Neighbourhood Kitchen — "Set for Monday"

   Every Monday the volunteers turn Sunbury Memorial Hall into a dining room:
   pale walls with navy trim, gingham on the tables, a plate at every seat.
   The site is that room. The ground is the hall's pale blue-white, the ink
   is its navy trim, and the two colours that own the page are the kitchen's
   logo: its pink plate rim and its green leaves, taken from the logo file.

   Palette
     hall / hall-deep   the walls; the alternate band is a shade deeper
     ink / ink-soft     navy trim; body text and secondary text
     logo-pink          the logo's exact pink (#DE1852). Buttons and the
                        artwork. White on it clears 4.8:1.
     raspberry          a shade darker than logo-pink, for small text and
                        links on the light grounds (5.3:1), where the logo
                        pink only reaches 4.4:1
     logo-green         the logo's leaves. Rules and marks, never text on light.
     gingham            the tablecloth, used behind the hero place setting
     dark               the hall at night, for the motto band and footer

   The signature element is the kitchen's own logo, traced from their PNG into
   SVG (static/images/snk-*.svg) so it stays sharp at any size. The fork,
   plate and spoon are set on gingham in the hero with a place card under
   them giving the next dinner date. The plate alone counts the meals in the
   Pay it Forward rows, one plate per meal, and is the favicon. The mark and
   the wordmark sit side by side in the nav.

   Type. Young Serif sets the headings: a soft, heavy old-style face with
   the feel of a church-hall cookbook. Atkinson Hyperlegible sets everything
   else. It was drawn for low-vision readers, which suits a site whose
   guests skew older, and it is set large (18px) for the same reason.

   Everything is a token in :root. Nothing below that block hardcodes a colour.
   ========================================================================== */

:root {
    --hall:       #F2F5F8;
    --hall-deep:  #E3EAF2;
    --card:       #FFFFFF;
    --line:       #D5DEEA;

    --ink:        #1A2742;
    --ink-soft:   #4B5873;

    --logo-pink:      #DE1852;
    --logo-pink-deep: #B8103F;
    --raspberry:      #C2185B;
    --raspberry-deep: #9C1049;
    --raspberry-wash: #FCE4EC;

    --logo-green: #87BD42;

    --gingham:    rgba(58, 96, 160, 0.13);
    --card-edge:  #DCE3EC;

    --link:       #C2185B;

    --dark:        #172139;
    --dark-raised: #222E4A;
    --dark-line:   #34416A;
    --dark-text:   #C9D2E3;
    --dark-faint:  #8E9BB5;
    --dark-pink:   #F48FB1;

    /* Text needed markers. Deliberately loud so nobody misses one. */
    --needed-bg:   #FFF3C4;
    --needed-ink:  #5B3A00;
    --needed-line: #E0B400;

    --font-display: "Young Serif", Georgia, "Times New Roman", serif;
    --font-sans:    "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --container-w:        1160px;
    --container-narrow-w: 740px;

    --radius:    18px;
    --radius-sm: 10px;

    --mark-hero: clamp(15rem, 30vw, 24rem);

    --shadow-card:  0 1px 2px rgba(26, 39, 66, 0.05), 0 10px 28px -14px rgba(26, 39, 66, 0.22);
    --backdrop: rgba(23, 33, 57, 0.92);
    --shadow-up: 0 -6px 20px -10px rgba(26, 39, 66, 0.3);
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--hall);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--raspberry-deep); }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, .display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--card);
    padding: 0.75rem 1.25rem;
    z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2.5rem, var(--container-w)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, var(--container-narrow-w)); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Buttons. Round-ended, like the plate.
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--logo-pink); color: var(--card); }
.btn-primary:hover { background: var(--logo-pink-deep); color: var(--card); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--card); }
.btn:active { transform: translateY(1px); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--hall) 94%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-container {
    width: min(100% - 2rem, var(--container-w));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-mark { height: 2.9rem; width: auto; }
.nav-wordmark { height: 2.1rem; width: auto; }
@media (max-width: 420px) { .nav-mark { height: 2.4rem; } .nav-wordmark { height: 1.7rem; } }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a:not(.btn) {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
}
.nav-links a:not(.btn):hover { background: var(--hall-deep); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--raspberry); }
.nav-donate { margin-left: 0.5rem; min-height: 2.6rem; padding: 0.5rem 1.25rem; }
.nav-mobile-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 0.6rem; border-radius: 8px; }
.nav-close-icon { display: none; }

@media (max-width: 960px) {
    .nav-mobile-toggle { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem 1.25rem;
        background: var(--hall);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-card);
    }
    .nav-links.nav--open { display: flex; }
    .nav-links a:not(.btn) { padding: 0.8rem 1rem; font-size: 1.1rem; }
    .nav-donate { margin: 0.5rem 0 0; }
    .nav-mobile-toggle[aria-expanded="true"] .nav-hamburger-icon { display: none; }
    .nav-mobile-toggle[aria-expanded="true"] .nav-close-icon { display: block; }
}

/* --------------------------------------------------------------------------
   Hero: the copy, and a place set on gingham with a place card for the next dinner
   -------------------------------------------------------------------------- */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-where { font-weight: 700; color: var(--raspberry); margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.8rem, 6.5vw, 4.8rem); margin-bottom: 1.5rem; }
.hero-lead { font-size: 1.25rem; margin-bottom: 1rem; }
.hero-copy p:not(.hero-where):not(.hero-lead) { color: var(--ink-soft); }

.setting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 3vw, 2rem);
    border-radius: var(--radius);
    background-color: var(--card);
    background-image:
        linear-gradient(90deg, var(--gingham) 50%, transparent 50%),
        linear-gradient(var(--gingham) 50%, transparent 50%);
    background-size: 2.25rem 2.25rem;
    box-shadow: var(--shadow-card);
}
.setting-mark { width: var(--mark-hero); height: auto; }

/* The place card: next dinner, worked out in scripts.js. */
.next-dinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0.9rem 1.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-top: 4px solid var(--logo-pink);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    text-align: center;
}
.next-dinner-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--raspberry); }
.next-dinner-day { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.2; color: var(--ink); }
.next-dinner-time { font-size: 0.95rem; color: var(--ink-soft); }

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .setting { order: -1; }
    :root { --mark-hero: min(17rem, 70vw); }
}

/* --------------------------------------------------------------------------
   Dates to know
   -------------------------------------------------------------------------- */

.dates { background: var(--raspberry-wash); border-block: 1px solid var(--line); }
.dates-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem; padding-block: 1.25rem; }
.dates-title { font-size: 1.3rem; color: var(--raspberry-deep); }
.closures { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 24rem; font-weight: 700; }
.dates-always { color: var(--ink-soft); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Photo strip
   -------------------------------------------------------------------------- */

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--hall); }
.photo-strip img { width: 100%; height: clamp(10rem, 22vw, 18rem); object-fit: cover; }
@media (max-width: 700px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

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

.home-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band { background: var(--hall-deep); }
.content-page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.content-page + .content-page { padding-top: 0; }

.section-header { max-width: 44rem; margin-bottom: 2.5rem; }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.section-description { color: var(--ink-soft); font-size: 1.1rem; }
.eyebrow, .section-eyebrow { display: block; font-weight: 700; color: var(--raspberry); margin-bottom: 0.35rem; }
.view-all { margin-top: 2.5rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.split p + p { margin-top: 1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.framed img { border-radius: var(--radius); box-shadow: var(--shadow-card); width: 100%; }
.page-figure { margin-bottom: 2.5rem; }

/* --------------------------------------------------------------------------
   Pay it Forward: one plate per meal
   -------------------------------------------------------------------------- */

.meals { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.meal {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 0.4rem 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.meal-amount { grid-row: span 2; font-family: var(--font-display); font-size: 2.4rem; color: var(--raspberry); line-height: 1; }
.meal-plates { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.meal-text { color: var(--ink-soft); font-size: 1rem; }
.meal-plates img { width: 1.9rem; height: auto; }

/* --------------------------------------------------------------------------
   Supporters
   -------------------------------------------------------------------------- */

.logo-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; }
.logo-strip li {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 1rem;
    height: 6.5rem;
    box-shadow: var(--shadow-card);
}
.logo-strip img { max-height: 4.25rem; width: auto; object-fit: contain; }

.thanks { background: var(--card); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-card); border-left: 6px solid var(--logo-green); }
.thanks h2 { font-size: 1.8rem; margin-bottom: 0.75rem; }

.supporters { display: grid; gap: 1.5rem; }
.supporter {
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: 2rem;
    background: var(--card);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-card);
}
.supporter-logo img { max-height: 7rem; width: auto; max-width: 100%; object-fit: contain; }
.supporter-body h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.supporter-body h3 span { display: block; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--raspberry); margin-top: 0.25rem; }
.supporter-body p + p { margin-top: 0.75rem; }
.supporters-more { margin-top: 2rem; color: var(--ink-soft); }
@media (max-width: 700px) { .supporter { grid-template-columns: 1fr; gap: 1rem; } }

/* --------------------------------------------------------------------------
   News cards and posts
   -------------------------------------------------------------------------- */

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; }
.article-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover { transform: translateY(-3px); }
.article-card-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-card-thumb--plate { display: grid; place-items: center; background: var(--hall-deep); }
.article-card-thumb--plate img { width: 45%; height: auto; }
.article-card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.article-card-title { font-size: 1.4rem; }
.article-card-title a { color: var(--ink); text-decoration: none; }
.article-card-title a::after { content: ""; position: absolute; inset: 0; }
.article-card-title a:hover { color: var(--raspberry); }
.article-card-desc { color: var(--ink-soft); font-size: 1rem; }
.article-date { font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }
.article-updated { font-size: 0.9rem; color: var(--ink-soft); margin-left: 0.75rem; }

.article-post { padding-block: clamp(2rem, 5vw, 4rem); }
.article-post .breadcrumb { margin-bottom: 2rem; }
.article-post-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0.5rem 0 2rem; }
.article-post-footer { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.article-post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.article-nav-link { display: flex; flex-direction: column; padding: 1rem 1.25rem; background: var(--card); border-radius: var(--radius-sm); text-decoration: none; box-shadow: var(--shadow-card); }
.article-nav-next { grid-column: 2; text-align: right; }
.article-nav-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.article-nav-title { font-family: var(--font-display); color: var(--ink); }

.pagination { display: flex; gap: 1.5rem; justify-content: center; align-items: center; margin-top: 3rem; }
.pagination-link { font-weight: 700; }

/* --------------------------------------------------------------------------
   Page heading and running text
   -------------------------------------------------------------------------- */

.page-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); background: var(--hall-deep); }
.page-title { font-size: clamp(2.6rem, 6vw, 4rem); margin-top: 1rem; }
.breadcrumb { font-size: 0.95rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb-sep { color: var(--dark-faint); }

.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-top: 2.75rem; }
.prose h3 { font-size: 1.35rem; margin-top: 2rem; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.45rem; }
.prose li::marker { color: var(--raspberry); }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.prose strong { color: var(--ink); }
.lead { font-size: 1.3rem; font-family: var(--font-display); line-height: 1.4; }

/* --------------------------------------------------------------------------
   Text needed markers (layouts/partials/needed.html)
   -------------------------------------------------------------------------- */

.needed {
    margin-block: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--needed-bg);
    color: var(--needed-ink);
    border: 2px dashed var(--needed-line);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Volunteer rota
   -------------------------------------------------------------------------- */

.rota { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.rota-day { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-card); }
.rota-when { font-size: 1.35rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--logo-green); }
.rota-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.rota-role { line-height: 1.4; }
.rota-role--wanted span:first-child { font-weight: 700; }
.rota-time { display: block; font-size: 0.92rem; color: var(--ink-soft); }
.tag {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: var(--raspberry-wash);
    color: var(--raspberry-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Donate
   -------------------------------------------------------------------------- */

.bank { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-card); border-top: 6px solid var(--raspberry); }
.bank h3 { margin: 0 0 1rem; font-size: 1.25rem; }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; }
.bank dt { color: var(--ink-soft); }
.bank dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.donate-side { position: sticky; top: 6rem; }

/* --------------------------------------------------------------------------
   Governance and policies
   -------------------------------------------------------------------------- */

.committee { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.25rem; }
.committee-member { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-card); }
.committee-role { font-weight: 700; color: var(--raspberry); font-size: 0.95rem; }
.committee-name { font-family: var(--font-display); font-size: 1.35rem; margin: 0.25rem 0 0.6rem; }
.committee-duties { color: var(--ink-soft); font-size: 0.98rem; }
.governance-notes { margin-top: 3.5rem; }

details.policy { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
details.policy + details.policy { margin-top: 0.75rem; }
details.policy > summary {
    cursor: pointer;
    padding: 1.1rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
details.policy > summary::-webkit-details-marker { display: none; }
details.policy > summary::after, .faq-q::after { content: "+"; font-family: var(--font-sans); font-weight: 700; color: var(--raspberry); font-size: 1.5rem; line-height: 1; }
details[open].policy > summary::after, details[open] > .faq-q::after { content: "–"; }
details.policy > :not(summary) { margin-inline: 1.5rem; }
details.policy > :last-child { padding-bottom: 1.5rem; }
details.policy > * + * { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { display: grid; gap: 0.75rem; }
.faq-item { background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.faq-q {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-a { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); }

/* The template's features and steps sections, unused here but styled in
   case they are filled in later. */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.feature-item { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-card); }
.feature-title { font-size: 1.35rem; margin-bottom: 0.5rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.step { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4.5rem; position: relative; box-shadow: var(--shadow-card); }
.step::before { content: counter(step); position: absolute; left: 1.5rem; top: 1.4rem; font-family: var(--font-display); font-size: 2rem; color: var(--raspberry); }
.step-title { font-size: 1.3rem; margin-bottom: 0.35rem; }

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

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: var(--card); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-card); display: grid; gap: 1.25rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-weight: 700; }
.form-optional { font-weight: 400; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
    font: inherit;
    color: var(--ink);
    background: var(--hall);
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    width: 100%;
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--raspberry); outline: none; box-shadow: 0 0 0 3px var(--raspberry-wash); }
.form-hint, .form-note { font-size: 0.95rem; color: var(--ink-soft); }
.form-honeypot { position: absolute; left: -9999px; }
.form-status { margin-top: 0.75rem; font-weight: 700; }
.form-status[data-state="error"] { color: var(--raspberry-deep); }
.form-status[data-state="sent"] { color: var(--ink); }

.contact-side { display: grid; gap: 1.5rem; }
.contact-info-label { display: block; font-weight: 700; color: var(--raspberry); font-size: 0.95rem; }
.contact-info-value { font-size: 1.1rem; }
.footer-social, .contact-social .footer-social { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.share-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }

/* --------------------------------------------------------------------------
   Gallery and lightbox
   -------------------------------------------------------------------------- */

.gallery-intro { max-width: var(--container-narrow-w); margin-bottom: 2rem; }
.gallery-grid { list-style: none; margin: 0; padding: 0; columns: 3 16rem; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin-bottom: 1rem; }
.gallery-thumb { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.gallery-thumb img { width: 100%; transition: transform 0.3s; }
.gallery-thumb:hover img { transform: scale(1.03); }
.gallery-empty { color: var(--ink-soft); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: var(--backdrop); }
.lightbox-figure { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 4rem; gap: 0.75rem; }
.lightbox-img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-caption, .lightbox-count { color: var(--dark-text); }
.lightbox-close, .lightbox-prev, .lightbox-next { position: fixed; background: var(--dark-raised); color: var(--card); border: 0; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Motto band and footer: the hall at night
   -------------------------------------------------------------------------- */

.motto { background: var(--dark); color: var(--card); padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--dark-line); }
.motto .container { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 2.5rem); }
.motto-mark { width: 5.5rem; height: auto; flex: none; padding: 0.6rem; background: var(--card); border-radius: var(--radius-sm); }
.motto-text { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.4rem); line-height: 1.25; color: var(--card); }
.motto-text span { color: var(--dark-pink); }

.footer { background: var(--dark); color: var(--dark-text); padding: clamp(2.5rem, 6vw, 4rem) 0 6rem; font-size: 1rem; }
.footer a { color: var(--card); }
.footer a:hover { color: var(--dark-pink); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-grid p + p { margin-top: 0.75rem; }
.footer-heading { font-size: 1.2rem; color: var(--card); margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; }
.footer-social { margin-top: 1rem; }
.footer-social-link { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.footer-charity img { margin-bottom: 0.75rem; border-radius: 50%; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--dark-line); color: var(--dark-faint); font-size: 0.92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-bottom a { color: var(--dark-text); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 701px) { .footer { padding-bottom: 3rem; } }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found { padding-block: clamp(4rem, 12vw, 8rem); text-align: center; }
.not-found-code { font-family: var(--font-display); font-size: 5rem; color: var(--raspberry); line-height: 1; }
.not-found-title { font-size: 2.4rem; margin: 1rem 0; }
.not-found-text { color: var(--ink-soft); margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Call bar on phones
   -------------------------------------------------------------------------- */

.call-bar { display: none; }
@media (max-width: 700px) {
    .call-bar {
        display: flex;
        gap: 0.5rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
        background: var(--card);
        border-top: 1px solid var(--line);
        box-shadow: var(--shadow-up);
    }
    .call-bar .btn { flex: 1; }
    .call-bar-enquire { background: var(--card); }
}

/* Fade-in for [data-observe] sections (template features/steps). */
[data-observe] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s, transform 0.6s; }
[data-observe].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-observe] { opacity: 1; transform: none; transition: none; }
    .article-card, .gallery-thumb img, .btn { transition: none; }
}
