/* =========================================================
   ULTRACOMERCIAL LTDA — Ultragaz Parnaíba
   Design system: clean, institucional, verde + laranja
   ========================================================= */

:root {
    --verde: #000fff;
    --verde-escuro: #00065e;
    --verde-claro: #cdd3f8;
    --laranja: #00758a;
    --laranja-escuro: #a3a3a3;
    --texto: #1f2937;
    --texto-suave: #5b6573;
    --borda: #e5e7eb;
    --fundo: #ffffff;
    --fundo-alt: #f7f8fa;
    --sombra: 0 4px 16px rgba(15, 23, 42, 0.06);
    --sombra-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--texto);
    background: var(--fundo);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--verde); text-decoration: none; transition: color .2s; }
a:hover { color: var(--verde-escuro); }

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

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--borda);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--sombra);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--texto);
}
.logo-mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--verde) 0%, var(--verde-escuro) 100%);
    position: relative;
    flex-shrink: 0;
}
.logo-mark::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 4px;
    background: var(--laranja);
    opacity: .9;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.logo-text small { font-size: .72rem; color: var(--texto-suave); margin-top: 2px; }

.main-nav ul { display: flex; gap: 4px; list-style: none; align-items: center; }
.main-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--texto);
    font-weight: 500;
    font-size: .95rem;
    border-radius: 8px;
    transition: all .2s;
}
.main-nav a:hover { background: var(--fundo-alt); color: var(--verde); }
.main-nav a.active { color: var(--verde); background: var(--verde-claro); }
.main-nav a.nav-cta {
    background: var(--laranja);
    color: #fff;
    margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: var(--laranja-escuro); color: #fff; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.menu-toggle span {
    width: 22px; height: 2px;
    background: var(--texto);
    transition: all .25s;
    border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.btn-primary { background: var(--verde); color: #fff; }
.btn-primary:hover { background: var(--verde-escuro); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: var(--laranja); color: #fff; }
.btn-secondary:hover { background: var(--laranja-escuro); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--texto); border-color: var(--borda); }
.btn-outline:hover { border-color: var(--verde); color: var(--verde); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #fafafd 0%, #f0f5f8 100%);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(244,121,32,.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { max-width: 720px; position: relative; }
.hero-tag {
    display: inline-block;
    background: var(--verde-claro);
    color: var(--verde-escuro);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 18px;
    color: #0f172a;
}
.hero h1 span { color: var(--verde); }
.hero p.lead {
    font-size: 1.15rem;
    color: var(--texto-suave);
    margin-bottom: 32px;
    max-width: 600px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== SEÇÕES ===== */
section.page-section { padding: 70px 0; }
section.alt { background: var(--fundo-alt); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-head .eyebrow {
    color: var(--laranja);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 12px;
}
.section-head p { color: var(--texto-suave); font-size: 1.05rem; }

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.card {
    background: #fff;
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra-md); border-color: transparent; }
.card-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: var(--verde-claro);
    color: var(--verde);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    font-size: 1.4rem;
    font-weight: 700;
}
.card.accent .card-icon { background: #fef0e6; color: var(--laranja); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 700; }
.card p { color: var(--texto-suave); font-size: .95rem; }

/* ===== BLOCO INSTITUCIONAL ===== */
.info-block {
    background: #fff;
    border: 1px solid var(--borda);
    border-left: 4px solid var(--verde);
    border-radius: var(--radius);
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.info-block h4 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--laranja);
    margin-bottom: 8px;
    font-weight: 700;
}
.info-block p { font-size: .98rem; color: var(--texto); }

/* ===== PAGE HEADER (internas) ===== */
.page-header {
    background: linear-gradient(135deg, #f7f8fa 0%, #eef5f0 100%);
    padding: 60px 0 50px;
    border-bottom: 1px solid var(--borda);
}
.page-header .eyebrow {
    color: var(--laranja);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.page-header h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 10px;
}
.page-header p { color: var(--texto-suave); max-width: 640px; font-size: 1.05rem; }

/* ===== CONTEÚDO TEXTUAL ===== */
.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; color: var(--texto); font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 14px; font-weight: 700; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; font-weight: 700; color: var(--verde-escuro); }
.prose ul { margin: 16px 0 20px 22px; }
.prose ul li { margin-bottom: 8px; color: var(--texto); }

.callout {
    background: var(--verde-claro);
    border-radius: var(--radius);
    padding: 24px 26px;
    border-left: 4px solid var(--verde);
    margin: 24px 0;
}
.callout strong { color: var(--verde-escuro); }

/* ===== CONTATO ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.contact-card {
    background: #fff;
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 28px;
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--borda);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ico {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--verde-claro);
    color: var(--verde);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.contact-item span { display: block; font-size: .8rem; color: var(--texto-suave); margin-bottom: 2px; }
.contact-item strong, .contact-item a { font-size: 1rem; color: var(--texto); font-weight: 600; }
.contact-item a:hover { color: var(--verde); }

.map-wrap {
    margin-top: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--borda);
    aspect-ratio: 16 / 7;
    background: var(--fundo-alt);
    display: flex; align-items: center; justify-content: center;
    color: var(--texto-suave);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ===== CTA FINAL ===== */
.cta-band {
    background: linear-gradient(135deg, var(--verde) 0%, var(--verde-escuro) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; font-weight: 700; }
.cta-band p { opacity: .92; margin-bottom: 28px; font-size: 1.05rem; }
.cta-band .btn-secondary { background: var(--laranja); }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ===== FOOTER ===== */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    padding-bottom: 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; font-weight: 700; }
.site-footer p { font-size: .9rem; margin-bottom: 6px; }
.site-footer .muted { color: #94a3b8; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--laranja); }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .85rem;
    color: #94a3b8;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ===== RESPONSIVO ===== */
@media (max-width: 860px) {
    .menu-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--borda);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        box-shadow: var(--sombra);
    }
    .main-nav.open { max-height: 500px; }
    .main-nav ul { flex-direction: column; padding: 14px; gap: 2px; }
    .main-nav a { padding: 14px 16px; }
    .main-nav a.nav-cta { margin: 6px 0 0; text-align: center; }

    .hero { padding: 50px 0 60px; }
    section.page-section { padding: 50px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 22px 16px; }
    .info-block { padding: 24px; }
}
