/* ============================================================
   Aurum Joalheria — home.css
   Inspirado em scharff.dk: hero mínimo, grid limpo,
   tipografia pequena, muito espaço em branco
   ============================================================ */

/* ============================================================
   HERO — texto sobre fundo branco, imagem ao lado
   Scharff usa uma colagem hero com imagem grande e texto
   sobreposto ou ao lado, muito simples
   ============================================================ */

.home-hero {
  border-bottom: 1px solid var(--gray-200);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.home-hero__text {
  padding: 60px var(--gutter) 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 440px;
  margin-left: auto;
}

.home-hero__eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 20px;
}

.home-hero__title {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .01em;
  margin-bottom: 20px;
  color: var(--black);
}

.home-hero__title em {
  font-style: italic;
}

.home-hero__body {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 320px;
  margin-bottom: 32px;
}

/* CTA sutil — só texto sublinhado, como Scharff */
.home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 3px;
  transition: opacity .15s;
  align-self: flex-start;
}

.home-hero__cta:hover { opacity: .5; }

.home-hero__image-wrap {
  background: var(--gray-100);   /* cinza muito claro — Scharff usa fundo neutro */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  /*min-height: 0;*/
}
/* Mantém a proporção original da foto: nunca estica nem corta,
   independente do formato (retrato, paisagem ou quadrada). */
.home-hero__image-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  /*transition: transform .6s var(--ease);*/
}

.home-hero__image-wrap:hover img { transform: scale(1.03); }

/* Placeholder SVG enquanto não há foto */
.home-hero__image-placeholder {
  color: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ============================================================
   SEÇÕES DA HOME — espaçamento generoso
   ============================================================ */

.home-section {
  padding: 64px 0 0;
}

.home-section--last {
  padding-bottom: 80px;
}

.home-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 14px;
}

.home-section__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .02em;
}

.home-section__link {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .15s;
}

.home-section__link:hover { color: var(--black); }

/* ============================================================
   BANNER EDITORIAL — fundo cinza claro como Scharff
   ============================================================ */

.home-banner {
  background: var(--gray-100);
  padding: 60px 0;
  margin: 60px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.home-banner__inner {
  text-align: center;
}

.home-banner__label {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 16px;
}

.home-banner__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 44px;
  color: var(--black);
}

.home-banner__title em { font-style: italic; }

.home-banner__perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.home-banner__perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
  line-height: 1.6;
}

.home-banner__perk-icon { color: var(--black); opacity: .4; }

/* ============================================================
   PLACEHOLDER DE IMAGEM — cinza neutro como Scharff
   ============================================================ */

.product-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-100);
}

/* ============================================================
   404
   ============================================================ */

.error-404 {
  text-align: center;
  padding: 120px 0;
}

.error-404__code {
  font-family: var(--serif);
  font-size: 100px;
  font-weight: 400;
  line-height: 1;
  color: var(--gray-200);
  margin-bottom: 16px;
}

.error-404__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}

.error-404__sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 768px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-hero__image-wrap img { max-height: 280px; }
  .home-hero__image-wrap {
    height: 280px;
    order: -1;
    border-bottom: 1px solid var(--gray-200);
  }

  .home-hero__text {
    padding: 40px var(--gutter);
    max-width: 100%;
    margin: 0;
  }

  .home-banner__perks { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 480px) {
  .home-banner__perks { grid-template-columns: 1fr 1fr; }
}


/* ===== Carrossel do hero — ACRESCENTE no final de public/assets/css/home.css ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
}
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 56px;      /* espaço para a legenda e os pontos */
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
  text-decoration: none;
  color: inherit;
}
.hero-carousel__slide.is-active { opacity: 1; visibility: visible; }
/* Proporção original da foto: nunca esticada nem cortada */
.hero-carousel__slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hero-carousel__legenda {
  position: absolute;
  left: 0; right: 0; bottom: 34px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--black, #111);
}
.hero-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,.7);
  border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  color: var(--black, #111);
}
.hero-carousel__nav--ant  { left: 10px; }
.hero-carousel__nav--prox { right: 10px; }
.hero-carousel__nav:hover { background: #fff; }
.hero-carousel__dots {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero-carousel__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 1px solid var(--black, #111);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.hero-carousel__dot.is-active { background: var(--black, #111); }
/* o zoom do hover da foto única não se aplica ao carrossel */
.home-hero__image-wrap:hover .hero-carousel__slide img { transform: none; }
@media (max-width: 768px) {
  .hero-carousel { min-height: 280px; }
  .hero-carousel__slide { padding: 14px 14px 52px; }
}