/* ============================================================
   HERO.CSS — Seção Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-black);
}

/* ──────────────────────────────────────────────
   BACKGROUND
   ────────────────────────────────────────────── */

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.9) contrast(1.05);
}

/* Gradient overlays */
.hero__bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 2;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 42, 74, 0.2) 0%,
    transparent 50%,
    rgba(196, 169, 125, 0.05) 100%
  );
  z-index: 3;
}

/* Placeholder background when no image is provided */
.hero__bg--placeholder {
  background: linear-gradient(
    160deg,
    var(--color-black) 0%,
    #1a1f2e 30%,
    var(--color-navy) 60%,
    #0f1520 100%
  );
}

.hero__bg--placeholder::before {
  background: none;
}

/* Subtle texture/noise overlay */
.hero__noise {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* ──────────────────────────────────────────────
   CONTENT
   ────────────────────────────────────────────── */

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--space-3xl) var(--section-padding-x);
  max-width: 900px;
}

.hero__label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-champagne);
  margin-bottom: var(--space-xl);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: var(--weight-light);
  color: var(--color-white);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(245, 242, 238, 0.7);
  margin-bottom: var(--space-2xl);
}

.hero__description {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: rgba(245, 242, 238, 0.6);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ──────────────────────────────────────────────
   SCROLL INDICATOR
   ────────────────────────────────────────────── */

.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(245, 242, 238, 0.4);
  text-decoration: none;
  transition: color var(--transition-base);
}

.hero__scroll:hover {
  color: rgba(245, 242, 238, 0.7);
}

.hero__scroll-text {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.hero__scroll-icon {
  width: 20px;
  height: 20px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-icon {
    animation: none;
  }
}

/* ──────────────────────────────────────────────
   BOTTOM SPLIT CARDS (à la Atelier Légal)
   ────────────────────────────────────────────── */

.hero__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero__bottom-card {
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: background-color var(--transition-base);
  cursor: pointer;
}

.hero__bottom-card:first-child {
  background-color: var(--color-black);
  color: var(--color-offwhite);
}

.hero__bottom-card:first-child:hover {
  background-color: #222;
}

.hero__bottom-card:last-child {
  background-color: var(--color-gray-light);
  color: var(--color-black);
}

.hero__bottom-card:last-child:hover {
  background-color: #ddd9d3;
}

.hero__bottom-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-wide);
}

.hero__bottom-icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  transition: opacity var(--transition-base),
              transform var(--transition-base);
}

.hero__bottom-card:hover .hero__bottom-icon {
  opacity: 1;
  transform: translateX(4px);
}

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */
/* ──────────────────────────────────────────────
   WHATSAPP HERO BUTTON
   ────────────────────────────────────────────── */

.hero__whatsapp {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  z-index: 20;
  transition: all var(--transition-base);
}

.hero__whatsapp:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero__whatsapp:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

@supports not (backdrop-filter: blur(1px)) {
  .hero__whatsapp {
    background: var(--color-offwhite);
    color: var(--color-black);
    border-color: var(--color-gray-light);
  }
}

.hero__whatsapp-icon {
  width: 30px;
  height: 30px;
}


@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero__content {
    padding: calc(var(--header-height-mobile) + var(--space-2xl)) var(--section-padding-x) var(--space-5xl);
  }

  .hero__bottom {
    grid-template-columns: 1fr;
  }

  .hero__bottom-card {
    padding: var(--space-lg) var(--space-xl);
  }

  .hero__bottom-title {
    font-size: var(--text-lg);
  }

  .hero__scroll {
    display: none;
  }
}
