/**
 * Componentes Reutilizáveis - Executive-Grade
 * Acabamento institucional, silenciosamente sofisticado
 */

/* ===== EXECUTIVE OVERRIDE (garantir dark real) ===== */
:root {
  --bg-dark: #0F1316;
  --surface-dark: #151A1E;
  --text-on-dark: #F4F6F3;
  --muted-on-dark: #B6BEB6;
  --border-dark: rgba(244, 246, 243, 0.10);
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max);
    padding-inline: var(--gutter);
    margin-inline: auto;
}

@media (max-width: 768px) {
    .container {
        padding-inline: var(--gutter);
    }
}

/* ===== BASE GLOBAL (POLIMENTO) ===== */
body {
    background: var(--bg-light);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: var(--fw-h1);
    line-height: var(--lh-head);
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-h1);
}

h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-h2);
}

h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-h3);
}

p {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text);
    max-width: 72ch;
}

/* ===== SEÇÕES ===== */
.section {
    padding-block: var(--section-py);
    position: relative;
}

.section--light {
    background: var(--bg-light) !important;
    color: var(--text);
}

.section--dark {
    background: var(--bg-dark) !important;
    color: var(--text-on-dark);
}

.section--dark p,
.section--dark .muted {
    color: var(--muted-on-dark);
}

/* ===== SEÇÃO PLATAFORMA (PAINEL EXECUTIVO) ===== */
.section-platform {
    background: var(--bg-dark);
}

/* 1) Dar mais presença ao conteúdo dentro do dark */
.section-platform .container,
.section-platform .platform-box,
.section-platform .card {
    max-width: 900px !important;
    width: 100% !important;
}

/* 2) Refinar o painel central */
.section-platform .card,
.section-platform .platform-card,
.section-platform .platform-box {
    padding: 44px 48px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(244, 246, 243, 0.12) !important;
    background: rgba(21, 26, 30, 0.96) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
}

@media (max-width: 768px) {
    .section-platform .card,
    .section-platform .platform-card,
    .section-platform .platform-box {
        padding: 32px 22px !important;
    }
}

/* 3) Melhorar hierarquia de texto */
.section-platform h2 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    margin-bottom: 12px;
    color: var(--text-on-dark);
}

.section-platform p {
    max-width: 60ch;
    color: var(--muted-on-dark);
}

/* ===== HERO (PROFUNDIDADE EXECUTIVA) ===== */
.hero {
    width: 100%;
    margin: 0;
    border-radius: 0;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(900px 520px at 12% 20%, rgba(27, 94, 42, 0.22), transparent 62%),
        radial-gradient(720px 420px at 88% 18%, rgba(39, 174, 96, 0.12), transparent 58%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    padding-block: clamp(140px, 16vw, 200px);
    position: relative;
    color: var(--text-on-dark);
    overflow: hidden;
}

.hero .container {
    max-width: 1200px;
    margin-inline: auto;
}

.hero h1,
.hero-title {
    color: var(--text-on-dark);
    font-size: clamp(2.4rem, 3.5vw, 3.6rem);
    font-weight: 650;
    line-height: var(--lh-head);
    letter-spacing: -0.5px;
}

.hero h2 {
    color: var(--text-on-dark);
    font-size: var(--fs-h2);
    font-weight: var(--fw-h2);
    line-height: var(--lh-head);
    letter-spacing: -0.01em;
}

.hero p,
.hero-copy p {
    color: var(--muted-on-dark);
    font-size: 1.1rem;
    max-width: 540px;
}

.hero .btn-primary {
    margin-top: 24px;
}

.hero-proof {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--stack-2);
}

.hero-proof li {
    color: var(--muted-on-dark);
    font-size: var(--fs-micro);
    display: flex;
    align-items: center;
    gap: var(--stack-1);
}

.hero-proof li::before {
    content: '•';
    color: var(--green-action);
    font-weight: 600;
}

