/* ============================================================
   ROSOLEN TRANSPORTES — Folha de estilo
   Releitura do layout Lovable. Marca vermelha.
   Display: Bricolage Grotesque | Acento: Playfair Display (itálico)
   Corpo: Manrope
   ============================================================ */

:root {
    --red: #e11d24;
    --red-deep: #b0141a;
    --red-soft: #fdebec;
    --ink: #15100f;
    --ink-2: #3a3531;
    --ink-soft: #6c655d;
    --cream: #faf6f2;
    --cream-2: #f3ece5;
    --surface: #ffffff;
    --line: rgba(22, 18, 15, 0.10);
    --shadow-sm: 0 2px 10px rgba(22, 18, 15, 0.05);
    --shadow-md: 0 22px 48px -20px rgba(22, 18, 15, 0.28);
    --shadow-red: 0 16px 34px -12px rgba(225, 29, 36, 0.48);
    --radius: 22px;
    --radius-sm: 14px;
    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink-2);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: -0.02em;
}

/* Palavra-acento em serifa itálica vermelha */
.accent { font-family: var(--font-serif); font-style: italic; font-weight: 700; color: var(--red); }
.accent-dark { font-family: var(--font-serif); font-style: italic; font-weight: 700; color: var(--ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; position: relative; }
.bg-cream { background: var(--cream); }
.bg-surface { background: var(--surface); }

/* ---------- Cabeçalhos de seção ---------- */
.section-header { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--red); text-transform: uppercase;
    font-size: 0.78rem; letter-spacing: 0.2em; font-weight: 700;
    margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.section-header p { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: linear-gradient(180deg, #f1ebe7 0%, #f5e7e6 100%);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: padding .3s ease, box-shadow .3s ease;
    padding: 16px 0;
}
.navbar.scrolled { padding: 9px 0; box-shadow: 0 6px 24px -10px rgba(0,0,0,.22); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-links a:not(.btn-nav) {
    font-weight: 600; font-size: 0.96rem; color: var(--ink-2);
    transition: color .25s; position: relative; padding: 4px 0;
}
.nav-links a:not(.btn-nav):hover,
.nav-links a.active { color: var(--red); }

.btn-nav {
    background: var(--red); color: #fff !important;
    padding: 11px 24px; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 9px;
    transition: transform .25s, box-shadow .25s, background .25s;
    box-shadow: var(--shadow-red);
}
.btn-nav:hover { background: var(--red-deep); transform: translateY(-2px); }
.menu-toggle { display: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; background: none; border: none; }

/* ============================================================
   HERO (full-bleed com foto + overlay vermelho)
   ============================================================ */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 70px; overflow: hidden; color: #fff;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image: url('rosolen onibus.jpeg');
    background-size: cover; background-position: center;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(100deg, rgba(20,8,8,0.92) 0%, rgba(60,12,14,0.80) 38%, rgba(150,18,22,0.55) 72%, rgba(190,20,24,0.45) 100%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 760px; }

.badge {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.06);
    color: #fff; padding: 9px 20px; border-radius: 50px;
    font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
    margin-bottom: 28px; backdrop-filter: blur(4px);
}
.badge i { color: var(--red); }

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.4rem); color: #fff; margin-bottom: 26px;
    line-height: 0.98;
}
.hero h1 .accent { display: inline-block; }
.cursor { color: var(--red); font-weight: 300; animation: blink .9s step-end infinite; font-family: var(--font-serif); font-style: italic; }
@keyframes blink { 50% { opacity: 0; } }

.hero p.sub {
    font-size: 1.18rem; color: rgba(255,255,255,0.88); max-width: 540px; margin-bottom: 38px;
    line-height: 1.55;
}
.hero p.sub strong { color: #fff; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
    background: var(--red); color: #fff; padding: 16px 32px; border-radius: 50px;
    font-weight: 700; display: inline-flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-red); transition: transform .25s, background .25s;
}
.btn-primary:hover { background: var(--red-deep); transform: translateY(-3px); }
.btn-outline-light {
    background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.55); color: #fff;
    padding: 16px 32px; border-radius: 50px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px; transition: .25s; backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-3px); }
.btn-secondary {
    background: #fff; border: 1.5px solid var(--line); color: var(--ink);
    padding: 15px 30px; border-radius: 50px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 9px; transition: .25s;
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); }
.btn-white {
    background: #fff; color: var(--red); padding: 16px 34px; border-radius: 50px;
    font-weight: 700; display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform .25s;
}
.btn-white:hover { transform: translateY(-3px); }

