/* ============================================================
   PÁGINAS — Hero, seções, sobre, depoimentos, contato, footer
   ============================================================ */

section {
    padding: var(--section-padding-y) var(--section-padding-x);
    position: relative;
    isolation: isolate;
}

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 17px;
    color: #4A5568;
    max-width: 560px;
    line-height: 1.7;
}

.section-header { margin-bottom: 52px; }

.section-header.center { text-align: center; }

.section-header.center .section-sub { margin: 0 auto; }

/* ========== ANIMAÇÕES DE ENTRADA — Hero ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

#hero .hero-eyebrow {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.1s forwards;
}

#hero .hero-title {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.3s forwards;
}

#hero .hero-sub {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.5s forwards;
}

#hero .hero-actions {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.7s forwards;
}

#hero .hero-stats {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.9s forwards;
}

/* ========== HERO — fundo contido, sem parallax/fixed ========== */
#hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + var(--space-2xl)) var(--section-padding-x) var(--section-padding-y);
    isolation: isolate;
    overflow: hidden;

    /* Background CONTIDO no hero — não vaza para seções seguintes */
    background-color: var(--bg);
    background-image: url('../img/office-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;

    /* Grid 2 colunas: box de texto à esquerda, logo à direita */
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

/* Overlay de legibilidade sobre a foto */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(244,251,253,0.92) 0%,
        rgba(244,251,253,0.60) 50%,
        rgba(244,251,253,0.20) 100%
    );
    z-index: 0;
    pointer-events: none;
}

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

/* .hero-content-box herda a aparência de .glass-panel, com max-width específico */
.hero-content-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 24px 60px rgba(2, 62, 107, 0.10);
    border: 1px solid rgba(255,255,255,0.8);
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-700);
    background: var(--blue-100);
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--dark);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.rotating-wrapper {
    display: block;
    height: 1.15em;
    overflow: hidden;
}

.rotating-words {
    display: flex;
    flex-direction: column;
    animation: rotate-words 6s infinite;
}

.rotating-words span {
    display: block;
    height: 1.15em;
    line-height: 1.15;
    color: var(--brand);
    font-style: italic;
}

@keyframes rotate-words {
    0%,28%  { transform: translateY(0); }
    33%,61% { transform: translateY(-1.15em); }
    66%,94% { transform: translateY(-2.3em); }
    100%    { transform: translateY(0); }
}

.hero-sub {
    font-size: 18px;
    color: #4A5568;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid rgba(0, 18, 51, 0.12);
}

.hero-stat-num {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

.hero-stat-lbl { font-size: 13px; color: #6B7280; margin-top: 4px; }

/* Coluna direita: logo grande centralizado */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Círculo de fundo do logo — translúcido sobre a imagem */
.hero-visual-bg {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-hero {
    max-width: 78%;
    max-height: 78%;
    height: auto !important;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 28px rgba(0, 119, 182, 0.22));
    animation: logoFloat 6s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .logo-hero { animation: none; }
}

.hero-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(0,18,51,0.10);
}

.hero-badge-dot {
    width: 10px;
    height: 10px;
    background: #22C55E;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}

.hero-badge-text { font-size: 13px; font-weight: 600; color: var(--dark); }
.hero-badge-sub  { font-size: 11px; color: #6B7280; margin-top: 1px; }

/* ========== NICHOS STRIP — Carrossel Infinito ========== */

/* Container: esconde overflow e garante posição acima do parallax */
.nichos-strip {
    position: relative;
    isolation: isolate;
    z-index: 1;
    background-color: var(--blue-800) !important;
    background-image: none !important;
    padding: var(--space-sm) 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Track animado: largura determinada pelo conteúdo real */
.nichos-track {
    display: flex;
    align-items: center;
    width: max-content;
    /* 30s para um ciclo completo (ajuste para velocidade diferente) */
    animation: scrollNichos 30s linear infinite;
}

/* Pausa ao passar o mouse — UX extra */
.nichos-strip:hover .nichos-track {
    animation-play-state: paused;
}

/* Keyframe: move -50% = exatamente o comprimento do conjunto original.
   Como o conteúdo está duplicado, no final do -50% a cópia começa
   exatamente onde o original terminava → loop perfeito, sem salto. */
@keyframes scrollNichos {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Item individual */
.nicho-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    padding: 0 32px;
    border-right: 1px solid rgba(255,255,255,0.15);
    white-space: nowrap;
    transition: color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nicho-item:hover { color: var(--blue-400); }

/* Remove borda do último item de CADA grupo (7º e 14º) */
.nicho-item:nth-child(7),
.nicho-item:nth-child(14) {
    border-right: none;
}

.nicho-dot {
    width: 6px;
    height: 6px;
    background: var(--blue-400);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Seções com fundo sólido — garantir que nada vaze por baixo */
.nichos-strip,
#servicos,
#sobre,
#depoimentos,
#contato,
.section-linkedin {
    position: relative;
    isolation: isolate;
}

/* ========== SERVIÇOS ========== */
#servicos { background-color: var(--surface) !important; }

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== DIFERENCIAIS ========== */
#diferenciais {
    /* Fallback sólido sempre presente — nunca transparente */
    background-color: var(--blue-900) !important;
    background-image: linear-gradient(180deg,
        var(--blue-800) 0%,
        var(--blue-900) 18%,
        var(--blue-950) 100%) !important;
    color: var(--text-on-dark);
    position: relative;
    isolation: isolate;
    z-index: 1;
}

/* Transição suave no topo — funde com a seção anterior */
#diferenciais::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg,
        rgba(244, 251, 253, 0.08) 0%,
        transparent 100%);
    pointer-events: none;
}

#diferenciais .section-label { color: rgba(233, 244, 249, 0.40); }
#diferenciais .section-title,
#diferenciais h2,
#diferenciais h3 { color: var(--text-on-dark); }
#diferenciais .section-sub,
#diferenciais p  { color: rgba(233, 244, 249, 0.65); }

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

.diferencial-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 28px;
    transition: background 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.diferencial-item:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(72, 181, 220, 0.35);
}

.diferencial-num {
    font-family: 'Fraunces', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--blue-400);
    opacity: 0.85;
    line-height: 1;
    margin-bottom: 12px;
}

.diferencial-item h4 {
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.diferencial-item p {
    font-size: 14px;
    color: rgba(233, 244, 249, 0.70);
    line-height: 1.7;
}

/* ========== SOBRE ========== */
#sobre {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    background-color: var(--bg-alt) !important;
}

/* Coluna de fotos */
.sobre-fotos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: start;
}

