/* ==========================================================================
   Casa & Aconchego - Achadinhos VIP Landing Page
   Aesthetic: Clean Cream, Dark Brown C&A Logo Colors & WhatsApp CTA Button
   ========================================================================== */

:root {
    --bg-body: #FAF6EE;
    --bg-card: #FFFFFF;
    --dark-brown: #382314;
    --olive-logo: #55633D;
    --beige-ring: #D5CBBA;
    --cream-light: #F4EFE6;
    --cream-badge: #F0EADF;
    --text-primary: #2C1B0F;
    --text-secondary: #5C4C3E;
    --text-muted: #8C7B6D;
    
    /* WhatsApp Official Colors ONLY for CTA Button & Notification Toast */
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --whatsapp-hover: #1EBE5B;
    --whatsapp-shadow: rgba(37, 211, 102, 0.35);

    --card-shadow: 0 15px 45px rgba(56, 35, 20, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px 16px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* URGENCY TOP BAR (MARROM ESCURO DA LOGO) */
.urgency-top-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark-brown);
    color: var(--cream-light);
    padding: 11px 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(56, 35, 20, 0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.urgency-top-fixed i {
    color: var(--beige-ring);
    font-size: 13px;
}

.urgency-top-fixed.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* MAIN CONTAINER */
.container {
    max-width: 450px;
    width: 100%;
    background: var(--bg-card);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    text-align: center;
    padding: 40px 24px 32px;
    position: relative;
    margin-top: 40px;
    margin-bottom: 20px;
    border: 1px solid var(--beige-ring);
    z-index: 1;
}

/* LOGO SECTION */
.logo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 22px;
    border-radius: 50%;
    padding: 2px;
    background: var(--bg-card);
    border: 2px solid var(--beige-ring);
    box-shadow: 0 8px 20px rgba(56, 35, 20, 0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.logo-container:hover {
    opacity: 0.95;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cream-badge);
    color: var(--dark-brown);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    border: 1px solid var(--beige-ring);
}

.badge i {
    font-size: 13px;
    color: var(--whatsapp-green);
}

/* HEADINGS */
h1 {
    font-family: 'Lora', serif;
    color: var(--dark-brown);
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 600;
}

.highlight {
    color: var(--olive-logo);
    font-weight: 700;
}

.subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 26px;
    font-weight: 400;
    padding: 0 8px;
    line-height: 1.55;
}

/* CTA BUTTON (WHATSAPP VERDE) */
.cta-box {
    margin: 24px 0 20px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, #1EBE5B 100%);
    color: #FFFFFF;
    padding: 18px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 30px var(--whatsapp-shadow);
    transition: var(--transition);
    border: none;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(135deg, #1EBE5B 0%, var(--whatsapp-dark) 100%);
    box-shadow: 0 16px 35px rgba(37, 211, 102, 0.45);
}

/* Shine Animation */
.cta-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(30deg);
    animation: shine 3.5s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    25% { transform: translateX(100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.cta-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-sub span {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* SPOTS COUNTER BOX */
.spots-box {
    background: var(--cream-badge);
    border: 1px solid var(--beige-ring);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.spots-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--olive-logo);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.spots-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--olive-logo);
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

.spots-count {
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-brown);
}

.spots-text {
    font-size: 13px;
    color: var(--dark-brown);
    font-weight: 700;
}

/* BENEFITS SECTION */
.benefits-section {
    text-align: left;
    margin-bottom: 28px;
}

.benefits-title {
    font-family: 'Lora', serif;
    font-size: 20px;
    color: var(--dark-brown);
    margin-bottom: 18px;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.benefits-title::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: var(--beige-ring);
    margin: 8px auto 0;
    border-radius: 3px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    background: var(--bg-body);
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--beige-ring);
    transition: var(--transition);
}

.benefit-item:hover {
    box-shadow: 0 8px 20px rgba(56, 35, 20, 0.05);
    border-color: var(--dark-brown);
}

.benefit-icon {
    font-size: 18px;
    color: var(--olive-logo);
    background: var(--cream-badge);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-text h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--dark-brown);
}

.benefit-text p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* REVIEWS / DEPOIMENTOS */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
}

.review-box {
    background: var(--bg-body);
    border-left: 4px solid var(--beige-ring);
    padding: 16px 18px;
    border-radius: 12px;
    text-align: left;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Lora', serif;
    font-style: italic;
    line-height: 1.55;
}

.review-author {
    margin-top: 10px;
    font-weight: 700;
    color: var(--dark-brown);
    font-style: normal;
    font-size: 12px;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-author i {
    color: #D4A373;
    font-size: 11px;
}

/* FOOTER */
.footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--beige-ring);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--dark-brown);
}

/* CREDITO EXCLUSIVO CLUBE DO TEMPLATE */
.credit-badge {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.credit-badge a {
    color: var(--dark-brown);
    text-decoration: underline;
    font-weight: 700;
    transition: var(--transition);
}

.credit-badge a:hover {
    color: var(--olive-logo);
}

/* LOADING SCREEN OVERLAY */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 246, 238, 0.96);
    backdrop-filter: blur(6px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--cream-badge);
    border-top: 4px solid var(--whatsapp-green);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay h3 {
    color: var(--dark-brown);
    font-family: 'Lora', serif;
    font-size: 22px;
    margin-bottom: 6px;
}

.loading-overlay p {
    font-size: 14px;
    color: var(--text-secondary);
}

.countdown-box {
    margin-top: 15px;
    font-weight: 800;
    color: var(--whatsapp-green);
    font-size: 26px;
    background: #EAFCEF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--whatsapp-green);
}

/* LIVE NOTIFICATION TOAST ("TAL PESSOA ENTROU NO GRUPO") */
#notificationArea {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 1500;
    pointer-events: none;
}

.notification-toast {
    background: var(--bg-card);
    color: var(--dark-brown);
    padding: 12px 18px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(56, 35, 20, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    border-left: 4px solid var(--whatsapp-green);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-left-width: 5px;
    animation: slideUpToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: auto;
}

.notification-avatar {
    width: 38px;
    height: 38px;
    background: #EAFCEF;
    color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content {
    flex-grow: 1;
    text-align: left;
    line-height: 1.35;
}

.notification-content strong {
    color: var(--dark-brown);
    font-weight: 700;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

@keyframes slideUpToast {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
