/* ===== Tim Fuhrmann Memorial — shared design system ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,400;1,400;1,500&family=Raleway:wght@300;400;500;600&display=swap');

:root {
    --navy: #1a2b3c;
    --deep: #0f1a24;
    --slate: #2c4058;
    --mist: #7a9ab5;
    --fog: #c4d4e0;
    --cream: #f5f0e8;
    --warm: #e8e0d0;
    --gold: #b8964e;
    --gold-light: #d4af72;
    --white: #fdfaf5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    background: var(--warm);
    color: var(--navy);
    line-height: 1.6;
}

.site-wrap {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
    min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }

/* ===== Navigation ===== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 52px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--fog);
    letter-spacing: 0.5px;
}
.nav-brand:hover { color: var(--white); text-decoration: none; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    margin-left: auto;
}
.nav-links a {
    color: var(--fog);
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold-light);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fog);
    transition: transform 0.2s, top 0.2s, bottom 0.2s, opacity 0.2s;
    position: relative;
}
.nav-toggle span::before { content: ''; position: absolute; top: -7px; left: 0; }
.nav-toggle span::after  { content: ''; position: absolute; top:  7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ===== Hero ===== */

.hero {
    position: relative;
    height: 480px;
    overflow: hidden;
}
.hero-img,
.page-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.7);
}
.hero-overlay,
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,26,36,0.55) 0%, rgba(15,26,36,0.75) 100%);
}
.hero-content,
.page-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 32px;
    color: var(--white);
}
.hero-eyebrow,
.page-eyebrow {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 24px;
    font-weight: 400;
}
.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 22px;
    color: var(--fog);
    margin-bottom: 36px;
}
.hero-cta {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 14px 38px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    transition: background 0.2s;
}
.hero-cta:hover {
    background: var(--gold-light);
    color: var(--white);
    text-decoration: none;
}

.page-hero {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 6px;
}
.page-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--fog);
}

/* ===== Gold rules ===== */

.gold-rule {
    height: 3px;
    background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
}

/* ===== Body content ===== */

.body-content {
    padding: 52px;
}

/* ===== Section labels ===== */

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 24px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--navy);
}

/* ===== Intro / pull quote ===== */

.intro-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: var(--slate);
    padding: 16px 0 16px 24px;
    border-left: 3px solid var(--gold);
    margin: 40px 0;
}

/* ===== Highlight cards (index 2x2) ===== */

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0 8px;
}
.highlight-card {
    background: var(--cream);
    padding: 28px 26px;
    border-top: 2px solid var(--gold);
    display: block;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-decoration: none;
}
.highlight-time {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 500;
}
.highlight-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}
.highlight-note {
    font-size: 14px;
    color: var(--slate);
}

/* ===== Image pair (index) ===== */

.image-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}
.img-frame {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.9);
}
.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15,26,36,0.85), transparent);
    color: var(--white);
    padding: 28px 18px 14px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 16px;
}

/* ===== Itinerary schedule ===== */

.schedule {
    margin-top: 24px;
}
.schedule-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--fog);
}
.schedule-item:last-child { border-bottom: 0; }
.schedule-time {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
}
.schedule-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.schedule-note {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.55;
}
.schedule-tag {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 3px 10px;
    margin-top: 8px;
    font-weight: 500;
}
.schedule-options {
    background: var(--cream);
    border-left: 2px solid var(--gold-light);
    padding: 12px 16px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--slate);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}
.detail-card {
    background: var(--cream);
    padding: 28px 26px;
    border-top: 2px solid var(--gold);
}
.detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}
.detail-card p {
    font-size: 14px;
    color: var(--slate);
    margin-bottom: 10px;
}
.detail-card .label {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
    font-weight: 500;
}

/* ===== Lodging cards ===== */

