/* ==========================================================================
   KAKÁ GOMES — CONSULTORIA E LIDERANÇA PARA RESTAURANTES
   Brandbook Oficial: Preto Carvão (#171B1A), Oliva Militar (#4D5541),
   Oliva Médio (#73775B), Areia (#EBE0D2), Terracota (#C95A24) & Âmbar (#B78345)
   Tipografia: Oswald (Títulos & Destaques) + Montserrat (Corpo & UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Oswald:wght@400;500;600;700&display=swap');

:root {
    /* Paleta Principal Brandbook: Preto Carvão (#171B1A) e Superfícies */
    --bg-dark-hero: #171B1A;
    --bg-dark-surface: #1E2321;
    --bg-light-section: #F5EFE6;
    --bg-card-dark: #262D2A;
    --bg-card-white: #ffffff;

    /* Tokens Brandbook Oficiais */
    --brand-olive-dark: #4D5541;
    --brand-olive-mid: #73775B;
    --brand-sand: #EBE0D2;
    --brand-sand-light: #FBF8F4;
    --brand-terracotta: #C95A24;
    --brand-terracotta-hover: #DE6B34;
    --brand-amber: #B78345;

    /* Acento de Conversão (Terracota Brandbook) */
    --brand-gold: #C95A24;
    --brand-gold-hover: #DE6B34;
    --brand-gold-light: rgba(201, 90, 36, 0.12);
    --brand-gold-text: #C95A24;
    --brand-gold-glow: rgba(201, 90, 36, 0.35);

    /* Cores Corporativas */
    --brand-dark: #171B1A;
    --brand-dark-hover: #262D2A;

    --text-pure-white: #ffffff;
    --text-headline-dark: #171B1A;
    --text-body-dark: #353B34;
    --text-body-light: #EBE0D2;
    --text-muted-dark: #73775B;
    --text-muted-light: #A8ABA0;

    --border-card: 1px solid #D8D2C5;
    --border-card-dark: 1px solid rgba(115, 119, 91, 0.35);
    --border-gold: 1px solid #C95A24;

    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sharp: 4px;
    --transition: all 0.22s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark-hero);
    color: var(--text-pure-white);
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background-color: var(--bg-dark-hero);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER INSTITUCIONAL
   ========================================================================== */
