@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Great+Vibes&family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    --navy: #3D5A80;
    --navy-dark: #2C4A6E;
    --navy-light: #6B8DB5;
    --navy-soft: #E8EEF4;
    --gold: #D4A94F;
    --gold-dark: #B8922E;
    --gold-soft: #F5ECD7;
    --bg: #F7F5F2;
    --bg-card: #FFFFFF;
    --text: #2C3E50;
    --text-light: #5D6D7E;
    --text-muted: #95A5A6;
    --border: #D5DDE5;
    --border-light: #E8EDF2;
    --success: #4A7C59;
    --success-light: #E8F5E9;
    --shadow: 0 2px 20px rgba(44, 74, 110, 0.06);
    --shadow-hover: 0 6px 30px rgba(44, 74, 110, 0.12);
    --radius: 12px;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 50, 80, 0.10) 0%,
        rgba(30, 50, 80, 0.08) 40%,
        rgba(30, 50, 80, 0.30) 65%,
        rgba(20, 35, 60, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1.5rem 3.5rem;
    width: 100%;
}

.monogram {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeDown 1s ease 0.2s forwards;
}

.couple-names {
    font-family: var(--font-script);
    font-size: clamp(2.8rem, 10vw, 4.5rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeDown 1s ease 0.4s forwards;
}

.event-type {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeDown 1s ease 0.5s forwards;
}

.hero-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeDown 1s ease 0.7s forwards;
}

.hero-details .date-line {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
}

.hero-details .address-line {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ═══════════════ COUNTDOWN ═══════════════ */
.countdown-section {
    background: var(--bg-card);
    padding: 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--navy-dark);
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ═══════════════ ACTIONS ═══════════════ */
.actions-section {
    padding: 2.5rem 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--navy-light);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon svg {
    width: 22px;
    height: 22px;
    color: var(--navy);
}

.action-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--navy-dark);
}

.action-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ═══════════════ RSVP ═══════════════ */
.rsvp-section {
    max-width: 550px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 400;
    text-align: center;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.rsvp-container {
    text-align: center;
}

/* ── Input / Button (same style as WP) ── */
.rsvp-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 16px;
    font-family: var(--font-sans);
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.rsvp-input::placeholder { color: var(--text-muted); }

.rsvp-input:focus {
    border-color: var(--navy-light);
    box-shadow: var(--shadow), 0 0 0 3px var(--navy-soft);
}

.rsvp-btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rsvp-btn-primary {
    margin: 16px auto 0;
    display: inline-block;
    padding: 12px 32px;
    background: var(--navy);
    color: #fff;
}

.rsvp-btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(61, 90, 128, 0.3);
}

.rsvp-btn-primary:disabled {
    background: #9BAEC0;
    color: #dfe6ed;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.rsvp-resultados {
    margin-top: 24px;
    text-align: left;
}

.rsvp-msg {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-align: center;
}

/* ── Name selection buttons ── */
.rsvp-select-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
    padding: 14px 16px;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.rsvp-select-btn:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: var(--navy-light);
}

/* ── Checkbox labels (family members) ── */
.rsvp-checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    border: 1px solid var(--border);
}

.rsvp-checkbox-label.selecionado {
    background: var(--navy-soft);
    border-color: var(--navy-light);
}

.rsvp-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--navy-light);
    border-radius: 5px;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    background: transparent;
    transition: background 0.2s;
}

.rsvp-checkbox:checked {
    background: var(--navy);
    border-color: var(--navy);
}

.rsvp-checkbox:checked::after {
    content: "\2713";
    position: absolute;
    top: -1px;
    left: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.rsvp-ja {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

.rsvp-phone-label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

/* ── Success ── */
.rsvp-sucesso {
    text-align: center;
    padding: 2rem 0;
    animation: sucessoEntra 0.5s ease;
}

.rsvp-sucesso-icone {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.rsvp-sucesso-icone svg {
    width: 30px;
    height: 30px;
    color: var(--navy);
}

.rsvp-sucesso-texto {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy-dark);
}

.rsvp-sucesso-sub {
    color: var(--gold);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ═══════════════ QUOTE ═══════════════ */
.quote-section {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: var(--navy);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.quote-ref {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    text-align: center;
    padding: 2rem 1.5rem 2.5rem;
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-couple {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sucessoEntra {
    0%   { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 520px) {
    .actions-grid { grid-template-columns: 1fr; }
    .countdown { gap: 1.5rem; }
    .countdown-number { font-size: 2rem; }
    .rsvp-section { padding: 2.5rem 1rem 3rem; }
    .action-card { padding: 1.5rem 1.25rem; }
}
