/* ===================================
   SEMENTES DA SEMANA - Landing Page
   O Poder das Palavras
   =================================== */

/* CSS Variables */
:root {
    /* Color Palette - Warm & Spiritual */
    --gold-primary: #D4A574;
    --gold-light: #E8C9A8;
    --gold-dark: #B8956A;
    --gold-accent: #F0D9B5;
    
    --bg-dark: #1a1612;
    --bg-darker: #0f0d0a;
    --bg-card: rgba(26, 22, 18, 0.95);
    --bg-overlay: rgba(15, 13, 10, 0.85);
    
    --text-primary: #FAF6F1;
    --text-secondary: #C9C2B8;
    --text-muted: #8A8279;
    
    --success: #4CAF50;
    --error: #E57373;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

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

/* Background with Image */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    pointer-events: none;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('bg-familia.png') center center / cover no-repeat fixed;
    filter: blur(2px);
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(15, 25, 35, 0.92) 0%, rgba(20, 15, 10, 0.88) 50%, rgba(10, 20, 30, 0.9) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.4) 100%);
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: var(--spacing-md) 0;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--spacing-xl) 0;
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.05));
    border: 1px solid rgba(212, 165, 116, 0.3);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.title-highlight {
    color: var(--gold-primary);
    font-style: italic;
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.7;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(212, 165, 116, 0.05);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.feature:hover {
    color: var(--gold-light);
    background: rgba(212, 165, 116, 0.1);
}

.feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gold-primary);
}

/* Form Section */
.form-section {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.form-container {
    background: linear-gradient(
        145deg,
        rgba(30, 25, 20, 0.98),
        rgba(20, 17, 14, 0.98)
    );
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(212, 165, 116, 0.05);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.form-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: var(--spacing-xs);
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Elements */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding-left: 4px;
}

.form-group input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(250, 246, 241, 0.05);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

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

.form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(250, 246, 241, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group input.error {
    border-color: var(--error);
}

.form-group input.valid {
    border-color: var(--success);
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-sm);
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--gold-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.phone-input-wrapper input {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Error Message */
.error-message {
    font-size: 0.8rem;
    color: var(--error);
    min-height: 1.2em;
    padding-left: 4px;
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-top: var(--spacing-sm);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bg-darker);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-loader {
    width: 24px;
    height: 24px;
}

.spinner {
    width: 100%;
    height: 100%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Disclaimer */
.form-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--spacing-xs);
}

.lock-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Benefits Section */
.benefits {
    padding: var(--spacing-xl) 0;
    animation: fadeIn 1s ease-out 0.6s both;
}

.benefits h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold-light);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(212, 165, 116, 0.03);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.benefits-list li:hover {
    background: rgba(212, 165, 116, 0.08);
    transform: translateX(5px);
}

.benefit-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gold-primary);
    margin-top: 2px;
}

.benefits-list li span:last-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Quote Section */
.quote-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    animation: fadeIn 1s ease-out 0.8s both;
}

.quote-section blockquote {
    position: relative;
    padding: var(--spacing-lg);
}

.quote-section blockquote::before,
.quote-section blockquote::after {
    content: '"';
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--gold-primary);
    opacity: 0.3;
    position: absolute;
    line-height: 1;
}

.quote-section blockquote::before {
    top: 0;
    left: 0;
}

.quote-section blockquote::after {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.quote-section p {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto var(--spacing-sm);
}

.quote-section cite {
    font-size: 0.95rem;
    color: var(--gold-primary);
    font-style: normal;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 1px solid rgba(212, 165, 116, 0.1);
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-tagline {
    margin-top: var(--spacing-xs);
    color: var(--gold-primary) !important;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-tagline svg {
    width: 16px;
    height: 16px;
}

/* Hero Badge SVG */
.hero-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(
        145deg,
        rgba(30, 25, 20, 0.98),
        rgba(20, 17, 14, 0.98)
    );
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: scaleIn 0.4s ease-out;
}

.modal-icon {
    margin-bottom: var(--spacing-md);
    animation: bounce 0.6s ease-out;
    color: var(--success);
}

.modal-icon svg {
    width: 64px;
    height: 64px;
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: var(--spacing-sm);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted) !important;
}

.modal-countdown {
    margin: var(--spacing-md) 0;
}

.modal-countdown span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(212, 165, 116, 0.1);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: #25D366;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .form-container {
        padding: var(--spacing-lg);
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        width: 100%;
        justify-content: center;
    }
    
    .quote-section blockquote::before,
    .quote-section blockquote::after {
        font-size: 2.5rem;
    }
    
    .modal-content {
        padding: var(--spacing-lg);
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--gold-primary);
    color: var(--bg-darker);
}

