/* ==========================================================================
   Postos Ferralle — Site Institucional
   Camada web construída SOBRE o Design System oficial (design-system.css).
   Reutiliza todos os tokens de cor, efeito, espaçamento e fonte.
   A escala tipográfica do DS é feita para canvas 1080px (Instagram); aqui ela
   é reconstruída em clamp() para a web, mantendo os mesmos pesos, tracking e
   line-heights da marca (Outfit 800, -0.03em, lh 1.0).
   ========================================================================== */

/* ---- Reset básico ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05rem, 18px);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; transition: color var(--dur-base) var(--ease-out); }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }

/* ---- Escala tipográfica web (adaptada do DS) ---------------------------- */
:root {
  --web-display-xl: clamp(2.75rem, 6.2vw, 5.25rem); /* hero */
  --web-display-lg: clamp(2.25rem, 4.6vw, 3.75rem);
  --web-display-md: clamp(1.9rem, 3.4vw, 2.75rem);
  --web-headline:   clamp(1.5rem, 2.6vw, 2.1rem);
  --web-title:      clamp(1.2rem, 1.8vw, 1.5rem);
  --web-body-lg:    clamp(1.05rem, 1.4vw, 1.28rem);

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---- Utilidades de layout ---------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--navy { background: var(--surface-inverse); color: var(--text-on-dark); }
.section--navy .lead { color: var(--text-on-dark-muted); }

.stack > * + * { margin-top: var(--space-5); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* ---- Marca: eyebrow (tick amarelo + label tracked) ---------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--navy-900);
}
.eyebrow::before {
  content: "";
  width: 40px; height: 6px;
  background: var(--yellow-400);
  border-radius: 1px;
  flex: 0 0 auto;
}
.eyebrow--light { color: #fff; }
.eyebrow--center { justify-content: center; }

/* ---- Marca: headline display + swash amarelo ---------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-display-tight);
  line-height: var(--lh-display);
  color: var(--text-heading);
  text-wrap: balance;
}
.display--light { color: #fff; }
.display--lg { font-size: var(--web-display-lg); }
.display--md { font-size: var(--web-display-md); }
.display--sm { font-size: var(--web-headline); letter-spacing: var(--ls-display); }
.mark {
  box-shadow: inset 0 -0.14em 0 var(--yellow-400);
  padding-bottom: 0.02em;
}

.lead {
  font-size: var(--web-body-lg);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Botões (do componente Button do DS) -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius-button);
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: background-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 18px 34px; font-size: 1.12rem; }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.btn--primary { background: var(--yellow-400); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: var(--navy-900); }
.btn--inverse { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn--inverse:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-tint-24); }
.btn--ghost:hover { color: var(--navy-900); border-color: var(--navy-900); }
.btn--ghost-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost-on-dark:hover { color: var(--navy-900); background: #fff; border-color: #fff; }
.btn svg { width: 20px; height: 20px; }

/* ---- Cards (do componente Card do DS) ----------------------------------- */
.card {
  position: relative;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card--accent::before {
  content: "";
  position: absolute; top: 0; left: var(--space-6);
  width: 48px; height: 6px;
  background: var(--yellow-400);
  border-radius: 0 0 2px 2px;
}

/* ---- Header / navegação ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  height: 74px;
}
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__links a {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  position: relative;
  padding-block: 6px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; background: var(--yellow-400);
  transition: width var(--dur-base) var(--ease-out);
}
.nav__links a:hover { color: var(--royal-600); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  color: var(--navy-900);
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--surface-inverse);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero .shell { position: relative; }
.hero__inner {
  display: grid;
  gap: var(--space-6);
  padding-block: clamp(72px, 12vw, 148px);
  max-width: 760px;
}
.hero__title { font-size: var(--web-display-xl); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); }

/* ---- Barra de estatísticas ---------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: var(--space-7);
  margin-top: var(--space-7);
}
.stat__num {
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--yellow-400);
  letter-spacing: var(--ls-display-tight);
}
.stat__label { color: var(--text-on-dark-muted); font-size: 0.92rem; margin-top: 8px; }

/* ---- Cabeçalho de seção ------------------------------------------------- */
.sec-head { max-width: 60ch; }
.sec-head .display { margin-top: var(--space-4); }
.sec-head .lead { margin-top: var(--space-4); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ---- Grid genérico ------------------------------------------------------ */
.grid { display: grid; gap: var(--space-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---- Serviços ----------------------------------------------------------- */
.service__icon {
  width: 58px; height: 58px; border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-50); color: var(--royal-600);
  margin-bottom: var(--space-4);
}
.service__icon svg { width: 30px; height: 30px; }
.service h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.32rem; color: var(--navy-900); letter-spacing: -0.01em; }
.service p { margin: 12px 0 0; color: var(--text-muted); }

/* ---- Sobre / editorial split -------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.editorial-quote {
  font-family: var(--font-editorial); font-style: italic;
  font-size: var(--web-title); line-height: 1.4; color: var(--navy-900);
}
.about-panel {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  background: var(--disc-radial); color: #fff;
  min-height: 440px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}
.about-panel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-panel__scrim { position: absolute; inset: 0; background: var(--protect-bottom); }
.about-panel__body { position: relative; padding: clamp(28px, 4vw, 48px); }
.about-panel h3 { font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--web-display-md); letter-spacing: var(--ls-display-tight); line-height: 1; }
.about-panel p { color: var(--text-on-dark-muted); margin-top: var(--space-4); position: relative; }

/* ---- Diferenciais (discos de highlight) --------------------------------- */
.discs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.disc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); }
.disc__circle {
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--disc-radial);
  border: 3px solid var(--yellow-400);
  box-shadow: var(--shadow-disc);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.disc__circle svg { width: 52px; height: 52px; }
.disc h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.16rem; color: var(--navy-900); }
.disc p { color: var(--text-muted); font-size: 0.98rem; margin: 6px 0 0; }
.section--navy .disc h3 { color: #fff; }
.section--navy .disc p { color: var(--text-on-dark-muted); }

/* ---- Unidades ----------------------------------------------------------- */
.unit {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
}
.unit__photo {
  position: relative; aspect-ratio: 16 / 10;
  background: var(--disc-radial);
  display: flex; align-items: flex-end; padding: var(--space-5);
  color: #fff;
}
.unit__photo::after {
  content: ""; position: absolute; inset: 0; background: var(--protect-bottom); pointer-events: none;
}
.unit__badge {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
  font-size: 0.72rem; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
}
.unit__badge::before { content:""; width: 28px; height: 5px; background: var(--yellow-400); border-radius: 1px; }
.unit__body { padding: var(--space-5) var(--space-6) var(--space-6); }
.unit__body h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.3rem; color: var(--navy-900); }
.unit__row { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--space-4); color: var(--text-muted); font-size: 0.98rem; }
.unit__row svg { width: 20px; height: 20px; color: var(--royal-600); flex: 0 0 auto; margin-top: 2px; }
.unit__cta { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Faixa CTA / contato ------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { margin-top: var(--space-6); }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding-block: var(--space-4); border-top: 1px solid rgba(255,255,255,0.14); }
.contact-list li:first-child { border-top: 0; }
.contact-ico { width: 46px; height: 46px; border-radius: var(--radius-button); background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--yellow-400); flex: 0 0 auto; }
.contact-ico svg { width: 22px; height: 22px; }
.contact-list b { display: block; font-family: var(--font-display); color: #fff; font-size: 1.05rem; }
.contact-list span { color: var(--text-on-dark-muted); }

.form-card { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 44px); }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.85rem; color: var(--navy-900); margin-bottom: 8px; letter-spacing: 0.01em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink-900);
  padding: 13px 16px; border: 1.5px solid var(--navy-tint-14); border-radius: var(--radius-button);
  background: var(--paper-50); transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--royal-500); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-hint { margin: 12px 0 0; font-size: 0.85rem; color: var(--text-caption); text-align: center; }
