/* ==========================================================================
Fonte Da Vida - Benefits Page Styles
Description: Specific styles for the Benefits page, including the
purification process timeline, data cards, and reports grid.
========================================================================== */

/* --------------------------------------------------------------------------
01. Page Header (Animated Hero Upgrade)
-------------------------------------------------------------------------- */
.page-header.animated-header {
    position: relative;
    overflow: hidden;
    padding: 200px 24px 140px;
    z-index: 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.ph-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -99;
    transform: scale(1.0);
    animation: slowPan 25s linear infinite alternate;
}

@keyframes slowPan {
    from { transform: scale(1.05) translate(0, 0); }
    to { transform: scale(1.15) translate(-1%, 1%); }
}

.ph-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -98;
}

.ph-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ph-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
}

.ph-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.ph-breadcrumb a:hover {
    color: #fff;
}

.ph-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.ph-title {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.ph-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 60%, #1E40AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Force white text and white logo when navbar is transparent at top, in BOTH modes */
.navbar:not(.scrolled) .logo-light { display: none !important; }
.navbar:not(.scrolled) .logo-dark { display: block !important; }
.navbar:not(.scrolled) .nav-links a,
.navbar:not(.scrolled) .btn-ghost,
.navbar:not(.scrolled) .theme-toggle,
.navbar:not(.scrolled) .lang-btn,
.navbar:not(.scrolled) .lang-btn .lang-text {
    color: #ffffff !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.navbar:not(.scrolled) .nav-links a { display: inline-block; }
.navbar:not(.scrolled) .lang-btn { background: transparent !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.navbar:not(.scrolled) .theme-toggle { background: transparent !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.navbar:not(.scrolled) .btn-ghost { background: transparent !important; }
.navbar:not(.scrolled) .nav-toggle span { background: #ffffff !important; }

.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .btn-ghost:hover,
.navbar:not(.scrolled) .theme-toggle:hover,
.navbar:not(.scrolled) .lang-btn:hover {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    background: transparent !important;
}
.navbar:not(.scrolled) .theme-toggle:hover,
.navbar:not(.scrolled) .lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Fallback for components reusing section-desc and breadcrumb outside header */
.breadcrumb {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace; 
    position: relative; 
    z-index: 1;
}

.breadcrumb a { 
    color: var(--text-muted); 
    transition: color 0.3s; 
}

.breadcrumb a:hover { 
    color: var(--text-primary); 
}

.breadcrumb .bc-sep { 
    opacity: 0.4; 
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
}
/* --------------------------------------------------------------------------
02. Purification Process Deep Dive
-------------------------------------------------------------------------- */
.process-container {
display: flex;
flex-direction: column;
gap: 100px;
}
.process-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
}
/* Proper alternating layout without buggy RTL hacks */
.process-row.reverse .process-text {
grid-column: 1;
grid-row: 1;
}
.process-row.reverse .process-image {
grid-column: 2;
grid-row: 1;
}
.process-image {
position: relative;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background: var(--surface-1);
border-radius: 24px;
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
overflow: hidden;
aspect-ratio: 4/3;
}
.light-mode .process-image {
box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}
.process-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.5s ease;
}
.process-image:hover img {
transform: scale(1.05);
}
.pi-badge {
position: absolute;
top: 24px;
left: 24px;
background: rgba(30, 30, 36, 0.6);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.1);
padding: 8px 16px;
border-radius: 100px;
font-size: 11.5px;
font-family: 'JetBrains Mono', monospace;
color: #fff;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
z-index: 2;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.light-mode .pi-badge {
background: rgba(255, 255, 255, 0.7);
border: 1px solid rgba(0, 0, 0, 0.05);
color: var(--accent);
}
/* Shift badge to the right for reversed rows to maintain visual balance */
.process-row.reverse .pi-badge {
left: auto;
right: 24px;
}
.process-text h3 {
font-size: 28px;
font-weight: 800;
color: var(--text-primary);
margin-bottom: 16px;
letter-spacing: -0.02em;
}
.process-text p {
font-size: 15.5px;
color: var(--text-secondary);
line-height: 1.7;
margin-bottom: 24px;
}
.benefit-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 12px;
}
.benefit-list li {
display: flex;
align-items: flex-start;
gap: 12px;
font-size: 14px;
color: var(--text-primary);
line-height: 1.5;
}
/* Explicit SVG sizing prevents massive icon scaling bugs in Safari/Chrome */
.benefit-list li svg {
width: 18px;
height: 18px;
color: var(--accent);
flex-shrink: 0;
margin-top: 2px;
}
/* --------------------------------------------------------------------------
03. Data / Stats Section
-------------------------------------------------------------------------- */
.stats-insight-section {
background: linear-gradient(180deg, var(--deep-space) 0%, var(--surface-1) 100%);
border-top: 1px solid var(--border-subtle);
}
.health-dashboard-wrapper {
    width: 100%;
    margin: 0 auto;
}

.health-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0,0,0,0.2);
}

