/* =========================================================
   RESET
========================================================= */

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


html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}


body {
    font-family: "Poppins", sans-serif;
    background: #fffafa;
    color: #302326;
    overflow-x: hidden;
    min-width: 0;
}


img {
    max-width: 100%;
}


button {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --dark: #302326;

    --pink: #d94f70;

    --light-pink: #fff1f3;

    --soft-pink: #fff7f8;

    --border-pink: #f4dce1;

    --white: #ffffff;

    --text-light: #76696c;

    --section-width: 1100px;

}


/* =========================================================
   FLOATING HEARTS
========================================================= */

.hearts {
    position: fixed;
    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 20;
}


.hearts::before,
.hearts::after {
    content: "♡";

    position: absolute;

    color: rgba(217, 79, 112, 0.18);

    font-size: 32px;

    animation: floatingHeart 10s linear infinite;
}


.hearts::before {
    left: 15%;
    top: 100%;

    animation-delay: 1s;
}


.hearts::after {
    right: 12%;
    top: 100%;

    font-size: 22px;

    animation-delay: 5s;
}


@keyframes floatingHeart {

    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) rotate(25deg);
        opacity: 0;
    }

}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100svh;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #1f1719;
}


.hero-image {
    position: absolute;
    inset: 0;
}


.hero-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    filter: brightness(0.62);
}


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

    background:
        linear-gradient(
            90deg,
            rgba(20, 12, 14, 0.80),
            rgba(20, 12, 14, 0.28),
            rgba(20, 12, 14, 0.60)
        );
}


.hero-content {
    position: relative;

    z-index: 2;

    width: min(900px, 90%);

    text-align: center;

    color: white;

    padding:
        max(30px, env(safe-area-inset-top))
        0
        max(40px, env(safe-area-inset-bottom));

    animation: heroAppear 1.2s ease both;
}


@keyframes heroAppear {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


.small-title {
    text-transform: uppercase;

    letter-spacing: 5px;

    font-size: 12px;

    font-weight: 600;

    color: #ffd9e1;

    margin-bottom: 25px;
}


.hero h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(58px, 9vw, 125px);

    line-height: 0.88;

    font-weight: 500;

    margin-bottom: 30px;
}


.hero h1 span {
    display: block;

    color: #f58aa2;

    font-style: italic;
}


.hero-text {
    width: min(600px, 100%);

    margin: 0 auto;

    font-size: 16px;

    line-height: 1.9;

    color: rgba(255,255,255,0.9);
}


.start-btn {
    margin-top: 35px;

    min-height: 50px;

    padding: 14px 30px;

    border: 1px solid rgba(255,255,255,0.5);

    border-radius: 50px;

    background: rgba(255,255,255,0.12);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    color: white;

    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.start-btn:hover {
    background: white;

    color: var(--pink);

    transform: translateY(-3px);
}


.start-btn:active {
    transform: scale(0.97);
}


.scroll-down {
    position: absolute;

    z-index: 2;

    left: 50%;

    bottom: max(20px, env(safe-area-inset-bottom));

    transform: translateX(-50%);

    color: rgba(255,255,255,0.75);

    text-align: center;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 3px;
}


.scroll-down div {
    font-size: 25px;

    margin-top: 8px;

    animation: scrollArrow 1.5s infinite;
}


@keyframes scrollArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }

}


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

.section {
    padding: clamp(75px, 10vw, 120px) 0;

    position: relative;

    overflow: hidden;
}


.section-container {
    width: min(
        var(--section-width),
        calc(100% - 48px)
    );

    margin: 0 auto;
}


.section-label {
    color: var(--pink);

    text-transform: uppercase;

    letter-spacing: 5px;

    font-size: 11px;

    font-weight: 600;

    margin-bottom: 20px;
}


.section h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(48px, 6vw, 80px);

    font-weight: 500;

    line-height: 0.95;

    margin-bottom: 55px;

    overflow-wrap: break-word;
}


.section h2 span {
    color: var(--pink);

    font-style: italic;
}


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

.letter-section {
    background: #fffafa;
}