.form-status { margin: 10px 0 0; font-size: 0.92rem; text-align: center; color: var(--royal-600); font-weight: var(--fw-semibold); min-height: 1.2em; }

/* ---- Rodapé ------------------------------------------------------------- */
.site-footer { background: #04122f; color: var(--text-on-dark-muted); padding-block: clamp(48px, 7vw, 80px) var(--space-6); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); }
.footer-brand img { height: 46px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { max-width: 34ch; }
.footer-col h4 { font-family: var(--font-display); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); font-size: 0.72rem; color: #fff; margin-bottom: var(--space-4); }
.footer-col a { display: block; color: var(--text-on-dark-muted); padding-block: 6px; font-size: 0.96rem; }
.footer-col a:hover { color: var(--yellow-400); }
.social { display: flex; gap: 12px; margin-top: var(--space-4); }
.social a { width: 42px; height: 42px; border-radius: var(--radius-button); border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; color: #fff; }
.social a:hover { background: var(--yellow-400); color: var(--navy-900); border-color: var(--yellow-400); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.86rem; }

/* ---- WhatsApp flutuante ------------------------------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-base) var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---- Marcador de conteúdo editável -------------------------------------- */
.edit { border-bottom: 2px dotted var(--royal-500); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 960px) {
  .grid--3, .grid--4, .discs, .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-top { gap: var(--space-7); }
  .about-panel { min-height: 300px; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .site-header.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: 74px;
    background: #fff; border-bottom: 1px solid var(--border-hairline);
    padding: var(--space-5) var(--gutter); gap: var(--space-4);
  }
  .grid--3, .grid--4, .discs, .stats, .grid--2 { grid-template-columns: 1fr; }
  .stats { gap: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ==========================================================================
   Melhorias guiadas pela skill ui-ux-pro-max (padrão Trust & Authority +
   Conversion): skip-link, offset de âncora, faixa de confiança, prova social,
   FAQ e scroll-reveal. Tudo mantendo a identidade da marca Ferralle.
   ========================================================================== */

/* ---- Skip-link (acessibilidade / teclado) ------------------------------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow-400); color: var(--navy-900);
  font-family: var(--font-display); font-weight: var(--fw-bold);
  padding: 12px 20px; border-radius: var(--radius-button);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 16px; color: var(--navy-900); }

/* ---- Offset de âncora: o header fixo (74px) não cobre o título ---------- */
:where(#topo, #sobre, #servicos, #diferenciais, #unidades, #horarios, #historia, #app, #faq, #contato) {
  scroll-margin-top: 90px;
}

/* ---- Faixa de confiança (selos / certificações) ------------------------- */
.trust-bar { background: var(--paper-0); border-bottom: 1px solid var(--border-hairline); }
.trust-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: var(--space-6);
}
.trust-item {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink-600); font-size: 0.95rem;
}
.trust-item svg { width: 26px; height: 26px; color: var(--royal-600); flex: 0 0 auto; }
.trust-item b { color: var(--navy-900); font-family: var(--font-display); font-weight: var(--fw-bold); }

/* ---- FAQ (accordion acessível) ------------------------------------------ */
.faq { max-width: 820px; margin-inline: auto; margin-top: var(--space-8); }
.faq__item { border-bottom: 1px solid var(--border-hairline); }
.faq__q {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; padding: var(--space-5) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--navy-900);
}
.faq__q:hover { color: var(--royal-600); }
.faq__icon { flex: 0 0 auto; width: 26px; height: 26px; color: var(--royal-600); transition: transform var(--dur-base) var(--ease-out); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height var(--dur-base) var(--ease-out); }
.faq__item.is-open .faq__a { max-height: 600px; }
.faq__a p { margin: 0 0 var(--space-5); color: var(--text-muted); max-width: 68ch; line-height: 1.6; }

/* ---- Scroll-reveal (motion "standard", sem dependência externa) --------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* ==========================================================================
   Recriação com dados e fotos reais (Postos Ferralle) — v2
   ========================================================================== */

/* ---- Hero com foto real + protection gradient (padrão PhotoFrame do DS) -- */
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,26,74,0.72) 0%, rgba(6,26,74,0.30) 42%, rgba(6,26,74,0.55) 100%),
    linear-gradient(90deg, rgba(6,26,74,0.88) 0%, rgba(6,26,74,0.55) 45%, rgba(6,26,74,0.18) 100%);
}