.light-mode .health-dashboard {
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.05);
}

.dash-dial-card {
    background: var(--surface-2);
    perspective: 1000px;
    height: 480px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.dash-dial-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
}

.flip-card-back {
    background: var(--surface-2);
    transform: rotateY(180deg);
    justify-content: center;
    text-align: center;
}

.dash-dial-card.featured .flip-card-back {
    background: var(--surface-1);
}

.back-content h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.back-content p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.featured-back h4 {
    color: var(--accent);
}

.flip-prompt {
    margin-top: auto;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    animation: pulsePrompt 2s infinite;
}

@keyframes pulsePrompt {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

.dash-dial-card:hover {
    background: var(--surface-1);
}

.dash-dial-card.featured {
    background: var(--surface-1);
    z-index: 1;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.05);
}

.dial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--accent);
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.dial-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    text-align: center;
}

.dial-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.dial-badge {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    padding: 4px 12px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dial-badge.warning { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.dial-badge.success { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.dial-badge.neutral { background: rgba(138, 139, 158, 0.15); color: var(--text-secondary); }

.dial-container-wrap {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.dial-container {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dial-container.featured-dial {
    width: 180px;
    height: 180px;
}

.dial-container.semi-circle {
    height: 80px;
    align-items: flex-end;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: var(--border-subtle);
    stroke-width: 2.5;
}

.circle-fill {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: dialFill 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dialFill {
    0% { stroke-dasharray: 0, 100; }
}

.circular-chart.warning .circle-fill { stroke: var(--amber); }
.circular-chart.success .circle-fill { stroke: var(--green); filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.4)); }
.circular-chart.neutral .circle-fill { stroke: var(--text-secondary); }

.dial-value {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dial-value.bottom-val {
    bottom: 0;
}

.dv-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.05em;
}

.featured .dv-num {
    font-size: 40px;
    color: var(--text-primary);
}

.dv-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dial-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    max-width: 240px;
}

@media (max-width: 992px) {
    .health-dashboard {
        grid-template-columns: 1fr;
    }
    .dash-dial-card {
        border-bottom: 1px solid var(--border-subtle);
    }
}
/* --------------------------------------------------------------------------
04. Trust Hub (Reports Section)
-------------------------------------------------------------------------- */
.reports-section {
    border-top: 1px solid var(--border-subtle);
    overflow: hidden;
}

.trust-hub-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.trust-hub-text {
    max-width: 500px;
}

.trust-icon {
    width: 64px;
    height: 64px;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.trust-hub-text .section-title {
    margin-bottom: 24px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.trust-hub-text .section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.trust-hub-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.premium-report-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(30, 30, 36, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: levitate 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.light-mode .premium-report-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,1);
}

@keyframes levitate {
    0% { transform: translateY(0px) rotateX(2deg) rotateY(-2deg); }
    50% { transform: translateY(-15px) rotateX(0deg) rotateY(0deg); }
    100% { transform: translateY(0px) rotateX(2deg) rotateY(-2deg); }
}

.pr-card-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.pr-seal {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.3;
    animation: pulseRing 3s linear infinite;
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.pr-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.pr-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.pr-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.meta-tag {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    padding: 6px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-shine {
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
    font-size: 15px;
    border-radius: 16px;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: shineSweep 4s infinite;
}

@keyframes shineSweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}
/* --------------------------------------------------------------------------
05. Toast Notification for Downloads
-------------------------------------------------------------------------- */
.download-toast {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%) translateY(20px);
background: var(--surface-1);
border: 1px solid var(--border-subtle);
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
padding: 12px 20px;
border-radius: 100px;
display: flex;
align-items: center;
gap: 10px;
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
opacity: 0;
visibility: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 9999;
}
.light-mode .download-toast {
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.download-toast svg {
color: var(--accent);
}
.download-toast.show {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
/* --------------------------------------------------------------------------
06. Responsive Adjustments
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .data-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-hub-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .trust-hub-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
.data-card:last-child:nth-child(odd) {
grid-column: 1 / -1;
justify-self: center;
width: calc(50% - 12px);
}
}
@media (max-width: 768px) {
.process-container {
gap: 60px;
}

.process-row, .process-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Force Image on top, Text below on mobile regardless of desktop row order */
.process-row.reverse .process-image,
.process-row .process-image {
    grid-column: 1;
    grid-row: 1;
}

.process-row.reverse .process-text,
.process-row .process-text {
    grid-column: 1;
    grid-row: 2;
}

.process-image {
    padding: 40px 24px;
}

.pi-badge {
    top: 16px;
    left: 16px;
}

.process-row.reverse .pi-badge {
    left: 16px;
    right: auto;
}

.data-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}
}
@media (max-width: 480px) {
.process-text h3 {
font-size: 24px;
}
}