/* =========================================================================
   Lei do Motorista — Dra. Roberta Santana
   Site institucional. Estética sóbria, corporativa, flat.
   Sem gradientes. Paleta teal monocromática + neutros. Cantos retos.
   ========================================================================= */

:root {
  /* Teal (marca RS) — único acento */
  --teal: #387281;
  --teal-dark: #2a5763;
  --teal-700: #1f4750;
  --teal-900: #122a30;   /* fundos escuros (hero, faixas, footer) */
  --teal-950: #0d2024;
  --teal-050: #eef4f5;   /* leve tom de marca em ícones */

  /* Neutros */
  --ink: #15262b;        /* títulos */
  --text: #34464b;       /* corpo */
  --muted: #647479;      /* secundário */
  --line: #e1e8e9;       /* bordas */
  --bg: #ffffff;
  --bg-alt: #f2f5f6;     /* seções alternadas */

  --wa: #25d366;         /* WhatsApp (convenção, uso pontual) */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Cantos retos */
  --r: 6px;
  --r-sm: 4px;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Sombras discretas (preto-alpha, sem cor) */
  --sh-sm: 0 1px 2px rgba(21, 38, 43, 0.06);
  --sh-md: 0 6px 20px rgba(21, 38, 43, 0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow--light { color: #8fb6bf; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 44rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.9rem); margin: 0.7rem 0 0.9rem; }
.section__head p { font-size: 1.08rem; color: var(--muted); }
.section__head.center p { margin-inline: auto; max-width: 40rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.8em 1.4em; border-radius: var(--r);
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary, .btn--teal { background: var(--teal); color: #fff; }
.btn--primary:hover, .btn--teal:hover { background: var(--teal-dark); }
.btn--outline { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal-dark); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.7); }
.btn--wa { background: var(--wa); color: #0a3d1f; }
.btn--wa:hover { background: #1fbe5b; }
.btn--lg { padding: 0.95em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }

/* =========================================================================
   Header
   ========================================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: 1rem 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header__brand img { height: 36px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 1.9rem; }
.header__nav a { font-size: 0.93rem; font-weight: 500; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.header__nav a:hover { color: #fff; }
.header__actions { display: flex; align-items: center; gap: 0.8rem; }
.header.is-scrolled {
  background: var(--teal-900);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), var(--sh-md);
  padding: 0.6rem 0;
}
.header__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.header__burger span { width: 24px; height: 2px; background: #fff; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  background: var(--teal-900);
  color: #fff;
  padding: 8rem 0 0;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; min-height: calc(100svh - 8rem); }
.hero__content { padding-bottom: 4rem; }
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 1.5rem + 3.6vw, 3.9rem);
  margin: 1.1rem 0 1.2rem; letter-spacing: -0.025em;
}
.hero h1 span { color: #79aab5; }
.hero__lead { font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem); color: rgba(255,255,255,0.78); max-width: 32rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__strip { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.14); }
.hero__strip .item .n { font-size: 1.15rem; font-weight: 800; color: #fff; }
.hero__strip .item .l { font-size: 0.8rem; color: rgba(255,255,255,0.6); max-width: 13rem; margin-top: 0.15rem; }
.hero__photo { align-self: end; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.hero__photo img { width: 100%; max-height: calc(100svh - 8rem); object-fit: contain; object-position: bottom center; }

/* faixa de credenciais sob o hero */
.credbar { background: var(--teal-950); }
.credbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 4vw, 3rem); padding: 1.1rem 0; }
.credbar .c { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.72); }
.credbar svg { width: 17px; height: 17px; color: #79aab5; }

/* =========================================================================
   Sobre / Quem somos
   ========================================================================= */
.about__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--r); display: block; }
.about__media .badge {
  position: absolute; right: -0.75rem; bottom: -0.75rem;
  background: var(--teal-900); color: #fff; padding: 0.9rem 1.2rem; border-radius: var(--r);
}
.about__media .badge b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.about__media .badge small { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.about__body h2 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); margin: 0.6rem 0 1rem; }
.about__body p { margin-bottom: 1rem; }
.about__quote { border-left: 3px solid var(--teal); padding-left: 1rem; font-style: italic; color: var(--ink); font-weight: 500; margin: 1.4rem 0; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 1.6rem 0; }
.cred-grid .cell { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.cred-grid svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 2px; }
.cred-grid b { display: block; font-size: 0.9rem; color: var(--ink); }
.cred-grid small { font-size: 0.8rem; color: var(--muted); }

/* =========================================================================
   Serviços (ícones)
   ========================================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
.svc {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.7rem 1.6rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.svc:hover { border-color: var(--teal); box-shadow: var(--sh-sm); }
.svc .ico { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--teal-050); color: var(--teal); display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc .ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 0.45rem; }
.svc p { font-size: 0.93rem; color: var(--muted); }

/* =========================================================================
   Faixa CTA escura
   ========================================================================= */
.ctaband { background: var(--teal-900); color: #fff; }
.ctaband .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(2.2rem, 5vw, 3.2rem) 0; }
.ctaband h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.2rem); max-width: 30ch; }