/* ---- Chips (combustíveis / serviços) ------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: var(--fw-semibold);
  font-size: 0.82rem; letter-spacing: 0.01em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--paper-50); color: var(--navy-900);
  border: 1px solid var(--navy-tint-08);
}
.chip svg { width: 15px; height: 15px; color: var(--royal-600); }
.chip--accent { background: rgba(251,204,0,0.16); border-color: rgba(251,204,0,0.5); }
.chip--accent svg { color: var(--navy-900); }

/* ---- Selo de bandeira --------------------------------------------------- */
.flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 5px 12px; border-radius: var(--radius-button);
}
.flag--br { background: #128a3a; color: #fff; }
.flag--ipiranga { background: #f5c518; color: #0a2a66; }

/* ---- Unidade com foto real ---------------------------------------------- */
.unit__photo--img { padding: 0; }
.unit__photo--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.unit__photo .unit__flag, .unit__media .unit__flag { position: absolute; top: var(--space-5); right: var(--space-5); z-index: 4; }
.unit__chips { margin-top: var(--space-4); }

/* ---- Carrossel de fotos da unidade -------------------------------------- */
.unit__media { position: relative; }
.carousel { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.carousel__track { display: flex; height: 100%; transition: transform 420ms var(--ease-out); will-change: transform; }
.carousel__slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__cap {
  position: absolute; left: 0; bottom: 0; z-index: 2; pointer-events: none;
  width: 100%; padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--protect-bottom);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.carousel__label {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
  font-size: 0.72rem; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
}
.carousel__label::before { content:""; width: 28px; height: 5px; background: var(--yellow-400); border-radius: 1px; }
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(6,26,74,0.55); border: 1px solid rgba(255,255,255,0.35);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.carousel__nav:hover { background: var(--yellow-400); color: var(--navy-900); border-color: var(--yellow-400); }
.carousel__nav svg { width: 22px; height: 22px; }
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }
.carousel__dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; display: flex; gap: 7px; }
.carousel__dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.55); border: 0;
  transition: width var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.carousel__dot.is-active { width: 22px; border-radius: 4px; background: var(--yellow-400); }
