/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

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

a { color: var(--gold-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--navy);
    line-height: 1.3;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-title {
    font-size: 2.4rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 12px;
}
.section-title span { color: var(--gold); }

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 56px;
}

.divider {
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 16px auto 40px;
    border-radius: 2px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
}
.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ── Navigation ────────────────────────────────────────────────── */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(27,42,74,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.site-logo span { color: var(--white); }

#primary-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}
#primary-menu a {
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 4px;
    transition: var(--transition);
}
#primary-menu a:hover,
#primary-menu .current-menu-item a {
    color: var(--gold);
    background: rgba(201,168,76,0.1);
}
#primary-menu .menu-rsvp a {
    background: var(--gold);
    color: var(--navy);
    padding: 8px 18px;
    border-radius: var(--radius);
}
#primary-menu .menu-rsvp a:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* ── Hero Section ──────────────────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, #2C3F6A 60%, #1a3a5c 100%);
}
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 40px;
    margin-bottom: 28px;
}

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--gold);
    box-shadow: 0 0 0 8px rgba(201,168,76,0.2), var(--shadow-lg);
    margin: 0 auto 32px;
}

.hero-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(201,168,76,0.15);
    border: 5px solid var(--gold);
    box-shadow: 0 0 0 8px rgba(201,168,76,0.2);
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gold);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-title .gold { color: var(--gold); }

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Countdown Timer */
#countdown {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.countdown-unit {
    text-align: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: var(--radius);
    padding: 16px 20px;
    min-width: 80px;
}
.countdown-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}
.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

/* ── Quick Nav ─────────────────────────────────────────────────── */
#quick-nav {
    background: var(--navy);
    padding: 0;
    position: sticky;
    top: 72px;
    z-index: 900;
    border-bottom: 2px solid var(--gold);
}
.quick-nav-inner {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
    overflow-x: auto;
}
.quick-nav-inner a {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 16px 24px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}
.quick-nav-inner a:hover,
.quick-nav-inner a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(201,168,76,0.08);
}

/* ── Welcome Message ───────────────────────────────────────────── */
#welcome {
    background: var(--beige);
    text-align: center;
    padding: 72px 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='0.07'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.welcome-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    color: var(--navy);
    max-width: 780px;
    margin: 0 auto 20px;
    line-height: 1.5;
    font-style: italic;
}
.welcome-quote::before { content: '\201C'; color: var(--gold); font-size: 3rem; line-height: 0; vertical-align: -0.4em; margin-right: 4px; }
.welcome-quote::after  { content: '\201D'; color: var(--gold); font-size: 3rem; line-height: 0; vertical-align: -0.4em; margin-left: 4px; }
.welcome-sub { color: var(--text-light); font-size: 1rem; }

/* ── Highlight Cards ───────────────────────────────────────────── */
#highlights { background: var(--white); }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.highlight-card {
    background: var(--beige);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--beige-dark);
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.card-icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
    display: block;
}
.card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.card-text { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; }
.card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-link:hover { color: var(--navy); }

/* ── Timeline ──────────────────────────────────────────────────── */
#timeline-preview { background: var(--navy); color: var(--white); }
#timeline-preview .section-title { color: var(--white); }
#timeline-preview .divider { background: linear-gradient(90deg, var(--gold), transparent); }

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.2));
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 32px);
    margin-bottom: 40px;
    position: relative;
}
.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 32px);
}
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border: 3px solid var(--navy);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.3);
}
.timeline-content {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    max-width: 320px;
    transition: var(--transition);
}
.timeline-content:hover {
    background: rgba(201,168,76,0.1);
    border-color: var(--gold);
}
.timeline-year {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 4px;
}
.timeline-event {
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 6px;
}
.timeline-desc { font-size: 0.88rem; color: rgba(255,255,255,0.65); }

/* ── Gallery Preview ───────────────────────────────────────────── */
#gallery-preview { background: var(--beige); }
.gallery-grid {
    columns: 3;
    column-gap: 16px;
}
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 520px) { .gallery-grid { columns: 1; } }
.gallery-item { margin-bottom: 16px; }
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--beige-dark);
    box-shadow: var(--shadow);
    cursor: pointer;
    break-inside: avoid;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27,42,74,0.75) 0%, transparent 55%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    pointer-events: none;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: 0.85rem; font-weight: 600; }

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    background: var(--beige-dark);
    gap: 8px;
}
.gallery-placeholder p { font-size: 0.8rem; color: var(--text-light); font-family: var(--font-sans); }

