/* ============================================================
   TEMPLATE 1 (wedding-project) — port do Tailwind/daisyUI para CSS
   puro. Seções que só existiam no site-casamento (programação,
   hotéis, recados, traje) ganharam versão no estilo deste template.
   ============================================================ */
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body.t1 {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.t1 h1, .t1 h2, .t1 h3, .t1 p { margin: 0; }
:where(.t1) a { color: inherit; }
.t1-container { max-width: 72rem; margin: 0 auto; }
.t1-section { padding: 80px 16px; scroll-margin-top: 96px; }
@media (min-width: 640px) { .t1-section { padding: 80px 32px; } }
.t1-section.alt { background: color-mix(in srgb, var(--c-surface) 60%, transparent); }
.t1-head { text-align: center; }
.t1-head .ui-heading { font-size: clamp(2.25rem, 6vw, 3rem); margin-top: 12px; }
.t1-head .ui-lead { max-width: 28rem; margin: 12px auto 0; font-size: 0.9rem; }

/* ── Header ── */
.t1-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: all 0.3s; }
.t1-header.is-scrolled {
    background: color-mix(in srgb, var(--c-bg) 92%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--c-border) 70%, transparent);
    box-shadow: 0 1px 3px var(--primary-06);
    backdrop-filter: blur(8px);
}
.t1-header-inner { position: relative; max-width: 72rem; margin: 0 auto; height: 60px; display: flex; align-items: center; padding: 0 16px; }
@media (min-width: 640px) { .t1-header-inner { padding: 0 32px; } }
.t1-header .ui-icon-btn { margin-left: auto; color: var(--c-text); }
.t1-header.on-hero:not(.is-scrolled) .ui-icon-btn { color: var(--c-on-neutral); }
.t1-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 160px; height: 160px; pointer-events: none; }
.t1-logo::before { content: ''; position: absolute; width: 85px; height: 85px; top: 55px; left: 37px; border-radius: 50%; background: #fff; }
.t1-logo img { position: relative; width: 160px; height: 160px; object-fit: contain; padding-top: 40px; }
.t1-logo a { pointer-events: auto; }

.t1-menu { position: fixed; inset: 0; z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.t1-menu.is-open { opacity: 1; pointer-events: auto; }
.t1-menu-backdrop { position: absolute; inset: 0; background: var(--neutral-85); backdrop-filter: blur(4px); }
.t1-menu-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; }
.t1-menu .ui-icon-btn { position: absolute; top: 20px; right: 20px; color: var(--c-on-neutral); }
.t1-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.t1-menu a {
    font-family: var(--font-heading); font-size: clamp(1.8rem, 5vw, 2.25rem); color: var(--c-on-neutral);
    text-decoration: none; transition: color 0.2s; letter-spacing: 0.01em;
}
.t1-menu a:hover { color: var(--c-accent); }

/* ── Hero ── */
.t1-hero {
    position: relative; min-height: 100dvh; display: flex; align-items: flex-start; justify-content: center;
    padding: 26vh 24px 0; text-align: center; overflow: hidden; background: var(--c-neutral);
}
@media (min-width: 768px) { .t1-hero { align-items: center; padding-top: 0; } }
.t1-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t1-hero-img.desktop { display: none; }
@media (min-width: 768px) { .t1-hero-img.mobile { display: none; } .t1-hero-img.desktop { display: block; } }
.t1-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, var(--neutral-45), var(--neutral-55), var(--neutral-80)); }
.t1-hero-content { position: relative; z-index: 2; max-width: 36rem; color: var(--c-on-neutral); }
@media (min-width: 768px) { .t1-hero-content { margin-top: 64px; } }
.t1-hero-date { font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--on-neutral-70); margin-bottom: 12px !important; }
.t1-hero h1 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(3rem, 10vw, 3.75rem); line-height: 1.15; }
.t1-hero-tagline { max-width: 28rem; margin: 20px auto 0 !important; font-size: 1.05rem; color: color-mix(in srgb, var(--c-on-neutral) 90%, transparent); }
.t1-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 2; background: none; border: none; cursor: pointer; padding: 0; }
.t1-scroll span.track { display: flex; justify-content: center; width: 24px; height: 40px; border-radius: 999px; border: 1px solid var(--on-neutral-70); padding: 4px; }
.t1-scroll span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-on-neutral); animation: t1-scroll-dot 1.8s ease-in-out infinite; }
@keyframes t1-scroll-dot { 0% { transform: translateY(0); opacity: 0.9; } 80% { transform: translateY(12px); opacity: 0.15; } 100% { transform: translateY(0); opacity: 0.9; } }

