/* ==============================================
   WEDDING INVITATION — Cláudia & José Beleza
   ==============================================
   Design System
   - Section 1:  warm off-white    #f5f0eb
   - Section 2:  soft blush        #fdf5ef
   - Section 3:  light cream       #faf6f1
   - Gold accent: matte gold       #b8a088
   - Text:       graphite gray     #3a3a3a
   ============================================== */

/* ——————————————
   CSS CUSTOM PROPERTIES
—————————————— */
:root {
    /* Section backgrounds */
    --color-section-1: #f5f0eb;
    --color-section-2: #fdf5ef;
    --color-section-3: #f5f0eb;

    /* Core colors */
    --color-bg:          #fdf5ef;
    --color-surface:     rgba(255, 252, 248, 0.75);
    --color-gold:        #b8a088;
    --color-gold-light:  #d4c4b0;
    --color-gold-dark:   #9a8470;
    --color-text:        #3a3a3a;
    --color-text-light:  #6b6460;
    --color-white:       #fffcf8;
    --color-border:      rgba(184, 160, 136, 0.35);

    /* Typography */
    --font-serif:    'Playfair Display', 'Georgia', serif;
    --font-serif-sc: 'Playfair Display SC', 'Playfair Display', serif;
    --font-sans:     'Montserrat', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-xxl: 6rem;

    /* Navbar */
    --navbar-height: 56px;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-base: 0.3s var(--ease-smooth);
}


/* ——————————————
   RESET & BASE
—————————————— */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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


/* ——————————————
   NAVBAR (HEADER FIXO)
—————————————— */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--navbar-height);
    background: rgba(253, 245, 239, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(184, 160, 136, 0.15);
    transition: background 0.4s var(--ease-smooth),
                box-shadow 0.4s var(--ease-smooth);
}

.navbar.scrolled {
    background: rgba(253, 245, 239, 0.92);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar__inner {
    max-width: 700px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
}

.navbar__logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-base);
}

.navbar__logo:hover {
    color: var(--color-gold-dark);
}

.navbar__amp {
    font-style: italic;
    font-weight: 400;
    color: var(--color-gold-dark);
    margin: 0 0.15em;
}

.navbar__date {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
}


/* ——————————————
   SECTION WAVE DIVIDERS
—————————————— */
.section-wave {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-wave--bottom {
    bottom: -1px;
}

.section-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}


/* ——————————————
   HERO SECTION
—————————————— */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--navbar-height);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(253, 245, 239, 0.50) 0%,
        rgba(253, 245, 239, 0.25) 40%,
        rgba(253, 245, 239, 0.25) 60%,
        rgba(253, 245, 239, 0.55) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    max-width: 600px;
}

.hero__subtitle {
    font-family: var(--font-serif-sc);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.hero__title {
    font-family: var(--font-serif-sc);
    font-size: clamp(2.2rem, 8vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.amp {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--color-gold-dark);
    margin: 0 0.08em;
}

.hero__divider {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 220px;
    margin: 0 auto var(--space-md);
}

.hero__divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.hero__divider .diamond {
    font-size: 0.65rem;
    color: var(--color-gold);
}

.hero__phrase {
    font-family: var(--font-serif-sc);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.9;
    color: var(--color-text);
}


/* ——————————————
   GENERIC SECTION STYLES
—————————————— */
.section {
    position: relative;
    padding: var(--space-xxl) var(--space-md);
    overflow: hidden;
}

.section__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}


/* ——————————————
   DATE SECTION (Seção 2)
—————————————— */
.section--date {
    background-color: var(--color-section-1);
    padding-bottom: calc(var(--space-xxl) + 40px);
}

.section__label {
    font-family: var(--font-serif-sc);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.4rem;
}

.section__date-value {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.03em;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.date-details {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.date-card__icon {
    width: 22px;
    height: 22px;
    color: var(--color-gold);
}

.date-card__text {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
}


/* ——————————————
   VENUE / LOCAL SECTION
—————————————— */
.section--venue {
    background-color: var(--color-section-2);
    padding-bottom: calc(var(--space-xxl) + 40px);
}

.venue__name {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.03em;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.venue__location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-lg);
}

.venue__pin {
    width: 16px;
    height: 16px;
    color: var(--color-gold);
}

/* Photo Gallery: 1 large + 2 small grid */
.venue__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    margin-bottom: var(--space-lg);
    border-radius: 12px;
    overflow: hidden;
}

.venue__photo {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.venue__photo--main {
    grid-column: 1 / -1;
}

.venue__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-smooth);
}

.venue__photo--main img {
    max-height: 280px;
}

