/* ==========================================================================
   Taxi Rio Preto Celso Central Palácio da Justiça
   Paleta: branco, preto e tons de verde (profundo e pastel) — sem dourado.
   Layout flat, direto, profissional.
   ========================================================================== */

:root {
    --ink: #1b241a;          /* verde quase-preto: texto principal, footer */
    --ink-soft: #34412f;     /* verde escuro secundário */
    --green: #3c6b40;        /* verde profundo — cor de assinatura / botões */
    --green-dark: #2c4f30;   /* verde profundo, hover / ênfase */
    --green-light: #6c9a5e;  /* verde médio — detalhes, hover claro */
    --green-pastel: #dbe8cf; /* verde pastel — fundo de seções alternadas */
    --bg: #eef2e6;           /* fundo geral do site — verde musgo bem claro */
    --paper: #ffffff;
    --line: #cfdac1;
    --text: #23291f;
    --text-muted: #5c6653;
    --whats: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 2rem;
}

/* Divisor simples entre header e hero */
.checker-divider {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--ink), var(--green));
}

/* ==========================================================================
   HEADER — clareado, sem moldura/círculo na logo
   ========================================================================== */

header {
    background-image:
        linear-gradient(180deg, rgba(238, 242, 230, 0.28) 0%, rgba(27, 36, 26, 0.22) 100%),
        url(imagens/fotoriopreto.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
    padding: 2rem 0;
    position: relative;
    top: 0;
    z-index: 1000;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--green);
    opacity: 0;
    animation: bottomLineReveal 1s ease-out forwards;
    animation-delay: 0.6s;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.header-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoDriveAcross 4s ease-in-out both;
}

.header-icon-wrapper img {
    max-height: 170px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    border-radius: 20px;
}

.header-title {
    text-align: center;
    position: relative;
}

.header-title p {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 1px;
    opacity: 0;
    animation: titleSlideUp 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 4s;
    position: relative;
    line-height: 1.3;
    text-shadow: 0 2px 14px rgba(255,255,255,0.85), 0 1px 3px rgba(255,255,255,0.6);
}

.header-title .brand-line {
    display: block;
    font-size: 2.5rem;
    color: #101b11;
}

.header-title .location-line {
    display: block;
    font-size: 1.75rem;
    color: #182919;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 0.2rem;
}

.title-underline {
    width: 60px;
    height: 3px;
    margin: 0.8rem auto 0;
    background: var(--green);
    opacity: 0;
    animation: underlineFill 0.6s ease-out forwards;
    animation-delay: 5s;
}

@keyframes bottomLineReveal {
    from { width: 0%; left: 50%; }
    to { width: 100%; left: 0; }
}

@keyframes logoDriveAcross {
    /* entra vindo de fora da tela, à esquerda */
    0% {
        opacity: 1;
        transform: translate(calc(-50% - 130vw), -50%);
    }
    /* chega perto do centro com um pouco de excesso de curso... */
    18% {
        transform: translate(calc(-50% + 10px), -50%);
    }
    /* ...e um leve trancozinho de volta, como se tivesse freado */
    22% {
        transform: translate(calc(-50% - 4px), -50%);
    }
    /* acomoda exatamente no centro do banner */
    25% {
        transform: translate(-50%, -50%);
    }
    /* fica parada no centro por 1,5s (de 25% a 62,5% de 4s) */
    62% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    /* retoma o caminho e sai pela direita até sumir da tela */
    88% {
        transform: translate(calc(-50% + 90vw), -50%);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + 170vw), -50%);
        opacity: 0;
    }
}