.carousel__count {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.72rem;
  color: #fff; background: rgba(6,26,74,0.55); padding: 4px 10px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
@media (prefers-reduced-motion: reduce) { .carousel__track { transition: none; } }

/* ---- Nossa História (timeline) ------------------------------------------ */
.timeline { position: relative; max-width: 860px; margin: var(--space-8) auto 0; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(var(--yellow-400), var(--royal-600));
}
.tl-item { position: relative; padding: 0 0 var(--space-7) 74px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 8px; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--disc-radial); border: 3px solid var(--yellow-400);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--fw-black); font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
}
.tl-year { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 1.5rem; color: var(--royal-600); letter-spacing: var(--ls-display-tight); }
.tl-item h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.2rem; color: var(--navy-900); margin-top: 2px; }
.tl-item p { color: var(--text-muted); margin: 8px 0 0; max-width: 60ch; }

/* ---- Seção do App ------------------------------------------------------- */
.app-cta { position: relative; overflow: hidden; }
.app-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--space-6); }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: var(--navy-900);
  padding: 12px 20px; border-radius: var(--radius-button); box-shadow: var(--shadow-sm);
}
.store-badge:hover { color: var(--navy-900); transform: translateY(-2px); }
.store-badge svg { width: 28px; height: 28px; }
.store-badge small { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-600); }
.store-badge b { font-family: var(--font-display); font-size: 1.05rem; }
.app-visual {
  aspect-ratio: 4/5; border-radius: var(--radius-card); overflow: hidden;
  background: var(--disc-radial); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.app-visual img, .app-visual__media { width: 100%; height: 100%; object-fit: cover; }
.app-visual__scrim { position: absolute; inset: 0; background: var(--protect-bottom); }
.app-discount {
  display: inline-flex; align-items: center; gap: 12px; margin-top: var(--space-5);
  background: rgba(251,204,0,0.16); border: 1px solid rgba(251,204,0,0.5);
  color: #fff; padding: 12px 18px; border-radius: var(--radius-button);
  font-size: 0.98rem;
}
.app-discount svg { width: 22px; height: 22px; color: var(--yellow-400); flex: 0 0 auto; }

@media (max-width: 960px) {
  .app-split { grid-template-columns: 1fr; }
  .tl-year { font-size: 1.3rem; }
}

/* ==========================================================================
   Hero-carrossel automático (v3) + Horários
   ========================================================================== */
.hero-carousel { position: relative; min-height: clamp(560px, 84vh, 780px); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 900ms var(--ease-out), visibility 900ms var(--ease-out);
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide .shell { position: relative; width: 100%; }
.hero-slide .hero__inner { padding-block: clamp(64px, 10vw, 120px); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide:not(.is-active) { display: none; }
}

/* Faixa de estatísticas persistente sob o hero-carrossel */
.hero-statsband { position: relative; z-index: 2; background: var(--navy-900); border-top: 1px solid rgba(255,255,255,0.12); }
.hero-statsband .stats { border: 0; margin: 0; padding-block: var(--space-6); }

/* Navegação do hero */
.hero-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; display: flex; gap: 9px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; padding: 0; cursor: pointer; border: 0;
  background: rgba(255,255,255,0.5); transition: width var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.hero-dots button.is-active { width: 28px; border-radius: 5px; background: var(--yellow-400); }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(6,26,74,0.45); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background var(--dur-base) var(--ease-out);
}
.hero-nav:hover { background: var(--yellow-400); color: var(--navy-900); border-color: var(--yellow-400); }
.hero-nav svg { width: 24px; height: 24px; }
.hero-nav--prev { left: clamp(8px, 2vw, 24px); }
.hero-nav--next { right: clamp(8px, 2vw, 24px); }
@media (max-width: 720px) { .hero-nav { display: none; } }

/* No celular o texto ocupa a largura toda, entao o degrade lateral so escurecia a foto
   sem ganhar leitura. Fica so o vertical, mais leve no meio, onde a foto aparece. */
@media (max-width: 720px) {
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(6,26,74,0.78) 0%, rgba(6,26,74,0.42) 34%,
      rgba(6,26,74,0.58) 62%, rgba(6,26,74,0.92) 100%);
  }
}