.hotel-card {
    background: var(--cream);
    border-top: 2px solid var(--gold);
    padding: 32px;
    margin-bottom: 24px;
}
.hotel-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}
.hotel-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
}
.hotel-price {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
    margin-left: 6px;
}
.hotel-badge {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 4px 10px;
    font-weight: 500;
}
.hotel-address {
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 14px;
}
.hotel-address a { font-weight: 500; }
.hotel-desc {
    font-size: 15px;
    color: var(--slate);
    margin-bottom: 16px;
    line-height: 1.6;
}
.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-pill {
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--slate);
    background: var(--white);
    border: 1px solid var(--fog);
    padding: 6px 12px;
    border-radius: 20px;
}

/* ===== Info blocks (getting there) ===== */

.info-block {
    margin-bottom: 36px;
}
.info-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}
.info-body {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.7;
}
.info-body p { margin-bottom: 10px; }
.info-note {
    background: var(--cream);
    border-left: 3px solid var(--gold-light);
    padding: 14px 18px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--slate);
}

/* ===== RSVP form ===== */

.rsvp-form { margin-top: 16px; }
.form-group { margin-bottom: 28px; }
.form-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 500;
}
.form-input,
.form-textarea {
    width: 100%;
    background: var(--cream);
    border: 1px solid transparent;
    border-bottom: 1px solid var(--mist);
    padding: 12px 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--navy);
    transition: border-color 0.2s, background 0.2s;
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}
.form-textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cream);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--slate);
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.radio-option:hover { background: var(--warm); }
.radio-option input { accent-color: var(--gold); width: 16px; height: 16px; }
.radio-option input:checked + span { color: var(--navy); font-weight: 500; }
.form-note {
    font-size: 13px;
    color: var(--slate);
    margin-top: 8px;
    font-style: italic;
}
.conditional { display: none; margin-top: 14px; padding: 14px 16px; background: var(--cream); border-left: 2px solid var(--gold-light); font-size: 13px; color: var(--slate); }
.conditional.visible { display: block; }
#guest-names-group { margin-top: 0; padding: 0; background: transparent; border-left: 0; font-size: inherit; color: inherit; }
#guest-names-group.visible { display: block; margin-bottom: 28px; }
.submit-btn {
    background: var(--navy);
    color: var(--white);
    padding: 14px 38px;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    transition: background 0.2s;
}
.submit-btn:hover { background: var(--slate); }
.field-error {
    color: #a3402b;
    font-size: 13px;
    margin-top: 6px;
}
.success-msg {
    background: var(--cream);
    border-top: 2px solid var(--gold);
    padding: 36px 32px;
    text-align: center;
    margin-top: 24px;
}
.success-msg h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 12px;
}
.success-msg p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--slate);
}

/* ===== Gallery ===== */

.gallery-grid {
    column-count: 3;
    column-gap: 12px;
    margin-top: 12px;
}
.gallery-tile {
    display: block;
    position: relative;
    width: 100%;
    margin: 0 0 12px;
    break-inside: avoid;
    overflow: hidden;
    background: var(--cream);
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    text-decoration: none;
}
.gallery-tile img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.85) brightness(0.92);
    transition: filter 0.2s;
}
.gallery-tile:hover img { filter: saturate(1) brightness(1); }
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 26px 14px 12px;
    color: var(--white);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14px;
    background: linear-gradient(to top, rgba(15,26,36,0.85), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-tile:hover .gallery-caption { opacity: 1; }

@media (max-width: 720px) {
    .gallery-grid { column-count: 2; column-gap: 8px; }
    .gallery-tile { margin-bottom: 8px; }
    .gallery-caption { opacity: 1; font-size: 12px; padding: 18px 10px 8px; }
}
@media (max-width: 420px) {
    .gallery-grid { column-count: 1; }
}

/* ===== Lightbox ===== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15,26,36,0.96);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-stage {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    box-shadow: 0 8px 36px rgba(0,0,0,0.6);
    background: var(--deep);
}
.lightbox-caption {
    margin-top: 14px;
    color: var(--fog);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 17px;
    text-align: center;
    max-width: 90%;
}
.lightbox-counter {
    margin-top: 4px;
    color: var(--mist);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: 0;
    color: var(--fog);
    cursor: pointer;
    font-size: 36px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--gold-light); }
.lightbox-close { top: 8px; right: 8px; font-size: 32px; }
.lightbox-prev  { left: 8px;  top: 50%; transform: translateY(-50%); font-size: 56px; line-height: 1; }
.lightbox-next  { right: 8px; top: 50%; transform: translateY(-50%); font-size: 56px; line-height: 1; }

@media (max-width: 720px) {
    .lightbox { padding: 8px; }
    .lightbox-img { max-height: calc(100vh - 140px); }
    .lightbox-prev, .lightbox-next { font-size: 40px; width: 40px; }
    .lightbox-close { font-size: 28px; }
}

/* ===== "By Tim" decorative band (index) ===== */

.by-tim-band {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--fog);
}
.by-tim-band .section-label { margin-bottom: 18px; }
.by-tim-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.by-tim-strip a {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}
.by-tim-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.85);
    transition: filter 0.25s, transform 0.4s;
}
.by-tim-strip a:hover img { filter: saturate(1) brightness(0.95); transform: scale(1.03); }
.by-tim-credit {
    text-align: center;
    margin-top: 14px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--mist);
}
@media (max-width: 720px) {
    .by-tim-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Footer ===== */

.site-footer {
    background: var(--navy);
    color: var(--fog);
    padding: 36px 52px;
    text-align: center;
}
.site-footer p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--fog);
}
.footer-rule {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 16px auto;
    opacity: 0.7;
}
.footer-date {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mist);
}

