/* ==========================================================================
   Erecont - estilos
   Escala fluida (clamp) para funcionar bem de 320px a telas grandes.
   ========================================================================== */
:root {
    --red: #bd1e1e;
    --red-600: #a11818;
    --red-700: #7f1212;
    --red-50: #fdf0f0;
    --ink: #1a1a1f;
    --gray: #5f6368;
    --gray-300: #d9dbde;
    --bg: #ffffff;
    --bg-soft: #f6f6f7;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(20,20,30,.06), 0 8px 24px rgba(20,20,30,.08);
    --shadow-lg: 0 2px 4px rgba(20,20,30,.06), 0 24px 48px rgba(20,20,30,.14);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 9vw, 112px);
    --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.65; color: var(--gray); background: var(--bg);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; z-index: 200; border-radius: 8px; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 48px; padding: .75em 1.6em; border: 2px solid var(--red); border-radius: 999px;
    background: var(--red); color: #fff; font: 800 .9375rem/1 'Mulish', sans-serif; letter-spacing: .01em;
    cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--red-600); border-color: var(--red-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(189,30,30,.3); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gray-300); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn--sm { min-height: 42px; padding: .6em 1.3em; font-size: .875rem; }
.btn--white { background: #fff; border-color: #fff; color: var(--red); }
.btn--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Cabeçalho fixo ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: #ececee; box-shadow: 0 4px 20px rgba(20,20,30,.06); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.header__logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a:not(.btn) { font-weight: 700; font-size: .9375rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; }
.nav__phone .ico { color: var(--red); }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 10px; }
.nav__toggle span { display: block; width: 24px; height: 2.5px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, var(--red-50), transparent 60%), var(--bg); padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--red); border-radius: 2px; }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.75rem); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 34em; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; isolation: isolate; }
.hero__media::before { content: ""; position: absolute; inset: 28px -20px -20px 28px; border-radius: 28px; background: linear-gradient(135deg, var(--red), var(--red-700)); opacity: .12; z-index: -1; }
.hero__brand { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); margin-bottom: clamp(22px, 3vw, 32px); }
.hero__brand img { height: clamp(60px, 7vw, 88px); width: auto; }
.hero__brand-text { padding-left: clamp(14px, 2vw, 22px); border-left: 2px solid var(--gray-300); font-weight: 800; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; color: var(--ink); }
.hero__brand-text span { display: block; color: var(--red); }
.hero__media img { width: 100%; aspect-ratio: 4/3.6; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero__badge { position: absolute; left: -18px; bottom: 28px; background: #fff; border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; }
.hero__badge strong { font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; }
.hero__badge span { font-size: .8125rem; line-height: 1.3; font-weight: 700; color: var(--ink); }

.trust { background: var(--ink); color: #fff; }
.trust__list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }
.trust__list li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.trust__list .ico { color: #ff6b6b; width: 26px; height: 26px; }

/* ---------- Hero interno ---------- */
.page-hero { position: relative; color: #fff; padding-block: clamp(48px, 8vw, 96px); background: linear-gradient(120deg, rgba(20,20,26,.92), rgba(127,18,18,.82)), url('../img/hero.webp') center/cover; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); font-weight: 800; }
.crumbs { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9375rem; margin-bottom: 14px; color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Seções ---------- */
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto clamp(36px, 5vw, 56px); }
.section__head h2, .title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem); font-weight: 800; }
.section__head p { margin: 14px 0 0; }
.title { margin-bottom: 20px; }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__img { position: relative; }
.about__img img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 3/2.4; object-fit: cover; }
.about__img::before { content: ''; position: absolute; inset: 24px -12px -12px 24px; border: 3px solid var(--red); border-radius: 24px; z-index: -1; opacity: .35; }
.about__text p { max-width: 38em; }
.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--red-50); color: var(--red-700); font-weight: 800; font-size: .875rem; padding: 8px 16px; border-radius: 999px; }

