/* ============================================
   8 DE MAIO — SITE DE CASAMENTO
   Paleta: #FFF7ED (fundo) | #B6000C (vermelho)
   Fontes: Cutive Mono (corpo) | SheerElegance (nomes)
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cutive+Mono&display=swap');

/* ---------- SheerElegance (local) ---------- */
@font-face {
    font-family: 'SheerElegance';
    src: url('./fonts/SheerElegance.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------- Custom Properties ---------- */
:root {
    --color-bg: #FFF7ED;
    --color-red: #B6000C;
    --color-text: #2C1810;
    --color-text-light: #5A3D31;
    --color-overlay: rgba(44, 24, 16, 0.45);
    --color-overlay-light: rgba(255, 247, 237, 0.12);

    --font-body: 'Cutive Mono', monospace;
    --font-couple: 'SheerElegance';

    --section-padding: 100px 0;
    --container-width: 1100px;
    --border-radius: 16px;

    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: #FFFFFF;
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-red);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

a:hover {
    opacity: 0.7;
}

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

/* ---------- Container ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   CAROUSEL SECTION (with picture frame)
   ============================================ */
.carousel-section {
    padding: 48px 24px 56px;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- The Frame ---------- */
.carousel-frame {
    position: relative;
    width: 100%;
    max-width: 860px;
    /* Multi-layered border for picture-frame depth */
    border: 6px solid #C4A882;
    outline: 3px solid #A8865E;
    outline-offset: -1px;
    box-shadow:
        /* inner shadow for recessed effect */
        inset 0 0 20px rgba(44, 24, 16, 0.18),
        inset 0 0 4px rgba(44, 24, 16, 0.10),
        /* outer glow / elevation */
        0 6px 32px rgba(44, 24, 16, 0.12),
        0 2px 8px rgba(44, 24, 16, 0.08),
        /* thin gold highlight strip */
        inset 0 0 0 2px rgba(212, 180, 140, 0.45);
    border-radius: 6px;
    background: #2C1810;
    overflow: hidden;
}

/* Decorative inner matting */
.carousel-frame::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1.5px solid rgba(212, 180, 140, 0.35);
    border-radius: 3px;
    z-index: 5;
    pointer-events: none;
}

/* ---------- Ornamental Corners ---------- */
.carousel-frame__corner {
    position: absolute;
    width: 32px;
    height: 32px;
    z-index: 6;
    pointer-events: none;
}

.carousel-frame__corner::before,
.carousel-frame__corner::after {
    content: '';
    position: absolute;
    background: #C4A882;
    border-radius: 1px;
}

/* Horizontal bar of the L-corner */
.carousel-frame__corner::before {
    width: 24px;
    height: 2px;
}

/* Vertical bar of the L-corner */
.carousel-frame__corner::after {
    width: 2px;
    height: 24px;
}

/* Position each corner */
.carousel-frame__corner--tl { top: 8px; left: 8px; }
.carousel-frame__corner--tl::before { top: 0; left: 0; }
.carousel-frame__corner--tl::after  { top: 0; left: 0; }

.carousel-frame__corner--tr { top: 8px; right: 8px; }
.carousel-frame__corner--tr::before { top: 0; right: 0; }
.carousel-frame__corner--tr::after  { top: 0; right: 0; }

.carousel-frame__corner--bl { bottom: 8px; left: 8px; }
.carousel-frame__corner--bl::before { bottom: 0; left: 0; }
.carousel-frame__corner--bl::after  { bottom: 0; left: 0; }

.carousel-frame__corner--br { bottom: 8px; right: 8px; }
.carousel-frame__corner--br::before { bottom: 0; right: 0; }
.carousel-frame__corner--br::after  { bottom: 0; right: 0; }

/* ---------- Inner Carousel ---------- */
.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
    user-select: none;
}

.carousel__track-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel__track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
}

.carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

/* Ajuste de corte para a foto 1 (IMG_0168) */
.carousel__slide:nth-child(1) img {
    object-position: center 30%;
}

/* Ajuste de corte para a foto 2 (IMG_8052) — evitar cortar o rosto */
.carousel__slide:nth-child(2) img {
    object-position: center 20%;
}

