/*
 * home.css — Estilos da homepage TF Pneus.
 * Carregado condicionalmente via ai_theme_enqueue_assets() quando is_front_page().
 * Tokens de cor/tipografia ficam no :root de style.css.
 */

/* ===== BASE DA HOMEPAGE ===== */
/* Regras do header ficam em assets/css/header.css (global). */

body {
  font-family: var(--tf-font);
  color: var(--tf-navy);
  background: var(--tf-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.tf-home { font-family: var(--tf-font); }

.tf-home a { text-decoration: none; }
.tf-home a:hover { text-decoration: none; }

.tf-home ::selection { background: var(--tf-yellow); color: var(--tf-navy); }

.tf-home section[id] { scroll-margin-top: 90px; }

/* Eyebrow / rótulos de seção (reutilizados) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow--gold { color: var(--tf-yellow); }
.eyebrow--blue { color: var(--tf-blue); }
.eyebrow-bar { width: 26px; height: 2px; background: var(--tf-yellow); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-title {
  font-family: var(--tf-font);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 14px 0 0;
}
.section-title--navy { color: var(--tf-navy); }
.section-title--white { color: var(--tf-white); }

/* ===== HERO / BANNER SLIDER ===== */
.hero { position: relative; background: var(--tf-navy); }
.hero-stage {
  position: relative;
  width: 100%;
  height: min(90vh, 780px);
  min-height: 460px;
  overflow: hidden;
  background: var(--tf-navy);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide-ph {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, #0d1a7d 0 22px, #0a146b 22px 44px);
}
.hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.hero-slide-note span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #aab0e8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  padding: 12px 18px;
  border-radius: 10px;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 20, 107, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }
.hero-dots {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 9px;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  transition: all .3s ease;
}
.hero-dot.is-active { width: 26px; background: var(--tf-yellow); }

/* ===== DIFERENCIAIS ===== */
.dif {
  background: var(--tf-light);
  border-top: 1px solid var(--tf-border-2);
  border-bottom: 1px solid var(--tf-border-2);
}
.dif-grid {
  max-width: var(--tf-container);
  margin: 0 auto;
  padding: 52px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.dif-card { display: flex; flex-direction: column; gap: 12px; }
.dif-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid #e6e8f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf-navy);
}
.dif-title { font-size: 16px; font-weight: 700; color: var(--tf-navy); margin: 0; }
.dif-text { font-size: 13.5px; line-height: 1.55; color: var(--tf-muted); margin: 0; }

/* ===== HISTÓRIA ===== */
.hist { background: var(--tf-navy); }
.hist-inner {
  max-width: var(--tf-container);
  margin: 0 auto;
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.hist-media { position: relative; }
.hist-photo {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #eef0f7;
  box-shadow: 0 24px 50px -22px rgba(10, 20, 107, 0.3);
}
.hist-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hist-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tf-navy);
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 11px;
  border-radius: 999px;
}
.hist-inset {
  position: absolute;
  right: -22px; bottom: -22px;
  width: 158px;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #dfe3f2;
  border: 5px solid #fff;
  box-shadow: 0 16px 34px -14px rgba(10, 20, 107, 0.35);
}
.hist-inset img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hist-title {
  font-family: var(--tf-font);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.14;
  color: var(--tf-white);
  margin: 18px 0 0;
}
.hist-desc { font-size: 16px; line-height: 1.72; color: #c3c8ee; margin: 22px 0 0; max-width: 560px; }
.hist-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
}
.hist-tl-item { background: #fff; padding: 20px 22px; }
.hist-tl-year { font-family: var(--tf-font); font-weight: 700; font-size: 22px; color: var(--tf-blue); }
.hist-tl-text { font-size: 13.5px; line-height: 1.5; color: var(--tf-muted); margin-top: 5px; }

/* ===== CATEGORIAS ===== */
.cat { background: var(--tf-light); border-top: 1px solid var(--tf-border-2); }
.cat-inner { max-width: var(--tf-container); margin: 0 auto; padding: 90px 32px; }
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.cat-card {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px -22px rgba(10, 20, 107, 0.3);
  display: flex;
  min-height: 250px;
}
.cat-media { position: relative; aspect-ratio: 16 / 9; }
.cat-media--a { background: repeating-linear-gradient(135deg, #e3e7f4 0 15px, #edeff8 15px 30px); }
.cat-media--b { background: repeating-linear-gradient(135deg, #dfe3f2 0 15px, #e9ecf6 15px 30px); }
.cat-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-placeholder {
  position: absolute;
  left: 18px; bottom: 16px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--tf-muted-3);
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 10px;
  border-radius: 7px;
}
.cat-body { padding: 28px; }
.cat-title { font-family: var(--tf-font); font-weight: 700; font-size: 23px; color: var(--tf-navy); }
.cat-text { font-size: 14.5px; line-height: 1.6; color: var(--tf-muted); margin: 9px 0 0; }
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--tf-navy);
}
.cat-arrow { color: var(--tf-blue); }

/* ===== SERVIÇOS ===== */
.serv { background: var(--tf-navy); }
.serv-inner { max-width: var(--tf-container); margin: 0 auto; padding: 96px 32px; }
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.serv-card {
  border: 1px solid var(--tf-border);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.serv-card:hover {
  box-shadow: 0 18px 40px -24px rgba(10, 20, 107, 0.35);
  border-color: #dfe2f0;
}
.serv-icon {
  width: 70px; height: 70px;
  border-radius: 12px;
  background: #f2f4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf-navy);
  margin-bottom: 16px;
}
.serv-icon svg { width: 40px; height: 40px; }
.serv-title { font-size: 17px; font-weight: 700; color: var(--tf-navy); }
.serv-text { font-size: 13.5px; line-height: 1.55; color: var(--tf-muted); margin: 8px 0 20px; flex: 1; }
.serv-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tf-navy);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 9px;
}
.serv-btn:hover { color: #fff; }
.serv-card--cta {
  border: 0;
  padding: 30px;
  justify-content: center;
  background: var(--tf-yellow);
  color: var(--tf-navy);
}
.serv-card--cta:hover { box-shadow: none; }
.serv-cta-title { font-family: var(--tf-font); font-weight: 700; font-size: 22px; line-height: 1.2; }
.serv-cta-text { font-size: 13.5px; line-height: 1.55; color: rgba(10, 20, 107, 0.72); margin: 10px 0 20px; }
.serv-cta-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tf-navy);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 9px;
}
.serv-cta-btn:hover { color: #fff; }

/* ===== UNIDADES ===== */
.units { background: var(--tf-light); border-top: 1px solid var(--tf-border-2); }
.units-inner { max-width: var(--tf-container); margin: 0 auto; padding: 90px 32px; }
.units-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: start; }
.units-list { display: flex; flex-direction: column; gap: 12px; }
.unit-row {
  text-align: left;
  cursor: pointer;
  width: 100%;
  background: transparent;
  border: 1.5px solid #e4e6f1;
  border-radius: 13px;
  padding: 16px 18px;
  transition: all .18s ease;
}
.unit-row.is-active {
  background: #fff;
  border: 1.5px solid var(--tf-navy);
  box-shadow: 0 12px 26px -18px rgba(10, 20, 107, 0.5);
}
.unit-row-head { display: flex; align-items: center; gap: 10px; }
.unit-row-city { font-size: 15.5px; font-weight: 700; color: var(--tf-navy); }
.unit-row-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--tf-yellow);
  color: var(--tf-navy);
  padding: 3px 8px;
  border-radius: 999px;
}
.unit-row-name { display: block; font-size: 13px; color: var(--tf-muted-2); margin-top: 3px; }
.units-panel {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px -26px rgba(10, 20, 107, 0.35);
}
.units-map { position: relative; aspect-ratio: 16 / 8; background: #e7eaf5; }
.units-map-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, #dfe3f2 0 24px, #e7eaf5 24px 25px),
    repeating-linear-gradient(90deg, #dfe3f2 0 24px, #e7eaf5 24px 25px);
}
.units-map-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); color: var(--tf-navy); }
.units-map-note {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--tf-muted-3);
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 9px;
  border-radius: 6px;
}
.units-info { padding: 26px; }
.units-info-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tf-blue); }
.units-info-name { font-family: var(--tf-font); font-weight: 700; font-size: 22px; color: var(--tf-navy); margin: 6px 0 0; }
.units-info-address { font-size: 14px; color: var(--tf-muted); margin: 8px 0 0; }
.units-info-actions { display: flex; gap: 12px; margin-top: 20px; }
.units-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 11px 17px; border-radius: 9px; }
.units-btn--wa { background: var(--tf-yellow); color: var(--tf-navy); font-weight: 700; }
.units-btn--maps { background: #fff; color: var(--tf-navy); font-weight: 600; border: 1.5px solid #d7dae9; }

/* ===== DEPOIMENTOS ===== */
.rev { background: var(--tf-navy); color: #fff; }
.rev-inner { max-width: var(--tf-container); margin: 0 auto; padding: 90px 32px; }
.rev-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.rev-score {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 16px;
  border-radius: 12px;
}
.rev-score-num { font-weight: 700; font-size: 20px; color: #fff; }
.rev-score-stars { display: flex; gap: 1px; color: #fabb05; }
.rev-score-label { font-size: 13px; color: #b7bef0; }
.rev-controls { display: flex; gap: 10px; }
.rev-nav {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.rev-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.rev-scroll::-webkit-scrollbar { display: none; }
.rev-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 22px;
  margin: 0 -2px;
}
.rev-card {
  scroll-snap-align: start;
  flex: 0 0 328px;
  max-width: 328px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px 20px;
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.55);
}
.rev-head { display: flex; align-items: center; gap: 12px; }
.rev-avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.rev-id { flex: 1; min-width: 0; }
.rev-name { font-size: 15px; font-weight: 700; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rev-when { font-size: 12.5px; color: #70757a; margin-top: 1px; }
.rev-g { flex: none; }
.rev-rating { display: flex; align-items: center; gap: 7px; margin: 15px 0 11px; }
.rev-stars { display: flex; gap: 1px; color: #fabb05; }
.rev-check { flex: none; }
.rev-quote {
  font-size: 14px;
  line-height: 1.55;
  color: #3c4043;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rev-more { font-size: 13.5px; color: #70757a; margin-top: 12px; cursor: pointer; }
.rev-seals {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.rev-seal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 11px 16px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  color: #e7eaff;
}
.rev-seal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tf-yellow); }

/* ===== INSTAGRAM + BLOG ===== */
.ig { background: #fff; }
.ig-inner {
  max-width: var(--tf-container);
  margin: 0 auto;
  padding: 90px 32px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.ig-title { font-family: var(--tf-font); font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--tf-navy); margin: 12px 0 4px; }
.ig-title--tight { margin: 12px 0 20px; }
.ig-desc { font-size: 14px; color: var(--tf-muted); margin: 0 0 20px; }
.ig-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig-tile {
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #e1e5f3 0 11px, #ebeef7 11px 22px);
}
.ig-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; font-size: 14px; color: var(--tf-navy); }
.blog-list { display: flex; flex-direction: column; gap: 16px; }
.post-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--tf-border);
  border-radius: 14px;
  overflow: hidden;
  padding: 14px 18px 14px 14px;
}
.post-media { position: relative; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: #eef0f7; }
.post-media-fill { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, #e1e5f3 0 11px, #ebeef7 11px 22px); }
.post-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-item:hover .post-media-img { transform: scale(1.04); }
.blog-empty { font-size: 14px; color: var(--tf-muted-2); }
.post-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tf-blue); }
.post-title { font-size: 16px; font-weight: 700; color: var(--tf-navy); line-height: 1.3; margin-top: 5px; }
.post-date { font-size: 13px; color: var(--tf-muted-2); margin-top: 4px; }

/* ===== CTA FINAL ===== */
.cta { position: relative; overflow: hidden; background: var(--tf-navy-deep); }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 9, 63, 0.94) 0%, rgba(8, 16, 90, 0.82) 42%, rgba(10, 20, 107, 0.42) 100%);
}
.cta-inner { position: relative; max-width: var(--tf-container); margin: 0 auto; padding: 92px 32px; display: flex; justify-content: flex-start; }
.cta-box { max-width: 600px; }
.cta-title { font-family: var(--tf-font); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; color: #fff; margin: 18px 0 0; }
.cta-text { font-size: 16.5px; line-height: 1.6; color: #c3c8ee; margin: 18px 0 0; max-width: 500px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta-btn { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; padding: 15px 24px; border-radius: 11px; }
.cta-btn--wa { background: var(--tf-yellow); color: var(--tf-navy); font-weight: 700; box-shadow: 0 12px 30px -8px rgba(254, 219, 0, 0.5); }
.cta-btn--wa:hover { color: var(--tf-navy); }
.cta-btn--ghost { background: transparent; color: #fff; font-weight: 600; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.cta-btn--ghost:hover { color: #fff; }

/* Footer navy + WhatsApp flutuante: assets/css/footer.css (global). */

/* ===== RESPONSIVO ===== */
@media (max-width: 960px) {
  .g-hist { grid-template-columns: 1fr; gap: 44px; }
  .g-units { grid-template-columns: 1fr; }
  .g-ig { grid-template-columns: 1fr; gap: 40px; }
  .g-serv { grid-template-columns: repeat(2, 1fr); }
  .g-dif { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}

@media (max-width: 640px) {
  .dif-grid, .hist-inner, .cat-inner, .serv-inner,
  .units-inner, .rev-inner, .ig-inner, .cta-inner {
    padding-top: 56px;
    padding-bottom: 56px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .g-cat { grid-template-columns: 1fr; }
  .g-serv { grid-template-columns: 1fr; }
  .g-dif { grid-template-columns: 1fr; }

  .hist-inset { width: 120px; right: -10px; bottom: -14px; }
	
	.cat-card { flex-direction: column; }
}