/* ── Informações importantes ── */
.t1-rules-box {
    position: relative; overflow: hidden; border-radius: 2rem; padding: 40px 16px;
    border: 1px solid color-mix(in srgb, var(--c-border) 45%, transparent);
    background: color-mix(in srgb, var(--c-bg) 74%, transparent);
    box-shadow: 0 18px 48px var(--primary-06);
}
@media (min-width: 640px) { .t1-rules-box { padding: 48px 32px; } }
.t1-rules-glow {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--c-accent) 28%, transparent), transparent 30%),
                radial-gradient(circle at bottom right, color-mix(in srgb, var(--c-secondary) 12%, transparent), transparent 28%);
}
.flourish { position: absolute; width: 128px; color: color-mix(in srgb, var(--c-primary) 18%, transparent); pointer-events: none; }
@media (min-width: 640px) { .flourish { width: 160px; } }
.flourish.tl { left: -1.5rem; top: 16px; }
.flourish.tr { right: -1.5rem; top: 16px; }
.flourish.br { right: -1.5rem; bottom: 20px; color: color-mix(in srgb, var(--c-secondary) 16%, transparent); }
@media (min-width: 640px) { .flourish.tl { left: 8px; } .flourish.tr, .flourish.br { right: 8px; } }
.t1-divider { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; color: color-mix(in srgb, var(--c-primary) 42%, transparent); }
.t1-divider svg { width: 72px; }
@media (min-width: 640px) { .t1-divider svg { width: 96px; } }
.t1-divider span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-50); }
.t1-rules-grid { position: relative; margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 768px) { .t1-rules-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .t1-rules-grid { gap: 20px; } }
.t1-rule {
    position: relative; overflow: hidden; border-radius: 1.85rem; padding: 20px;
    border: 1px solid var(--border-55);
    background: linear-gradient(180deg, color-mix(in srgb, var(--c-surface) 88%, transparent), color-mix(in srgb, var(--c-bg) 78%, transparent));
    box-shadow: var(--shadow-soft); transition: transform 0.3s, box-shadow 0.3s, opacity 700ms ease;
}
@media (min-width: 640px) { .t1-rule { padding: 24px; } }
.t1-rule:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.t1-rule .flourish { width: 96px; color: color-mix(in srgb, var(--c-primary) 14%, transparent); }
.t1-rule .flourish.rt { right: -1.2rem; top: 12px; left: auto; }
.t1-rule .flourish.lb { left: -1.1rem; bottom: 12px; width: 80px; color: var(--secondary-12); }
.t1-rule-inner { position: relative; }
.t1-rule-top { display: flex; align-items: flex-start; gap: 16px; }
.t1-chip {
    display: inline-flex; border-radius: 999px; border: 1px solid var(--primary-12); background: color-mix(in srgb, #fff 60%, transparent);
    padding: 4px 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--primary-70);
}
.t1-rule h3 { margin-top: 20px; font-family: var(--font-heading); font-weight: 400; color: var(--c-secondary); font-size: 1.5rem; line-height: 1.25; }
.t1-rule.featured h3 { font-size: clamp(1.75rem, 3vw, 2rem); }
.t1-rule p { margin-top: 8px; color: color-mix(in srgb, var(--c-text) 76%, transparent); font-size: 0.875rem; line-height: 1.6; }
.t1-rule.featured p { font-size: 0.95rem; line-height: 1.75; }
.t1-rule-line { margin-top: 20px; height: 1px; background: linear-gradient(90deg, var(--primary-20), var(--secondary-12), transparent); }
.t1-rule-foot { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-40); }
.t1-rule-foot span { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary-40); }