/* Selo/pill de destaque dentro do hero */
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: rgba(251,204,0,0.16); border: 1px solid rgba(251,204,0,0.5);
  color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 0.92rem;
  margin-bottom: var(--space-4);
}
.hero-pill svg { width: 18px; height: 18px; color: var(--yellow-400); }

/* ---- Horários ----------------------------------------------------------- */
.hours-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); margin-top: var(--space-8); }
.hours-card {
  background: var(--surface-card); border-radius: var(--radius-card);
  box-shadow: var(--shadow-md); padding: var(--space-6); border-top: 4px solid var(--yellow-400);
}
.hours-card h3 {
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.22rem; color: var(--navy-900);
  display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-5);
}
.hours-card h3 svg { width: 24px; height: 24px; color: var(--royal-600); flex: 0 0 auto; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 11px 8px; font-size: 0.95rem; }
.hours-table thead th { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-caption); border-bottom: 2px solid var(--border-hairline); }
.hours-table tbody tr + tr td { border-top: 1px solid var(--border-hairline); }
.hours-table td:first-child { font-family: var(--font-display); font-weight: var(--fw-semibold); color: var(--navy-900); white-space: nowrap; }
.hours-table td { color: var(--text-muted); }
.hours-note { margin-top: var(--space-5); font-size: 0.88rem; color: var(--text-caption); display: flex; gap: 10px; align-items: flex-start; }
.hours-note svg { width: 18px; height: 18px; color: var(--royal-600); flex: 0 0 auto; margin-top: 2px; }