/* ── Tributes Carousel ─────────────────────────────────────────── */
#tributes-preview { background: var(--white); }
.tributes-carousel {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
}
.tribute-slide {
    display: none;
    text-align: center;
    padding: 16px;
    animation: fadeIn 0.5s ease;
}
.tribute-slide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.tribute-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--navy);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
}
.tribute-text::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
    font-style: normal;
}
.tribute-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.tribute-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}
.tribute-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--beige-dark);
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.tribute-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.tribute-role { font-size: 0.8rem; color: var(--text-light); }

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}
.carousel-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--gold); color: var(--navy); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--beige-dark);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.carousel-dot.active { background: var(--gold); transform: scale(1.3); }

/* ── Event Section ─────────────────────────────────────────────── */
#event-section {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    text-align: center;
}
#event-section .section-title { color: var(--white); }
.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 48px;
}
.event-detail-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: var(--radius);
    padding: 28px 20px;
    transition: var(--transition);
}
.event-detail-item:hover { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.event-detail-icon { font-size: 2rem; margin-bottom: 12px; }
.event-detail-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.event-detail-value { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); }

/* ── Articles Section ──────────────────────────────────────────── */
#articles-section { background: var(--beige); }
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--beige-dark);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.article-card-img {
    height: 180px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gold);
    overflow: hidden;
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 24px; }
.article-tag {
    display: inline-block;
    background: rgba(201,168,76,0.12);
    color: var(--gold-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.article-card-title {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 8px;
    font-family: var(--font-serif);
}
.article-card-excerpt { font-size: 0.88rem; color: var(--text-light); margin-bottom: 16px; }
.article-meta { font-size: 0.78rem; color: var(--text-light); display: flex; align-items: center; gap: 8px; }

/* ── RSVP Form ─────────────────────────────────────────────────── */
#rsvp-section { background: var(--beige); }
.rsvp-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--beige-dark);
}
.form-group { margin-bottom: 24px; }
.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.form-label span { color: var(--gold); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--beige-dark);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-control::placeholder { color: #aaa; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
    text-align: center;
    padding: 24px;
    background: rgba(201,168,76,0.1);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    color: var(--navy);
    font-weight: 600;
    display: none;
}

/* ── Testimonials / Tribute Page ───────────────────────────────── */
.tribute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.tribute-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--beige-dark);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}
.tribute-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.tribute-card::before {
    content: '\201C';
    position: absolute;
    top: 12px; left: 20px;
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
}
.tribute-card-text { font-style: italic; color: var(--text); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.7; }

/* Long tributes collapse to 6 lines until "Read More". Clamping by line
   rather than truncating the string keeps the B/I/U markup intact. */
.tribute-card-text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tribute-readmore {
    display: none;                 /* JS reveals only genuinely clipped cards */
    background: none;
    border: 0;
    padding: 0;
    margin: -8px 0 18px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gold-dark);
    cursor: pointer;
}
.tribute-readmore.is-visible { display: inline-block; }
.tribute-readmore:hover { text-decoration: underline; }
.tribute-readmore:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.35);
    border-radius: 3px;
}

/* ── Pagination ────────────────────────────────────────────────── */
.pt-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 40px;
}
.pt-pager-count {
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pt-pager-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pt-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid var(--beige-dark);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.pt-pager .page-numbers:hover { border-color: var(--gold); }
.pt-pager .page-numbers.current {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}
.pt-pager .page-numbers.dots { border-color: transparent; background: none; }
.tribute-card-footer { display: flex; align-items: center; gap: 12px; }
.tribute-card-name { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.tribute-card-role { font-size: 0.78rem; color: var(--text-light); }

/* Guestbook */
.guestbook-form {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 48px;
}
.guestbook-form .section-title { color: var(--white); text-align: left; }
.guestbook-form .form-label { color: rgba(255,255,255,0.85); }
.guestbook-form .form-control {
    background: rgba(255,255,255,0.08);
    border-color: rgba(201,168,76,0.3);
    color: var(--white);
}
.guestbook-form .form-control:focus { border-color: var(--gold); }
.guestbook-form .form-control::placeholder { color: rgba(255,255,255,0.35); }

/* Tribute cards may contain rich text from the editor */
.tribute-card-text p     { margin: 0 0 10px; }
.tribute-card-text p:last-child { margin-bottom: 0; }

/* ── Rich Text Editor (bold / italic / underline) ──────────────── */
.rte-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.rte-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1;
    color: var(--navy);
    background: var(--white);
    border: 1.5px solid var(--beige-dark);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.rte-btn:hover     { border-color: var(--gold); }
.rte-btn.is-active { background: var(--gold); border-color: var(--gold); color: var(--white); }
.rte-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.35);
}

