/* =========================================
   COMPONENTS
   Botões, cards, hero slider, gauge,
   métricas, horários, CTA band
   ========================================= */

/* ---- BOTÕES ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #ff1c38; box-shadow: 0 8px 24px -8px rgba(226,18,42,0.6); transform: translateY(-2px); }

.btn-ghost { border: 1px solid var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--gray-dim); background: var(--carbon-2); }

/* ---- HERO SLIDER ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 880px;
  overflow: hidden;
  background: var(--carbon);
}

.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black, transparent 75%);
  pointer-events: none;
}

.slide-track { position: relative; width: 100%; height: 100%; }

.slide {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 1;
}

.slide > .container { width: 100%; }
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide-bg { position: absolute; inset: 0; z-index: 0; }

.slide[data-slide="0"] .slide-bg { background: radial-gradient(ellipse 900px 600px at 82% -5%, rgba(226,18,42,0.22), transparent 60%), radial-gradient(ellipse 700px 400px at -5% 100%, rgba(255,196,0,0.07), transparent 60%), var(--carbon); }
.slide[data-slide="1"] .slide-bg { background: radial-gradient(ellipse 900px 600px at 85% 0%, rgba(255,196,0,0.16), transparent 60%), radial-gradient(ellipse 700px 400px at -5% 100%, rgba(226,18,42,0.1), transparent 60%), var(--carbon); }
.slide[data-slide="2"] .slide-bg { background: radial-gradient(ellipse 900px 600px at 85% 0%, rgba(226,18,42,0.22), transparent 60%), radial-gradient(ellipse 700px 400px at -5% 100%, rgba(255,255,255,0.04), transparent 60%), var(--carbon); }

.slide-num-bg {
  position: absolute;
  right: -2%; top: 50%;
  transform: translateY(-50%);
  font-family: var(--fonte-mono);
  font-weight: 700;
  font-size: min(40vw,520px);
  line-height: 1;
  color: rgba(255,255,255,0.025);
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.slide-content {
  position: relative; z-index: 2;
  max-width: 640px;
  text-align: left;
  transform: translateX(-16px);
  opacity: 0;
  transition: opacity .8s ease .15s, transform .8s ease .15s;
}

.slide.active .slide-content { transform: translateX(0); opacity: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.slide h1 { font-size: clamp(36px,4.8vw,58px); margin-bottom: 20px; }
.slide h1 span { color: var(--red); }

.slide p.lead {
  font-size: 17px;
  color: var(--gray);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }

.hstat .num {
  font-family: var(--fonte-mono);
  font-weight: 700;
  font-size: 26px;
  color: var(--white);
}

.hstat .num span { color: var(--amber); }
.hstat .label { font-size: 11px; color: var(--gray-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

/* Slide navigation tabs */
.slide-nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; }
.slide-tabs { display: flex; border-top: 1px solid var(--line); }

.slide-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 10px 26px;
  cursor: pointer;
  border-top: 2px solid transparent;
  margin-top: -1px;
  border-left: 0; border-right: 0; border-bottom: 0;
  transition: border-color .3s;
  background: none;
  text-align: left;
}

.slide-tab.active { border-top-color: var(--red); }
.slide-tab .tab-num { font-family: var(--fonte-mono); font-size: 13px; color: var(--gray-dim); transition: color .3s; }
.slide-tab.active .tab-num { color: var(--red); }
.slide-tab .tab-label { font-family: var(--fonte-titulo); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px; color: var(--gray-dim); transition: color .3s; }
.slide-tab.active .tab-label { color: var(--white); }

/* Slide arrows */
.slide-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10,11,13,0.55);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
  z-index: 5;
}

#prevSlide { left: max(16px, calc((100vw - 1140px) / 2 - 24px)); }
#nextSlide { right: max(16px, calc((100vw - 1140px) / 2 - 24px)); }
.slide-arrow:hover { border-color: var(--red); background: rgba(226,18,42,0.15); }
.slide-arrow svg { width: 18px; height: 18px; }

/* ---- GAUGE CARD ---- */
.gauge-card {
  background: linear-gradient(160deg, var(--carbon-2), var(--carbon));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px;
  width: 100%; max-width: 360px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  position: absolute;
  right: max(24px, calc((100vw - 1140px) / 2 + 24px));
  bottom: 130px;
  z-index: 3;
}

