/* ==========================================================
   Flash Elevadores — estilos
   Cores herdadas do site original (Elementor):
   primária #5C0726 (vinho) · destaque #CC3366 · texto #333333
   ========================================================== */

:root {
  --primary: #5C0726;
  --primary-dark: #3F0419;
  --primary-light: #7E1A3F;
  --primary-soft: #F6ECF0;
  --accent: #CC3366;
  --secondary: #54595F;
  --text: #333333;
  --muted: #5F5F5F;          /* um pouco mais escuro que o #7A7A7A original: melhor contraste */
  --border: #E6DCE0;
  --tint: #FAF6F7;
  --dark: #1A1418;
  --whats: #25D366;
  --whats-dark: #1DA851;
  --white: #FFFFFF;

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-title: "Poppins", var(--font);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 6px 24px rgba(26, 20, 24, .08);
  --shadow-strong: 0 18px 44px rgba(92, 7, 38, .22);
  --container: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--font); color: var(--text); background: var(--white); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .6em; color: var(--primary); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; margin-top: 1.5rem; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--primary); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow { font: 600 .8rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.eyebrow--light { color: #F2B6CA; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s, background-color .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-strong); }
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--primary); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--primary); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--primary-soft); color: var(--primary); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--whats { background: var(--whats); color: #fff; }
.btn--whats:hover { background: var(--whats-dark); color: #fff; }
.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--dark); color: #E9E1E4; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: #F2B6CA; }
.topbar__plantao { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__plantao .icon { color: #F2B6CA; }
.topbar__contatos { display: flex; gap: 1.25rem; }

/* ---------- Cabeçalho ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--primary); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 96px; transition: min-height .25s; }
.header.is-scrolled .header__inner { min-height: 74px; }
.header__logo img { width: auto; height: 76px; transition: height .25s; }
.header.is-scrolled .header__logo img { height: 58px; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: .6rem .9rem; color: #fff; text-decoration: none;
  font-weight: 500; letter-spacing: .03em; border-radius: 6px; position: relative;
}
.nav ul a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .3rem; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav ul a:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer; }
.nav-toggle .icon { width: 30px; height: 30px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background: #2a1a20 url("../img/slide-01.jpg") center / cover no-repeat;
  min-height: min(82vh, 760px); display: grid; align-items: center; padding: 6rem 0 8rem;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,14,.55), rgba(63,4,25,.78)); }
.hero__inner { position: relative; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #F3EAEE; max-width: 640px; margin: 0 auto 2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__badges { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; gap: .75rem 2rem; justify-content: center; flex-wrap: wrap; font-size: .92rem; color: #F3EAEE; }
.hero__badges li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__badges .icon { color: #F2B6CA; }

.page-hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, var(--primary-light)); color: #F3EAEE; padding: 4rem 0 3.5rem; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { font-size: 1.1rem; max-width: 680px; margin: 0; }
.page-hero p + p { margin-top: 1.5rem; }
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; color: #E7C9D4; }
.breadcrumb a { color: #fff; }

/* ---------- Seções ---------- */
.section { padding: 5rem 0; }
.section--tint { background: var(--tint); }
.section--pull { padding-top: 0; margin-top: -5rem; position: relative; z-index: 2; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__head--left { text-align: left; margin-left: 0; }
.section__head p:last-child { color: var(--muted); }

.cards { display: grid; gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.card p { color: var(--muted); margin: 0 0 1rem; }
.card p:last-child { margin: 0; }
.card--dark { background: var(--primary); border-color: transparent; color: #fff; text-align: center; }
.card--dark h3 { color: #fff; }
.card--dark p { color: #EEDCE3; }
.card__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--primary); margin-bottom: 1.1rem; }
.card__icon .icon { width: 30px; height: 30px; }
.card__icon--outline { background: var(--primary-soft); color: var(--primary); }
.card--service .link-arrow { margin-top: .25rem; }
.card--service { display: flex; flex-direction: column; }
.card--service p { flex: 1; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.split__text p { color: var(--muted); }
.split--center { align-items: center; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stats li { background: var(--tint); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; }
.stats strong { display: block; font: 700 1.6rem/1.1 var(--font-title); color: var(--primary); margin-bottom: .35rem; }
.stats span { color: var(--muted); font-size: .95rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; background: var(--tint); border-radius: var(--radius); padding: 1rem 1.2rem; }
.checklist .icon { color: var(--accent); width: 22px; height: 22px; margin-top: .15rem; }
.checklist--light li { background: rgba(255,255,255,.1); color: #fff; }
.checklist--light .icon { color: #F2B6CA; }

.crea { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: center; background: var(--tint); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem 3rem; }
.crea img { background: #fff; border-radius: var(--radius); padding: 1rem; }
.crea p:last-child { color: var(--muted); margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value { border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.5rem; }
.value h3 { margin-bottom: .3rem; }
.value p { margin: 0; color: var(--muted); }

.subnav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 74px; z-index: 40; }
.subnav .container { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 0; }
.subnav a { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; padding: .55rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 500; background: var(--primary-soft); }
.subnav a:hover { background: var(--primary); color: #fff; }
.service__cta { margin-top: 2rem; }

.feature-box { background: linear-gradient(140deg, var(--primary), var(--primary-light)); border-radius: var(--radius-lg); padding: 2.5rem; color: #fff; box-shadow: var(--shadow-strong); }
.feature-box__icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--primary); margin-bottom: 1.5rem; }
.feature-box__icon .icon { width: 40px; height: 40px; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
.contact__info { display: grid; gap: 1rem; }
.info { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
.info h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.info p { margin: 0 0 .2rem; color: var(--muted); }
.info a { font-weight: 500; }
.info__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); flex: none; }
.info__icon .icon { width: 22px; height: 22px; }
.info--highlight { background: var(--primary); border-color: transparent; color: #fff; }
.info--highlight h2 { color: #fff; }
.info--highlight p { color: #EEDCE3; }
.info--highlight .info__icon { background: #fff; }
.info__big { display: block; font: 700 1.5rem/1.3 var(--font-title); color: #fff; text-decoration: none; margin: .4rem 0 .8rem; }
.info__big:hover { color: #F2B6CA; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow); }

/* ---------- Formulário ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid #D9CDD2; border-radius: var(--radius); padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(92,7,38,.12); }
.field.is-invalid input, .field.is-invalid select { border-color: #C0392B; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: .3rem; accent-color: var(--primary); width: 17px; height: 17px; flex: none; }
.form__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__status { margin: 0; font-weight: 500; }
.form__status.is-ok { color: #1E7E34; }
.form__status.is-erro { color: #C0392B; }
.form.is-loading button[type="submit"] { opacity: .7; pointer-events: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: .9rem 1.1rem; font-weight: 500; }
.alert--ok { background: #E8F6EC; color: #1E7E34; }
.alert--erro { background: #FBEAEA; color: #A93226; }

/* ---------- Faixa de chamada ---------- */
.cta-band { background: var(--accent); background: linear-gradient(110deg, var(--primary) 0%, var(--accent) 100%); color: #fff; padding: 3rem 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; color: #F7E4EB; }
.cta-band__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Rodapé ---------- */
.footer { background: var(--dark); color: #CFC4C8; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer h3 { color: #fff; font-size: 1rem; letter-spacing: .04em; margin-bottom: 1.1rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #F2B6CA; }
.footer__logo { height: 64px; width: auto; margin-bottom: 1.1rem; }
.footer__crea { display: inline-flex; gap: .5rem; align-items: center; color: #F2B6CA; font-weight: 500; }
.footer__links, .footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact .icon { color: #F2B6CA; margin-top: .25rem; }
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--accent); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: flex; align-items: center; gap: .6rem; background: var(--whats); color: #fff;
  border-radius: 999px; padding: .9rem; box-shadow: 0 10px 28px rgba(0,0,0,.25); text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.whats-float:hover { background: var(--whats-dark); color: #fff; transform: scale(1.05); }
.whats-float .icon { width: 30px; height: 30px; }
.whats-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; transition: max-width .3s; }
.whats-float:hover .whats-float__label, .whats-float:focus-visible .whats-float__label { max-width: 220px; padding-right: .4rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 8, 14, .7); backdrop-filter: blur(3px); }
.modal__box { position: relative; width: min(100%, 680px); max-height: calc(100vh - 2rem); overflow-y: auto; background: #fff; border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: modal-in .25s ease-out; }
.modal__close { position: absolute; top: 1rem; right: 1rem; background: var(--primary-soft); color: var(--primary); border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.modal__close:hover { background: var(--primary); color: #fff; }
.modal__lead { color: var(--muted); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
body.modal-open { overflow: hidden; }

/* ---------- Animação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 2.5rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); background: var(--primary-dark);
    flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 6rem 1.5rem 2rem;
    transform: translateX(100%); transition: transform .3s; z-index: -1; box-shadow: -20px 0 40px rgba(0,0,0,.3);
  }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: .9rem 1rem; font-size: 1.1rem; }
  .nav ul a::after { left: 1rem; right: auto; width: 32px; }
  .nav-toggle { position: relative; z-index: 2; }

  .cards--3, .cards--2, .values { grid-template-columns: 1fr 1fr; }
  .split, .contact, .crea { grid-template-columns: 1fr; }
  .crea { text-align: center; padding: 2rem; }
  .crea img { margin: 0 auto; }
  .subnav { top: 74px; }
}

@media (max-width: 640px) {
  .topbar__plantao { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner { min-height: 78px; }
  .header__logo img { height: 56px; }
  .cards--3, .cards--2, .values, .stats, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .section--pull { margin-top: -3.5rem; }
  .hero { padding: 4rem 0 6rem; min-height: 0; }
  .hero__actions .btn { width: 100%; }
  .panel, .modal__box { padding: 1.5rem; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .whats-float { right: 1rem; bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
