/* ALBINO ALVES E FILHOS, LDA - Stylesheet 2026
   Organização: Variáveis > Global > Navbar > Hero > Serviços > Frota > Partners > Footer > 404 > Mobile
*/

:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-light: #64748b;
}

/* --- GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body { background: var(--bg-white); color: var(--dark); scroll-behavior: smooth; overflow-x: hidden; }

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

.section { padding: 80px 0; }

.badge {
    background: #e2e8f0;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- NAVBAR GLASS --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 2000;
    border-bottom: 1px solid #f1f5f9;
}
/* Links do Menu */
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease; /* Transição suave para a cor e para a linha */
    position: relative;
    padding: 5px 0;
}

/* Efeito ao passar o rato (Hover) */
.nav-links a:hover {
    color: var(--primary); /* Altera para o azul da secção seguinte */
}

/* Bónus: Uma linha subtil que aparece por baixo ao passar o rato */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-wrapper { height: 80px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.logo { height: 40px; border-radius: 8px; }

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 0.9rem; }

/* BOTÃO WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999; /* Garante que fica por cima de tudo */
    transition: 0.3s;
}

.whatsapp-float i {
    font-size: 1.8rem;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    background-color: #128c7e;
}

/* AJUSTE MOBILE */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 10px; /* Vira um círculo no mobile para não tapar o site */
    }
    
    .whatsapp-float span {
        display: none; /* Esconde o texto no mobile, deixa só o ícone */
    }
    
    .whatsapp-float i {
        font-size: 2rem;
    }
}
/* --- HERO & ABOUT --- */
.hero-clean {
    padding-top: 150px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, #f1f5f9, #ffffff);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }

.hero-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.hero-glass-card h1 { font-size: 3.2rem; line-height: 1.1; margin: 20px 0; font-weight: 800; }
.hero-glass-card h1 strong { color: var(--primary); }
.hero-glass-card p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; line-height: 1.6; }

.btn-dark {
    background: var(--dark);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.stat-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    transition: 0.3s;
}

.stat-box:hover { transform: translateY(-5px); background: #ffffff; border-color: var(--primary); }
.stat-box i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.stat-box h3 { font-size: 1.8rem; font-weight: 800; color: var(--dark); }

/* --- SECÇÃO SERVIÇOS (COM EFEITO DE ROTAÇÃO) --- */
/* Galeria com Snap (Encaixe Automático) */
/* --- SECÇÃO SERVIÇOS --- */
.section-services { padding: 100px 0; background: #fdfdfd; }

.services-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Texto à esquerda, fotos à direita */
    gap: 60px; 
    align-items: center; 
}

.services-text h2 { font-size: 2.8rem; margin: 20px 0; }
.services-text p { color: var(--text-light); line-height: 1.6; }

/* GALERIA DESKTOP (Efeito Magnético) */
.gallery-wrapper {
    height: 450px; 
    width: 100%; 
    max-width: 450px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: rotate(-90deg); /* Truque para o scroll vertical agir como horizontal */
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    margin-left: auto; /* Cola a galeria à direita no PC */
    scroll-snap-type: y mandatory;
}

.gallery-wrapper::-webkit-scrollbar { display: none; }

.scroll-horizontal-container { display: flex; flex-direction: column; }

.img-slide {
    width: 450px; 
    height: 450px;
    transform: rotate(90deg); /* Deixa a imagem direita */
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    scroll-snap-align: start; /* Faz a imagem "prender" ao topo do contentor rodado */
}

/* --- AJUSTE MOBILE --- */
@media (max-width: 900px) {
    .services-wrapper { 
        grid-template-columns: 1fr; /* Texto em cima, fotos em baixo */
        text-align: center;
        gap: 40px;
    }

    .gallery-wrapper {
        transform: rotate(0deg); /* Remove rotação no mobile */
        height: 400px; 
        max-width: 100%;
        overflow-x: scroll; /* Scroll horizontal natural */
        overflow-y: hidden;
        display: flex;
        scroll-snap-type: x mandatory; /* Snap horizontal */
        margin: 0 auto;
    }

    .scroll-horizontal-container { flex-direction: row; }

    .img-slide {
        width: 100vw; /* Imagem ocupa a largura total do ecrã */
        height: 400px;
        transform: rotate(0deg); 
        scroll-snap-align: center;
    }
}
/* --- FROTA GRID --- */
.section-header { margin-bottom: 50px; text-align: center; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; }

.fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }

.fleet-glass-card {
    background: #f8fafc;
    border-radius: 30px;
    padding: 15px;
    border: 1px solid #f1f5f9;
    transition: 0.4s;
}

.fleet-glass-card:hover { transform: translateY(-10px); background: #ffffff; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.img-container { border-radius: 20px; overflow: hidden; height: 200px; margin-bottom: 15px; }
.img-container img { width: 100%; height: 100%; object-fit: cover; }

/* --- MARCAS PARCEIRAS --- */
.partners-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px; 
    justify-items: center; 
    align-items: center;
}
.partners-grid img { width: 160px; height: 80px; object-fit: contain; transition: 0.3s; }

/* --- FOOTER SIMPLIFICADO --- */
.footer-simple { padding: 30px 0; border-top: 1px solid #f1f5f9; background: #ffffff; }
.footer-content { display: flex; justify-content: space-between; align-items: center; color: #94a3b8; font-size: 0.9rem; }
.footer-actions { display: flex; align-items: center; gap: 25px; }
.footer-actions i { font-size: 1.5rem; color: #1877F2; transition: 0.3s; }
.legal-text { font-size: 0.75rem; color: #cbd5e1; margin-top: 5px; }

/* --- PÁGINA 404 & ANIMAÇÃO CAMIÃO --- */
.error-page { height: 100vh; display: flex; align-items: center; justify-content: center; background: #f8fafc; text-align: center; overflow: hidden; }
.error-logo { width: 120px; border-radius: 15px; margin-bottom: 30px; }
.error-content h1 { font-size: 8rem; font-weight: 800; color: var(--primary); opacity: 0.2; }

.truck-traveler {
    position: fixed;
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    animation: randomMove 25s linear infinite, vibration 0.2s infinite;
}

@keyframes randomMove {
    0%   { top: 10%; left: -50px; transform: scaleX(1); } 
    25%  { top: 70%; left: 30%; transform: scaleX(1); }
    45%  { top: 20%; left: 60%; transform: scaleX(-1); }
    70%  { top: 85%; left: 85%; transform: scaleX(-1); }
    85%  { top: 40%; left: 10%; transform: scaleX(1); }
    100% { top: 10%; left: 110vw; transform: scaleX(1); }
}

@keyframes vibration { 0%, 100% { margin-top: 0; } 50% { margin-top: -2px; } }

/* --- RESPONSIVIDADE (MOBILE FIRST ADJUSTMENTS) --- */

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .hero-glass-card h1 { font-size: 2.4rem; }
    
    /* Galeria Mobile First */
    .services-wrapper { grid-template-columns: 1fr; text-align: center; }
    .gallery-nav-dots { justify-content: center; }
    .gallery-wrapper {
        transform: rotate(0deg); 
        height: 350px; 
        max-width: 100%;
        overflow-x: scroll; 
        overflow-y: hidden;
        display: flex;
    }
    .scroll-horizontal-container { flex-direction: row; }
    .img-slide { width: 85vw; height: 350px; transform: rotate(0deg); margin-right: 15px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-direction: column; gap: 15px; text-align: center; }
}