/* Estatísticas do hero */
.hero-stats { display: flex; gap: 56px; margin-top: 62px; flex-wrap: wrap; }
.hstat h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--red); font-family: var(--font-display); }
.hstat span { font-size: .8rem; color: rgba(255,255,255,0.75); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 30px; box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-deep));
    transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
    background: var(--red-soft); color: var(--red); font-size: 1.5rem; margin-bottom: 22px;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 20px; }
.btn-text {
    color: var(--red); font-weight: 700; font-size: .92rem;
    display: inline-flex; align-items: center; gap: 8px; transition: gap .25s;
}
.btn-text:hover { gap: 13px; }

/* ============================================================
   A EMPRESA — faixa hero (preto -> vermelho)
   ============================================================ */
.empresa-hero {
    padding: 170px 0 90px;
    background: linear-gradient(95deg, #0e0606 0%, #2a0a0b 42%, #8d1216 78%, #c5161c 100%);
    color: #fff;
}
.empresa-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); color: #fff; margin-bottom: 22px; }
.empresa-hero p { color: rgba(255,255,255,0.82); max-width: 620px; font-size: 1.12rem; }

/* História */
.history-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.history-img { position: relative; }
.history-img img {
    border-radius: var(--radius); width: 100%; aspect-ratio: 5/4.4; object-fit: cover;
    position: relative; z-index: 1;
    box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(225,29,36,0.45);
}
.history-img::after {
    content: ""; position: absolute; inset: -30px -30px 30px 30px; z-index: 0;
    background: radial-gradient(circle at 50% 50%, rgba(225,29,36,0.22), transparent 70%);
    filter: blur(10px); border-radius: 40px;
}
.history-img .badge-years {
    position: absolute; right: -16px; bottom: -16px; z-index: 2;
    background: var(--red); color: #fff; border-radius: 20px; padding: 18px 22px;
    box-shadow: var(--shadow-red); text-align: center;
}
.history-img .badge-years strong { font-family: var(--font-display); font-size: 2.2rem; display: block; line-height: 1; }
.history-img .badge-years span { font-size: .78rem; opacity: .9; }
.history-text h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 18px; }
.history-text p { color: var(--ink-soft); margin-bottom: 16px; }
.stats-row { display: flex; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.stat-box h3 { font-size: 2rem; color: var(--red); }
.stat-box span { color: var(--ink-soft); font-weight: 600; font-size: .9rem; }

/* ============================================================
   PILARES (Missão, Visão, Valores)
   ============================================================ */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-item {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 36px 28px; text-align: center; transition: transform .3s, box-shadow .3s;
}
.mvv-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mvv-item .ico {
    width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
    background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 1.5rem;
}
.mvv-item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.mvv-item p { color: var(--ink-soft); font-size: .96rem; }

/* ============================================================
   PARCEIROS
   ============================================================ */
.partners-tags { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.partner-tag {
    display: inline-flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 50px;
    padding: 14px 26px; box-shadow: var(--shadow-sm); font-weight: 700; color: var(--ink);
}
.partner-tag i { color: var(--red); font-size: 1.3rem; }
.partner-tag small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-soft); }

.partner-logo {
    background: var(--surface); 
    border: 1px solid var(--line); 
    border-radius: var(--radius-sm);
    height: 110px; 
    
    /* Flexbox costuma lidar melhor com o limite de imagens do que o grid nesse cenário */
    display: flex; 
    justify-content: center; 
    align-items: center; 
    
    padding: 18px;
    transition: transform .25s, box-shadow .25s; 
    box-shadow: var(--shadow-sm);
    
    /* Garante que o padding de 18px seja incluído nos 110px de altura, evitando que a caixa cresça ou expulse a imagem */
    box-sizing: border-box; 
}

.partner-logo:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-md); 
}

/* 1. O container que segura todas as caixas */
.partners-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; /* É isso aqui que empurra as caixas para o meio da tela */
    gap: 18px; 
}

/* 2. A caixa em si */
.partner-logo {
    background: var(--surface); 
    border: 1px solid var(--line); 
    border-radius: var(--radius-sm);
    
    /* Colocamos uma largura fixa para as caixas não encolherem demais */
    width: 200px; /* Ajuste esse valor como preferir */
    height: 110px; 
    
    /* Centraliza a logo DENTRO da caixa */
    display: flex; 
    justify-content: center; 
    align-items: center; 
    
    padding: 18px;
    box-sizing: border-box; 
    transition: transform .25s, box-shadow .25s; 
    box-shadow: var(--shadow-sm);
}

.partner-logo:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-md); 
}