.venue__photo--secondary img {
    max-height: 180px;
}

.venue__photo:hover img {
    transform: scale(1.04);
}

.venue__photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    background: linear-gradient(transparent, rgba(0,0,0,0.45));
}

.venue__description {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 440px;
    margin: 0 auto var(--space-lg);
}

.venue__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    border: 1.5px solid var(--color-gold);
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    -webkit-tap-highlight-color: rgba(184, 160, 136, 0.2);
}

.venue__cta:hover {
    background: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(184, 160, 136, 0.3);
    transform: translateY(-2px);
}

.venue__cta:active {
    transform: scale(0.96);
}

.venue__cta-icon {
    width: 16px;
    height: 16px;
}


/* ——————————————
   LINKS SECTION
—————————————— */
.section--links {
    background-color: var(--color-section-1);
    padding-bottom: calc(var(--space-xxl) + 40px);
}

.section__heading {
    font-family: var(--font-serif-sc);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}

.section__subheading {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-xl);
}

.links__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 420px;
    margin: 0 auto;
}


/* ——————————————
   LINK BUTTON
—————————————— */
.link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--color-text);
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(184, 160, 136, 0.2);
    transition: transform var(--transition-base);
}

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

.link-btn:active {
    transform: scale(0.94);
}

.link-btn__circle {
    position: relative;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px dashed var(--color-gold);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.link-btn:hover .link-btn__circle {
    border-style: solid;
    background: rgba(184, 160, 136, 0.13);
    box-shadow: 0 0 24px rgba(184, 160, 136, 0.22),
                inset 0 0 10px rgba(184, 160, 136, 0.06);
}

.link-btn:active .link-btn__circle {
    background: rgba(184, 160, 136, 0.25);
    border-color: var(--color-gold-dark);
}

.link-btn__icon {
    width: 28px;
    height: 28px;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.link-btn:hover .link-btn__icon {
    color: var(--color-gold-dark);
}

.link-btn__label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--color-text-light);
    transition: color var(--transition-base);
}

.link-btn:hover .link-btn__label {
    color: var(--color-text);
}


/* ——————————————
   WELCOME SECTION (Seção 4)
—————————————— */
.section--welcome {
    background-color: var(--color-section-3);
    padding: var(--space-xxl) var(--space-md);
}

.welcome__ornament {
    color: var(--color-gold);
    opacity: 0.6;
    margin: var(--space-sm) 0;
}

.welcome__text {
    font-family: var(--font-serif-sc);
    font-size: clamp(1.2rem, 4.5vw, 1.7rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.7;
    color: var(--color-text);
    padding: var(--space-md) 0;
}

.welcome__closing {
    font-family: var(--font-serif-sc);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-top: var(--space-sm);
}

.welcome__signature {
    font-family: var(--font-serif-sc);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}


/* ——————————————
   FOOTER
—————————————— */
.footer {
    background-color: var(--color-section-3);
    text-align: center;
    padding: var(--space-sm) var(--space-sm) var(--space-lg);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    opacity: 0.5;
    border-top: 1px solid rgba(184, 160, 136, 0.1);
}


/* ——————————————
   FADE-IN ANIMATION
—————————————— */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ——————————————
   RESPONSIVE: Tablets (≥ 600px)
—————————————— */
@media (min-width: 600px) {
    .section {
        padding: calc(var(--space-xxl) * 1.3) var(--space-lg);
    }

    .section--date,
    .section--links,
    .section--venue {
        padding-bottom: calc(var(--space-xxl) * 1.3 + 40px);
    }

    .link-btn__circle {
        width: 90px;
        height: 90px;
    }

    .link-btn__icon {
        width: 32px;
        height: 32px;
    }

    .link-btn__label {
        font-size: 0.75rem;
    }

    .section-wave svg {
        height: 80px;
    }

    .venue__photo--main img {
        max-height: 340px;
    }

    .venue__photo--secondary img {
        max-height: 220px;
    }
}


/* ——————————————
   RESPONSIVE: Small phones (≤ 380px)
—————————————— */
@media (max-width: 380px) {
    .links__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .link-btn__circle {
        width: 68px;
        height: 68px;
    }

    .link-btn__icon {
        width: 24px;
        height: 24px;
    }

    .navbar__logo {
        font-size: 0.95rem;
    }

    .hero__title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }
}


/* ——————————————
   ACCESSIBILITY: Reduced Motion
—————————————— */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .link-btn,
    .link-btn__circle,
    .link-btn__icon,
    .link-btn__label {
        transition: none;
    }

    .navbar {
        transition: none;
    }
}
