/*
 * Me Indica Alguém? v2.4 — Pages CSS (Institucional)
 * Premium responsive — Mobile-first
 */

/* ═══ Page Hero ═══ */
.page-hero {
    padding: calc(var(--header-height) + 4rem) 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.05) 0%, rgba(15, 76, 129, 0.0) 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

html.dark .page-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.0) 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(15, 76, 129, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(15, 76, 129, 0.1);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
html.dark .page-hero-badge {
    background: rgba(15, 76, 129, 0.3);
    color: var(--primary-light);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.page-hero h1 span {
    color: var(--primary);
}

.page-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ═══ Shared Layout ═══ */
.page-section {
    padding: 5rem 1.5rem;
    position: relative;
}

.page-section.alt {
    background: rgba(248, 250, 252, 0.5);
}
html.dark .page-section.alt {
    background: rgba(15, 23, 42, 0.3);
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ═══ Grid & Cards ═══ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 76, 129, 0.1);
    border-color: rgba(15, 76, 129, 0.3);
}

html.dark .feature-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(15, 76, 129, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

html.dark .feature-icon {
    background: rgba(15, 76, 129, 0.2);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* ═══ Step Grid (Como Funciona) ═══ */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(15, 76, 129, 0.1);
    border-color: rgba(15, 76, 129, 0.3);
}

html.dark .step-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Watermark Number */
.step-number-watermark {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.03;
    line-height: 1;
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: var(--font-display);
}

html.dark .step-number-watermark {
    opacity: 0.05;
}

.step-card:hover .step-number-watermark {
    opacity: 0.08;
    transform: scale(1.1) rotate(-5deg);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), #0a365c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(15, 76, 129, 0.2);
    flex-shrink: 0;
}

html.dark .step-icon {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Layout Specifics */
@media (min-width: 992px) {
    .step-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 cards side by side */
        gap: 1.5rem;
    }
}

@media (max-width: 991px) and (min-width: 577px) {
    .step-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on tablets */
    }
}

@media (max-width: 576px) {
    .step-grid {
        margin-top: 2rem;
    }
    .step-card {
        padding: 2rem 1.5rem;
    }
}

/* ═══ Legal Typography (Termos / Privacidade) ═══ */
.legal-container {
    max-width: 800px;
    margin: -3rem auto 4rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

html.dark .legal-container {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.legal-content {
    color: var(--text-main);
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-color);
}

.legal-content p { margin-bottom: 1rem; font-size: 1rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1.5rem 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content strong { color: var(--text-color); }

.legal-update {
    background: rgba(15, 76, 129, 0.05);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
html.dark .legal-update { background: rgba(15, 76, 129, 0.1); }

@media (max-width: 768px) {
    .page-section { padding: 3rem 1rem; }
    .feature-card { padding: 1.5rem; }
    .legal-container { padding: 1.5rem; margin-top: -2rem; }
    .legal-content h2 { font-size: 1.25rem; }
}

/* ═══ About Us Specifics ═══ */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-highlight {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.05), transparent);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin-top: 2rem;
    position: relative;
}
html.dark .about-highlight { background: linear-gradient(135deg, rgba(15, 76, 129, 0.15), transparent); }

.about-highlight i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.8;
}

.about-highlight p {
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-main);
    margin: 0;
}

.about-stats {
    display: grid;
    gap: 1.25rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.stat-card:hover {
    transform: translateX(10px);
    border-color: rgba(15, 76, 129, 0.2);
    box-shadow: 0 10px 25px rgba(15, 76, 129, 0.08);
}

html.dark .stat-card:hover { 
    border-color: rgba(255,255,255,0.1); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
}

.stat-card-icon {
    font-size: 1.5rem;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 76, 129, 0.1);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
}
html.dark .stat-card-icon { background: rgba(15, 76, 129, 0.2); }

.stat-card-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .stat-card:hover { transform: translateY(-5px) translateX(0); }
    .about-text .section-title { font-size: 1.8rem; }
}
