/* ================================================
   KyArteChoco — index.css (Home)
   ================================================ */

/* ── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #1a0a04 0%, #3B1F0E 40%, #5C2E10 70%, #2C1A0E 100%);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,10,2,0.3) 0%, rgba(30,10,2,0.6) 100%);
  z-index: 1;
}

.hero-conteudo {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.hero-eyebrow {
  font-family: var(--fonte-corpo);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hero-titulo {
  font-family: var(--fonte-display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero-titulo em {
  font-style: italic;
  font-weight: 400;
  color: #E8B96A;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(250, 247, 244, 0.92);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 440px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-start;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(250, 247, 244, 0.5);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-hint 2s infinite;
}

.hero-scroll-hint svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Seção Números ─────────────────────────────── */
.numeros-secao {
  position: relative;
  background: #F0EBE4;
  padding: 3.5rem 0;
}


.numeros-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.numero-divisor {
  width: 40px;
  height: 1px;
  background: transparent;
}

.numero-item {
  text-align: center;
}

.numero-valor {
  display: block;
  font-family: var(--fonte-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  color: var(--cor-marrom-escuro);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.numero-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cor-texto-suave);
}

/* ── Seção Especialidade ───────────────────────── */
.especialidade-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.especialidade-card {
  position: relative;
  border-radius: var(--raio);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.especialidade-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.especialidade-card:hover .especialidade-card-bg {
  transform: scale(1.04);
}

.img-placeholder {
  font-family: var(--fonte-corpo);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 1rem;
  word-break: break-all;
  pointer-events: none;
  user-select: none;
}

.especialidade-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,10,2,0.88) 0%, rgba(30,10,2,0.2) 60%, transparent 100%);
}

.especialidade-card-conteudo {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 2rem 1.75rem;
}

.especialidade-icone {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(200, 169, 126, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--cor-dourado);
}

.especialidade-icone svg {
  width: 20px;
  height: 20px;
}

.especialidade-card-titulo {
  font-family: var(--fonte-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: #FAF7F4;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.especialidade-card-desc {
  font-size: 0.9rem;
  color: rgba(250, 247, 244, 0.78);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.especialidade-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cor-dourado);
  border-bottom: 1px solid rgba(200,169,126,0.4);
  padding-bottom: 2px;
  transition: color var(--transicao), border-color var(--transicao);
}

.especialidade-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transicao);
}

.especialidade-link:hover {
  color: #FAF7F4;
  border-color: rgba(250,247,244,0.6);
}

.especialidade-link:hover svg {
  transform: translateX(4px);
}

/* ── Seção Benefícios ──────────────────────────── */
.beneficios-secao {
  background: var(--cor-fundo);
}

.secao-titulo-em {
  font-style: italic;
  font-weight: 400;
  color: var(--cor-marrom-medio);
}

.beneficios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  margin-top: 2.5rem;
}

.beneficio-item {
  text-align: center;
}

.beneficio-icone {
  width: 56px;
  height: 56px;
  border: 1px solid var(--cor-borda);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--cor-marrom-medio);
  transition: border-color var(--transicao), background var(--transicao);
}

.beneficio-item:hover .beneficio-icone {
  border-color: var(--cor-dourado);
  background: rgba(200, 169, 126, 0.08);
}

.beneficio-icone svg {
  width: 22px;
  height: 22px;
}

.beneficio-titulo {
  font-family: var(--fonte-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cor-marrom-escuro);
  margin-bottom: 0.5rem;
}

.beneficio-desc {
  font-size: 0.88rem;
  color: var(--cor-texto-suave);
  line-height: 1.6;
}

/* ── CTA Final ─────────────────────────────────── */
.cta-final-secao {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background: var(--cor-marrom-escuro);
}

.cta-final-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(200, 169, 126, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final-conteudo {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-final-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cor-dourado);
  margin-bottom: 1rem;
}

.cta-final-titulo {
  font-family: var(--fonte-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  color: #FAF7F4;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cta-final-titulo em {
  font-style: italic;
  font-weight: 400;
  color: var(--cor-dourado);
}

.cta-final-sub {
  font-size: 0.95rem;
  color: rgba(250, 247, 244, 0.65);
  margin-bottom: 2rem;
}

.cta-final-btn {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* ── Desktop ───────────────────────────────────── */
@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
  }

  .hero-ctas {
    flex-direction: row;
  }

  .numeros-grid {
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
  }

  .numero-divisor {
    width: 1px;
    height: 60px;
  }

  .especialidade-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .especialidade-card {
    min-height: 480px;
  }

  .beneficios-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
  }
}

@media (min-width: 1024px) {
  .especialidade-card {
    min-height: 540px;
  }
}

/* ================================================
   MOBILE REFINEMENTS (≤ 767px)
   ================================================ */
