:root {
    --bg-color: #F8F5F1;
    --text-color: #5A5A5A;
    --accent-color: #C19D60;
    --secondary-color: #8C8C8C;
    --white: #FFFFFF;
    --header-font: 'Cormorant Garamond', serif;
    --script-font: 'Pinyon Script', cursive;
    --body-font: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

h1, h2, h3 {
    font-family: var(--header-font);
    font-weight: 400;
}

/* ===================== TITLES ===================== */

/* Script title — used for Our Story, Gallery, Leave us a message, Wishes & Gifts */
.script-title {
    font-family: var(--script-font);
    font-size: 2.8rem;
    color: var(--accent-color);
    font-weight: 400;
    margin-bottom: 0.8rem;
}

/* Title with side decorative lines — used for Wedding Details, Countdown */
.section-title-lined {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.section-title-lined em {
    font-family: var(--script-font);
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 400;
    font-style: normal;
    white-space: nowrap;
}

.section-title-lined .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    max-width: 140px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-style: italic;
}

/* ===================== HERO ===================== */
.hero {
    min-height: 60vh;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
}

.hero-content {
    max-width: 700px;
}

.couple-names {
    font-family: var(--script-font);
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    font-weight: 400;
    line-height: 1.2;
}

.announcement {
    font-family: var(--header-font);
    font-style: italic;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 300;
}

.wedding-info {
    font-size: 1rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
    line-height: 2;
}

/* ===================== COUNTDOWN ===================== */
.countdown-section {
    padding: 4rem 0;
    background-color: var(--white);
    text-align: center;
}

.countdown-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0;
}

.countdown-title em {
    font-family: var(--header-font);
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 300;
    font-style: italic;
    white-space: nowrap;
}

.countdown-title .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    max-width: 120px;
}

.countdown-frame {
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    padding: 2rem 0;
    margin: 2rem 0;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2.5rem;
    border-right: 1px solid #e0e0e0;
}

.countdown-item:last-child {
    border-right: none;
}

.countdown-item span {
    font-size: 3.2rem;
    font-family: var(--header-font);
    color: var(--accent-color);
    line-height: 1;
    font-weight: 300;
}

.countdown-item label {
    font-size: 0.7rem;
    color: var(--secondary-color);
    letter-spacing: 3px;
    margin-top: 0.5rem;
    font-family: var(--body-font);
    font-weight: 400;
}

.countdown-subtext {
    font-family: var(--header-font);
    font-style: italic;
    color: #aaa;
    font-size: 1.1rem;
    font-weight: 300;
}

.countdown-subtext i {
    color: #ccc;
    font-size: 0.8rem;
}

/* ===================== STORY ===================== */
.story-section {
    padding: 5rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.story-image-placeholder {
    width: 100%;
    height: 380px;
    background-color: #eee;
    border-radius: 4px;
}

.story-text .script-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.story-text p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.8;
}

/* ===================== DETAILS ===================== */
.details-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.details-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #f2efea;
    padding: 3rem 3rem;
    text-align: left;
}

.celebration-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0ede8;
}

.celebration-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.celebration-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: var(--text-color);
}

.celebration-header strong {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.flag-img {
    width: 28px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 2px;
}

.detail-line {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.detail-line i {
    color: var(--accent-color);
    width: 18px;
    text-align: center;
    margin-right: 6px;
    font-size: 0.85rem;
}

.detail-line strong {
    color: var(--text-color);
    font-weight: 600;
}

.detail-address {
    font-size: 0.9rem;
    color: #aaa;
    margin-left: 24px;
    margin-top: 0.1rem;
}

.detail-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #bbb;
    margin-top: 1.2rem;
}

.detail-status {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.detail-sub {
    font-size: 0.9rem;
    color: #aaa;
}

/* ===================== GALLERY ===================== */
.gallery-section {
    padding: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item-placeholder {
    background-color: #eee;
    height: 220px;
    border-radius: 4px;
}

/* ===================== MESSAGE ===================== */
.message-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.message-form {
    max-width: 550px;
    margin: 2rem auto 0;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 1.8; }

.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 0.9rem 0.9rem 2.8rem;
    border: 1px solid #ece9e3;
    background: #fff;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
    color: var(--text-color);
}

.form-group input::placeholder {
    color: #ccc;
}

.form-group input:focus {
    border-color: var(--accent-color);
}

.btn-submit {
    background: linear-gradient(to bottom, #e8c97a, #d4af37, #c49b2f);
    color: white;
    border: none;
    padding: 0.9rem 3.5rem;
    font-size: 0.95rem;
    font-family: var(--body-font);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit i {
    font-size: 0.8rem;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===================== WISHES ===================== */
.wishes-section {
    padding: 5rem 0;
}

.wishes-content {
    max-width: 500px;
    margin: 0 auto;
}

.wishes-content > p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.bank-card {
    background: #FDFCFA;
    padding: 1.5rem 2rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    border: 1px solid #f0ede8;
    text-align: left;
}

.bank-card p {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.bank-card strong {
    color: var(--text-color);
}

/* ===================== FOOTER ===================== */
.footer {
    padding: 4rem 0;
    background-color: var(--white);
    border-top: 1px solid #f0f0f0;
}

.footer-text {
    font-family: var(--header-font);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 300;
}

.footer-text i {
    color: #ccc;
    font-size: 0.8rem;
}

.couple-names-sm {
    font-family: var(--script-font);
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .couple-names {
        font-size: 3rem;
    }

    .countdown-item {
        padding: 0 1.2rem;
    }

    .countdown-item span {
        font-size: 2rem;
    }

    .countdown-title .line,
    .section-title-lined .line {
        display: none;
    }

    .story-text .script-title {
        text-align: center;
    }

    .details-card {
        padding: 2rem 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .script-title {
        font-size: 2.2rem;
    }

    .section-title-lined em {
        font-size: 2.2rem;
    }
}
