/* =============================================================
   HERO.CSS — Hero / Landing Section
   The Ozasco
   ============================================================= */

/* ── Hero wrapper ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--clr-ivory);
  padding-top: calc(var(--nav-height) + var(--sp-8));
  padding-bottom: 120px; /* Safe space above absolute origins bar */
}

/* ── Background image with parallax container ── */
.hero__bg {
  position: absolute;
  inset: -10%;
  background-image: url('../heronew.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
  transition: transform 0.05s linear;
}

/* ── Layered overlays for depth ── */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Top vignette drop-shadow for logo & navigation contrast */
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 30%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(ellipse at 50% 30%, rgba(17, 17, 17, 0.02) 0%, transparent 60%),
    /* Bottom warm ivory panel blend */
    linear-gradient(180deg,
      rgba(255, 253, 249, 0) 0%,
      rgba(255, 253, 249, 0) 50%,
      rgba(250, 248, 245, 0.3) 80%,
      var(--clr-ivory) 100%
    );
}

/* Grain texture overlay */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0.045;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grain-shift 10s steps(6) infinite;
  pointer-events: none;
  will-change: auto;
}

/* ── Hero content (Travertine Frosted Placard) ── */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--sp-12) var(--sp-10);
  max-width: 800px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  
  /* Ultra-Translucent Premium Travertine design showing rich background colors */
  background: rgba(250, 248, 245, 0.45);
  backdrop-filter: blur(24px) saturate(110%);
  -webkit-backdrop-filter: blur(24px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl); /* Elegantly rounded 24px */
  
  /* Deep architectural ambient shadows & soft edge blurs */
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.01),
    0 30px 70px rgba(24, 24, 22, 0.07),
    0 0 32px rgba(250, 248, 245, 0.18), /* Soft white edge-blur halo */
    inset 0 0 20px rgba(255, 255, 255, 0.2); /* Inner border bevel soft blur */
  
  /* Smooth interaction transition */
  transition: 
    background var(--ease-base),
    box-shadow var(--ease-base);
  
  /* Entrance animation only — no continuous float to avoid backdrop-filter recomposite churn */
  animation: placard-fade-in 1.4s var(--ease-spring) forwards;
}

/* Hover Interactive Response */
.hero__content:hover {
  background: rgba(250, 248, 245, 0.52);
  box-shadow: 
    0 8px 40px rgba(0, 0, 0, 0.02),
    0 32px 80px rgba(24, 24, 22, 0.1),
    0 0 40px rgba(250, 248, 245, 0.25),
    inset 0 0 24px rgba(255, 255, 255, 0.25);
}

/* ── Eyebrow text ── */
.hero__eyebrow {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-espresso);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-2);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  flex: 1;
  width: 32px;
  height: 1px;
  background: var(--clr-espresso);
  opacity: 0.4;
}

/* ── Main headline ── */
.hero__headline {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: 300;
  line-height: 1.15;
  color: var(--clr-espresso);
  letter-spacing: -0.01em;
}

.hero__headline em {
  font-style: italic;
  display: block;
  color: var(--clr-espresso);
}

/* ── Subtext ── */
.hero__subtext {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.8;
  color: var(--clr-muted-dark);
  max-width: 54ch;
  margin-bottom: var(--sp-4);
}

/* ── CTA group ── */
.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Three origins bar (Floating Capsule) ── */
.hero__origins {
  position: absolute;
  bottom: clamp(1.25rem, 2.5vw, 2.25rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: calc(100% - var(--sp-8));
  max-width: 1020px;
  background: rgba(250, 248, 245, 0.72);
  backdrop-filter: blur(20px) saturate(110%);
  -webkit-backdrop-filter: blur(20px) saturate(110%);
  border: 1px solid rgba(142, 140, 130, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--sp-4) var(--sp-6);
  box-shadow: 
    0 10px 35px rgba(24, 24, 22, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.01);
  transition: 
    background var(--ease-base),
    box-shadow var(--ease-base),
    transform var(--ease-base);
}

.hero__origins:hover {
  background: rgba(250, 248, 245, 0.8);
  box-shadow: 
    0 15px 45px rgba(24, 24, 22, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.02);
}

.hero__origin-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-inline: clamp(var(--sp-4), 3vw, var(--sp-12));
  flex: 1;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero__origin-item:hover {
  transform: translateY(-2px);
}

.hero__origin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(142, 140, 130, 0.3);
  background: transparent;
  color: var(--clr-espresso);
  flex-shrink: 0;
  transition: 
    background var(--ease-base),
    border-color var(--ease-base),
    color var(--ease-base),
    transform var(--ease-spring);
}

