/* Chi & Syl — Chocolate brown, gold, cream, navy blue */
:root {
    --chocolate: #3d2314;
    --chocolate-light: #5c3825;
    --gold: #c9a227;
    --gold-light: #e6c04a;
    --cream: #faf6f0;
    --cream-dark: #efe8dc;
    --navy: #1a2744;
    --navy-light: #2a3a5c;
    --white: #fff;
    --shadow: rgba(61, 35, 20, 0.15);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--chocolate);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cream-dark);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--chocolate);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--chocolate);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

.nav-cta {
    background: var(--navy);
    color: var(--cream) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-cta:hover {
    background: var(--chocolate);
    color: var(--cream) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--chocolate);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.hero-image {
    width: 100%;
    max-width: 900px;
    height: 70vh;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px var(--shadow);
    margin-bottom: 2rem;
}

.hero-badge {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    color: var(--chocolate);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: 1rem;
    color: var(--chocolate-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Countdown */
.countdown-section {
    padding: 4rem 1.5rem;
    background: var(--navy);
    color: var(--cream);
}

.countdown-section h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
}

.countdown-runner {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.countdown-box {
    text-align: center;
    min-width: 90px;
}

.countdown-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1.2;
    display: block;
}

.countdown-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Calendar */
.calendar-section {
    padding: 4rem 1.5rem;
    background: var(--cream);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    text-align: center;
    color: var(--chocolate);
    margin-bottom: 2rem;
}

.calendar-wrap {
    max-width: 360px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid var(--cream-dark);
}

.calendar-month {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-align: center;
    color: var(--navy);
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-grid span {
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--chocolate-light);
}

.calendar-grid span.weekday {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.7rem;
}

.calendar-grid span.wedding-day {
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    font-weight: 600;
}

/* Invite text */
.invite-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.invite-text {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: var(--chocolate);
    line-height: 1.7;
    font-style: italic;
}

/* Ring photo */
.ring-section {
    padding: 2rem 1.5rem;
    max-width: 100%;
    overflow: hidden;
}

.ring-photo {
    display: block;
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 15px 45px var(--shadow);
}

/* Our Story */
.story-section {
    padding: 4rem 1.5rem;
    background: var(--white);
}

.story-section h2 {
    margin-bottom: 1.5rem;
}

.story-content {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--chocolate-light);
}

.story-content p {
    margin-bottom: 1rem;
}

/* Details (location & reception) */
.details-section {
    padding: 4rem 1.5rem;
    background: var(--chocolate);
    color: var(--cream);
}

.details-section .section-title {
    color: var(--cream);
}

.detail-card {
    max-width: 400px;
    margin: 0 auto 2rem;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}

.detail-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
}

.detail-card p {
    opacity: 0.95;
}

.detail-card .time {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Full-width photo */
.photo-section {
    padding: 0;
}

.photo-section img {
    width: 100%;
    display: block;
    max-height: 70vh;
    object-fit: cover;
}

/* Colour of the day */
.colors-section {
    padding: 4rem 1.5rem;
    background: var(--cream);
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 6px 20px var(--shadow);
}

.color-swatch.chocolate { background: #3d2314; }
.color-swatch.gold { background: #c9a227; }
.color-swatch.cream { background: #faf6f0; border: 1px solid #e0d5c7; }
.color-swatch.navy { background: #1a2744; }

.color-names {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--chocolate-light);
}

/* Why RSVP */
.rsvp-cta-section {
    padding: 4rem 1.5rem;
    background: var(--navy);
    color: var(--cream);
    text-align: center;
}

.rsvp-cta-section .section-title {
    color: var(--cream);
    margin-bottom: 1rem;
}

.rsvp-cta-section p {
    max-width: 520px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--chocolate);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.rsvp-phones {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.rsvp-phones a {
    color: var(--gold-light);
    text-decoration: none;
}

/* Forms */
.form-page {
    padding: 6rem 1.5rem 4rem;
    max-width: 520px;
    margin: 0 auto;
}

.form-page h1 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    text-align: center;
    color: var(--chocolate);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--chocolate);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--navy);
    color: var(--cream);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--chocolate);
}

/* Success (QR) */
.register-success {
    padding: 6rem 1.5rem 4rem;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.register-success h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--chocolate);
    margin-bottom: 1rem;
}

.qr-wrap {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 10px 40px var(--shadow);
}

.qr-wrap img {
    display: block;
}

.qr-note {
    font-size: 0.9rem;
    color: var(--chocolate-light);
    margin-top: 1rem;
}

/* Gifts page */
.gifts-intro {
    padding: 4rem 1.5rem 2rem;
    text-align: center;
}

.gifts-intro .section-title {
    margin-bottom: 1rem;
}

.gifts-intro p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--chocolate-light);
}

.bank-details {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--cream-dark);
    border-radius: 12px;
    border: 1px solid var(--chocolate);
    text-align: center;
}

.bank-details h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.bank-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.bank-details .account-no {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--chocolate);
}

.gift-grid {
    padding: 2rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gift-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow);
    border: 1px solid var(--cream-dark);
}

.gift-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gift-card-body {
    padding: 1.25rem;
}

.gift-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--chocolate);
    margin-bottom: 0.5rem;
}

.gift-card p {
    font-size: 0.9rem;
    color: var(--chocolate-light);
}

.upload-receipt-form {
    max-width: 480px;
    margin: 2rem auto 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow);
}

.upload-receipt-form h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--chocolate);
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--chocolate);
    color: var(--cream);
    font-size: 0.9rem;
}

.footer-hearts {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
}

/* Admin */
.admin-wrap {
    min-height: 100vh;
    background: var(--cream-dark);
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--chocolate);
}

.admin-header h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--chocolate);
}

.admin-nav a {
    color: var(--navy);
    text-decoration: none;
    margin-left: 1rem;
    font-weight: 500;
}

.admin-nav a:hover {
    color: var(--gold);
}

.admin-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.admin-card h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--chocolate);
}

.login-form {
    max-width: 360px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow);
}

.login-form h1 {
    font-family: var(--font-serif);
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--chocolate);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--cream-dark);
}

th {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.85rem;
}

.guest-qr img {
    width: 64px;
    height: 64px;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    background: var(--navy);
    color: var(--cream);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-small.danger {
    background: #a52a2a;
}

.check-in-form {
    display: inline;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        padding: 1rem;
        border-bottom: 1px solid var(--cream-dark);
    }
    .menu-toggle {
        display: block;
    }
    .countdown-runner {
        gap: 1rem;
    }
    .countdown-num {
        font-size: 2.25rem;
    }
}
