/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #fefaf6;
    overflow-x: hidden;
}

/* ================= GLOBAL ================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

section {
    padding: clamp(50px, 8vw, 90px) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 3rem;
    color: #8a6b5c;
}

.script-font {
    font-family: 'Dancing Script', cursive;
}

/* ================= HERO ================= */
header {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
        url("images/2.png") center / cover no-repeat;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.couple-names {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.wedding-date {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.divider {
    width: 120px;
    height: 3px;
    background: #e8b4bc;
    margin: 20px auto;
}

/* ================= STORY ================= */
.our-story {
    background: #f9f1ec;
}

.story-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.story-text,
.couple-image {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
}

/* ================= DETAILS ================= */
.details-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.detail-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
    transition: transform .3s;
}

.detail-card:hover {
    transform: translateY(-8px);
}

.detail-card i {
    font-size: 2.2rem;
    color: #d4a798;
}

/* ================= GALLERY ================= */
.gallery-section {
    background: #f9f1ec;
}

.gallery-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-flex img {
    width: 100%;
    aspect-ratio: 3 / 4; /* Portrait default */
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    transition: transform .4s;
}

.gallery-flex img:hover {
    transform: scale(1.03);
}

/* ================= RSVP ================= */
.rsvp-section {
    background: #f9f1ec;
}

.rsvp-form {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.form-group {
    margin-bottom: 22px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input {
    margin-right: 8px;
    accent-color: #d4a798;
}

.btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 6px;
    background: #d4a798;
    color: white;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #c1917e;
}

/* ================= FOOTER ================= */
footer {
    background: #b7866e;
    color: white;
    text-align: center;
    padding: 40px 0;
}
/* ================= RESPONSIVE FIXES ================= */

/* Make all images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Better mobile viewport handling */
header {
    padding: 20px;
}

/* ================= SMALL DEVICES (Phones < 576px) ================= */
@media (max-width: 575px) {

    body {
        font-size: 15px;
    }

    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 12px;
    }

    .couple-names {
        font-size: 2.3rem;
        line-height: 1.2;
    }

    .wedding-date {
        font-size: 1.1rem;
    }

    .story-content {
        gap: 25px;
    }

    .story-text, .couple-image {
        font-size: 1.1rem;
        text-align: center;
    }

    .detail-card {
        padding: 24px;
    }

    .gallery-flex img {
        aspect-ratio: 4 / 5;
        border-radius: 14px;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        font-size: 1rem;
        padding: 12px;
    }
}

/* ================= MEDIUM DEVICES (Tablets 576px – 992px) ================= */
@media (max-width: 992px) {

    header {
        min-height: 90vh;
    }

    .story-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .details-container {
        gap: 24px;
    }

    .gallery-flex {
        gap: 16px;
    }
}

/* ================= LARGE SCREENS (1200px+) ================= */
@media (min-width: 1200px) {

    .container {
        max-width: 1300px;
    }

    .gallery-flex img {
        aspect-ratio: 3 / 4;
    }
}