/* ── Ensaio (grade animada) ── */
.pw-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .pw-grid { gap: 16px; } }
@media (min-width: 1024px) { .pw-grid { grid-template-columns: repeat(3, 1fr); } }
.pw-slot {
    --pre-wedding-transition: 2500ms;
    --pre-wedding-blur: 22px;
    position: relative; overflow: hidden; border-radius: 1.4rem; border: 1px solid var(--c-border);
    background: var(--c-neutral); padding: 0; cursor: zoom-in; aspect-ratio: 4 / 5;
    box-shadow: 0 1px 2px var(--primary-06);
}
.pw-slot:hover { filter: brightness(0.95); }
.pw-slot.wide { grid-column: span 2; aspect-ratio: 3 / 2; }
@media (min-width: 1024px) {
    .pw-slot.wide { grid-column: span 3; aspect-ratio: 21 / 9; }
    .pw-slot.lg-hidden { display: none; }
}
.pw-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: filter, opacity, transform; }
.pw-slot img.front { z-index: 1; }
.pw-slot img.is-visible { filter: blur(0); opacity: 1; transform: scale(1.06); transition: none; }
.pw-slot img.is-preload { opacity: 0; pointer-events: none; filter: blur(0); transform: scale(1.06); transition: none; animation: none; }
.pw-slot img.is-exiting {
    filter: blur(calc(var(--pre-wedding-blur) * 0.5)); opacity: 0; transform: scale(1.08);
    transition: filter var(--pre-wedding-transition) cubic-bezier(0.4, 0, 0.2, 1),
                opacity var(--pre-wedding-transition) cubic-bezier(0.4, 0, 0.2, 1),
                transform var(--pre-wedding-transition) cubic-bezier(0.4, 0, 0.2, 1);
}
.pw-slot img.is-underneath {
    filter: blur(var(--pre-wedding-blur)); opacity: 1; transform: scale(1.08); transition: none;
    animation: pre-wedding-sharpen var(--pre-wedding-transition) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes pre-wedding-sharpen {
    0% { filter: blur(var(--pre-wedding-blur)) brightness(0.94); transform: scale(1.08); }
    40% { filter: blur(calc(var(--pre-wedding-blur) * 0.55)) brightness(0.97); transform: scale(1.07); }
    70% { filter: blur(calc(var(--pre-wedding-blur) * 0.2)) brightness(0.99); transform: scale(1.065); }
    100% { filter: blur(0) brightness(1); transform: scale(1.06); }
}

/* ── Mensagem do casal ── */
.t1-about { max-width: 42rem; margin: 32px auto 0; text-align: center; color: var(--text-80); font-size: 1.02rem; line-height: 1.9; }
.t1-about p + p { margin-top: 14px; }

/* ── Programação e locais ── */
.t1-venues { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 768px) { .t1-venues { grid-template-columns: 1fr 1fr; } }
.t1-venue { overflow: hidden; border-radius: 1.6rem; border: 1px solid var(--c-border); background: var(--c-surface); box-shadow: 0 1px 2px var(--primary-06); }
.t1-venue-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-neutral); }
.t1-venue-img img { width: 100%; height: 100%; object-fit: cover; }
.t1-venue-body { padding: 22px 24px 24px; }
.t1-venue-body h3 { font-family: var(--font-heading); font-weight: 400; color: var(--c-secondary); font-size: 1.6rem; }
.t1-venue-meta { margin-top: 12px; display: grid; gap: 8px; font-size: 0.9rem; color: var(--text-80); }
.t1-venue-meta div { display: flex; gap: 10px; align-items: flex-start; }
.t1-venue-meta i { color: var(--c-primary); margin-top: 2px; }
.t1-venue .ui-btn-outline { margin-top: 18px; }
.t1-timeline { position: relative; max-width: 40rem; margin: 48px auto 0; }
.t1-timeline::before { content: ''; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--primary-30), var(--secondary-40)); }
.t1-tl-item { display: grid; grid-template-columns: 70px 32px 1fr; align-items: start; margin-bottom: 28px; }
.t1-tl-time { text-align: right; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--c-secondary); padding-top: 2px; }
.t1-tl-dot { justify-self: center; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--c-primary); box-shadow: 0 0 0 4px var(--c-bg), 0 0 0 6px var(--primary-20); position: relative; z-index: 1; }
.t1-tl-item h4 { margin: 0; font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem; color: var(--c-text); }
.t1-tl-item p { margin-top: 4px; font-size: 0.86rem; color: var(--text-70); line-height: 1.6; }

