/* ==========================================================================
   SÃO GONÇALO PISCINAS E SPAS - LIGHT & LUMINOUS LINK NA BIO
   Design System: Crystal Water White, Royal Navy & Champagne Gold
   ========================================================================== */

:root {
    /* Backgrounds Claros & Refrescantes */
    --bg-body: #F4F8FC;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFD;
    
    /* Tons Nobres de Ouro / Champagne */
    --gold-primary: #C5A880;
    --gold-light: #DFCAAB;
    --gold-dark: #9A7B56;
    --gold-gradient: linear-gradient(135deg, #DFCAAB 0%, #C5A880 50%, #9A7B56 100%);
    --gold-button: linear-gradient(135deg, #D4AF37 0%, #C5A880 100%);
    
    /* Azul Orbe & Água Cristalina */
    --blue-primary: #0284C7;
    --blue-navy: #0A1931;
    --blue-dark: #061224;
    --cyan-water: #0EA5E9;
    --cyan-soft: rgba(14, 165, 233, 0.08);
    
    /* Textos com Alto Contraste & Elegância */
    --text-title: #0A1931;
    --text-body: #334155;
    --text-muted: #64748B;
    
    /* Bordas & Sombras Claras */
    --border-card: rgba(2, 132, 199, 0.12);
    --border-gold: rgba(197, 168, 128, 0.45);
    --border-light: rgba(226, 232, 240, 0.9);
    
    --shadow-card: 0 8px 24px -4px rgba(10, 25, 49, 0.07), 0 2px 6px -1px rgba(10, 25, 49, 0.03);
    --shadow-card-hover: 0 16px 32px -6px rgba(2, 132, 199, 0.16), 0 4px 12px -2px rgba(10, 25, 49, 0.06);
    --shadow-gold: 0 10px 25px rgba(197, 168, 128, 0.35);
    
    /* Tipografia */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 40%, rgba(197, 168, 128, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 0% 80%, rgba(2, 132, 199, 0.1) 0%, transparent 45%),
        linear-gradient(180deg, #F8FAFC 0%, #EEF4FA 100%);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    padding-bottom: calc(36px + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
}

/* Radial Glow Blobs Suaves (Tons de Água e Sol) */
.bg-glow {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.glow-top {
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
}

.glow-middle {
    top: 45%;
    right: -100px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.22) 0%, transparent 70%);
    animation-delay: -4s;
}

.glow-bottom {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, transparent 70%);
    animation-delay: -7s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.45; }
    100% { transform: scale(1.15) translate(20px, -20px); opacity: 0.7; }
}

/* Container Principal */
.link-container {
    width: 100%;
    max-width: 480px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header / Perfil */
.profile-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 6px;
}

.brand-logo-top {
    height: 56px;
    width: auto;
    object-fit: contain;
    margin-bottom: 14px;
    filter: drop-shadow(0 4px 10px rgba(10, 25, 49, 0.08));
}

.orbe-partner-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-navy);
    border: 1px solid var(--border-gold);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.15);
    margin-bottom: 16px;
}

.orbe-partner-pill i {
    color: var(--gold-dark);
}

.profile-avatar-wrapper {
    position: relative;
    width: 102px;
    height: 102px;
    margin-bottom: 16px;
}

.profile-avatar-wrapper::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--gold-gradient);
    z-index: 1;
    box-shadow: 0 6px 18px rgba(197, 168, 128, 0.4);
    animation: rotateBorder 10s linear infinite;
}

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

.profile-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    object-fit: cover;
    object-position: center 30%;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(10, 25, 49, 0.1);
}

.profile-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
    color: var(--blue-navy);
    letter-spacing: -0.5px;
}

.profile-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 92%;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.5;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 16px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-body);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Shimmer Efeito de Brilho Sutil */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 2;
    animation: buttonShine 6s infinite ease-in-out;
    pointer-events: none;
}

@keyframes buttonShine {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(2, 132, 199, 0.4);
    background-color: var(--bg-card-hover);
    box-shadow: var(--shadow-card-hover);
}

/* Destaque do Simulador de Piscina (Card Especial) */
.link-card.card-quiz-highlight {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
    border: 1.5px solid #10B981;
    box-shadow: 0 10px 26px -4px rgba(16, 185, 129, 0.2);
    animation: cardGlowPulse 3s infinite alternate ease-in-out;
}

.link-card.card-quiz-highlight .card-icon-box {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    border-color: transparent;
}

@keyframes cardGlowPulse {
    0% { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15); border-color: #10B981; }
    50% { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35); border-color: #34D399; }
    100% { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15); border-color: #10B981; }
}

/* Ícones dos Cards */
.card-icon-box {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: #F0F7FF;
    border: 1px solid rgba(2, 132, 199, 0.15);
    color: var(--blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.link-card:hover .card-icon-box {
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-navy) 100%);
    color: #FFFFFF;
    border-color: transparent;
    transform: scale(1.06);
}

.card-content {
    flex-grow: 1;
    min-width: 0;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--blue-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.card-arrow {
    color: var(--blue-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.link-card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--blue-navy);
}

/* Seção de Autoridade / Métricas */
.results-section {
    margin-top: 6px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: 1px;
    color: var(--blue-navy);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 6px auto 0;
    border-radius: 3px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.result-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 16px 12px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.result-number {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--blue-primary);
    margin-bottom: 2px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 1.3;
}

/* Caixa de CTA Final */
.cta-box {
    background: linear-gradient(145deg, #0A1931 0%, #061224 100%);
    border: 1px solid rgba(197, 168, 128, 0.35);
    box-shadow: 0 16px 36px -6px rgba(10, 25, 49, 0.25);
    padding: 26px 22px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.cta-desc {
    font-size: 0.85rem;
    color: #CBD5E1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    background: var(--gold-gradient);
    color: #061224;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    box-shadow: 0 8px 24px rgba(197, 168, 128, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(197, 168, 128, 0.6);
}

.btn-cta-secondary {
    display: inline-block;
    margin-top: 15px;
    color: #DFCAAB;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 10px;
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
}
