:root {
    --color-background-start: #667eea;
    --color-background-end: #764ba2;
    --color-card-bg: #ffffff;
    --color-text-primary: #1f2937;
    --color-text-secondary: #4b5563;
    --color-border: rgba(148, 163, 184, 0.2);
    --color-primary: #22c55e;
    --color-primary-dark: #16a34a;
    --color-primary-light: rgba(34, 197, 94, 0.16);
    --color-neutral: #f3f4f6;
    --radius-large: 24px;
    --shadow-card: 0 24px 45px rgba(15, 23, 42, 0.18);
    --shadow-hover: 0 32px 60px rgba(15, 23, 42, 0.22);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text-primary);
    background: linear-gradient(135deg, var(--color-background-start) 0%, var(--color-background-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    background: inherit;
}

.content-area {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.contact-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
    padding: 2.5rem 2rem;
    text-align: center;
    transform: translateY(10px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.card-subtitle {
    margin: 0 auto 2rem;
    max-width: 32ch;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.logo-container {
    margin: 0 auto 2rem;
    width: clamp(200px, 70%, 320px);
    position: relative;
    display: grid;
    place-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
}

.logo-container picture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    max-width: 100%;
}

.logo-image {
    width: auto;
    max-width: min(100%, 260px);
    height: auto;
    background: transparent;
    display: block;
}

.logo-container:hover .logo-image,
.logo-container:focus-within .logo-image {
    transform: none;
    box-shadow: none;
}

.logo-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--color-text-secondary);
    text-align: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo-placeholder i {
    font-size: 2rem;
    opacity: 0.35;
}

.logo-placeholder[hidden] {
    display: none !important;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
}

.whatsapp-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.45s ease;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus-visible {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(34, 197, 94, 0.35);
}

.whatsapp-btn:hover::before,
.whatsapp-btn:focus-visible::before {
    transform: translateX(100%);
}

.whatsapp-btn:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.6);
    outline-offset: 3px;
}

.phone-display {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--color-neutral);
    border-radius: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.phone-display:hover,
.phone-display:focus-visible {
    background: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.4);
    transform: translateY(-1px);
}

.phone-display:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 2px;
}

.phone-icon,
.copy-icon {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.phone-number {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.copy-hint {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.benefits-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.benefits-item i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.card-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.notification {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.9rem 1.15rem;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
    font-weight: 500;
    color: #ffffff;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 50;
}

.notification--success {
    background: var(--color-primary);
}

.notification--error {
    background: #ef4444;
}

.notification[data-visible="true"] {
    transform: translateX(0);
    opacity: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Animações compartilhadas */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-green {
    animation: pulse-green 2.2s infinite;
}

/* Estados de loading (mantidos para reuso futuro) */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Responsividade */
@media (max-width: 640px) {
    .content-area {
        padding: 1rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .notification {
        left: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1.8rem;
    }

    .logo-container {
        width: clamp(160px, 75%, 220px);
        padding: 0.35rem;
    }

    .phone-display {
        padding: 0.85rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --color-card-bg: #111827;
        --color-text-primary: #f8fafc;
        --color-text-secondary: #cbd5f5;
        --color-border: rgba(148, 163, 184, 0.35);
        --color-neutral: rgba(17, 24, 39, 0.8);
        --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.35);
        --shadow-hover: 0 30px 60px rgba(15, 23, 42, 0.45);
    }

    .card-footer {
        color: rgba(226, 232, 240, 0.75);
    }
}

/* Print styles */
@media print {
    body {
        background: #ffffff;
    }

    .page-wrapper {
        background: #ffffff;
    }

    .whatsapp-btn,
    .status-indicator,
    .pulse-green {
        display: none;
    }
}