/* Botões prev/next */
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 247, 237, 0.85);
    backdrop-filter: blur(8px);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.carousel__btn:hover {
    background: #FFF7ED;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.carousel__btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }

/* Indicadores (dots) */
.carousel__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    border: none;
    background: rgba(255, 247, 237, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.carousel__dot.active {
    background: #FFF7ED;
    width: 24px;
}


/* ============================================
   INFO SECTION
   ============================================ */
.info {
    padding: var(--section-padding);
    background-color: #FFFFFF;
}

.info__collage-wrapper {
    position: relative;
    width: 90vw;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.info__collage-image {
    display: block;
    width: 100%;
    height: auto;
}

.info__collage-overlay {
    position: absolute;
    width: 30%;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.info__collage-overlay--left {
    bottom: 0;
    left: 0;
}

.info__collage-overlay--right {
    bottom: 0;
    right: 0;
    transform: scaleX(-1);
}

.info__couple-logo {
    display: block;
    width: 64vw;
    height: auto;
    margin: 0 auto;
    padding-bottom: 100px;
}

.section-title {
    font-family: var(--font-couple);
    font-size: clamp(2.5rem, 14vw, 4.5rem);
    font-weight: normal;
    line-height: 1;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.info__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.info__card--wide {
    grid-column: 1 / -1;
}

.info__card {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 28px 36px;
    text-align: center;
    box-shadow:
        0 1px 3px rgba(44, 24, 16, 0.04),
        0 8px 32px rgba(44, 24, 16, 0.06);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.info__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-red);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.info__card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 12px rgba(44, 24, 16, 0.06),
        0 16px 48px rgba(44, 24, 16, 0.10);
}

.info__card:hover::before {
    transform: scaleX(1);
}

.info__card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.info__card-title {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 12px;
    font-weight: bold;
}

.info__card-value {
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.6;
}

.info__card-value strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.info__map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 14px 36px;
    width: 420px;
    max-width: 100%;
    background: var(--color-red);
    color: var(--color-bg);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-base);
    text-decoration: none;
}

.info__map-btn:hover {
    background: #8E000A;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(182, 0, 12, 0.3);
}

.info__map-btn svg {
    width: 24px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   RSVP / GIFT LIST SECTION
   ============================================ */
.rsvp {
    padding: var(--section-padding);
    background: #FFFFFF;
}

.rsvp__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.rsvp__block {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 48px 36px;
    box-shadow:
        0 1px 3px rgba(44, 24, 16, 0.04),
        0 8px 32px rgba(44, 24, 16, 0.06);
}

.rsvp__block-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 8px;
}

.rsvp__block-desc {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Form Styles */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.form__input,
.form__select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #E8DDD4;
    border-radius: 99px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text);
    background: #FFFFFF;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    appearance: none;
    outline: none;
}

.form__input:focus,
.form__select:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(182, 0, 12, 0.08);
}

.form__input::placeholder {
    color: #B8A89E;
}

.form__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A3D31' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form__submit {
    width: 100%;
    padding: 16px;
    background: var(--color-red);
    color: var(--color-bg);
    border: none;
    border-radius: 99px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 8px;
}

.form__submit:hover {
    background: #8E000A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(182, 0, 12, 0.3);
}

.form__submit:active {
    transform: translateY(0);
}

.form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form__submit--whatsapp {
    background: #25D366;
}

.form__submit--whatsapp:hover {
    background: #20BA56;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* Gift List Block */
.gift {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gift__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.gift__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 14px 36px;
    border: 2px solid var(--color-red);
    color: var(--color-red);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all var(--transition-base);
    text-decoration: none;
}

.gift__link:hover {
    background: var(--color-red);
    color: var(--color-bg);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(182, 0, 12, 0.2);
}

/* RSVP Success Message */
.form__success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form__success.visible {
    display: block;
}

.form__success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.form__success-title {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form__success-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Wallet Buttons */
.wallet-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    align-items: center;
}

.wallet-btn {
    display: block;
    text-decoration: none;
    transition: all var(--transition-base);
}

.wallet-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.wallet-btn__img {
    width: 200px;
    height: auto;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 20px 0;
    text-align: center;
    background: var(--color-bg);
    color: var(--color-text);
}

.footer__logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 12px auto;
}

.footer__date {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-red);
    opacity: 0.8;
}

/* ============================================
   DIVIDER ORNAMENT
   ============================================ */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto;
    padding: 20px 0;
    max-width: 300px;
}

.divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4C4B8, transparent);
}

.divider__icon {
    color: var(--color-red);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 72px 0;
    }

    .carousel-section {
        padding: 32px 16px 40px;
    }

    .carousel-frame {
        border-width: 5px;
        outline-width: 2px;
    }

    .carousel__btn {
        width: 36px;
        height: 36px;
    }

    .carousel__btn svg {
        width: 16px;
        height: 16px;
    }

    .carousel__btn--prev { left: 8px; }
    .carousel__btn--next { right: 8px; }

    .info__couple-logo {
        width: 80vw;
    }

    .info__map-btn {
        width: 100%;
        white-space: normal;
        font-size: 0.95rem;
        padding: 12px 24px;
    }

    .info__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info__card {
        padding: 36px 28px;
    }

    .rsvp__wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rsvp__block {
        padding: 36px 28px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: clamp(3.6rem, 10vw, 3.5rem);
    }
}