.letter-layout {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.85fr)
        minmax(0, 1.15fr);

    gap: clamp(25px, 4vw, 45px);

    align-items: center;
}


.side-photo {
    width: 100%;

    height: clamp(450px, 55vw, 650px);

    border-radius: 25px;

    overflow: hidden;

    box-shadow:
        0 25px 60px
        rgba(80, 40, 50, 0.12);

    background: #eadde0;
}


.side-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;
}


.letter-card {
    width: 100%;

    background: white;

    border: 1px solid var(--border-pink);

    border-radius: 25px;

    padding: clamp(30px, 5vw, 55px);

    box-shadow:
        0 25px 70px
        rgba(80, 40, 50, 0.06);
}


.letter-card p {
    color: var(--text-light);

    font-size: 15px;

    line-height: 2;

    margin-bottom: 20px;

    overflow-wrap: break-word;
}


.letter-card p:last-child {
    margin-bottom: 0;
}


.heart-icon {
    color: var(--pink);

    font-size: 45px;

    line-height: 1;

    margin-bottom: 25px;
}


.highlight {
    color: var(--pink) !important;

    font-weight: 600;
}


/* =========================================================
   SOLO PHOTO
========================================================= */

.photo-section {
    background: var(--light-pink);
}


.main-photo {
    width: 100%;

    height: clamp(430px, 60vw, 650px);

    position: relative;

    overflow: hidden;

    border-radius: 28px;

    background: #eadde0;

    box-shadow:
        0 30px 70px
        rgba(80, 40, 50, 0.12);
}


.main-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition: transform 0.8s ease;
}


.main-photo:hover img {
    transform: scale(1.03);
}


.photo-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding:
        clamp(60px, 10vw, 100px)
        clamp(22px, 5vw, 45px)
        clamp(25px, 4vw, 40px);

    background:
        linear-gradient(
            transparent,
            rgba(20,10,12,0.72)
        );

    color: white;
}


.photo-overlay p {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(26px, 3.5vw, 40px);

    max-width: 650px;

    line-height: 1.1;
}


/* =========================================================
   SORRY
========================================================= */

.sorry-section {
    background: #fffafa;
}


.sorry-layout {
    width: min(850px, 100%);

    margin: 0 auto;
}


.sorry-card {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #fff7f8
        );
}


/* =========================================================
   FUTURE
========================================================= */

.future-section {
    background: #ffffff;
}


.future-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 25px;
}


.future-card {
    min-width: 0;

    background: #fff7f8;

    border-radius: 25px;

    overflow: hidden;

    border: 1px solid #f5e3e6;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


.future-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 60px
        rgba(90, 40, 50, 0.12);
}


.future-image {
    width: 100%;

    height: clamp(270px, 32vw, 350px);

    overflow: hidden;

    background: #eadde0;
}


.future-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition: transform 0.7s ease;
}


.future-card:hover .future-image img {
    transform: scale(1.05);
}


.future-content {
    padding: clamp(23px, 3vw, 30px);
}


.future-content > span {
    color: var(--pink);

    font-size: 11px;

    letter-spacing: 3px;

    font-weight: 600;
}


.future-content h3 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(27px, 3vw, 32px);

    margin: 12px 0 10px;
}


.future-content p {
    color: var(--text-light);

    line-height: 1.8;

    font-size: 14px;

    overflow-wrap: break-word;
}


/*
   Third future card is centered on desktop.
*/

.future-card:nth-child(3) {
    grid-column: 1 / -1;

    width: calc(50% - 12.5px);

    justify-self: center;
}


/* =========================================================
   PRAYER
========================================================= */

.prayer-section {
    background: var(--light-pink);
}


.prayer-card {
    width: min(800px, 100%);

    margin: 0 auto;

    text-align: center;
}


/* =========================================================
   MEMORIES
   4 PHOTOS ONLY
========================================================= */

.gallery-section {
    background: #fff8f8;
}


.gallery {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    grid-template-rows:
        repeat(2, minmax(280px, 360px));

    gap: 18px;

    width: 100%;
}


