/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #ff6b1a;
    --primary-dark: #e0550a;
    --dark: #14161a;
    --gray: #5a6270;
    --light: #f6f7f9;
    --white: #fff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

section {
    padding: 72px 0;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.2rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 12px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.lead {
    font-size: 1.1rem;
    color: var(--gray);
}

.center {
    text-align: center;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 26, 0.35);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-whats {
    background: #25d366;
    color: #fff;
}

.btn-whats:hover {
    background: #1eb857;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ===== HEADER (com encolhimento ao rolar) ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20, 22, 26, 0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 14px 0;
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 6px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    width: auto;
    max-width: 400px;
    transition: max-width 0.3s ease;
}

header.scrolled .logo img {
    max-width: 220px;
}

nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
}

nav a {
    font-size: 0.95rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Menu hamburguer (mobile) */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 8px;
}

.menu-toggle:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .header-inner {
        justify-content: center;
    }

    .logo img {
        max-width: 430px;
        width: 100%;
        max-height: 80px;
        object-fit: contain;
    }

    header.scrolled .logo img {
        max-width: 200px;
        max-height: 44px;
    }

    .menu-toggle {
        display: inline-flex;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(20, 22, 26, 0.98);
        border-top: 1px solid #2a2d33;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.open {
        max-height: 420px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    nav ul li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 12px 6%;
        border-bottom: 1px solid #2a2d33;
    }

    nav ul li:last-child a {
        border-bottom: 0;
    }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #24262d 60%, #3a2412 100%);
    background-image: url(../img/hero.png);
    color: #fff;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 107, 26, 0.25), transparent 50%);
    pointer-events: none;
}

.hero-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 720px;
margin-inline: auto;
    backdrop-filter: blur(21px);
    padding: 30px;
    border-radius: 50px;
    box-shadow: 0px 0px 125px #000, 0px 0px 125px #000, 0px 0px 155px #000;
}

.badge {
    display: inline-block;
    background: rgba(255, 107, 26, 0.18);
    color: var(--light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 26, 0.4);
}

.hero h1 {
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 32px;
    text-shadow: 0px 2px 3px black;
}

.hero-btns {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 14px;
}

.hero-features {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 24px;
margin-top: 40px;
list-style: none;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #c9ccd3;
}

.hero-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
}

/* ===== SERVIÇOS (GRID) ===== */
.services {
    background: var(--light);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    border: 1px solid #eef0f3;
}

.card:hover {
    transform: translateY(-4px);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 107, 26, 0.12);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Cards com imagem no topo (serviços e categorias) */
.service-card,
.category-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.service-card img,
.category-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover img,
.category-card:hover img {
    transform: scale(1.05);
}

.service-card .card-content,
.category-card .card-content {
    padding: 24px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card p,
.category-card p {
    flex: 1;
    margin-bottom: 0;
}

.category-card p {
    margin-bottom: 18px;
}

.category-card .btn {
    align-self: flex-start;
}

/* ===== SEÇÃO UNIFICADA: MÁQUINAS QUE CONSERTAMOS ===== */
.machines {
    background: var(--white);
}

.machines-block {
    margin-top: 48px;
}

.machines-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 107, 26, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
}

.machines-subtitle::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--primary);
    border-radius: 3px;
}

.machines-divider {
    margin: 48px 0 40px;
    border: 0;
    border-top: 1px dashed #d8dbe1;
}

/* Carrossel de marcas */
.carousel-wrap {
    position: relative;
    margin-top: 8px;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 4px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e8eaed;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: #e8eaed;
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.brand-item {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--light);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #eef0f3;
    transition: transform 0.2s, box-shadow 0.2s;
}

.brand-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* Container da logo da marca */
.brand-logo {
    width: 100%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #d9c9be;
    margin-bottom: 16px;
    padding: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.2s;
}

.brand-item:hover .brand-logo {
    border-color: var(--primary);
}

.brand-item:hover .brand-logo img {
    transform: scale(1.05);
}

.brand-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.brand-item p {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 18px;
    min-height: 40px;
}

.brand-item .btn {
    margin-top: auto;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.carousel-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s;
}

.carousel-nav button:hover {
    background: var(--primary);
    color: #fff;
}

.brands-note {
    text-align: center;
    margin-top: 28px;
    color: var(--gray);
    font-size: 0.95rem;
}

.brands-note a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

/* ===== DIFERENCIAIS ===== */
.features {
    background: var(--light);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature {
    text-align: center;
}

.feature-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.feature p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* ===== COMO FUNCIONA ===== */
.steps {
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s;
}

.step:hover {
    transform: translateY(-4px);
}

.step-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--light);
}

.step-num {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.15rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 107, 26, 0.4);
}

