/* =========================================================================
   Suffield Shops the Stands — site styles
   Mobile-first. Design tokens below drive every color/type decision on the
   site; change them here rather than hard-coding values elsewhere.
   ========================================================================= */

:root {
    --color-cream: snow; /* original cream #FBF6EA */
    --color-white: #FFFFFF;
    --color-ink: #23241F;
    --color-ink-soft: #4A4B44;

    --color-red: #B7382F;
    --color-red-dark: #8F2C25;

    --color-green: #3D6B35;
    --color-green-dark: #2A4A25;
    --color-green-pale: #EEF3E9;

    --font-script: 'Dancing Script', cursive;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-brand: 'Caveat', cursive;

    --container-max: 1100px;
    --container-padding: 1.25rem;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-card: 0 6px 20px rgba(35, 36, 31, 0.08);
    --shadow-card-hover: 0 10px 28px rgba(35, 36, 31, 0.14);
}

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--color-cream);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-ink);
    line-height: 1.2;
    margin-top: 0;
}

p {
    margin-top: 0;
}

a {
    color: var(--color-green-dark);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--color-red);
}

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

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

.text-center {
    text-align: center;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-ink);
    color: var(--color-white);
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--color-red);
    outline-offset: 2px;
}

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

.container-narrow {
    max-width: 640px;
}

.page-section {
    padding-block: 2.75rem;
}

.page-section--tinted {
    background-color: var(--color-green-pale);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.05rem;
    color: var(--color-ink-soft);
    max-width: 60ch;
    margin-bottom: 1.5rem;
}

.prose p,
.prose ul {
    max-width: 68ch;
}

.prose h2 {
    margin-top: 2rem;
}

.rules-list {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.rules-list li {
    margin-bottom: 0.5rem;
}

/* ---------- Brand / wordmark ---------- */

.site-brand-script {
    font-family: var(--font-script);
    font-weight: 700;
    font-size: 1.9rem;
    color: var(--color-red);
    line-height: 1.1;
    display: block;
}

.site-brand-sub {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-ink);
    display: block;
}

.site-brand {
    text-decoration: none;
    line-height: 1.1;
}

.site-brand:hover .site-brand-script {
    color: var(--color-red-dark);
}

.site-brand-script--hero {
    font-size: 3rem;
    color: var(--color-red);
}

.site-brand-script--footer {
    font-size: 1.6rem;
}

/* ---------- Header / nav ---------- */

.site-header {
    background-color: var(--color-white);
    border-bottom: 3px solid var(--color-green);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-navbar {
    padding-block: 0.75rem;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Prevents background scrolling while the full-screen mobile menu is open. */
html.nav-open {
    overflow: hidden;
}

/* Mobile: full-screen overlay, centered links, hidden until toggled open.
   The site logo isn't repeated in here — the overlay's higher z-index simply
   covers it, so nothing extra has to be hidden/shown for that. */
.site-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background-color: var(--color-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.site-nav-links.is-open {
    opacity: 1;
    visibility: visible;
}

.site-nav-links .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.85rem;
    color: var(--color-ink);
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
}

.site-nav-links .nav-link:hover,
.site-nav-links .nav-link:focus {
    color: var(--color-red);
    border-bottom-color: var(--color-red);
}

/* Social icons row at the bottom of the full-screen mobile menu. */
.site-nav-socials {
    margin-top: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(35, 36, 31, 0.12);
}

/* Hamburger button that becomes the fullscreen menu's X close button.
   Built with three plain <span> bars — no icon font. */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-green);
    border-radius: var(--radius-sm);
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1200;
}

.nav-toggle:focus-visible {
    outline: 3px solid var(--color-red);
    outline-offset: 2px;
}

.nav-toggle.is-open {
    position: fixed;
    top: 18px;
    right: var(--container-padding);
    border-color: var(--color-red);
    background-color: var(--color-white);
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop: plain inline nav, overlay/toggle styles switched off entirely.
   Socials stay out of the header nav row on desktop — the footer covers it. */
@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }

    .site-nav-links {
        position: static;
        inset: auto;
        z-index: auto;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        transition: none;
        display: flex;
        flex-direction: row;
        gap: 1.75rem;
        padding: 0;
        width: auto;
    }

    .site-nav-links .nav-link {
        font-size: 1rem;
        padding: 0.6rem 0;
    }

    .site-nav-socials {
        display: none;
    }
}

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

.hero {
    padding-block: 2.5rem 3rem;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(61, 107, 53, 0.06), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(183, 56, 47, 0.06), transparent 40%);
}

.hero-title {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.hero-title-bold {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--color-ink);
}

.hero-lede {
    max-width: 46ch;
    margin: 0 auto 1.75rem;
    color: var(--color-ink-soft);
    font-size: 1.05rem;
}

.stamp-card-link {
    display: inline-block;
    max-width: 420px;
    width: 100%;
    margin-bottom: 1.75rem;
    text-decoration: none;
}

.stamp-card-image {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(35, 36, 31, 0.08);
}