.gallery-item {
    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    border-radius: 22px;

    background: #eadde0;

    position: relative;

    box-shadow:
        0 15px 40px
        rgba(80, 40, 50, 0.08);
}


.gallery-item::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    border: 1px solid rgba(255,255,255,0.4);

    border-radius: inherit;
}


.gallery-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}


.gallery-item:hover img {
    transform: scale(1.06);

    filter: brightness(1.03);
}


/* =========================================================
   FIANCÉ
========================================================= */

.fiance-section {
    background: #ffffff;
}


.fiance-card {
    width: min(850px, 100%);

    margin: 0 auto;
}


/* =========================================================
   FINAL
========================================================= */

.final-section {
    min-height: 100svh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding:
        100px 24px
        max(100px, env(safe-area-inset-bottom));

    position: relative;

    background:
        radial-gradient(
            circle at center,
            #fff1f4 0%,
            #fffafa 55%,
            #ffffff 100%
        );
}


.final-content {
    width: min(800px, 100%);

    margin: auto;
}


.big-heart {
    color: var(--pink);

    font-size: clamp(60px, 8vw, 80px);

    line-height: 1;

    margin-bottom: 30px;

    animation: heartBeat 1.5s infinite;
}


@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.12);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.08);
    }

}


.final-section .section-label {
    margin-bottom: 25px;
}


.final-section h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(55px, 8vw, 100px);

    line-height: 0.9;

    font-weight: 500;

    margin-bottom: 35px;
}


.final-section h2 span {
    display: block;

    color: var(--pink);

    font-style: italic;
}


.final-text {
    width: min(600px, 100%);

    margin: auto;

    color: var(--text-light);

    font-size: 16px;

    line-height: 2;

    white-space: pre-line;

    overflow-wrap: break-word;
}


