/* ==========================================================
   SUPERMIX — site novo, mobile-first
   Paleta: ink #141414 | concreto #ECECEA | vermelho #F72228
           aço #6E6E6E | whatsapp #25D366
   Tipos:  Archivo (display) + Inter (texto)
   ========================================================== */

:root {
    --ink: #141414;
    --ink-2: #1e1e1e;
    --concrete: #ECECEA;
    --paper: #ffffff;
    --steel: #6e6e6e;
    --line: #d9d9d5;
    --red: #F72228;
    --red-dark: #c51b20;
    --wa: #25D366;
    --wa-dark: #1cab52;

    --font-display: "Archivo", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --radius: 14px;
    --wrap: 1140px;
    --sticky-h: 76px; /* altura da barra fixa mobile */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--concrete);
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--sticky-h); /* espaço p/ barra fixa */
}

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

.wrap {
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
}

/* ---------- Tipografia ---------- */
h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.1;
    margin: 0 0 .6em;
    text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 6.5vw, 3.4rem); font-weight: 900; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--red); }

.sec-title {
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    position: relative;
    padding-top: .8rem;
}
.sec-title strong { font-weight: 900; }
/* fita vermelha — assinatura herdada do site original */
.sec-title::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 56px; height: 8px;
    background: var(--red);
    transform: skewX(-18deg);
}
.sec-title.inverse { color: #fff; }

.sec-sub { color: var(--steel); margin: 0; max-width: 46ch; }
.sec-sub.inverse { color: #cfcfcf; }
.sec-head { margin-bottom: 2rem; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #fff;
    background: var(--red);
    padding: .35rem .7rem;
    transform: skewX(-8deg);
    margin: 0 0 1rem;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: .8rem 1.5rem;
    cursor: pointer;
    transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px; /* alvo de toque confortável */
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }

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

.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #000; }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: var(--wa-dark); }

.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-sm { padding: .55rem 1.1rem; min-height: 42px; font-size: .85rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-xl { width: 100%; padding: 1.1rem 1.5rem; font-size: 1.1rem; }

:where(a, button, input, [tabindex]):focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Header ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(20, 20, 20, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: .7rem;
}
.brand img { width: 110px; height: auto; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    display: grid;
    min-height: min(92svh, 760px);
    align-items: end;
    isolation: isolate;
}
.hero-media {
    position: absolute; inset: 0; z-index: -2;
    /* Mobile: desloca o enquadramento para a direita, trazendo o nome
       na betoneira e o profissional parcialmente para dentro da tela. */
    background: url("../images/Banner_-_fornecemos_concreto_de_qualidade_desde_1976_-_Desktop.jpg") 72% 35%/cover no-repeat;
}
.hero-shade {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(20,20,20,.35) 0%, rgba(20,20,20,.55) 45%, rgba(20,20,20,.92) 100%);
}
.hero-content { padding-block: 3.5rem 2.5rem; }
.hero-sub { font-size: 1.05rem; color: #e6e6e6; max-width: 42ch; }

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 1.6rem 0 2.2rem;
}

.trust-strip {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin: 0;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(255,255,255,.25);
}
.trust-strip li { display: grid; gap: .1rem; }
.trust-strip strong {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    color: var(--red);
    line-height: 1;
}
.trust-strip span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #cfcfcf; line-height: 1.3; }

/* ---------- Seções ---------- */
.section { padding-block: 3.5rem; }

/* ---------- Produtos: carrossel nativo ---------- */
.carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 320px);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .25rem 1.25rem 1rem;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }

.p-card {
    scroll-snap-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.p-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.p-card p { margin: 0; color: var(--steel); font-size: .92rem; flex: 1; }
.p-tag {
    align-self: flex-start;
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--red);
    border: 1px solid currentColor;
    padding: .15rem .55rem;
    border-radius: 999px;
}
.p-card .btn { margin-top: .5rem; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: .45rem;
    padding-top: .25rem;
}
.carousel-dots i {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #c5c5c0;
    transition: transform .2s, background-color .2s;
}
.carousel-dots i.on { background: var(--red); transform: scale(1.3); }