/* ===== BOTÕES (PRESENÇA + SOBRIEDADE) ===== */
.btn-primary {
    background: var(--green-action);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 14px 22px;
    font-weight: 650;
    font-size: var(--fs-body);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    display: inline-block;
    transition: filter 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.btn-primary:hover {
    filter: brightness(0.95);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:focus-visible {
    box-shadow: var(--focus);
    outline: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 14px 22px;
    font-weight: 500;
    font-size: var(--fs-body);
    border: 1px solid var(--border-light);
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
    cursor: pointer;
}

.section--dark .btn-secondary {
    color: var(--text-on-dark);
    border-color: var(--border-dark);
}

.btn-secondary:hover {
    background: rgba(14, 17, 18, 0.04);
}

.section--dark .btn-secondary:hover {
    background: rgba(244, 246, 243, 0.04);
}

.btn-secondary:focus-visible {
    box-shadow: var(--focus);
    outline: none;
}

/* ===== CARDS (EXECUTIVE-GRADE) ===== */
.card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--surface-light);
    box-shadow: var(--shadow-light);
    padding: var(--stack-4);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.section--light .card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
}

.section--dark .card {
    border-color: var(--border-dark);
    background: var(--surface-dark);
    box-shadow: var(--shadow-dark);
}

.card:hover {
    box-shadow: 0 12px 30px rgba(14, 17, 18, 0.08);
    transform: translateY(-2px);
}

.section--dark .card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.50);
}

/* ===== LINKS (CONSISTÊNCIA PREMIUM) ===== */
a {
    color: var(--green-base);
    text-decoration: none;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--green-action);
}

a:focus-visible {
    box-shadow: var(--focus);
    border-radius: 6px;
    outline: none;
}

/* ===== HEADER ===== */
.site-header {
    position: relative;
    z-index: 80;
    background: transparent;
    padding-top: var(--stack-3);
}

.site-header .header-container,
.site-header .header-shell {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--stack-3);
}

.site-header .logo {
    font-size: var(--fs-h3);
    font-weight: var(--fw-h2);
    color: var(--text-on-dark);
    text-decoration: none;
}

.site-header .main-navigation ul,
.site-header .nav-menu {
    display: flex;
    gap: var(--stack-3);
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .main-navigation a,
.site-header .nav-menu a {
    color: var(--text-on-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--fs-small);
    padding: var(--stack-1) 0;
    transition: color 0.2s ease;
}

.site-header .main-navigation a:hover,
.site-header .nav-menu a:hover {
    color: var(--text-on-dark);
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding-block: var(--section-py);
    text-align: center;
}

.footer-content {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--stack-4);
}

.footer-section h3 {
    color: var(--green-action);
    margin-bottom: var(--stack-2);
    font-size: var(--fs-h3);
}

.footer-section a {
    color: var(--muted-on-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--green-action);
    text-decoration: underline;
}

/* ===== GRIDS ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--stack-4);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--stack-4);
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: var(--stack-3);
    }
}

/* ===== TÍTULOS DE SEÇÃO ===== */
.section-title {
    text-align: center;
    font-size: var(--fs-h2);
    font-weight: var(--fw-h2);
    color: var(--text);
    margin-bottom: var(--stack-4);
    line-height: var(--lh-head);
    letter-spacing: -0.01em;
}

.section--dark .section-title {
    color: var(--text-on-dark);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .section {
        padding-block: clamp(48px, 6vw, 64px);
    }
    
    .hero {
        padding-block: clamp(48px, 6vw, 64px);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}

/* ===== FUNDO GLOBAL NEUTRO (EXECUTIVE-GRADE) ===== */
html, body {
    background: var(--bg-light) !important;
    color: var(--text);
}

/* Neutralizar wrappers que costumam carregar o verde */
.site,
.site-wrapper,
.page,
.page-wrapper,
.main,
.main-content,
#page,
#content,
#primary,
#main,
.app-shell,
.layout,
.wrapper,
.page-shell {
    background: transparent !important;
}

body > * {
    position: relative;
    z-index: 1;
}

/* ===== FORÇAR HERO EXECUTIVO PROFUNDO ===== */
.hero {
    background: #0E1712 !important;
}

.hero h1,
.hero h2 {
    color: #F4F6F3 !important;
}

.hero p,
.hero li {
    color: rgba(244, 246, 243, 0.75) !important;
}

/* ===== HERO FORCE (se algo ainda estiver anulando) ===== */
.hero.section--dark {
    background-color: var(--bg-dark) !important;
    background-image:
        radial-gradient(900px 520px at 12% 20%, rgba(27, 94, 42, 0.22), transparent 62%),
        radial-gradient(720px 420px at 88% 18%, rgba(39, 174, 96, 0.12), transparent 58%) !important;
}

.hero.section--dark h1,
.hero.section--dark h2,
.hero.section--dark .hero-title {
    color: var(--text-on-dark) !important;
}

.hero.section--dark p,
.hero.section--dark li {
    color: var(--muted-on-dark) !important;
}
