/* =========================================================
   LogSul — Transporte e Logística
   Folha de estilos principal
   Paleta: azul-marinho (#0d2c54) + amarelo (#f4c430)
   ========================================================= */

/* ---------- Variáveis ---------- */
:root {
    --navy: #0d2c54;
    --navy-dark: #081f3d;
    --navy-light: #1b4079;
    --gold: #f4c430;
    --gold-dark: #d9a800;
    --gray: #6b7280;
    --light: #f5f6f8;
    --white: #ffffff;
    --text: #1f2937;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(13, 44, 84, 0.12);
    --shadow-lg: 0 20px 50px rgba(13, 44, 84, 0.18);
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; color: var(--navy); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; }
.section--alt { background: var(--light); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
}
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.section__sub { color: var(--gray); margin-top: 16px; font-size: 1.05rem; }

/* ---------- Botões ---------- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-dark); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(244, 196, 48, 0.35); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline:hover { background: var(--white); color: var(--navy); transform: translateY(-3px); }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}
.header--scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 10px 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__logo img { height: 56px; width: auto; transition: var(--transition); filter: brightness(0) invert(1); }
.header--scrolled .header__logo img { height: 48px; filter: none; }

.nav__list { display: flex; gap: 32px; }
.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
    position: relative;
    transition: var(--transition);
}
.nav__link::after {
    content: '';
    position: absolute; bottom: -6px; left: 0;
    width: 0; height: 2px; background: var(--gold);
    transition: var(--transition);
}
.nav__link:hover::after { width: 100%; }
.header--scrolled .nav__link { color: var(--navy); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav__toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 3px; transition: var(--transition); }
.header--scrolled .nav__toggle span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/bann4.jpg') center/cover no-repeat fixed;
    color: var(--white);
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(8,31,61,0.92) 0%, rgba(13,44,84,0.78) 50%, rgba(27,64,121,0.6) 100%);
}
/* Elemento decorativo: Nossa Senhora (manto sagrado) — marca d'água sutil no canto */
.hero__patron {
    position: absolute;
    right: 4%;
    bottom: 0;
    height: 88%;
    width: auto;
    z-index: 1;
    opacity: 0.10;
    pointer-events: none;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.15));
    animation: patron-fade 1.6s ease both;
}
@keyframes patron-fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 0.10; transform: translateY(0); } }

.hero__content { position: relative; z-index: 2; max-width: 820px; padding-top: 80px; }
.hero__logo {
    height: 240px; width: auto; margin: 0 auto 28px;
    background: var(--white); padding: 18px 28px; border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.hero__title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; color: var(--white); margin-bottom: 20px; }
.hero__text { font-size: 1.15rem; max-width: 620px; margin: 0 auto 36px; color: rgba(255,255,255,0.92); }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 2; text-align: center; color: rgba(255,255,255,0.8);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.8rem; letter-spacing: 1px;
}
.mouse {
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.7); border-radius: 14px;
    position: relative;
}
.mouse::before {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; background: var(--gold); border-radius: 2px;
    animation: scroll-dot 1.6s infinite;
}
@keyframes scroll-dot { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 22px; } }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about__text .lead { font-size: 1.15rem; font-weight: 500; color: var(--navy); margin-bottom: 18px; }
.about__text p { color: var(--gray); margin-bottom: 24px; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat {
    background: var(--white); border-radius: var(--radius); padding: 28px 22px;
    box-shadow: var(--shadow); text-align: center; border-bottom: 4px solid var(--gold);
    transition: var(--transition);
}
.section--alt .stat { background: var(--white); }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat__num { display: block; font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.stat__label { font-size: 0.9rem; color: var(--gray); }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
    background: var(--white); border-radius: var(--radius); padding: 38px 30px;
    box-shadow: var(--shadow); transition: var(--transition);
    border: 1px solid rgba(13,44,84,0.05);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card__icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold); margin-bottom: 22px;
}
.service-card__icon svg { width: 32px; height: 32px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: 0.95rem; }

