/* =====================================
   GLOBAL
===================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #3d3935;
    background: #f8f5f0;
    line-height: 1.7;
}

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

button,
input,
select {
    font-family: inherit;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
}


/* =====================================
   COVER
===================================== */

.cover {
    position: relative;
    min-height: 100vh;

    background:
        url("images/cover.jpg")
        center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.cover-content {
    position: relative;
    z-index: 2;

    max-width: 700px;
    padding: 30px;
}

.small-text {
    font-size: 13px;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.cover h1 {
    font-size: clamp(60px, 10vw, 110px);
    line-height: 1;
    margin-bottom: 20px;
}

.date {
    font-size: 18px;
    letter-spacing: 4px;
}

.guest {
    margin: 50px 0 25px;
}


/* =====================================
   BUTTON
===================================== */

.btn {
    display: inline-block;

    padding: 13px 30px;

    border: none;
    border-radius: 50px;

    background: #fff;
    color: #3d3935;

    cursor: pointer;

    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}


/* =====================================
   SECTION
===================================== */

.section {
    max-width: 1100px;
    margin: auto;

    padding: 100px 30px;

    text-align: center;
}

.section-label {
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.section h2 {
    font-size: 55px;
    margin-bottom: 25px;
}

.intro {
    max-width: 700px;
}

.intro p:not(.section-label) {
    color: #777;
}

.ornament {
    font-size: 40px;
    margin-top: 30px;
}


/* =====================================
   COUPLE
===================================== */

.couple {
    max-width: 1000px;
}

.couple-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.person {
    flex: 1;
}

.person-photo {
    width: 220px;
    height: 280px;

    margin: 0 auto 25px;

    overflow: hidden;

    border-radius: 120px 120px 10px 10px;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person h3 {
    font-size: 32px;
}

.person p {
    color: #777;
    font-size: 14px;
}

.and-symbol {
    font-family: "Cormorant Garamond", serif;
    font-size: 60px;
}


/* =====================================
   COUNTDOWN
===================================== */

.countdown-section {
    background: #eee8df;
    max-width: none;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;

    margin-top: 40px;
}

.count-box {
    width: 100px;
    padding: 20px 10px;

    background: white;
}

.count-box span {
    display: block;

    font-family: "Cormorant Garamond", serif;
    font-size: 40px;
}

.count-box small {
    font-size: 12px;
}


/* =====================================
   EVENT
===================================== */

.event-container {
    display: grid;
    gap: 30px;
}

.event-card {
    background: white;
    padding: 45px 30px;

    border-radius: 10px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.event-icon {
    font-size: 30px;
}

.event-card h3 {
    font-size: 35px;
}

.event-date {
    margin-top: 15px;
}

.event-time {
    font-weight: 600;
    margin: 10px 0;
}

.btn-outline {
    display: inline-block;

    margin-top: 20px;
    padding: 10px 25px;

    border: 1px solid #777;
    border-radius: 50px;

    color: #3d3935;
    text-decoration: none;

    cursor: pointer;
}


/* =====================================
   LOVE STORY
===================================== */

.story {
    max-width: 800px;
}

.timeline {
    text-align: left;

    margin-top: 50px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;

    padding: 25px 0;

    border-bottom: 1px solid #ddd;
}

.timeline-item > span {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
}

.timeline-item h3 {
    font-size: 28px;
}


/* =====================================
   GALLERY
===================================== */

.gallery {
    max-width: 1200px;
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 40px;
}

.gallery-grid img {
    width: 100%;
    height: 300px;

    object-fit: cover;

    transition: 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}


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

.rsvp {
    max-width: 700px;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;

    margin-top: 35px;
}

.rsvp-form input,
.rsvp-form select {
    padding: 15px;

    border: 1px solid #ddd;
    border-radius: 5px;

    background: white;
    outline: none;
}

/* =====================================
   RSVP STATUS
===================================== */

.rsvp-form textarea {
    width: 100%;

    padding: 15px;

    border: 1px solid #ddd;
    border-radius: 5px;

    background: white;

    font-family: inherit;

    resize: vertical;

    outline: none;
}

.rsvp-form textarea:focus,
.rsvp-form input:focus,
.rsvp-form select:focus {
    border-color: #999;
}

.rsvp-status {
    display: none;

    margin-top: 15px;

    font-size: 14px;
}


/* =====================================
   GIFT
===================================== */

.bank-card {
    max-width: 450px;

    margin: 40px auto 0;
    padding: 40px;

    background: white;

    border-radius: 10px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.bank-card h3 {
    font-size: 28px;
}

.account-number {
    font-size: 25px;
    letter-spacing: 2px;
    margin: 15px 0;
}


/* =====================================
   CLOSING
===================================== */

.closing {
    position: relative;

    min-height: 70vh;

    background:
        url("images/closing.jpg")
        center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;
}

.closing-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.45);
}

.closing-content {
    position: relative;
    z-index: 2;

    max-width: 600px;
    padding: 30px;
}

.closing h2 {
    font-size: 65px;
    margin: 30px 0 10px;
}


/* =====================================
   FOOTER
===================================== */

footer {
    padding: 30px;

    text-align: center;

    font-size: 13px;
    color: #888;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {

    .section {
        padding: 70px 20px;
    }

    .section h2 {
        font-size: 45px;
    }

    .couple-container {
        flex-direction: column;
        gap: 25px;
    }

    .and-symbol {
        font-size: 45px;
    }

    .event-container {
        grid-template-columns: 1fr;
    }

    .countdown {
        gap: 8px;
    }

    .count-box {
        width: 75px;
        padding: 15px 5px;
    }

    .count-box span {
        font-size: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid img {
        height: 200px;
    }

    .timeline-item {
        grid-template-columns: 70px 1fr;
        gap: 15px;
    }

    .closing h2 {
        font-size: 50px;
    }

}