.site-header {
    background: #171B1A;
    border-bottom: 1px solid rgba(115, 119, 91, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.brand-logo-erico {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.brand-logo-titles {
    display: flex;
    flex-direction: column;
}

.brand-logo-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-sand);
    line-height: 1;
}

.brand-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--brand-terracotta);
    text-transform: uppercase;
    margin-top: 3px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav a {
    color: var(--brand-sand);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.header-nav a:hover {
    color: var(--brand-terracotta);
}

.header-btn-cta {
    background: var(--brand-terracotta);
    color: #ffffff !important;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--brand-terracotta);
    display: inline-block;
    border-radius: var(--radius-sharp);
}

.header-btn-cta:hover {
    background: var(--brand-terracotta-hover);
    border-color: var(--brand-terracotta-hover);
    box-shadow: 0 0 16px rgba(201, 90, 36, 0.45);
}

/* ==========================================================================
   HERO / PRIMEIRA DOBRA COM FOTO DE FUNDO & PERGUNTA DE ENTRADA
   ========================================================================== */
.hero-erico-section {
    position: relative;
    background-color: var(--bg-dark-hero);
    background-image: 
        linear-gradient(to right, #05080c 0%, rgba(5, 8, 12, 0.98) 42%, rgba(5, 8, 12, 0.7) 58%, rgba(5, 8, 12, 0.1) 78%, transparent 100%),
        linear-gradient(to top, #05080c 0%, transparent 15%),
        url('assets/kaka-hero-bg.jpg');
    background-size: auto 100%;
    background-position: right top;
    background-repeat: no-repeat;
    padding: 100px 0 90px;
    min-height: 660px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-erico-content {
    max-width: 660px;
    position: relative;
    z-index: 2;
}

.hero-tagline-badge {
    display: inline-block;
    color: var(--brand-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--brand-gold);
    padding-bottom: 4px;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-erico-headline {
    font-size: 2.6rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.18;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-erico-sub {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Caixa com a pergunta na primeira dobra */
.hero-question-wrapper {
    background: rgba(10, 15, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 22px 20px;
    backdrop-filter: blur(10px);
    margin-top: 10px;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-question-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--brand-gold);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-question-title::before {
    content: "▶";
    font-size: 0.65rem;
}

.hero-role-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-choice-btn {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 16px 14px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.role-choice-btn:hover {
    border-color: var(--brand-gold);
    background: #1e293b;
    transform: translateY(-2px);
}

.role-choice-btn.active {
    background: #1e293b;
    border-color: var(--brand-gold);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.role-choice-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.role-choice-btn.active .role-choice-title {
    color: var(--brand-gold);
}

.role-choice-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.3;
}

.role-choice-btn.active .role-choice-sub {
    color: #e2e8f0;
}

/* ==========================================================================
   BARRA DE AUTORIDADE COM NÚMEROS
   ========================================================================== */
.authority-bar-section {
    background: #1E2321;
    border-bottom: 1px solid rgba(115, 119, 91, 0.3);
    padding: 48px 0;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
}

.authority-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.authority-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--brand-sand);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.authority-number span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-terracotta);
    margin-right: 4px;
}

.authority-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted-light);
    text-transform: uppercase;
    line-height: 1.5;
    max-width: 280px;
}

/* ==========================================================================
   CATÁLOGO DE MARCAS E SOLUÇÕES
   ========================================================================== */
.catalog-section {
    background: #F5EFE6;
    padding: 80px 0 100px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-main-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: #171B1A;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.catalog-main-sub {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: #4D5541;
    max-width: 650px;
    margin: 0 auto 30px;
}

/* Seletor Segmentado de Abas */
.track-tabs-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
}

.track-tab-pill {
    background: #ffffff;
    border: 1px solid #D8D2C5;
    color: #4D5541;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sharp);
}

.track-tab-pill:hover {
    border-color: var(--brand-terracotta);
    color: var(--brand-terracotta);
}

.track-tab-pill.active {
    background: var(--brand-terracotta);
    border-color: var(--brand-terracotta);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(201, 90, 36, 0.35);
}

/* Painel de Produtos */
.products-pane {
    display: none;
}

.products-pane.active {
    display: block;
}

.products-pane.active .erico-card {
    animation: fadeInUpCard 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.products-pane.active .erico-card:nth-child(1) { animation-delay: 0.05s; }
.products-pane.active .erico-card:nth-child(2) { animation-delay: 0.12s; }
.products-pane.active .erico-card:nth-child(3) { animation-delay: 0.19s; }

@keyframes fadeInUpCard {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid de Cards de Produtos */
.erico-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.erico-card {
    background: #ffffff;
    border: 1px solid #D8D2C5;
    border-radius: var(--radius-sharp);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
    box-shadow: 0 4px 12px rgba(23, 27, 26, 0.06);
}

.erico-card:hover {
    box-shadow: 0 16px 36px rgba(23, 27, 26, 0.12);
    transform: translateY(-5px);
    border-color: var(--brand-terracotta);
}

.erico-card-banner {
    width: 100%;
    height: 150px;
    background: #171B1A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    border-bottom: 1px solid #D8D2C5;
}

.erico-card-banner.banner-komando {
    background: linear-gradient(135deg, #171B1A 0%, #2A312F 100%);
}

.erico-card-banner.banner-kor {
    background: linear-gradient(135deg, #171B1A 0%, #353D32 100%);
}

.erico-card-banner.banner-mlfp {
    background: linear-gradient(135deg, #171B1A 0%, #2C3532 100%);
}

.erico-card-banner.banner-kop {
    background: linear-gradient(135deg, #171B1A 0%, #3E3B33 100%);
}

.banner-logo-text {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-sand);
    text-transform: uppercase;
    text-align: center;
}

.erico-tag-badge {
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #171B1A;
    color: var(--brand-sand);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border: 1px solid rgba(115, 119, 91, 0.4);
    white-space: nowrap;
    border-radius: var(--radius-sharp);
}

.erico-tag-badge.tag-flagship {
    background: var(--brand-terracotta);
    border-color: var(--brand-terracotta);
    color: #ffffff;
}

.erico-card-body {
    padding: 30px 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    text-align: center;
}

.erico-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #171B1A;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.erico-card-desc {
    font-size: 0.9rem;
    color: #4D5541;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.erico-card-btn {
    background: var(--brand-terracotta);
    border: 1px solid var(--brand-terracotta);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    width: 100%;
    border-radius: var(--radius-sharp);
    transition: var(--transition);
}

.erico-card-btn:hover {
    background: var(--brand-terracotta-hover);
    border-color: var(--brand-terracotta-hover);
    box-shadow: 0 4px 14px rgba(201, 90, 36, 0.4);
}

/* ==========================================================================
   SEÇÃO SOBRE O KAKÁ GOMES
   ========================================================================== */
.about-erico-section {
    background: #171B1A;
    padding: 90px 0;
    border-top: 1px solid rgba(115, 119, 91, 0.3);
    border-bottom: 1px solid rgba(115, 119, 91, 0.3);
}

.about-erico-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-erico-photo-wrap {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border: 1px solid rgba(115, 119, 91, 0.35);
    border-radius: var(--radius-sharp);
}

.about-erico-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.05);
}

.about-erico-content {
    display: flex;
    flex-direction: column;
}

.about-erico-name {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--brand-sand);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-transform: uppercase;
}

.about-erico-text {
    font-size: 1.05rem;
    color: #B6B8A9;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-erico-text strong {
    color: var(--brand-sand);
    font-weight: 600;
}

/* ==========================================================================
   FOOTER INSTITUCIONAL
   ========================================================================== */
.site-footer-erico {
    background: #101312;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(115, 119, 91, 0.25);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 45px;
}

.footer-col h5 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

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

.footer-col ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--brand-gold);
}

.footer-bottom-bar {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-copy-text {
    font-size: 0.8rem;
    color: #64748b;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET OTIMIZADOS)
   ========================================================================== */
@media (max-width: 960px) {
    .erico-cards-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .authority-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 0;
    }

    .about-erico-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-erico-photo-wrap {
        max-width: 100%;
        margin: 0 auto;
        height: 320px;
        border-radius: 12px;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-erico-section {
        background-image: 
            linear-gradient(to top, #05080c 50%, rgba(5, 8, 12, 0.72) 72%, rgba(5, 8, 12, 0.15) 88%, transparent 100%),
            url('assets/kaka-hero-bg.jpg');
        background-position: 75% 0px;
        background-size: 125% auto;
        padding: 240px 0 50px;
        min-height: auto;
    }

    .hero-erico-headline {
        font-size: 1.85rem;
        line-height: 1.22;
        letter-spacing: -0.5px;
    }

    .hero-erico-sub {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 24px;
    }

    .hero-question-wrapper {
        padding: 18px 16px;
    }

    .hero-role-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .role-choice-btn {
        padding: 16px 18px;
        min-height: 48px;
    }

    .header-inner {
        height: auto;
        padding: 12px 0;
    }

    .brand-logo-name {
        font-size: 1.15rem;
    }

    .brand-logo-sub {
        font-size: 0.58rem;
        letter-spacing: 1px;
    }

    .header-nav a:not(.header-btn-cta) {
        display: none;
    }

    .header-btn-cta {
        padding: 9px 15px;
        font-size: 0.8rem;
    }

    .track-tabs-row {
        flex-direction: column;
        max-width: 100%;
        gap: 8px;
    }

    .track-tab-pill {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .catalog-main-title {
        font-size: 1.9rem;
    }

    .catalog-main-sub {
        font-size: 0.95rem;
    }

    .erico-card-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.95rem;
        display: block;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-erico-section {
        padding: 210px 0 40px;
        background-size: 135% auto;
        background-position: 78% 0px;
    }

    .hero-erico-headline {
        font-size: 1.7rem;
    }

    .authority-number {
        font-size: 2.2rem;
    }
}