/* Serviços */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 24px); }
.cards > .card { grid-column: span 2; }
.cards > .card:nth-child(4), .cards > .card:nth-child(5) { grid-column: span 3; }
.card { position: relative; background: #fff; border: 1px solid #ececee; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(189,30,30,.25); }
.card__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--red-50); color: var(--red); margin-bottom: 20px; transition: background .25s, color .25s; }
.card:hover .card__icon { background: var(--red); color: #fff; }
.card__icon .ico { width: 28px; height: 28px; }
.card h3 { font-size: 1.1875rem; margin-bottom: 10px; }
.card p { margin: 0; font-size: .975rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--3 > .card, .cards--3 > .card:nth-child(4), .cards--3 > .card:nth-child(5) { grid-column: auto; }
.card--link { display: flex; flex-direction: column; }
.card--link .more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 800; }
.card--link .more .ico { transition: transform .2s; }
.card--link:hover .more .ico { transform: translateX(5px); }

/* Missão / visão / valores */
.mvv-section { background: linear-gradient(135deg, var(--red-700), var(--red) 70%); color: #fff; }
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.mvv__item { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); backdrop-filter: blur(4px); }
.mvv__item h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.mvv__item p { margin: 0; color: rgba(255,255,255,.92); }
.mvv-section .section__head h2, .mvv-section .section__head p { color: #fff; }

/* Parceiros (marquee) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; width: clamp(150px, 17vw, 200px); height: clamp(92px, 9vw, 112px); background: #fff; border: 1px solid #ececee; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 12px 16px; box-shadow: 0 1px 2px rgba(20,20,30,.04); transition: transform .25s, box-shadow .25s, border-color .25s; }
.marquee__item img { width: 100%; height: 100%; object-fit: contain; }
.marquee__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(189,30,30,.25); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Contato */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); background: #fff; border: 1px solid #ececee; border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(24px, 4.5vw, 56px); }
.contact__info h3 { font-size: 1.5rem; margin-bottom: 22px; }
.contact__info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; }
.contact__info li .ico-wrap { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--red-50); color: var(--red); }
.contact__info li strong { display: block; color: var(--ink); line-height: 1.3; }
.contact__info li a:hover { color: var(--red); }
.form { display: grid; gap: 16px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .875rem; color: var(--ink); }
.form input, .form select, .form textarea { font: 400 1rem 'Mulish', sans-serif; padding: 14px 16px; min-height: 52px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); color: var(--ink); width: 100%; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(189,30,30,.14); }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__msg { margin: 0; font-weight: 700; min-height: 1.5em; }
.form__msg.ok { color: #1a7f37; }
.form__msg.err { color: var(--red); }

/* Links úteis */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.links__col { background: #fff; border: 1px solid #ececee; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 36px); border-top: 4px solid var(--red); }
.links__col h2 { color: var(--red); font-size: 1.375rem; font-weight: 800; margin-bottom: 18px; }
.links__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.links__col a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f2; font-weight: 700; color: var(--ink); transition: color .2s, padding .2s; }
.links__col li:last-child a { border-bottom: 0; }
.links__col a:hover { color: var(--red); padding-left: 6px; }
.links__col a .ico { width: 1em; height: 1em; opacity: .5; }

/* ---------- Rodapé ---------- */
.footer { background: #131317; color: #b9bbc1; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 6vw, 72px); align-items: start; }
.footer__brand img { width: 200px; height: auto; margin-bottom: 14px; }
.footer__brand p { font-size: .9375rem; max-width: 24em; }
.footer h3 { color: #fff; font-size: 1.0625rem; margin-bottom: 16px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; }
.footer__list .ico { color: #ff6b6b; margin-top: 3px; }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--red); transform: translateY(-3px); }
.footer__copy { border-top: 1px solid rgba(255,255,255,.08); font-size: .875rem; padding: 20px 0; }
.footer__copy .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 32px; height: 32px; }

/* Animação de entrada */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .nav__phone { display: none; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { max-width: 640px; }
    .hero__media::before { inset: 20px -12px -12px 20px; }
    .hero__badge { left: 12px; }
    .trust__list { grid-template-columns: repeat(3, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .cards > .card, .cards > .card:nth-child(4), .cards > .card:nth-child(5) { grid-column: auto; }
    .cards > .card:nth-child(5) { grid-column: 1 / -1; }
    .links, .cards--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    :root { --header-h: 68px; }
    .header__logo img { height: 44px; }
    .nav__toggle { display: block; }
    .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid #ececee; box-shadow: 0 20px 30px rgba(20,20,30,.1); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
    .nav.open { transform: none; opacity: 1; visibility: visible; }
    .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid #f0f0f2; font-size: 1.0625rem; }
    .nav a:not(.btn)::after { display: none; }
    .nav .btn { margin-top: 16px; }
    .about, .contact { grid-template-columns: 1fr; }
    .about__img::before { display: none; }
    .mvv, .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hero__cta .btn { width: 100%; }
    .hero__media::before { display: none; }
    .hero__media img { aspect-ratio: 16/11; border-radius: 20px; }
    .hero__brand img { height: 56px; }
    .hero__brand-text { font-size: .75rem; }
    .hero__badge { position: static; margin: 14px 0 0; width: max-content; max-width: calc(100% - 32px); }
    .trust__list { grid-template-columns: 1fr; padding: 20px 0; }
    .cards, .links, .cards--3, .form__row { grid-template-columns: 1fr; }
    .cards > .card:nth-child(5) { grid-column: auto; }
    .form .btn { width: 100%; justify-self: stretch; }
    .footer__copy .container { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee__track { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition-duration: .01ms !important; }
}

/* Mapa */
.map { position: relative; margin-top: clamp(24px, 4vw, 40px); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #ececee; background: var(--bg-soft); }
.map iframe { display: block; width: 100%; height: clamp(300px, 42vw, 440px); border: 0; }
.map__card { position: absolute; left: clamp(12px, 2.5vw, 28px); bottom: clamp(12px, 2.5vw, 28px); max-width: 320px; background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-lg); display: grid; gap: 4px; font-size: .9375rem; line-height: 1.45; }
.map__card strong { color: var(--ink); font-size: 1.0625rem; }
.map__card .btn { margin-top: 10px; justify-self: start; }
@media (max-width: 600px) {
    .map { border-radius: 20px; }
    .map__card { position: static; max-width: none; border-radius: 0; box-shadow: none; border-top: 1px solid #ececee; }
}