/* ── Traje ── */
.t1-dress { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 768px) { .t1-dress { grid-template-columns: 1fr 1fr; } }
.t1-dress-card { text-align: center; border-radius: 1.85rem; border: 1px solid var(--border-55); background: var(--c-surface); padding: 32px 24px; box-shadow: var(--shadow-soft); }
.t1-dress-card .icon-bubble { border-radius: 50%; font-size: 1.4rem; }
.t1-dress-card h3 { margin-top: 16px; font-family: var(--font-heading); font-weight: 400; color: var(--c-secondary); font-size: 1.6rem; }
.t1-dress-card > p { margin-top: 10px; font-size: 0.9rem; color: var(--text-80); line-height: 1.7; }
.t1-dress-label { display: block; margin: 20px 0 10px; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-55); }
.t1-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.t1-chips span { border: 1px solid var(--c-border); border-radius: 999px; padding: 4px 12px; font-size: 0.78rem; color: var(--text-80); }
.t1-swatches { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.t1-swatches span { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.18); }

/* ── RSVP ── */
.t1-rsvp { min-height: calc(100vh - 5rem); }
.t1-rsvp-inner { max-width: 36rem; margin: 0 auto; }
.t1-rsvp form.ui-card { margin-top: 32px; }
.t1-countdown { margin-top: 32px; text-align: center; }
.t1-countdown-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 640px) { .t1-countdown-grid { gap: 12px; } }
.t1-countdown-cell { border-radius: 1.2rem; border: 1px solid var(--c-border); background: var(--c-surface); padding: 12px 8px; box-shadow: 0 1px 2px var(--primary-06); }
@media (min-width: 640px) { .t1-countdown-cell { border-radius: 1.4rem; padding: 16px 12px; } }
.t1-countdown-cell strong { display: block; font-family: var(--font-heading); font-weight: 400; color: var(--c-secondary); font-size: clamp(1.5rem, 5vw, 2.25rem); line-height: 1.2; }
.t1-countdown-cell span { display: block; margin-top: 4px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-70); }
@media (min-width: 640px) { .t1-countdown-cell span { font-size: 0.75rem; letter-spacing: 0.22em; } }

/* ── CTA presentes / bingo ── */
.t1-cta { max-width: 36rem; margin: 0 auto; text-align: center; }
.t1-cta .ui-card-body { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.t1-cta h2 { font-family: var(--font-heading); font-weight: 400; color: var(--c-secondary); font-size: clamp(1.9rem, 5vw, 2.25rem); }
.t1-cta p { max-width: 24rem; font-size: 0.875rem; color: var(--text-80); }

/* ── Hotéis ── */
.t1-hotels { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.t1-hotel { border-radius: 1.6rem; border: 1px solid var(--c-border); background: var(--c-surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.t1-hotel h3 { font-family: var(--font-heading); font-weight: 400; color: var(--c-secondary); font-size: 1.4rem; }
.t1-hotel p { font-size: 0.86rem; color: var(--text-70); flex: 1; }

/* ── Recados ── */
.t1-wall { margin-top: 40px; columns: 3 260px; column-gap: 16px; }
.t1-note { break-inside: avoid; margin-bottom: 16px; border-radius: 1.4rem; border: 1px solid var(--c-border); background: var(--c-surface); padding: 22px; }
.t1-note p { font-family: var(--font-heading); font-style: italic; color: var(--text-80); line-height: 1.7; }
.t1-note span { display: block; margin-top: 12px; font-size: 0.78rem; font-weight: 700; color: var(--c-primary); letter-spacing: 0.04em; }

/* ── Rodapé ── */
.t1-footer { background: var(--c-neutral); color: var(--on-neutral-70); text-align: center; padding: 48px 16px 40px; }
.t1-footer strong { display: block; font-family: var(--font-heading); font-weight: 400; color: var(--c-on-neutral); font-size: 1.8rem; }
.t1-footer small { display: block; margin-top: 8px; letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.7rem; }