/* 3. A imagem da logo */
.partner-logo img { 
    width: 100%;
    height: 100%; 
    object-fit: contain; /* Faz a logo caber perfeitamente no espaço, sem distorcer */
    filter: grayscale(1); 
    opacity: .65; 
    transition: .25s; 
}

.partner-logo:hover img { 
    filter: grayscale(0); 
    opacity: 1; 
}

/* 4. O texto caso a imagem não carregue */
.partner-logo .placeholder { 
    color: var(--ink-soft); 
    font-weight: 700; 
    font-family: var(--font-display); 
    font-size: .92rem; 
    text-align: center; 
    opacity: .5; 
}
.partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.partner-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }
.partner-logo .placeholder { color: var(--ink-soft); font-weight: 700; font-family: var(--font-display); font-size: .92rem; text-align: center; opacity: .5; }

/* ============================================================
   CTA
   ============================================================ */
.cta-full {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff; text-align: center; padding: 84px 0; position: relative; overflow: hidden;
}
.cta-full::before, .cta-full::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-full::before { width: 320px; height: 320px; top: -120px; left: -80px; }
.cta-full::after { width: 240px; height: 240px; bottom: -110px; right: -60px; }
.cta-full h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; position: relative; }
.cta-full p { color: rgba(255,255,255,.9); margin-bottom: 30px; position: relative; }
.cta-full .btn-white { position: relative; }

/* ============================================================
   RODAPÉ + MAPA
   ============================================================ */
.footer { background: var(--ink); color: #cfc8c0; }
.footer-map iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(0.2); }
.footer-inner { padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-logo { height: 58px; margin-bottom: 18px; }
.footer-brand p { color: #9a938b; font-size: .95rem; max-width: 300px; }
.social-icons { display: flex; gap: 12px; margin-top: 20px; }
.social-icons a {
    width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.07);
    display: grid; place-items: center; color: #fff; transition: .25s; font-size: 1.05rem;
}
.social-icons a:hover { background: var(--red); transform: translateY(-3px); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-links ul li, .footer-contact ul li { margin-bottom: 12px; font-size: .94rem; }
.footer-links a:hover { color: #fff; }
.footer-contact ul li { display: flex; gap: 11px; align-items: flex-start; color: #b6afa7; }
.footer-contact ul li i { color: var(--red); margin-top: 4px; }
.footer-bottom { margin-top: 56px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .86rem; color: #8c857d; }

/* ============================================================
   PÁGINA FROTA — blocos
   ============================================================ */
.detail-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.reverse-layout .detail-content { order: 2; }
.detail-badge {
    display: inline-flex; align-items: center; gap: 9px; background: var(--red-soft);
    color: var(--red); padding: 8px 16px; border-radius: 50px; font-weight: 700;
    font-size: .85rem; margin-bottom: 18px;
}
.detail-content h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.detail-content > p { color: var(--ink-soft); margin-bottom: 24px; }
.feature-list { display: grid; gap: 13px; margin-bottom: 8px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-2); }
.feature-list li i { color: var(--red); background: var(--red-soft); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: .9rem; flex-shrink: 0; }
.img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.img-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ============================================================
   BOTÃO FLUTUANTE "ORÇAMENTO RÁPIDO"
   ============================================================ */
.quote-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 999;
    background: var(--red); color: #fff; padding: 14px 22px; border-radius: 50px;
    display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
    box-shadow: var(--shadow-red); transition: transform .25s, background .25s;
}
.quote-float i { font-size: 1.15rem; }
.quote-float:hover { transform: translateY(-3px); background: var(--red-deep); }

/* ============================================================
   ANIMAÇÕES DE SCROLL
   ============================================================ */
.reveal, .reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.reveal { transform: translateY(24px); }
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.active, .reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0,0); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
    .history-wrapper, .detail-wrapper { grid-template-columns: 1fr; }
    .reverse-layout .detail-content { order: 0; }
    .services-grid, .mvv-grid { grid-template-columns: 1fr 1fr; }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .section { padding: 70px 0; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%; max-width: 320px;
        background: var(--surface); flex-direction: column; justify-content: center;
        gap: 26px; box-shadow: -10px 0 40px rgba(0,0,0,.15); transition: right .35s ease; z-index: 1001;
    }
    .nav-links.active-menu { right: 0; }
    .menu-toggle { display: block; z-index: 1002; position: relative; }
    .services-grid, .mvv-grid, .partners-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 32px; }
    .quote-float span { display: none; }
    .quote-float { padding: 16px; }
}
@media (max-width: 480px) {
    .services-grid, .mvv-grid, .footer-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.5rem; }
}
