@font-face {
    font-family: "Poppins";
    src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Poppins";
    src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype");
    font-weight: 500;
}

@font-face {
    font-family: "Poppins";
    src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
}

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

:root {
    --lilac: #8d6a9d;
    --lilac-dark: #6d4f7c;
    --lilac-light: #f3edf5;
    --cream: #fbfafb;
    --white: #ffffff;
    --text: #302933;
    --muted: #8d828e;
    --line: #e1d9e3;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

button,
a {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    width: 100%;
    min-height: 100vh;
}


/* HEADER */

.top-header {
    height: 82px;
    padding: 0 55px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
}

.back-link {
    justify-self: start;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
    transition: 0.2s ease;
}

.back-link span {
    margin-right: 8px;
    color: var(--lilac);
    font-size: 14px;
}

.back-link:hover {
    color: var(--lilac);
}

.logo img {
    width: 70px;
    display: block;
}

.contact-link {
    justify-self: end;
    padding: 10px 22px;
    border: 1px solid var(--lilac);
    color: var(--lilac);
    font-size: 8px;
    letter-spacing: 1.5px;
    transition: 0.2s ease;
}

.contact-link:hover {
    background: var(--lilac);
    color: white;
}


/* INTRO */

.intro {
    width: min(1180px, 88%);
    min-height: 470px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    align-items: center;
    gap: 100px;
    position: relative;
}

.intro-copy {
    max-width: 700px;
}

.eyebrow {
    display: block;
    color: var(--lilac);
    font-size: 8px;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.intro h1 {
    max-width: 700px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(50px, 6vw, 82px);
    line-height: 0.98;
    font-weight: 400;
}

.intro h1 em {
    display: block;
    color: var(--lilac);
    font-style: italic;
}

.intro-copy p {
    max-width: 520px;
    margin-top: 27px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.intro-side {
    align-self: end;
    margin-bottom: 70px;
}

.intro-side > span {
    color: var(--lilac);
    font-family: Georgia, serif;
    font-size: 32px;
}

.intro-side div {
    width: 55px;
    height: 1px;
    margin: 15px 0;
    background: var(--lilac);
}

.intro-side p {
    max-width: 190px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.8;
}


/* MOMENTS */

.moments-section {
    width: min(1180px, 88%);
    margin: 0 auto;
    padding: 55px 0 100px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 32px;
}

.section-heading > div > span {
    color: var(--lilac);
    font-size: 8px;
    letter-spacing: 3px;
}

.section-heading h2 {
    margin-top: 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 39px;
    font-weight: 400;
}

.section-heading h2 em {
    color: var(--lilac);
    font-style: italic;
}

.section-heading > p {
    max-width: 190px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.7;
    text-align: right;
}


/* CARDS */

.moments-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr 0.9fr;
    grid-template-rows: 245px 245px;
    gap: 14px;
}

.moment-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: white;
    cursor: pointer;
}

.moment-card:first-child {
    grid-row: span 2;
}

.moment-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.moment-card:hover img {
    transform: scale(1.045);
}

.moment-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 27px;
    background: linear-gradient(
        to top,
        rgba(35, 27, 38, 0.68),
        rgba(35, 27, 38, 0.02) 65%
    );
    color: white;
}

.moment-number {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 8px;
    letter-spacing: 2px;
}

.moment-overlay span {
    font-size: 7px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.moment-overlay h3 {
    margin-top: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
}

.moment-overlay h3 em {
    color: #eadff0;
    font-style: italic;
}

.moment-arrow {
    position: absolute;
    right: 23px;
    bottom: 25px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    font-size: 13px;
}


/* AVISO DE FOTOGRAFÍAS */

.inspiration-note {
    margin-top: 22px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.8;
    text-align: center;
    letter-spacing: 0.2px;
}


/* GALLERY */

.gallery-view {
    width: min(1180px, 88%);
    margin: 0 auto;
    padding: 45px 0 80px;
}

.hidden {
    display: none !important;
}

.gallery-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 35px;
}

.close-gallery {
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1px;
}

.close-gallery:hover {
    color: var(--lilac);
}

.gallery-title {
    text-align: center;
}

.gallery-title span {
    color: var(--lilac);
    font-size: 7px;
    letter-spacing: 3px;
}

.gallery-title h2 {
    margin-top: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    font-weight: 400;
}

.gallery-number {
    justify-self: end;
    color: #a59ba6;
    font-size: 7px;
    letter-spacing: 2px;
}