/* Card de foto — proporção e tamanho idênticos para ambas */
.foto-socia-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #FFFFFF;
    aspect-ratio: 3/4;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

/* Alterna altura inicial para criar efeito de desnível elegante */
.foto-socia-card:first-child { margin-top: var(--space-lg); }

.foto-socia-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0,119,182,0.15);
}

.foto-socia {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.sobre-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-lt);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.sobre-text p {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 16px;
}

.socias-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.socia-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #F8F9FA;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.socia-item:hover { border-color: var(--brand); }

.socia-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--brand);
}

.socia-avatar img { width: 100%; height: 100%; object-fit: cover; }

.socia-nome  { font-size: 15px; font-weight: 600; color: var(--dark); }
.socia-cargo { font-size: 13px; color: #8A9BB0; margin-top: 2px; }

/* ========== DEPOIMENTOS ========== */
#depoimentos { background-color: var(--surface) !important; }

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== CONTATO ========== */
#contato {
    background-color: var(--blue-50) !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.contato-opcoes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.contato-opcao {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contato-opcao:hover {
    border-color: var(--brand);
    transform: translateX(4px);
}

.contato-opcao-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contato-opcao-label { font-size: 12px; color: #8A9BB0; }
.contato-opcao-val   { font-size: 15px; font-weight: 600; color: var(--dark); margin-top: 2px; }

.form-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 4px 32px rgba(0,18,51,0.08);
}

.form-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--brand);
    margin-top: 2px;
    cursor: pointer;
}

.form-check label {
    font-size: 13px;
    color: #4A5568;
    line-height: 1.5;
    cursor: pointer;
}

.form-check a { color: var(--brand); font-weight: 600; }

.btn-form {
    width: 100%;
    background: var(--brand);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-form:hover { background: var(--brand-hover); }

/* ========== SEÇÃO LINKEDIN ========== */
.section-linkedin {
    background-color: var(--bg-alt) !important;
    padding: 80px 5%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.linkedin-header {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 600px;
}

.linkedin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #0A66C2;
    color: #0A66C2;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.linkedin-cta-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 20px;
    padding: 48px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,18,51,0.07);
}

.linkedin-cta-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.linkedin-cta-content p {
    font-size: 15px;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 24px;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0A66C2;
    color: #FFFFFF;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-linkedin:hover {
    background: #0855A0;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.linkedin-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.linkedin-stat {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px 20px;
    border-left: 4px solid #0A66C2;
    box-shadow: 0 2px 8px rgba(0,18,51,0.06);
}

.linkedin-stat strong {
    display: block;
    font-size: 15px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 4px;
}

.linkedin-stat span {
    font-size: 13px;
    color: #6B7280;
}

/* ========== FOOTER ========== */
footer {
    /* Fallback sólido sempre presente — nunca transparente */
    background-color: var(--blue-950) !important;
    background-image: linear-gradient(180deg,
        var(--blue-900) 0%,
        var(--blue-950) 30%) !important;
    color: rgba(233, 244, 249, 0.70);
    padding: var(--space-xl) 5% var(--space-md);
    position: relative;
    isolation: isolate;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(233, 244, 249, 0.70);
    max-width: 260px;
    margin-top: 14px;
}

.logo-footer {
    height: 40px;
    width: auto;
    margin-bottom: 12px;
}

.footer-logo-name {
    color: #FFFFFF;
    letter-spacing: 2.5px;
    font-weight: 700;
    font-size: 17px;
}

.footer-logo-sub {
    color: rgba(255,255,255,0.35);
    font-size: 8.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}


.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(233, 244, 249, 0.70);
    transition: color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-col a:hover { color: var(--blue-400); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(233, 244, 249, 0.70);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a {
    color: rgba(233, 244, 249, 0.70);
    transition: color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-bottom a:hover { color: var(--blue-400); }