/* ---------- Por que ---------- */
.porque { background: var(--ink); color: #e8e8e8; }
.porque-grid { display: grid; gap: 2rem; }
.porque-img img { border-radius: var(--radius); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: .7rem; }
.check-list li { padding-left: 1.9rem; position: relative; }
.check-list li::before {
    content: "";
    position: absolute; left: 0; top: .3em;
    width: 16px; height: 9px;
    border-left: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    transform: rotate(-45deg);
}

/* ---------- Obras ---------- */
.obras-grid { display: grid; gap: 1.2rem; }
.obra-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
.obra-card img { aspect-ratio: 590/350; object-fit: cover; width: 100%; }
.obra-body { padding: 1.2rem 1.3rem 1.5rem; }
.obra-body h3 { font-size: 1.1rem; font-weight: 700; }
.obra-body p { margin: 0; color: var(--steel); font-size: .93rem; }

/* ---------- Montador de orçamento ---------- */
.orcamento {
    background: var(--ink) url("../images/bg-cta-1920x385.jpg") center/cover no-repeat;
    background-blend-mode: multiply;
    color: #fff;
}
.builder {
    background: var(--paper);
    color: var(--ink);
    border-radius: calc(var(--radius) + 6px);
    padding: 1.5rem 1.25rem 1.75rem;
    display: grid;
    gap: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    max-width: 640px;
    margin-inline: auto;
}
.b-step { border: 0; padding: 0; margin: 0; }
.b-step legend {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .8rem;
    padding: 0;
}
.b-step legend small { font-weight: 400; color: var(--steel); font-size: .8rem; }
.b-num {
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    background: var(--red);
    color: #fff;
    font-size: .8rem;
    border-radius: 50%;
    flex: 0 0 auto;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .88rem;
    background: var(--concrete);
    color: var(--ink);
    border: 1.5px solid transparent;
    border-radius: 999px;
    padding: .55rem 1rem;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, transform .12s;
    min-height: 42px;
    -webkit-tap-highlight-color: transparent;
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.range-row { display: grid; gap: .5rem; }
.range-row output {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--red);
    font-size: 1.05rem;
}
input[type="range"] {
    width: 100%;
    accent-color: var(--red);
    height: 36px;
    cursor: pointer;
}

.b-input {
    width: 100%;
    font: inherit;
    padding: .85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.b-input:focus { border-color: var(--ink); outline: none; }

.b-preview {
    background: #e7f8ee;
    border: 1px dashed var(--wa-dark);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.b-preview-label {
    display: block;
    font-family: var(--font-display);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--wa-dark);
    margin-bottom: .3rem;
}
.b-preview p { margin: 0; font-size: .95rem; white-space: pre-line; }

.b-hint { text-align: center; font-size: .8rem; color: var(--steel); margin: -.6rem 0 0; }

/* ---------- Onde estamos ---------- */
.onde { background: var(--paper); }
.onde-grid { display: grid; gap: 1.5rem; align-items: center; }
.onde-img img { max-width: 320px; margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d4d4d4; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem; }
.footer h3 {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.footer p { font-size: .9rem; margin: .8rem 0 0; }
.f-brand img { width: 130px; }
.f-links ul { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .55rem; }
.f-links a { color: #d4d4d4; text-decoration: none; }
.f-links a:hover { color: #fff; text-decoration: underline; }
.f-cta .btn { margin-top: .8rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-block: 1rem;
    font-size: .8rem;
    color: #9a9a9a;
}

/* ---------- Barra fixa mobile ---------- */
.sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    gap: .6rem;
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(0);
    transition: transform .3s ease;
}
.sticky-cta.hidden { transform: translateY(110%); }
.sticky-cta .btn-primary { flex: 1; }
.sticky-cta .btn-wa { width: 52px; padding: 0; border-radius: 50%; flex: 0 0 auto; }

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
    .hero-media { background-position: center 30%; }
    .hero-actions { flex-direction: row; }
    .obras-grid { grid-template-columns: repeat(3, 1fr); }
    .porque-grid { grid-template-columns: 1fr 1fr; align-items: center; }
    .onde-grid { grid-template-columns: 1.2fr 1fr; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .carousel {
        grid-auto-columns: 300px;
        padding-inline: max(1.25rem, (100vw - var(--wrap)) / 2);
    }
    .builder { padding: 2.2rem 2.4rem 2.5rem; }
    .section { padding-block: 5rem; }
}

@media (min-width: 1024px) {
    body { padding-bottom: 0; }
    .sticky-cta { display: none; }
}

/* ---------- Acessibilidade: reduz movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .chip { transition: none; }
}