.yes-btn {
    margin-top: 40px;

    min-height: 52px;

    border: none;

    background: var(--pink);

    color: white;

    padding: 15px 40px;

    border-radius: 50px;

    font-size: 15px;

    font-weight: 500;

    cursor: pointer;

    box-shadow:
        0 15px 35px
        rgba(217, 79, 112, 0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.yes-btn:hover {
    transform: translateY(-4px) scale(1.03);

    box-shadow:
        0 20px 45px
        rgba(217, 79, 112, 0.35);
}


.yes-btn:active {
    transform: scale(0.96);
}


/* =========================================================
   FINAL LOVE MESSAGE
========================================================= */

.love-message {
    display: none;

    width: min(600px, 100%);

    margin: 40px auto 0;

    padding: clamp(25px, 5vw, 35px);

    background: white;

    border: 1px solid var(--border-pink);

    border-radius: 25px;

    box-shadow:
        0 25px 70px
        rgba(80, 40, 50, 0.1);

    animation: messageAppear 0.8s ease;
}


.love-message.show {
    display: block;
}


.love-message h3 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(30px, 6vw, 38px);

    color: var(--pink);

    margin-bottom: 20px;
}


.love-message p {
    color: var(--text-light);

    line-height: 1.8;

    font-size: 14px;

    margin-top: 15px;
}


.love-message p:first-of-type {
    margin-top: 0;
}


.love-message .final-love {
    color: var(--pink);

    font-weight: 600;

    margin-top: 25px;
}


.love-message .signature {
    font-family: "Cormorant Garamond", serif;

    font-size: 24px;

    color: var(--dark);

    margin-top: 25px;
}


@keyframes messageAppear {

    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


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

footer {
    background: #302326;

    color: white;

    text-align: center;

    padding:
        45px 20px
        max(45px, env(safe-area-inset-bottom));
}


footer p {
    font-family: "Cormorant Garamond", serif;

    font-size: 23px;
}


footer .footer-small {
    margin-top: 10px;

    font-family: "Poppins", sans-serif;

    font-size: 11px;

    color: rgba(255,255,255,0.55);

    letter-spacing: 1px;
}


/* =========================================================
   LARGE TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 1000px) {

    .section-container {
        width: min(
            92%,
            var(--section-width)
        );
    }


    .letter-layout {
        grid-template-columns:
            minmax(260px, 0.9fr)
            minmax(0, 1.1fr);

        gap: 25px;
    }


    .side-photo {
        height: 560px;
    }


    .future-image {
        height: 300px;
    }


    .gallery {
        grid-template-rows:
            repeat(2, 320px);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .section {
        padding: 85px 0;
    }


    .section-container {
        width: calc(100% - 40px);
    }


    .letter-layout {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .side-photo {
        height: min(520px, 100vw);

        max-height: 520px;
    }


    .letter-card {
        padding: 38px 30px;
    }


    .future-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .future-card:nth-child(3) {
        grid-column: auto;

        width: 100%;

        justify-self: stretch;
    }


    .future-image {
        height: min(450px, 65vw);
    }


    .gallery {
        grid-template-rows:
            repeat(2, minmax(280px, 42vw));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    html {
        scroll-padding-top: 15px;
    }


    body {
        font-size: 14px;
    }


    .section {
        padding: 70px 0;
    }


    .section-container {
        width: calc(100% - 32px);
    }


    .section-label {
        font-size: 9px;

        letter-spacing: 3px;

        margin-bottom: 16px;
    }


    .section h2 {
        font-size: clamp(42px, 12vw, 60px);

        line-height: 0.93;

        margin-bottom: 32px;
    }


    /* =====================================================
       HERO MOBILE
    ====================================================== */

    .hero-content {
        width: calc(100% - 36px);
    }


    .small-title {
        font-size: 9px;

        letter-spacing: 3px;

        line-height: 1.5;

        margin-bottom: 18px;
    }


    .hero h1 {
        font-size: clamp(50px, 15vw, 76px);

        line-height: 0.88;

        margin-bottom: 24px;
    }


    .hero-text {
        font-size: 12.5px;

        line-height: 1.8;

        max-width: 340px;
    }


    .start-btn {
        margin-top: 26px;

        min-height: 48px;

        padding: 13px 24px;

        font-size: 12px;
    }


    .scroll-down {
        font-size: 8px;

        letter-spacing: 2px;

        bottom: max(15px, env(safe-area-inset-bottom));
    }


    .scroll-down div {
        font-size: 21px;
    }


    /* =====================================================
       LETTER MOBILE
    ====================================================== */

    .letter-layout {
        gap: 20px;
    }


    .side-photo {
        height: 390px;

        border-radius: 20px;
    }


    .letter-card {
        padding: 30px 22px;

        border-radius: 20px;
    }


    .letter-card p {
        font-size: 13px;

        line-height: 1.9;

        margin-bottom: 18px;
    }


    .heart-icon {
        font-size: 37px;

        margin-bottom: 18px;
    }


    /* =====================================================
       SOLO PHOTO
    ====================================================== */

    .main-photo {
        height: 470px;

        border-radius: 20px;
    }


    .photo-overlay {
        padding:
            75px 22px 24px;
    }


    .photo-overlay p {
        font-size: 28px;
    }


    /* =====================================================
       FUTURE
    ====================================================== */

    .future-grid {
        gap: 16px;
    }


    .future-card {
        border-radius: 20px;
    }


    .future-image {
        height: 300px;
    }


    .future-content {
        padding: 23px 22px 25px;
    }


    .future-content h3 {
        font-size: 29px;

        margin-top: 10px;
    }


    .future-content p {
        font-size: 12.5px;

        line-height: 1.75;
    }


    /* =====================================================
       PRAYER
    ====================================================== */

    .prayer-card {
        text-align: left;
    }


    /* =====================================================
       MEMORIES
    ====================================================== */

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

        grid-template-rows:
            repeat(4, 300px);

        gap: 14px;
    }


    .gallery-item {
        border-radius: 18px;
    }


    /* =====================================================
       FIANCÉ
    ====================================================== */

    .fiance-card {
        padding: 30px 22px;
    }


    /* =====================================================
       FINAL
    ====================================================== */

    .final-section {
        min-height: 100svh;

        padding:
            80px 18px
            max(80px, env(safe-area-inset-bottom));
    }


    .final-content {
        width: 100%;
    }


    .big-heart {
        font-size: 64px;

        margin-bottom: 22px;
    }


    .final-section h2 {
        font-size: clamp(48px, 14vw, 70px);

        margin-bottom: 28px;
    }


    .final-text {
        font-size: 13px;

        line-height: 1.9;
    }


    .yes-btn {
        margin-top: 28px;

        min-height: 50px;

        padding: 14px 30px;

        font-size: 13px;
    }


    .love-message {
        margin-top: 28px;

        padding: 27px 20px;

        border-radius: 20px;
    }


    .love-message h3 {
        font-size: 30px;
    }


    .love-message p {
        font-size: 12.5px;

        line-height: 1.8;
    }


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

    footer {
        padding:
            35px 18px
            max(35px, env(safe-area-inset-bottom));
    }


    footer p {
        font-size: 20px;
    }


    footer .footer-small {
        font-size: 9px;

        line-height: 1.7;
    }

}