@keyframes titleSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes underlineFill {
    from { opacity: 0; width: 0; }
    to { opacity: 1; width: 60px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    background: var(--ink);
    padding: 3.5rem 2rem;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero .eyebrow {
    display: inline-block;
    color: var(--green-light);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.hero h2 {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #cdd6c7;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons img {
    vertical-align: middle;
    margin-right: 8px;
    width: 23px;
    height: 23px;
    filter: brightness(0) invert(1);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    border: 2px solid var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-primary img {
    filter: brightness(0) invert(1);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--whats);
}

.btn-secondary:hover {
    background: var(--whats);
    color: #06210f;
}

/* ==========================================================================
   TITULOS DE SEÇÃO
   ========================================================================== */

.section-title {
    text-align: center;
    font-size: 1.9rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.section-eyebrow {
    display: block;
    text-align: center;
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    font-weight: 500;
}

/* ==========================================================================
   SERVIÇOS — lista flat, sem cartão/sombra, mais direta
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0;
    margin-top: 2rem;
    border-top: 1px solid var(--line);
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: transparent;
    padding: 1.6rem 0.5rem;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.6);
}

.service-card .service-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.service-card .service-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.service-card h3 {
    color: var(--ink);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.94rem;
}

/* ==========================================================================
   FAIXA DE ESTATÍSTICAS — clara e legível
   ========================================================================== */

.stats-band {
    background: var(--green-pastel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-band .section-title { color: var(--ink); }
.stats-band .section-eyebrow { color: var(--green-dark); }
.stats-band .section-subtitle { color: var(--ink-soft); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    border-left: 1px solid rgba(27, 36, 26, 0.15);
}

.stat-item:first-child {
    border-left: none;
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--green-dark);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
}

.stat-desc {
    color: var(--ink-soft);
    font-size: 0.82rem;
    margin-top: 0.3rem;
}

/* ==========================================================================
   VEÍCULO
   ========================================================================== */

.vehicle-showcase {
    padding: 4rem 2rem;
    background: var(--bg);
}

.vehicle-showcase .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.vehicle-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.vehicle-content .vehicle-features {
    order: 1;
}

.vehicle-content .vehicle-image-wrapper {
    order: 2;
}

.vehicle-image-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(27, 36, 26, 0.12);
    transition: all 0.3s ease;
    border: 1px solid var(--line);
    aspect-ratio: 1 / 1;
}

.vehicle-image-wrapper:hover {
    box-shadow: 0 10px 26px rgba(27, 36, 26, 0.18);
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.vehicle-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--paper);
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(60, 107, 64, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: var(--green-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--paper);
    width: 12px;
    height: 12px;
}

.badge-icon img {
    width: 20px;
    height: 20px;
}

.badge-text {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.8rem;
}

.vehicle-features {
    display: grid;
    gap: 1.3rem;
}

.vehicle-feature {
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    background: var(--paper);
    border-radius: 6px;
    box-shadow: none;
    transition: all 0.3s ease;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
}

.vehicle-feature:hover {
    box-shadow: 0 6px 16px rgba(27, 36, 26, 0.08);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--green);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-box img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.feature-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.3rem 0;
}

.feature-content p {
    font-size: 0.93rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   DICAS PERSONALIZADAS
   ========================================================================== */

.tips-section {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.3rem;
    margin-top: 2.5rem;
}

.tip-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: var(--bg);
    padding: 1.4rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid var(--line);
}

.tip-card:hover {
    border-color: var(--green);
    box-shadow: 0 6px 16px rgba(27, 36, 26, 0.08);
}

.tip-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.tip-card h4 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.tip-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   CONTATO — clareado, legível
   ========================================================================== */

.contact-section {
    background: var(--green-pastel);
    color: var(--ink);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info-box {
    background: var(--paper);
    padding: 1.7rem;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.contact-info-box h2 {
    color: var(--green-dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-info-box img {
    width: 35px;
    height: 35px;
    transform: translateY(10px);
    filter: brightness(0) saturate(100%) invert(30%) sepia(24%) saturate(1000%) hue-rotate(70deg);
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--green);
}

.contact-item a {
    color: var(--green-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--ink);
}

.contact-item p {
    color: var(--ink);
    transition: color 0.3s ease;
}

.contact-form {
    background: var(--paper);
    padding: 1.7rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    align-items: flex-start;
}

.contact-form h3 {
    color: var(--green-dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-form img {
    width: 35px;
    height: 35px;
    transform: translateY(10px);
    filter: brightness(0) saturate(100%) invert(30%) sepia(24%) saturate(1000%) hue-rotate(70deg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ink-soft);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8a9382;
}

select option {
    background: #ffffff;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER / FLUTUANTES
   ========================================================================== */

footer {
    background: var(--ink);
    color: #a7b39d;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: var(--green-light);
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whats);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(60, 107, 64, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    line-height: 1;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(60, 107, 64, 0.45);
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 768px) {
    header {
        min-height: 220px;
        padding: 1.5rem 0;
    }

    header .container {
        gap: 0.8rem;
    }

    .header-icon-wrapper img {
        max-height: 120px;
    }

    .header-title .brand-line {
        font-size: 1.5rem;
    }

    .header-title .location-line {
        font-size: 1.1rem;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(3) {
        border-left: none;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 100px;
    }

    .whatsapp-float {
        bottom: 30px;
    }

    .vehicle-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vehicle-content .vehicle-features {
        order: 2;
    }

    .vehicle-content .vehicle-image-wrapper {
        order: 1;
    }
}

@media (max-width: 640px) {
    .vehicle-feature {
        padding: 1.2rem;
    }

    .feature-icon-box {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .vehicle-badge {
        bottom: 10px;
        right: 10px;
        padding: 4px 8px;
    }

    .badge-text {
        font-size: 0.7rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-left: none !important;
        border-top: 1px solid rgba(27, 36, 26, 0.15);
    }

    .stat-item:first-child {
        border-top: none;
    }
}

::-webkit-scrollbar {
    width: 10px;
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--green-dark);
}