@media (max-width: 767px) {

  /* ── Quebra de linha exclusiva do desktop ────── */
  .quebra-desktop {
    display: none;
  }

  /* ── Hero — Redesign mobile premium ──────────── */
  /* Conteúdo ancorado na parte inferior, alinhado à esquerda,
     com linha vertical dourada decorativa e tracinhos inline
     que reforçam a identidade da marca. */
  .hero {
    height: 100svh;
    min-height: 600px;
    align-items: flex-end;
    text-align: left;
  }

  /* Gradiente forte na base, claro no topo — texto respira sobre o vídeo */
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(20, 8, 2, 0.95) 0%,
      rgba(20, 8, 2, 0.5) 50%,
      rgba(20, 8, 2, 0.1) 100%
    );
  }

  .hero-conteudo {
    position: relative;
    width: 100%;
    text-align: left;
    padding: 0 1.5rem 5rem 2.25rem;
  }

  /* Linha vertical dourada decorativa à esquerda do eyebrow */
  .hero-conteudo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    width: 3px;
    height: 60px;
    background: var(--cor-dourado);
    border-radius: 1px;
  }

  /* Eyebrow com tracinho horizontal antes do texto */
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  }

  .hero-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--cor-dourado);
    flex-shrink: 0;
  }

  /* Título com linha decorativa abaixo */
  .hero-titulo {
    font-size: clamp(2rem, 9vw, 2.8rem);
    text-align: left;
    line-height: 1.1;
    margin-bottom: 0;
  }

  .hero-titulo::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--cor-dourado);
    margin: 1rem 0;
  }

  .hero-sub {
    font-size: 0.9rem;
    color: rgba(250, 247, 244, 0.80);
    text-align: left;
    margin: 0 0 1.75rem;
    max-width: 100%;
    line-height: 1.6;
  }

  /* CTAs: empilhados, primário largo dourado + secundário link elegante */
  .hero-ctas {
    width: 100%;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-ctas .btn-primario {
    width: 100%;
    background: var(--cor-dourado);
    color: var(--cor-marrom-escuro);
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 54px;
    box-shadow: 0 6px 18px rgba(200, 169, 126, 0.25);
  }

  .hero-ctas .btn-primario:hover,
  .hero-ctas .btn-primario:active {
    background: var(--cor-marrom-claro);
  }

  /* Secundário: link elegante com seta animada — sem fundo, sem borda */
  .hero-ctas .btn-outline {
    width: auto;
    align-self: flex-start;
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(250, 247, 244, 0.88);
    min-height: 44px;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .hero-ctas .btn-outline::after {
    content: '→';
    font-size: 1.1rem;
    line-height: 1;
    transition: transform var(--transicao);
  }

  .hero-ctas .btn-outline:hover,
  .hero-ctas .btn-outline:active {
    background: transparent;
    color: var(--cor-dourado);
  }

  .hero-ctas .btn-outline:hover::after {
    transform: translateX(4px);
  }

  .hero-scroll-hint {
    bottom: 1rem;
    width: 30px;
    height: 30px;
    opacity: 0.5;
  }

  /* ── Seção Números ───────────────────────────── */
  .numeros-secao {
    padding: 2.75rem 0;
  }

  .numeros-grid {
    gap: 1.5rem;
  }

  /* Divisor horizontal entre números */
  .numero-divisor {
    width: 60px;
    height: 1px;
    background: var(--cor-borda);
  }

  .numero-valor {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .numero-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  /* ── Seção Especialidade ─────────────────────── */
  .especialidade-grid {
    gap: 1rem;
  }

  .especialidade-card {
    min-height: 260px;
    max-height: 280px;
  }

  /* Estado inicial: overlay claro, descrição oculta */
  .especialidade-card-overlay {
    background: linear-gradient(
      to top,
      rgba(20, 8, 2, 0.65) 0%,
      rgba(20, 8, 2, 0.1) 60%,
      transparent 100%
    );
    transition: background 0.3s ease;
  }

  .especialidade-card-desc {
    display: none;
  }

  /* Estado ao tocar (.tocado): overlay escuro, descrição visível */
  .especialidade-card.tocado .especialidade-card-overlay {
    background: linear-gradient(
      to top,
      rgba(20, 8, 2, 0.92) 0%,
      rgba(20, 8, 2, 0.4) 70%,
      transparent 100%
    );
  }

  .especialidade-card.tocado .especialidade-card-desc {
    display: block;
    animation: desc-fade-in 0.3s ease both;
  }

  @keyframes desc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .especialidade-card-conteudo {
    padding: 1.5rem 1.25rem;
  }

  .especialidade-icone {
    width: 38px;
    height: 38px;
    margin-bottom: 0.625rem;
  }

  .especialidade-icone svg {
    width: 17px;
    height: 17px;
  }

  .especialidade-card-titulo {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }

  .especialidade-card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .especialidade-link {
    font-size: 0.75rem;
    min-height: 32px;
  }

  /* ── Seção Benefícios (mantém 2x2) ───────────── */
  .beneficios-grid {
    gap: 1.75rem 1rem;
    margin-top: 2rem;
  }

  .beneficio-icone {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }

  .beneficio-icone svg {
    width: 20px;
    height: 20px;
  }

  .beneficio-titulo {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .beneficio-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* ── CTA Final ───────────────────────────────── */
  .cta-final-secao {
    padding: 3.5rem 0;
  }

  .cta-final-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.875rem;
  }

  .cta-final-titulo {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    margin-bottom: 0.875rem;
  }

  .cta-final-sub {
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
  }

  .cta-final-btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
    min-height: 56px;
  }
}