.gallery-content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    min-height: 570px;
    background: white;
    border: 1px solid var(--line);
}

.gallery-main {
    min-height: 570px;
    overflow: hidden;
    background: var(--lilac-light);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-details {
    padding: 60px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-line {
    width: 40px;
    height: 1px;
    margin-bottom: 22px;
    background: var(--lilac);
}

.gallery-details > span {
    color: var(--lilac);
    font-size: 7px;
    letter-spacing: 3px;
}

.gallery-details h3 {
    margin-top: 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 400;
}

.gallery-details p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.9;
}

.gallery-images {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.gallery-thumb {
    height: 110px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: white;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: 0.35s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.gallery-footer {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-footer > span {
    color: var(--muted);
    font-family: Georgia, serif;
    font-size: 12px;
    font-style: italic;
}

.event-contact {
    padding: 12px 19px;
    background: var(--lilac);
    color: white;
    font-size: 8px;
    letter-spacing: 0.7px;
}

.event-contact span {
    margin-left: 15px;
}

.gallery-inspiration-note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.8;
    text-align: center;
}


/* CLOSING */

.closing {
    min-height: 520px;
    padding: 100px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(
            circle at center,
            rgba(220, 204, 227, 0.45),
            transparent 55%
        ),
        var(--lilac-light);
    border-top: 1px solid var(--line);
}

.closing-eyebrow {
    color: var(--lilac);
    font-size: 8px;
    letter-spacing: 4px;
}

.closing h2 {
    max-width: 680px;
    margin-top: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(39px, 5vw, 61px);
    line-height: 1;
    font-weight: 400;
}

.closing h2 em {
    display: block;
    color: var(--lilac);
    font-style: italic;
}

.closing p {
    max-width: 450px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

.closing-button {
    margin-top: 30px;
    padding: 14px 22px;
    background: var(--lilac);
    color: white;
    font-size: 8px;
    letter-spacing: 1px;
}

.closing-button span {
    margin-left: 18px;
}


/* FOOTER */

.footer {
    min-height: 125px;
    padding: 30px 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-top: 1px solid var(--line);
}

.footer img {
    width: 65px;
}

.footer span {
    color: var(--muted);
    font-family: Georgia, serif;
    font-size: 11px;
    font-style: italic;
}


/* LIGHTBOX */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: rgba(35, 27, 38, 0.92);
}

.image-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
}

.image-lightbox button {
    position: absolute;
    top: 25px;
    right: 30px;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    background: transparent;
    color: white;
    font-size: 20px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .top-header {
        padding: 0 25px;
    }

    .intro {
        grid-template-columns: 1fr;
        min-height: 400px;
        padding: 75px 0 55px;
    }

    .intro-side {
        display: none;
    }

    .moments-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 230px;
    }

    .moment-card:first-child {
        grid-column: span 2;
        grid-row: auto;
    }

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

    .gallery-main {
        min-height: 450px;
    }

    .gallery-details {
        padding: 45px;
    }

}


@media (max-width: 600px) {

    .top-header {
        height: 70px;
        padding: 0 18px;
    }

    .logo img {
        width: 58px;
    }

    .contact-link {
        padding: 8px 13px;
    }

    .intro {
        width: 88%;
        padding-top: 65px;
    }

    .intro h1 {
        font-size: 48px;
    }

    .moments-section {
        width: 88%;
        padding-top: 30px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 12px;
        text-align: left;
    }

    .moments-grid {
        display: flex;
        flex-direction: column;
    }

    .moment-card,
    .moment-card:first-child {
        height: 330px;
        flex: none;
    }

    .gallery-view {
        width: 90%;
        padding-top: 30px;
    }

    .gallery-header {
        grid-template-columns: 1fr auto;
        gap: 15px;
    }

    .gallery-title {
        grid-column: span 2;
        grid-row: 1;
        text-align: left;
    }

    .close-gallery {
        grid-column: 1;
        grid-row: 2;
    }

    .gallery-number {
        grid-column: 2;
        grid-row: 2;
    }

    .gallery-main {
        min-height: 350px;
    }

    .gallery-details {
        padding: 35px 25px;
    }

    .gallery-footer {
        display: block;
    }

    .event-contact {
        display: inline-block;
        margin-top: 15px;
    }

    .closing {
        min-height: 450px;
        padding: 75px 20px;
    }

    .footer {
        padding: 25px;
        flex-direction: column;
        gap: 15px;
    }

} 