/* ===== Admin (RSVP list) ===== */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}
.admin-table th,
.admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--fog);
    vertical-align: top;
}
.admin-table th {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--cream);
    font-weight: 500;
}
.admin-meta {
    font-size: 12px;
    color: var(--mist);
    margin-bottom: 16px;
}
body.admin-page .site-wrap { max-width: 1400px; }
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 16px; }
.admin-table-wrap .admin-table { margin-top: 0; min-width: 1100px; }
.admin-table td, .admin-table th { font-size: 13px; padding: 8px 10px; }
.admin-table td.notes-cell { max-width: 280px; white-space: pre-wrap; word-break: break-word; }
.admin-actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.admin-actions a, .admin-actions button {
    font-family: inherit; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    padding: 5px 10px; border-radius: 2px; border: 1px solid var(--gold); background: transparent;
    color: var(--gold); cursor: pointer; text-decoration: none;
}
.admin-actions a:hover { background: var(--cream); color: var(--gold); text-decoration: none; }
.admin-actions .danger { border-color: #a04040; color: #a04040; }
.admin-actions .danger:hover { background: #faecec; color: #a04040; }
.admin-back { display: inline-block; margin-bottom: 16px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* ===== Mobile ===== */

@media (max-width: 720px) {
    .site-nav { padding: 0 20px; }
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-links {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--navy);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 8px 0;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 14px 20px;
        font-size: 11px;
    }

    .hero { height: 380px; }
    .hero-name { font-size: 42px; }
    .hero-date { font-size: 18px; }

    .body-content { padding: 32px 22px; }

    .highlight-grid,
    .detail-grid,
    .image-pair { grid-template-columns: 1fr; }

    .schedule-item { grid-template-columns: 80px 1fr; gap: 16px; }
    .schedule-time { font-size: 16px; }

    .site-footer { padding: 28px 22px; }

    .intro-quote { font-size: 19px; padding-left: 18px; }
}

@media (max-width: 420px) {
    .hero-name { font-size: 34px; }
    .page-title { font-size: 28px; }
    .schedule-item { grid-template-columns: 1fr; gap: 4px; }
    .schedule-time { font-size: 14px; color: var(--gold); }
}

/* ===== Print ===== */

@media print {
    .site-nav, .nav-toggle, .hero-cta, .site-footer { display: none !important; }
    body, .site-wrap { background: white; box-shadow: none; }
    .body-content { padding: 24px; }
    .page-hero, .hero { height: 120px; }
    .page-hero-img, .hero-img { filter: brightness(0.5); }
    a { color: var(--navy); }
}