.hero__origin-icon svg {
  stroke: currentColor;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.hero__origin-item:hover .hero__origin-icon {
  background: var(--clr-espresso);
  border-color: var(--clr-espresso);
  color: var(--clr-text-light);
  transform: scale(1.06) rotate(-5deg);
}

.hero__origin-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hero__origin-label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-espresso);
  transition: color var(--ease-base);
}

.hero__origin-item:hover .hero__origin-label {
  color: var(--clr-gold);
}

.hero__origin-desc {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--clr-muted);
  font-weight: 400;
  margin-top: 1px;
}

.hero__origin-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(142, 140, 130, 0.3) 20%, rgba(142, 140, 130, 0.3) 80%, transparent);
  flex-shrink: 0;
}


/* ── Scroll indicator ── */
.hero__scroll {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0.6;
  transition: opacity var(--ease-base);
}

.hero__scroll:hover {
  opacity: 1;
}

.hero__scroll-text {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.hero__scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(196, 168, 130, 0.5);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero__scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--clr-amber);
  border-radius: var(--radius-full);
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #hero {
    padding-top: calc(var(--nav-height) + var(--sp-4));
    padding-bottom: 90px;
  }

  .hero__content {
    padding: var(--sp-8) var(--sp-6);
    gap: var(--sp-5);
    background: rgba(250, 248, 245, 0.75);
    backdrop-filter: blur(8px) saturate(100%);
    -webkit-backdrop-filter: blur(8px) saturate(100%);
  }

  .hero__headline {
    font-size: var(--text-4xl);
  }

  /* Stack CTA buttons vertically and full-width on mobile */
  .hero__cta-group {
    flex-direction: column;
    width: 100%;
    gap: var(--sp-3);
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__origins {
    bottom: var(--sp-4);
    width: calc(100% - var(--sp-6));
    padding: var(--sp-3) var(--sp-4);
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(8px) saturate(100%);
    -webkit-backdrop-filter: blur(8px) saturate(100%);
  }

  .hero__origin-item {
    padding-inline: var(--sp-2);
    gap: var(--sp-2);
  }

  .hero__origin-icon {
    width: 34px;
    height: 34px;
    border-color: rgba(142, 140, 130, 0.2);
  }

  .hero__origin-icon svg {
    width: 14px;
    height: 14px;
  }

  .hero__origin-label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero__origin-desc {
    display: none;
  }

  .hero__origin-divider {
    height: 24px;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  #hero {
    padding-top: calc(var(--nav-height) + var(--sp-2));
    padding-bottom: 80px;
  }

  .hero__content {
    padding: var(--sp-6) var(--sp-4);
    width: 92%;
    gap: var(--sp-4);
  }

  .hero__headline {
    font-size: var(--text-3xl);
  }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__origins {
    bottom: var(--sp-3);
    width: calc(100% - var(--sp-4));
    padding: var(--sp-2) var(--sp-2);
  }

  .hero__origin-item {
    gap: 6px;
  }

  .hero__origin-icon {
    width: 28px;
    height: 28px;
  }

  .hero__origin-icon svg {
    width: 12px;
    height: 12px;
  }

  .hero__origin-label {
    font-size: 9px;
    letter-spacing: 0.05em;
  }
}

/* placard-fade-in keyframes — only animate opacity+transform, NOT backdrop-filter */
@keyframes placard-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