.rte-editor {
    min-height: 120px;
    max-height: 340px;
    overflow-y: auto;
    line-height: 1.7;
    text-align: left;
    cursor: text;
}
/* contenteditable has no ::placeholder — JS toggles .is-empty instead */
.rte-editor.is-empty::before {
    content: attr(data-placeholder);
    color: #aaa;
    pointer-events: none;
    display: block;
}
.rte-editor.has-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}
.rte-editor p:first-child { margin-top: 0; }

/* Dark surface variant inside the guestbook panel */
.guestbook-form .rte-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(201,168,76,0.3);
    color: var(--white);
}
.guestbook-form .rte-btn:hover     { border-color: var(--gold); }
.guestbook-form .rte-btn.is-active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.guestbook-form .rte-editor.is-empty::before { color: rgba(255,255,255,0.35); }

/* ── Donation Page ─────────────────────────────────────────────── */
.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.donation-option {
    border: 2px solid var(--beige-dark);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.donation-option:hover,
.donation-option.selected {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
}
.donation-amount {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--navy);
    font-weight: 700;
}
.donation-desc { font-size: 0.82rem; color: var(--text-light); margin-top: 6px; }

/* ── Ministry Page ─────────────────────────────────────────────── */
.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.ministry-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
    transition: var(--transition);
}
.ministry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ministry-year {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 8px;
}
.ministry-title { font-size: 1.05rem; color: var(--navy); font-weight: 700; margin-bottom: 10px; }
.ministry-desc { font-size: 0.9rem; color: var(--text-light); }

/* ── About Page ────────────────────────────────────────────────── */
.about-hero {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    padding: 120px 24px 80px;
    text-align: center;
}
.about-photo-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}
.about-photo {
    width: 320px;
    min-width: 280px;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--gold);
}
.about-photo-placeholder {
    width: 320px;
    min-width: 280px;
    height: 380px;
    border-radius: var(--radius);
    background: var(--beige-dark);
    border: 4px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--gold);
}
.about-text h2 { font-size: 1.9rem; margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.about-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--beige-dark);
}
.fact-item { text-align: center; }
.fact-number { font-family: var(--font-serif); font-size: 2.4rem; color: var(--gold); font-weight: 700; }
.fact-label { font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Footer ────────────────────────────────────────────────────── */
#site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .site-logo { font-size: 1.4rem; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-heading {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 700;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}
.footer-bottom span { color: var(--gold); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-photo-wrap { flex-direction: column; align-items: center; text-align: center; }
    .about-photo, .about-photo-placeholder { width: 260px; min-width: unset; }
    .timeline::before { left: 20px; }
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 56px;
        padding-right: 0;
    }
    .timeline-dot { left: 20px; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; }
    #primary-menu { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 0; }
    #primary-menu.open { display: flex; }
    #primary-menu li { width: 100%; }
    #primary-menu a { display: block; padding: 12px 16px; }
    .menu-toggle { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .rsvp-form-wrap { padding: 28px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .quick-nav-inner { justify-content: flex-start; }
    .hero-ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .section { padding: 56px 0; }
    .section-title { font-size: 1.8rem; }
    .guestbook-form { padding: 24px 16px; }
    #countdown { gap: 12px; }
    .countdown-unit { padding: 12px 14px; min-width: 65px; }
    .countdown-number { font-size: 1.8rem; }
}

/* ── Utility ────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.mt-8        { margin-top: 32px; }
.page-hero {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 140px 24px 72px;
    text-align: center;
    color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

/* Lightbox / Slideshow */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 82vh;
}
.lightbox img {
    max-width: 88vw;
    max-height: 80vh;
    border-radius: var(--radius);
    object-fit: contain;
    transition: opacity 0.25s ease;
    display: block;
}
.lightbox img.fading { opacity: 0; }
.lightbox-caption {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    margin-top: 14px;
    text-align: center;
    font-family: var(--font-sans);
    letter-spacing: 0.04em;
    min-height: 1.2em;
}
.lightbox-counter {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    margin-top: 4px;
    font-family: var(--font-sans);
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    color: var(--white);
    font-size: 2.4rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 10001;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--white);
    font-size: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
    line-height: 1;
    backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
@media (max-width: 700px) {
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
    .lightbox img { max-width: 94vw; max-height: 72vh; }
}
.lightbox-dots {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.lightbox-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.lightbox-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}
