/* ============================================================
   JJD TAX CENTER - HOME (Principal)
   Estilos específicos da página inicial
   ============================================================ */

/* ============== HERO PRINCIPAL (carrossel de 3 banners) ============== */
.hero {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  isolation: isolate;
}

/* Container que abriga os slides empilhados */
.hero__slides {
  position: relative;
  min-height: 75vh;
}

/* Cada slide ocupa 100% absoluto, alterna via opacity */
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: 112px;
  padding-bottom: var(--s-14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Background image do slide */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay com gradient que esconde texto embutido nas imagens originais */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 11, 23, 0.92) 0%, rgba(5, 11, 23, 0.7) 50%, rgba(5, 11, 23, 0.4) 100%),
    linear-gradient(180deg, rgba(5, 11, 23, 0.4) 0%, rgba(5, 11, 23, 0.85) 100%),
    radial-gradient(ellipse at 25% 50%, rgba(0, 194, 255, 0.15) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

/* Especificidade reforçada para sobrescrever qualquer h1 base ainda cacheado */
.hero .hero__slide .hero__title,
h1.hero__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: var(--fw-black);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
  text-transform: none;
  margin: 0;
}

/* Padding lateral reforçado no mobile (acima do --section-pad-x do container) */
@media (max-width: 600px) {
  .hero__slide .container {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* ============== INDICADORES DO CARROSSEL ============== */
.hero__indicators {
  position: absolute;
  bottom: var(--s-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.hero__indicators button {
  width: 32px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--t-base), width var(--t-base);
}

.hero__indicators button:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero__indicators button.is-active {
  background: var(--accent);
  width: 56px;
}

@media (max-width: 600px) {
  .hero__indicators { bottom: var(--s-5); }
  .hero__indicators button { width: 24px; }
  .hero__indicators button.is-active { width: 40px; }
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--jjd-cyan) 0%, var(--jjd-cyan-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .hero__slide .hero__sub,
p.hero__sub {
  font-size: var(--fs-base);
  color: var(--text-light);
  line-height: var(--lh-relaxed);
  max-width: 520px;
  margin: 0;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-3);
}

.hero__saida-fiscal {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-2);
}

.hero__saida-fiscal img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 194, 255, 0.3));
}

.hero__strap {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wider);
  text-transform: uppercase;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: var(--s-3);
  line-height: var(--lh-snug);
}

/* ============== SECTION INSTITUCIONAL ============== */
.institutional {
  background: var(--jjd-dark);
  position: relative;
}

.institutional__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-10);
  align-items: center;
}

.institutional__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--s-6);
}

.institutional__title em {
  font-style: normal;
  color: var(--accent);
}

.institutional__desc {
  font-size: var(--fs-base);
  color: var(--text-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-6);
}

.institutional__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--jjd-cyan) 0%, transparent 60%);
  padding: 1px;
}

.institutional__media img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-xl) - 1px);
  display: block;
}

@media (max-width: 900px) {
  .institutional__inner { grid-template-columns: 1fr; gap: var(--s-10); }
}

/* ============== SERVIÇOS GRID ============== */
.services {
  background: linear-gradient(180deg, var(--jjd-dark) 0%, var(--jjd-dark-soft) 100%);
}

.services__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--s-8);
  gap: var(--s-6);
  flex-wrap: wrap;
}

.services__title {
  font-size: var(--fs-2xl);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ============== GLOBAL MARKET ============== */
.global-market {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: var(--s-16) 0;
  overflow: hidden;
}

.global-market__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.global-market__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-market__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 11, 23, 0.92) 0%, rgba(5, 11, 23, 0.6) 60%, rgba(5, 11, 23, 0.85) 100%);
}

.global-market__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.global-market__logo {
  height: 64px;
  margin-bottom: var(--s-6);
  filter: drop-shadow(0 8px 24px rgba(0, 194, 255, 0.35));
}

.global-market__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--s-5);
}

.global-market__desc {
  font-size: var(--fs-md);
  color: var(--text-light);
  margin-bottom: var(--s-8);
}

/* ============== TESTIMONIALS ============== */
.testimonials {
  background: var(--jjd-dark);
  position: relative;
}

.testimonials__head { text-align: center; margin-bottom: var(--s-12); }

.testimonials__title { font-size: var(--fs-2xl); }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.testimonial-card {
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.testimonial-card__quote {
  font-size: var(--fs-base);
  color: var(--text-light);
  line-height: var(--lh-relaxed);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--jjd-blue-deep);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
}

.testimonial-card__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}

.testimonial-card__role {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ============== CONTACT ============== */
.contact {
  background: var(--jjd-dark-soft);
  position: relative;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-10);
  align-items: start;
}

.contact__title { font-size: var(--fs-2xl); margin-bottom: var(--s-5); }

.contact__desc {
  color: var(--text-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-8);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--text-light);
}

.contact__details a:hover { color: var(--accent); }

.contact__form {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
}

.contact__form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; gap: var(--s-10); }
  .contact__form .field-row { grid-template-columns: 1fr; }
}

/* ============== UNIDADES ============== */
.units {
  background: var(--jjd-dark-deep);
}

.units__head { text-align: center; margin-bottom: var(--s-12); }

.units__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.unit-card {
  padding: 0;
  overflow: hidden;
}

.unit-card__img {
  height: 220px;
  background: var(--jjd-blue-deep);
  position: relative;
  overflow: hidden;
}

.unit-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-cinematic);
}

.unit-card:hover .unit-card__img img { transform: scale(1.05); }

.unit-card__body { padding: var(--s-6) var(--s-8) var(--s-8); }

.unit-card__city {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tk-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}

.unit-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--text);
}

.unit-card__addr {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

@media (max-width: 1024px) {
  .units__grid { grid-template-columns: 1fr; }
}