/* Faixa de horario nunca quebra no meio ("13h30 às" numa linha e "17h45" na outra).
   Quando a unidade tem dois turnos, cada um ocupa a sua linha. */
.hours-table td { white-space: nowrap; }
.hours-table .turno { display: block; white-space: nowrap; }
.hours-table .turno + .turno { margin-top: 2px; }

@media (max-width: 820px) {
  .hours-grid { grid-template-columns: 1fr; }
  .hours-table th, .hours-table td { padding: 9px 4px; font-size: 0.88rem; }
}
/* No celular o nome da unidade pode quebrar em duas linhas: e o que faz a coluna
   de domingo caber na tela em vez de sair pela direita. */
@media (max-width: 560px) {
  .hours-table th, .hours-table td { padding: 8px 3px; font-size: 0.8rem; }
  .hours-table td:first-child { white-space: normal; }
}
@media (max-width: 720px) {
  .tl-item { padding-left: 62px; }
  .timeline::before { left: 22px; }
}

/* ==========================================================================
   Acabamento — passada design-taste-frontend (2026-07-11), modo preservar.
   Só micro-interações motivadas, ragging de texto, stagger de entrada e foco
   visível no escuro. Sem mudança de conteúdo, cor de marca ou estrutura.
   ========================================================================== */

/* Ragging: quebras de linha mais equilibradas em parágrafos longos */
.lead, .service p, .disc p, .tl-item p, .faq__a p, .about-panel p,
.unit__body > p, .hours-note, .contact-list span { text-wrap: pretty; }

/* Feedback tátil: leve "empurrão" físico ao clicar (skill §4.5) */
.btn:active { transform: translateY(0) scale(0.975); }
.store-badge { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.store-badge:active { transform: translateY(0) scale(0.975); }

/* Ícone do serviço assume o amarelo da marca quando o card é focado */
.service__icon { transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.card--hover:hover .service__icon { background: rgba(251,204,0,0.20); color: var(--navy-900); }

/* Zoom sutil da foto ao passar o mouse no card da unidade */
.unit .carousel__slide img { transition: transform 640ms var(--ease-out); }
.unit.card--hover:hover .carousel__slide img { transform: scale(1.045); }

/* Curva de entrada mais elegante no scroll-reveal das seções */
.reveal { transition: opacity 620ms cubic-bezier(0.16,1,0.3,1), transform 620ms cubic-bezier(0.16,1,0.3,1); }

/* ==========================================================================
   Vídeos ambientes + profundidade 3D (2026-07-13)
   Vídeos reais das unidades (mudos, em loop) em pontos-chave para dar fluidez;
   tilt 3D + brilho seguindo o cursor nos cards de serviço (skill: Parallax
   Tilt Card + Spotlight). Tudo com transform/opacity, off no reduced-motion.
   ========================================================================== */

/* Elemento <video> herda o enquadramento das fotos (hero, painel, app) */
video.hero__img, video.about-panel__img { background: var(--navy-900); }

/* Ken-burns lento: respiro de profundidade no hero (foto e vídeo) */
.hero__img { animation: heroKen 22s ease-in-out infinite alternate; transform-origin: center 55%; }
@keyframes heroKen { from { transform: scale(1.03); } to { transform: scale(1.11); } }

/* Tilt 3D + brilho nos cards de serviço */
.tilt { transform-style: preserve-3d; will-change: transform;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.tilt::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity 300ms var(--ease-out);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,0.22), rgba(255,255,255,0.04) 42%, transparent 62%);
}
.tilt.is-tilting { box-shadow: var(--shadow-lg); }
.tilt.is-tilting::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none !important; transform: none !important; }
  .tilt { transform: none !important; }
  .tilt::after { display: none; }
}
@media (hover: none) {
  .tilt::after { display: none; }
}