.gauge-card .gtitle { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.gauge-card .gtitle span:first-child { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }
.gauge-card .gtitle span:last-child { font-family: var(--fonte-mono); font-size: 11px; color: var(--amber); }

#needle { transform-origin: 150px 150px; transition: transform 1.8s cubic-bezier(.2,.8,.2,1); }

.gauge-readout { display: flex; justify-content: space-between; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.gauge-readout div { text-align: center; flex: 1; }
.gauge-readout .v { font-family: var(--fonte-mono); font-weight: 700; font-size: 20px; color: var(--white); }
.gauge-readout .l { font-size: 10px; color: var(--gray-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ---- DIAGNOSIS SECTION ---- */
.diag { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diag.light { border-color: var(--line-light); }
.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.diag h2 { font-size: clamp(24px,3vw,34px); margin-top: 6px; margin-bottom: 16px; }
.diag p { color: var(--gray); font-size: 15px; line-height: 1.65; margin-bottom: 12px; }
.diag p strong { color: var(--white); }

.pill-result {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,196,0,0.08);
  border: 1px solid rgba(255,196,0,0.3);
  color: var(--amber);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* ---- METRIC STACK ---- */
.metric-stack { display: flex; flex-direction: column; gap: 16px; }

.metric {
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color .3s, transform .3s;
}

.metric:hover { border-color: var(--red); transform: translateX(4px); }
.metric .icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 8px; background: rgba(226,18,42,0.1); display: flex; align-items: center; justify-content: center; }
.metric .icon svg { width: 24px; height: 24px; stroke: var(--red); }
.metric .mtext .big { font-family: var(--fonte-mono); font-weight: 700; font-size: 22px; color: var(--white); }
.metric .mtext .small { font-size: 13px; color: var(--gray); margin-top: 2px; }

/* ---- SERVICE CARDS ---- */
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

.service-card {
  background: var(--carbon-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 22px;
  transition: transform .3s, border-color .3s, background .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.service-card:hover { transform: translateY(-5px); border-color: var(--gray-dim); background: var(--carbon-3); box-shadow: 0 18px 36px -18px rgba(0,0,0,0.5); }

.service-card .icon { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 8px; background: rgba(255,196,0,0.08); display: flex; align-items: center; justify-content: center; transition: background .3s; }
.service-card .icon svg { width: 20px; height: 20px; stroke: var(--amber); transition: stroke .3s; }
.service-card:hover .icon { background: var(--amber); }
.service-card:hover .icon svg { stroke: var(--carbon); }
.service-card h3 { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 600; font-family: var(--fonte-corpo); color: var(--white); margin-bottom: 4px; line-height: 1.3; }
.service-card p { font-size: 12px; color: var(--gray-dim); line-height: 1.5; }

/* ---- WHY CARDS ---- */
.why { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why.light { border-color: var(--line-light); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.why-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.why-card:hover { transform: translateY(-6px); border-color: #c5c8cc; box-shadow: 0 20px 40px -18px rgba(16,17,19,0.18); }

.why-card .icon { width: 44px; height: 44px; border-radius: 8px; background: rgba(226,18,42,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: background .3s; }
.why-card .icon svg { width: 22px; height: 22px; stroke: var(--red); transition: stroke .3s; }
.why-card:hover .icon { background: var(--red); }
.why-card:hover .icon svg { stroke: #fff; }

.why-num { font-family: var(--fonte-mono); color: var(--red); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.why-card h3 { font-size: 18px; text-transform: none; letter-spacing: 0; font-family: var(--fonte-titulo); margin-bottom: 8px; line-height: 1.15; }
.why-card p { color: var(--gray); font-size: 14px; line-height: 1.6; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 50px; }

.info-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-row:first-child { padding-top: 0; }
.info-row .icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; background: rgba(226,18,42,0.1); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.info-row .icon svg { width: 18px; height: 18px; stroke: var(--red); }
.info-row .t { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-dim); margin-bottom: 5px; }
.info-row .v { font-size: 15px; color: var(--white); font-weight: 500; line-height: 1.6; }
.info-row .v a:hover { color: var(--red); }

/* ---- SCHEDULE ---- */
.schedule { background: var(--carbon-2); border: 1px solid var(--line); border-radius: 10px; padding: 30px 28px; }
.schedule h3 { font-size: 13px; letter-spacing: 0.12em; color: var(--gray); text-transform: uppercase; margin-bottom: 18px; font-family: var(--fonte-corpo); font-weight: 700; }
.sched-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sched-row:last-child { border-bottom: none; }
.sched-row .day { color: var(--gray); }
.sched-row.today .day { color: var(--white); font-weight: 600; }
.sched-row .hr { font-family: var(--fonte-mono); color: var(--white); }
.sched-row.closed .hr { color: var(--red); }
.sched-row.today { position: relative; padding-left: 14px; }
.sched-row.today::before { content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; background: var(--amber); border-radius: 50%; }

/* ---- CTA BAND ---- */
.cta-band { background: linear-gradient(135deg, var(--red-dark), var(--red)); text-align: center; padding: 80px 0; }
.cta-band h2 { font-size: clamp(28px,4vw,42px); margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 32px; font-size: 16px; }
.cta-band .btn-primary { background: #fff; color: var(--red-dark); }
.cta-band .btn-primary:hover { background: var(--amber); color: var(--carbon); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ---- WHATSAPP FLOAT ---- */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.5);
  transition: transform .25s;
}

.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
