/* ---------- Tokens ---------- */
:root {
    --pine: #1f3a2e;
    --pine-deep: #16281f;
    --ivory: #f3efe2;
    --ivory-card: #faf8f1;
    --gold: #b8925a;
    --gold-soft: rgba(184, 146, 90, 0.35);
    --charcoal: #2a2723;
    --charcoal-soft: rgba(42, 39, 35, 0.68);
    --error-red: #d93434;
    --font-display: "Cormorant Garamond", serif;
    --font-body: "Jost", sans-serif;
    --max-width: 960px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-image: url("../images/background.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--charcoal);
    font-family: var(--font-body);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content {
    flex: 1;
}

h1, h2 {
    font-family: var(--font-display);
    color: var(--pine);
    margin: 0;
}

.footer-span{
    background: var(--ivory);
    padding: 5px;
}

/* ---------- Nav bar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 2rem;
    background: var(--pine);
    color: var(--ivory);
    border-bottom: 1px solid var(--gold-soft);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ivory);
}

.seal {
    display: inline-flex;
    color: var(--gold);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.1rem;
    color: rgba(243, 239, 226, 0.82);
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ivory);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--ivory);
}

/* ---------- Hero / countdown ---------- */
.hero {
    display: flex;
    justify-content: center;
    padding: 4.5rem 1.5rem 3.5rem;
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: var(--ivory-card);
    border: 1px solid var(--gold-soft);
    padding: 3.5rem 2.5rem;
    text-align: center;
}

.corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 1px solid var(--gold);
}

.corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.corner-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.corner-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.75rem;
}

.hero-names {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    outline: none;
}

.hero-names .amp {
    font-style: italic;
    color: var(--gold);
    padding: 0 0.15em;
}

.hero-date {
    margin: 0.75rem 0 0;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--charcoal-soft);
}

.hero-tagline {
    max-width: 32rem;
    margin: 1.25rem auto 0;
    color: var(--charcoal-soft);
    line-height: 1.6;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin-top: 2.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--gold-soft);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.5rem;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-variant-numeric: tabular-nums;
    color: var(--pine);
    line-height: 1;
}

.countdown-label {
    margin-top: 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--charcoal-soft);
}

/* ---------- Generic page sections (directions / details) ---------- */
.page-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
}

.page-section h1 {
    font-size: clamp(2.1rem, 4vw, 2.75rem);
    margin-bottom: 0.25rem;
}

.venue-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--pine);
    margin: 1.75rem 0 0.15rem;
}

.venue-address {
    margin: 0 0 1.5rem;
    color: var(--charcoal-soft);
}

.map-frame {
    width: 100%;
    height: 380px;
    border: 1px solid var(--gold-soft);
    overflow: hidden;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--pine);
    border-bottom: 1px solid var(--gold);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.25rem;
}

.detail-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 1.75rem;
}

.detail-card {
    background: var(--ivory-card);
    border: 1px solid var(--gold-soft);
    padding: 1.75rem;
}

.detail-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.detail-card p {
    margin: 0.35rem 0;
    line-height: 1.6;
    color: var(--charcoal-soft);
}

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 2.5rem 1.5rem 3rem;
    color: var(--charcoal-soft);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.rule-flourish {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 1rem;
}

.notfound {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--pine);
        border-bottom: 1px solid var(--gold-soft);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav-links.open {
        max-height: 240px;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 2rem;
    }

    .hero-card {
        padding: 2.5rem 1.5rem;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-number {
        font-size: 1.9rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- RSVP form (append to the bottom of app.css) ---------- */
.rsvp-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    /* leave room for header/footer so centering looks correct */
    min-height: calc(100vh - 300px);
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
}
.rsvp-screen form{
    display: contents;
}

.rsvp-card {
    width: 100%;
    max-width: min(var(--max-width), 90vw);
    background: var(--ivory-card);
    border: 1px solid var(--gold-soft);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(42, 39, 35, 0.04);
}

.rsvp-card-small {
    width: 100%;
    max-width: min(600px, 90vw);
    background: var(--ivory-card);
    border: 1px solid var(--gold-soft);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(42, 39, 35, 0.04);
}

/* add consistent vertical rhythm between rows */
.rsvp-card > * + * {
    margin-top: 1rem;
}
.rsvp-card-small > * + * {
    margin-top: 1rem;
}

.validation-message {
    color: var(--error-red);
}

.text-danger {
    color: var(--error-red);
}

.blank-answer {
    font-style: italic;
}

.rsvp-row .name {
    font-family: var(--font-display);
    color: var(--pine);
    font-size: 1.5rem;
    font-weight: bold
}

/* slightly larger targets for mobile */
.form-control {
    padding: 0.55rem 0.65rem;
    min-width: 220px;
}

.rsvp-row {
    display: grid;    
    gap: 0.8rem;
}

/* Left column stacks label+input vertically */
.rsvp-left {   
}
.rsvp-left-ul{
    margin-block-start:0px;
    margin-block-end:0px;
}

.rsvp-question-row {
    display: grid;
    grid-template-columns: 1fr auto; /* left column grows, right column sized to actions */
    align-items: center;
    gap: 0.8rem;
}

/* Left column stacks label+input vertically */
.rsvp-question-left {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

/* Actions container */
.rsvp-actions {
    display: flex;
    gap: 0.6rem;
    justify-self: end; /* keep actions flush to the right column */
    align-items: center;
}

/* button base */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--pine);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* neutral / outline */
.btn-outline {
    border-color: var(--pine);
    color: var(--pine);
}

/* affirmative */
.btn-primary {
    background: var(--gold);
    color: var(--pine-deep);
    border-color: var(--gold);
}

/* negative / secondary */
.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal-soft);
}

/* selected visual treatment (used for toggles when chosen) */
.btn.selected,
.btn[aria-pressed="true"],
.btn[aria-pressed="true"]:not(:disabled) {
    background: var(--pine);
    color: var(--ivory);
    border-color: var(--pine);
    box-shadow: 0 8px 20px rgba(22, 40, 31, 0.12);
}

/* disabled but highlighted (selected + disabled) — keep it prominent */
.btn[disabled] {
    opacity: 1; /* don't dim selected toggles */
    cursor: default;
    filter: none;
}

    /* explicit rule for disabled + selected */
    .btn[disabled].selected,
    .btn[disabled][aria-pressed="true"] {
        background: var(--pine);
        color: var(--ivory);
        border-color: var(--pine);
        box-shadow: 0 10px 26px rgba(22, 40, 31, 0.16);
        outline: 3px solid rgba(184,146,90,0.12);
    }

/* submit area */
.rsvp-submit {
    margin-top: 0.5rem;
    text-align: right;
}

/* mobile adjustments to keep centered layout tidy */
@media (max-width: 720px) {
    .rsvp-screen {
        min-height: auto;
        padding: 1.25rem;
    }

    .rsvp-submit {
        text-align: left;
    }

    .rsvp-row {
        grid-template-columns: 1fr;
    }

    .rsvp-actions {
        justify-self: start;
    }
}