/* ==========================================================================
   Fundo alternado do hero + vídeos menos robóticos + timeline interativa
   (2026-07-13, parte 2)
   ========================================================================== */

/* Slides de imagem do hero: o FUNDO alterna entre fotos com crossfade lento,
   sem tocar no texto. JS controla .is-shown; sem JS, mostra a 1ª foto. */
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg .hero__img { opacity: 0; transition: opacity 1400ms var(--ease-out); }
html:not(.js) .hero-bg > :first-child .hero__img,
html:not(.js) .hero-bg > .hero__img:first-child,
.hero-bg .hero__img.is-shown { opacity: 1; }

/* Vídeos ambientes (painel A Rede + App): ken-burns decolado do loop,
   pra a repetição não parecer robótica */
.about-panel__img, .app-visual__media {
  animation: ambientKen 19s ease-in-out infinite alternate;
  transform-origin: center 52%;
}
@keyframes ambientKen {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13) translateY(-1.5%); }
}

/* Nossa História: hover em cada ponto dá um leve zoom no texto + data */
.tl-item { transition: transform 340ms var(--ease-out); transform-origin: left center; }
.tl-item:hover { transform: scale(1.035); }
.tl-item:hover .tl-year { color: var(--royal-500); }
.tl-item:hover .tl-dot { border-color: var(--yellow-300); box-shadow: 0 0 0 6px rgba(251,204,0,0.14); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg .hero__img { transition: none; }
  .about-panel__img, .app-visual__media { animation: none !important; transform: none !important; }
  .tl-item, .tl-item:hover { transition: none; transform: none; }
}

/* Stagger dos filhos das grades — só com JS ativo (html.js). Sem JS, tudo visível.
   Usa @keyframes + animation-delay (não o shorthand transition, que zeraria o
   delay) para preservar a cascata E o hover de sombra dos cards. */
@keyframes ferralle-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js #servicos .grid > *,
.js #diferenciais .discs > .disc,
.js #unidades .grid > *,
.js #horarios .hours-grid > *,
.js #historia .timeline .tl-item { opacity: 0; }
.js #servicos.is-in .grid > *,
.js #diferenciais.is-in .discs > .disc,
.js #unidades.is-in .grid > *,
.js #horarios.is-in .hours-grid > *,
.js #historia.is-in .timeline .tl-item {
  animation-name: ferralle-rise;
  animation-duration: 560ms;
  animation-timing-function: cubic-bezier(0.16,1,0.3,1);
  animation-fill-mode: both;
}
/* Cascata: cada filho entra um instante após o anterior */
.is-in .grid > *:nth-child(2), .is-in .discs > .disc:nth-child(2),
.is-in .hours-grid > *:nth-child(2), .is-in .timeline .tl-item:nth-child(2) { animation-delay: 70ms; }
.is-in .grid > *:nth-child(3), .is-in .discs > .disc:nth-child(3),
.is-in .timeline .tl-item:nth-child(3) { animation-delay: 140ms; }
.is-in .grid > *:nth-child(4), .is-in .discs > .disc:nth-child(4),
.is-in .timeline .tl-item:nth-child(4) { animation-delay: 210ms; }
.is-in .grid > *:nth-child(5) { animation-delay: 280ms; }
.is-in .grid > *:nth-child(6) { animation-delay: 350ms; }

/* Foco de teclado visível também sobre fundo escuro (navy/hero/rodapé): amarelo */
.hero :focus-visible,
.section--navy :focus-visible,
.site-footer :focus-visible { outline-color: var(--yellow-400); }

@media (prefers-reduced-motion: reduce) {
  .js #servicos .grid > *, .js #diferenciais .discs > .disc,
  .js #unidades .grid > *, .js #horarios .hours-grid > *,
  .js #historia .timeline .tl-item {
    opacity: 1 !important; animation: none !important;
  }
}