/* =========================================================
   SMALL PHONES
   320px - 380px
========================================================= */

@media (max-width: 380px) {

    .section {
        padding: 60px 0;
    }


    .section-container {
        width: calc(100% - 26px);
    }


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


    .hero-content {
        width: calc(100% - 26px);
    }


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


    .small-title {
        font-size: 8px;

        letter-spacing: 2.5px;
    }


    .hero-text {
        font-size: 11.5px;

        max-width: 300px;
    }


    .start-btn {
        padding: 12px 20px;

        font-size: 11px;
    }


    .side-photo {
        height: 330px;
    }


    .letter-card {
        padding: 25px 18px;
    }


    .letter-card p {
        font-size: 12px;

        line-height: 1.85;
    }


    .main-photo {
        height: 400px;
    }


    .photo-overlay p {
        font-size: 25px;
    }


    .future-image {
        height: 250px;
    }


    .future-content {
        padding: 20px 18px 23px;
    }


    .future-content h3 {
        font-size: 27px;
    }


    .future-content p {
        font-size: 11.5px;
    }


    .gallery {
        grid-template-rows:
            repeat(4, 260px);

        gap: 12px;
    }


    .final-section {
        padding-left: 14px;
        padding-right: 14px;
    }


    .final-section h2 {
        font-size: 47px;
    }


    .final-text {
        font-size: 12px;
    }


    .yes-btn {
        padding: 13px 25px;

        font-size: 12px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   320px and below
========================================================= */

@media (max-width: 330px) {

    .hero h1 {
        font-size: 43px;
    }


    .hero-text {
        font-size: 11px;
    }


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


    .side-photo {
        height: 290px;
    }


    .main-photo {
        height: 360px;
    }


    .future-image {
        height: 220px;
    }


    .gallery {
        grid-template-rows:
            repeat(4, 230px);
    }

}


/* =========================================================
   MOBILE LANDSCAPE
========================================================= */

@media (max-width: 900px) and (orientation: landscape) {

    .hero {
        min-height: 100svh;
    }


    .hero-content {
        padding-top: 25px;

        padding-bottom: 55px;
    }


    .hero h1 {
        font-size: clamp(45px, 9vw, 70px);

        margin-bottom: 15px;
    }


    .hero-text {
        font-size: 11px;

        line-height: 1.6;
    }


    .start-btn {
        margin-top: 18px;

        padding: 10px 22px;
    }


    .scroll-down {
        display: none;
    }


    .side-photo {
        height: 450px;
    }


    .main-photo {
        height: 500px;
    }

}


/* =========================================================
   TOUCH DEVICES
   Remove hover movement on phones
========================================================= */

@media (hover: none) and (pointer: coarse) {

    .future-card:hover {
        transform: none;

        box-shadow: none;
    }


    .future-card:hover .future-image img {
        transform: none;
    }


    .main-photo:hover img {
        transform: none;
    }


    .gallery-item:hover img {
        transform: none;

        filter: none;
    }


    .start-btn:hover,
    .yes-btn:hover {
        transform: none;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

}