/* ---------- Galeria / Frota ----------
   TAMANHO RECOMENDADO DAS IMAGENS: proporção 4:3 — ideal 1200x900 px
   (mínimo 800x600 px), JPG otimizado < 300 KB. As imagens usam
   object-fit: cover, então mantenha o caminhão centralizado.            */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;          /* tiles uniformes em 4:3 */
    cursor: pointer;
    transition: var(--transition);
}
.gallery__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.gallery__item:hover img { transform: scale(1.1); }

/* Legenda que aparece no hover */
.gallery__cap {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end;
    padding: 18px;
    background: linear-gradient(transparent 45%, rgba(8,31,61,0.85));
    opacity: 0; transition: var(--transition);
}
.gallery__item:hover .gallery__cap { opacity: 1; }
.gallery__cap span {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(12px);
    transition: var(--transition);
}
.gallery__item:hover .gallery__cap span { transform: translateY(0); }
/* Detalhe dourado superior no hover */
.gallery__item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease; z-index: 2;
}
.gallery__item:hover::before { transform: scaleX(1); }

/* ---------- CTA ---------- */
.cta {
    position: relative; padding: 90px 0; text-align: center; color: var(--white);
    background: url('../images/info-bg-k.jpg') center/cover no-repeat;
}
.cta__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,31,61,0.94), rgba(27,64,121,0.85)); }
.cta__content { position: relative; z-index: 2; max-width: 700px; }
.cta__content h2 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 16px; }
.cta__content p { color: rgba(255,255,255,0.9); margin-bottom: 30px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); padding-top: 70px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__logo { height: 64px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__col p { font-size: 0.95rem; line-height: 1.7; }
.footer__col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer__contact li { margin-bottom: 16px; font-size: 0.95rem; }
.footer__contact strong { color: var(--gold); font-weight: 600; }
.footer__contact a:hover { color: var(--gold); }
.footer__address { font-size: 0.95rem; }
.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); color: var(--white); transition: var(--transition);
}
.footer__social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.55);
}

/* ---------- Botões flutuantes ---------- */
.go-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 900;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.go-top.show { opacity: 1; visibility: visible; }
.go-top:hover { background: var(--navy-light); transform: translateY(-4px); }

.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px; z-index: 900;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,0.45);
    transition: var(--transition); animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Animações de entrada ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsivo ---------- */
@media (max-width: 992px) {
    .about { grid-template-columns: 1fr; gap: 40px; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .hero { background-attachment: scroll; }

    /* Menu mobile */
    .nav__toggle { display: flex; }
    .nav {
        position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh;
        background: var(--white); flex-direction: column; justify-content: center;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15); transition: right 0.4s ease; z-index: 1100;
    }
    .nav.open { right: 0; }
    .nav__list { flex-direction: column; gap: 28px; text-align: center; }
    .nav__link { color: var(--navy); font-size: 1.1rem; }
    .nav__toggle { z-index: 1200; }
    .nav__toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--navy); }
    .nav__toggle.active span:nth-child(2) { opacity: 0; }
    .nav__toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--navy); }

    .services { grid-template-columns: 1fr; }
    .about__stats { grid-template-columns: 1fr 1fr; }

    .gallery { grid-template-columns: 1fr 1fr; }
    .gallery__cap { opacity: 1; }            /* legenda sempre visível no toque */
    .gallery__cap span { transform: translateY(0); }

    .footer__grid { grid-template-columns: 1fr; text-align: center; }
    .footer__social { justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero__actions { flex-direction: column; align-items: center; }
    .hero__actions .btn { width: 100%; max-width: 280px; }
    .about__stats { grid-template-columns: 1fr; }
    .whatsapp-float { width: 52px; height: 52px; left: 20px; bottom: 20px; }
    .go-top { right: 20px; bottom: 20px; }

    
}

@media (max-width: 768px) {

    .hero__logo {
        height: 140px;
        width: auto;
    }

    .hero__patron {
        height: 45%;
        
        right: auto;
        transform: translateX(-50%);
        bottom: 0;
    }

}
