/* ========================================
   Bom Gourmet — Portfolio de Marcas
   ======================================== */

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

:root {
    --bg: #fafaf8;
    --bg-dark: #0e0e0e;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --accent: #C41E24;
    --border: #e5e5e0;
    --radius: 16px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ========================================
   Navbar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px auto;
    transition: transform 0.3s ease, opacity 0.2s ease;
    border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta {
    padding: 8px 20px !important;
    background: var(--accent);
    color: #fff !important;
    border-radius: 100px;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: #a01820;
    transform: translateY(-1px);
}

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(196, 30, 36, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(232, 80, 27, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: 40px 24px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    color: #fff;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title-small {
    display: block;
    font-size: 0.25em;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-subtitle-lead {
    display: block;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: #a01820;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 30, 36, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Hero entrance animations */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroPulseGlow {
    0%, 100% { box-shadow: 0 8px 30px rgba(196, 30, 36, 0.2); }
    50% { box-shadow: 0 8px 40px rgba(196, 30, 36, 0.45); }
}

.hero-badge {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-title {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-subtitle {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-cta {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero-cta:hover {
    animation: heroPulseGlow 2s ease-in-out infinite;
}

.hero-scroll {
    animation: heroFadeIn 1s ease 1.4s both;
}

/* Hero overlay animated gradient */
.hero-overlay {
    animation: heroFadeIn 1.5s ease both;
}

/* ========================================
   About Section
   ======================================== */

.about {
    padding: 120px 0;
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 60px;
    align-items: start;
}

.about-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding-top: 8px;
}

/* About section reveal */
.about-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.about-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 640px;
    margin-bottom: 48px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.stat {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    display: block;
    font-size: clamp(3rem, 6vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Brands Section
   ======================================== */

.brands {
    padding: 120px 0;
}

.section-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 60px;
    align-items: baseline;
    margin-bottom: 80px;
}

.section-header {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Brand Card Link Wrapper */
.brand-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Brand Card */
.brand-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.brand-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: transparent;
}

.brand-card.revealed:hover {
    transform: translateY(-4px);
}

.brand-card.reverse {
    direction: rtl;
}

.brand-card.reverse > * {
    direction: ltr;
}

.brand-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.brand-card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
}

.brand-logo {
    max-width: 220px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card:hover .brand-logo {
    transform: scale(1.05);
}

/* Logo size variants */
.logo-large {
    max-width: 300px;
    max-height: 240px;
}

.logo-xlarge {
    max-width: 380px;
    max-height: 280px;
}

/* Logo invert (for white on dark) */
.logo-invert {
    filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.brand-card-info {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-card-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.brand-card-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ========================================
   Cronograma — Gantt Chart
   ======================================== */

.cronograma {
    padding: 120px 0;
    background: #fff;
    color: var(--text);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cronograma .about-label {
    color: var(--text-muted);
}

.cronograma h2 {
    color: var(--text);
}

.cronograma-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: -60px;
    margin-bottom: 60px;
    padding-left: 180px;
}

.gantt {
    margin-top: 20px;
    background: #fafaf8;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    overflow-x: auto;
    min-width: 0;
}

.gantt-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.gantt-label-col {
    width: 140px;
    flex-shrink: 0;
}

.gantt-months {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
}

.gantt-months span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-align: center;
}

.gantt-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gantt-row:last-child {
    border-bottom: none;
}

.gantt-row.revealed {
    opacity: 1;
    transform: translateX(0);
}

.gantt-label {
    width: 140px;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.gantt-bar-track {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    min-height: 36px;
    position: relative;
}

@keyframes barGrow {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

.gantt-bar {
    grid-column: calc(var(--start) + 1) / span var(--span);
    background: var(--color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform-origin: left center;
    opacity: 0;
    transform: scaleX(0);
}

.gantt-row.revealed .gantt-bar {
    animation: barGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gantt-bar:hover {
    transform: scaleY(1.1) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.gantt-bar span {
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gantt-dot {
    border-radius: 50%;
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gantt-chip-bevel {
    width: 24px;
    height: 24px;
    min-height: 24px;
    margin: auto;
    border-radius: 0;
    opacity: 0.45;
    box-shadow: none;
    clip-path: polygon(
        4px 0,
        calc(100% - 4px) 0,
        100% 4px,
        100% calc(100% - 4px),
        calc(100% - 4px) 100%,
        4px 100%,
        0 calc(100% - 4px),
        0 4px
    );
}

@keyframes chipBevelGrow {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 0.45; }
}

.gantt-row.revealed .gantt-bar.gantt-chip-bevel {
    animation: chipBevelGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gantt-bar.gantt-chip-bevel:hover {
    transform: scale(1.2) !important;
    opacity: 0.55;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Contact
   ======================================== */

.contact {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.contact-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.contact h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 36px;
    font-size: 1.05rem;
}

.contact-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--text);
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 30, 36, 0.2);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 48px;
    }

    .brand-card {
        grid-template-columns: 1fr;
    }

    .brand-card.reverse {
        direction: ltr;
    }

    .brand-card-visual {
        min-height: 260px;
        padding: 48px 32px;
    }

    .brand-card-info {
        padding: 32px;
    }

    .about-stats {
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Gantt responsive */
    .cronograma-subtitle {
        padding-left: 0;
        margin-top: 16px;
    }

    .gantt-label-col {
        width: 100px;
    }

    .gantt-label {
        width: 100px;
        font-size: 0.75rem;
    }

    .gantt-months span {
        font-size: 0.55rem;
    }

    .gantt-bar span {
        font-size: 0.5rem;
    }

    /* Nav responsive */
    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .brand-card-visual {
        min-height: 220px;
        padding: 40px 24px;
    }

    .brand-logo {
        max-width: 160px;
        max-height: 140px;
    }

    .logo-large {
        max-width: 200px;
        max-height: 180px;
    }

    .logo-xlarge {
        max-width: 240px;
        max-height: 200px;
    }

    .brand-card-info {
        padding: 24px;
    }

    .brand-card-info h3 {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    /* Gantt mobile: scroll horizontal */
    .gantt {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 24px 20px;
    }

    .gantt-header,
    .gantt-row {
        min-width: 560px;
    }

    .gantt-label-col {
        width: 90px;
        flex-shrink: 0;
    }

    .gantt-label {
        width: 90px;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .gantt-bar {
        min-height: 34px;
    }

    .gantt-bar span {
        display: inline;
        font-size: 0.55rem;
    }

    /* Nav mobile: hamburger drawer */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(14, 14, 14, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 14px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: 0;
    }

    .nav-links .nav-cta {
        margin-top: 8px;
        text-align: center;
        border-bottom: 0;
        padding: 12px 24px;
    }
}