.stamp-card-link:hover .stamp-card-image,
.stamp-card-link:focus .stamp-card-image {
    transform: scale(1.015);
    box-shadow: var(--shadow-card-hover);
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

@media (min-width: 576px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-title-bold {
        font-size: 2.5rem;
    }
}

/* ---------- Ribbon banner (callback to the printed stamp card) ---------- */

.ribbon-banner {
    display: inline-block;
    background-color: var(--color-green);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 1.75rem;
    margin-bottom: 1.5rem;
    clip-path: polygon(0% 0%, 100% 0%, 94% 50%, 100% 100%, 0% 100%, 6% 50%);
}

/* ---------- Stamp badges (the site's signature motif) ---------- */

.stamp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px dashed currentColor;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stamp-badge--sm {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    border-width: 2px;
}

.stamp-badge--red {
    color: var(--color-red);
    background-color: rgba(183, 56, 47, 0.08);
}

.stamp-badge--green {
    color: var(--color-green);
    background-color: rgba(61, 107, 53, 0.08);
}

/* ---------- How it works ---------- */

.how-it-works-list {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    gap: 1.75rem;
}

.how-it-works-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.how-it-works-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.how-it-works-step p {
    max-width: 32ch;
    color: var(--color-ink-soft);
    margin: 0;
}

.how-it-works-note {
    color: var(--color-ink-soft);
    font-size: 0.92rem;
    max-width: 56ch;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .how-it-works-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.cta-band {
    background-color: var(--color-green-pale);
    padding-block: 2.5rem;
    border-top: 1px solid rgba(61, 107, 53, 0.15);
    border-bottom: 1px solid rgba(61, 107, 53, 0.15);
}

.cta-band-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-band p {
    color: var(--color-ink-soft);
    margin-bottom: 1.25rem;
}

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

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-stamp-red {
    background-color: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}

.btn-stamp-red:hover,
.btn-stamp-red:focus {
    background-color: var(--color-red-dark);
    border-color: var(--color-red-dark);
    color: var(--color-white);
}

.btn-stamp-outline-green {
    background-color: transparent;
    color: var(--color-green-dark);
    border-color: var(--color-green);
}

.btn-stamp-outline-green:hover,
.btn-stamp-outline-green:focus {
    background-color: var(--color-green);
    color: var(--color-white);
}

/* ---------- Stands grid ---------- */

.stands-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

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

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

.stand-card {
    background-color: var(--color-white);
    border: 1px solid rgba(35, 36, 31, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    scroll-margin-top: 5.5rem;
}

.stand-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.stand-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.stand-card-description {
    font-size: 0.92rem;
    color: var(--color-ink-soft);
    margin-bottom: 0.75rem;
}

.stand-card-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--color-ink-soft);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stand-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 1.5rem;
}

/* Honeypot: present in the DOM (so bots that blindly fill every field still trip it)
   but fully invisible and unreachable for real users — off-screen rather than
   display:none/visibility:hidden, since some bots specifically skip those. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.recaptcha-disclosure {
    font-size: 0.78rem;
    color: var(--color-ink-soft);
    margin: 0;
}

.recaptcha-disclosure a {
    color: var(--color-ink-soft);
    text-decoration: underline;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.92rem;
}

.form-control {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(35, 36, 31, 0.2);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(61, 107, 53, 0.18);
}

/* Native validation styling — no jQuery Validate involved. ASP.NET Core's tag
   helpers add "input-validation-error" / "field-validation-error" /
   "validation-summary-errors" classes automatically after a failed POST. */
.input-validation-error {
    border-color: var(--color-red);
}

.validation-message,
.field-validation-error {
    color: var(--color-red);
    font-size: 0.85rem;
}

.validation-summary,
.validation-summary-errors {
    color: var(--color-red);
}

.validation-summary ul,
.validation-summary-errors ul {
    padding-left: 1.1rem;
    margin: 0 0 0.5rem;
}

.contact-success {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--color-green-pale);
    border: 1px solid rgba(61, 107, 53, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-success-title {
    font-weight: 700;
    margin: 0 0 0.15rem;
}

.contact-success p {
    margin: 0;
}

/* ---------- About / momNpop ---------- */

.momnpop-card {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

.momnpop-card-title {
    margin-bottom: 1rem;
}

.momnpop-credit {
    font-family: var(--font-brand);
    color: var(--color-green-dark);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--color-green);
    font-size: 24px;
}

.momnpop-credit:hover,
.momnpop-credit:focus {
    color: var(--color-red);
    border-bottom-color: var(--color-red);
}

.momnpop-credit--large {
    font-size: 2.5rem;
    display: inline-block;
    line-height: 1;
}

/* ---------- Error page ---------- */

.error-card {
    text-align: center;
    max-width: 480px;
    margin-inline: auto;
}

.error-card .stamp-badge {
    margin-bottom: 1rem;
}

/* ---------- Social links (footer, mobile nav, CTA band, Contact page) ---------- */

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-green);
    color: var(--color-green-dark);
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.social-link:hover,
.social-link:focus {
    color: var(--color-white);
    background-color: var(--color-red);
    border-color: var(--color-red);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.cta-band-social {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(61, 107, 53, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cta-band-social-text {
    font-size: 0.9rem;
    color: var(--color-ink-soft);
    margin: 0;
}

.contact-social {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(35, 36, 31, 0.1);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.contact-social-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-ink-soft);
    margin: 0;
}

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

.site-footer {
    background-color: var(--color-white);
    border-top: 3px solid var(--color-green);
    padding-block: 2rem 1.5rem;
    margin-top: 2rem;
}

.site-footer-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(35, 36, 31, 0.1);
    margin-bottom: 1.25rem;
}

.site-footer-tagline {
    font-size: 0.9rem;
    color: var(--color-ink-soft);
    margin-top: 0.5rem;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.site-footer-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-ink);
    text-decoration: none;
}

.site-footer-nav a:hover {
    color: var(--color-red);
}

.site-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-ink-soft);
}

.site-footer-bottom p {
    margin: 0;
}

.site-footer-credit {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .site-footer-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .site-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ---------- Reduced motion ---------- */

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

    .stamp-card-image,
    .stand-card,
    .btn,
    .site-nav-links,
    .nav-toggle-bar {
        transition: none;
    }
}