.step-body {
    padding: 24px 26px 32px;
}

.step h3 {
    margin-top: 0;
}

.step p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== DEPOIMENTOS ESTILO GOOGLE ===== */
.testimonials {
    background: var(--light);
}

.google-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.google-logo {
    width: 32px;
    height: 32px;
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.google-rating .score {
    font-size: 1.1rem;
}

.google-rating .stars-google {
    color: #fbbc05;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.google-rating .count {
    color: var(--gray);
    font-weight: 400;
    font-size: 0.9rem;
}

.grid-testi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.testi {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid #eef0f3;
    display: flex;
    flex-direction: column;
}

.testi-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.avatar-1 {
    background: #4285f4;
}

.avatar-2 {
    background: #ea4335;
}

.avatar-3 {
    background: #34a853;
}

.testi-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.testi-date {
    color: var(--gray);
    font-size: 0.8rem;
}

.testi-stars {
    color: #fbbc05;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-size: 1rem;
}

.testi p {
    color: var(--dark);
    font-size: 0.95rem;
    flex: 1;
}

.testi-source {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef0f3;
    font-size: 0.8rem;
    color: var(--gray);
}

.testi-source svg {
    width: 16px;
    height: 16px;
}

/* ===== FAQ ===== */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

details {
    background: var(--light);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    cursor: pointer;
    border: 1px solid #eef0f3;
}

details summary {
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 400;
}

details[open] summary::after {
    content: '−';
}

details p {
    margin-top: 12px;
    color: var(--gray);
}

/* ===== LOCALIZAÇÃO ===== */

/* ===== LOCALIZAÇÃO ===== */
.location {
background: var(--light);
}

.location-grid {
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: 32px;
margin-top: 48px;
align-items: stretch;
}

.location-map {
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow);
border: 1px solid #eef0f3;
min-height: 380px;
background: var(--white);
}

.location-map iframe {
width: 100%;
height: 100%;
min-height: 380px;
display: block;
border: 0;
}

.location-info {
background: var(--white);
border-radius: var(--radius);
box-shadow: var(--shadow);
border: 1px solid #eef0f3;
padding: 32px 28px;
display: flex;
flex-direction: column;
}

.location-info h3 {
font-size: 1.3rem;
margin-bottom: 12px;
color: var(--dark);
}

.location-address {
color: var(--gray);
font-size: .98rem;
line-height: 1.7;
margin-bottom: 20px;
}

.location-address strong {
color: var(--dark);
}

.location-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 24px;
color: var(--gray);
font-size: .95rem;
}

.location-list li {
display: flex;
align-items: flex-start;
gap: 10px;
}

.location-list a {
color: var(--primary);
font-weight: 700;
}

.location-list a:hover {
text-decoration: underline;
}

.location-btns {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: auto;
}

@media (max-width: 860px) {
.location-grid {
grid-template-columns: 1fr;
}

.location-map,
.location-map iframe {
min-height: 320px;
}
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: #8b909a;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid #2a2d33;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

footer a {
    color: #c9ccd3;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary);
}

.footer-contacts {
    text-align: right;
}

.footer-contacts p {
    margin: 0;
}

.footer-contacts p + p {
    margin-top: 4px;
}

.footer-whats {
    color: #25d366 !important;
    font-weight: 700;
}

.footer-whats:hover {
    color: #1eb857 !important;
}

.sep {
    margin: 0 6px;
    opacity: 0.5;
}

/* ===== ACESSIBILIDADE ===== */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
     {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    /* HERO: parágrafo com max-width centralizado */
.hero p {
margin-inline: auto;
}

    /* SERVIÇOS e CATEGORIAS: cards com imagem centralizados */
    .service-card,
    .category-card {
        text-align: center;
    }

    .service-card .btn,
    .category-card .btn {
        align-self: center;
    }

    /* Subtítulo da seção de máquinas */
    .machines-subtitle {
        justify-content: center;
    }

    /* CARROSSEL DE MARCAS: alinhar à esquerda sem cortar o 1º item */
    .carousel {
        justify-content: flex-start;
        scroll-padding-inline: 7.5%;
        padding-left: 7.5%;
        padding-right: 7.5%;
    }

    .brand-item {
        flex: 0 0 85%;
        text-align: center;
    }

    .carousel-nav {
        justify-content: center;
    }

    .brands-note {
        text-align: center;
    }

    /* COMO FUNCIONA: centralizar */
    .step {
        text-align: center;
    }

    /* FOOTER centralizado */
    .footer-inner {
        text-align: center;
        justify-content: center;
    }

    .footer-contacts {
        text-align: center;
    }

    .sep {
        display: none;
    }

    .footer-contacts p + p a {
        display: inline-block;
        margin: 2px 6px;
    }
}