/* =========================================================================
   Áreas de atuação (lista compacta)
   ========================================================================= */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.area { background: var(--bg); padding: 1.5rem 1.4rem; transition: background 0.2s var(--ease); }
.area:hover { background: var(--bg-alt); }
.area .n { font-size: 0.82rem; font-weight: 700; color: var(--teal); }
.area h3 { font-size: 1.02rem; font-weight: 700; margin-top: 0.4rem; }

/* =========================================================================
   Imprensa (vídeos com thumb real)
   ========================================================================= */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.press {
  display: block; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.press:hover { border-color: var(--teal); box-shadow: var(--sh-sm); }
.press .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--teal-900); }
.press .thumb img { width: 100%; height: 100%; object-fit: cover; }
.press .thumb .play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(18,42,48,0.82); display: grid; place-items: center; transition: background 0.2s;
}
.press:hover .thumb .play { background: var(--teal); }
.press .thumb .play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.press .body { padding: 1.1rem 1.2rem 1.3rem; }
.press .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.press h3 { font-size: 1.04rem; font-weight: 700; margin-top: 0.4rem; }

/* =========================================================================
   Contato / Lead
   ========================================================================= */
.contact__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 4rem); align-items: start; }
.contact__aside h2 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); margin: 0.6rem 0 1rem; }
.contact__aside p { color: var(--muted); margin-bottom: 1.8rem; }
.channels { display: grid; gap: 0.9rem; }
.channels a, .channels div { display: flex; gap: 0.9rem; align-items: center; }
.channels .ico { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal); flex: none; }
.channels .ico svg { width: 21px; height: 21px; }
.channels b { display: block; color: var(--ink); font-size: 0.95rem; }
.channels small { color: var(--muted); font-size: 0.84rem; }

.lead-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.6rem, 4vw, 2.4rem); }
.section--alt .lead-form { box-shadow: var(--sh-md); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.field label .req { color: var(--teal); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75em 0.9em; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(56,114,129,0.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-consent { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.form-consent a { color: var(--teal); text-decoration: underline; }
.form-status { margin-top: 0.9rem; padding: 0.85rem 1rem; border-radius: var(--r-sm); font-size: 0.9rem; display: none; }
.form-status.is-ok { display: block; background: #e8f3ec; color: #1f7a40; border: 1px solid #bfe2cb; }
.form-status.is-err { display: block; background: #fbeceb; color: #b3261e; border: 1px solid #f0c8c4; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn .spin { width: 1em; height: 1em; border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: none; }
.btn.is-loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--teal-900); color: rgba(255,255,255,0.62); padding: clamp(2.8rem, 6vw, 4rem) 0 1.8rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand img { height: 38px; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.9rem; max-width: 24rem; }
.footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.footer ul { display: grid; gap: 0.6rem; }
.footer ul a, .footer ul li { font-size: 0.9rem; }
.footer ul a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; padding-top: 1.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.48); }
.footer__bottom a { text-decoration: underline; }

/* whatsapp flutuante */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: var(--sh-md); transition: transform 0.2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* =========================================================================
   Reveal discreto
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.06s; }
.reveal[data-d="2"] { transition-delay: 0.12s; }
.reveal[data-d="3"] { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Páginas legais / 404
   ========================================================================= */
.subhero { background: var(--teal-900); color: #fff; padding: 8rem 0 3rem; }
.subhero h1 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); margin-top: 0.5rem; }
.subhero p { color: rgba(255,255,255,0.7); margin-top: 0.6rem; }
.legal { padding: clamp(2.6rem, 6vw, 4.5rem) 0 5rem; }
.legal .wrap { max-width: 48rem; }
.legal h2 { font-size: 1.45rem; margin: 2rem 0 0.7rem; }
.legal h3 { font-size: 1.1rem; margin: 1.4rem 0 0.5rem; font-weight: 700; color: var(--ink); }
.legal p, .legal li { color: var(--text); margin-bottom: 0.85rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; }
.legal ul li { margin-bottom: 0.45rem; }
.legal a { color: var(--teal); text-decoration: underline; }
.legal .review { background: var(--bg-alt); border-left: 3px solid var(--teal); padding: 0.6rem 1rem; border-radius: var(--r-sm); font-size: 0.9rem; color: var(--muted); }
.error-page { min-height: 78svh; display: grid; place-items: center; text-align: center; padding: 8rem var(--gutter) 4rem; }
.error-page .code { font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; color: var(--teal); line-height: 1; letter-spacing: -0.04em; }
.error-page h1 { font-size: 1.6rem; margin: 0.4rem 0 0.9rem; }
.error-page p { color: var(--muted); margin-bottom: 1.8rem; }

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding-bottom: 2rem; padding-top: 1rem; }
  .hero__photo { order: 2; height: auto; align-items: stretch; }
  .hero__photo img { max-height: 56vh; width: 100%; object-fit: cover; object-position: top center; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 26rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .header__nav.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 1.1rem; padding: 1.4rem var(--gutter) 1.8rem; background: var(--teal-900); }
  .header__actions .btn--teal { display: none; }
  .cred-grid, .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .ctaband .wrap { flex-direction: column; align-items: flex-start; }
}
