/* ============================================================
   Terra Lanna — ANIMATED HERO
   ============================================================ */

.ahero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ---- Background with Ken Burns ---- */
.ahero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  animation: ahero-kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ahero-kenburns {
  from { transform: scale(1);    }
  to   { transform: scale(1.07); }
}

/* ---- Dark gradient overlay ---- */
.ahero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(13, 27, 62, 0.85) 0%,
    rgba(13, 27, 62, 0.62) 48%,
    rgba(13, 27, 62, 0.28) 100%
  );
}

/* ---- Content ---- */
.ahero-inner {
  position: relative;
  z-index: 10;
  padding: 0 clamp(1.75rem, 9vw, 8rem);
  max-width: 700px;
}

/* ---- Stagger animations ---- */
@keyframes ahero-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.ahero-eyebrow { opacity: 0; animation: ahero-up 0.75s cubic-bezier(0.22,1,0.36,1) forwards; animation-delay: 0.10s; }
.ahero-title   { opacity: 0; animation: ahero-up 0.75s cubic-bezier(0.22,1,0.36,1) forwards; animation-delay: 0.26s; }
.ahero-sub     { opacity: 0; animation: ahero-up 0.75s cubic-bezier(0.22,1,0.36,1) forwards; animation-delay: 0.42s; }
.ahero-btns    { opacity: 0; animation: ahero-up 0.75s cubic-bezier(0.22,1,0.36,1) forwards; animation-delay: 0.58s; }

/* ---- Eyebrow ---- */
.ahero-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
}

/* ---- Title ---- */
.ahero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 600;
  line-height: 0.88;
  color: var(--color-white);
  text-shadow: 0 4px 60px rgba(0,0,0,0.65);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.ahero-title em {
  color: var(--color-gold);
  font-style: italic;
}

/* ---- Sub ---- */
.ahero-sub {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.10em;
  color: rgba(245, 240, 232, 0.78);
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 480px;
}

/* ---- Buttons ---- */
.ahero-btns {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
}

.ahero-btn {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.05rem 2.75rem;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Gold / primary */
.ahero-btn--gold {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}

.ahero-btn--gold:hover {
  background: transparent;
  color: var(--color-gold);
}

/* Glass / secondary */
.ahero-btn--glass {
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ahero-btn--glass:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.45);
}


/* ---- Mobile ---- */
@media (max-width: 640px) {
  .ahero-inner   { padding: 0 1.5rem; }
  .ahero-title   { font-size: clamp(3.8rem, 17vw, 6rem); }
  .ahero-sub     { font-size: 0.95rem; max-width: 100%; margin-bottom: 2.25rem; }
  .ahero-btns    { flex-direction: column; align-items: stretch; }
  .ahero-btn     { padding: 0.9rem 1.8rem; font-size: 0.82rem; min-height: 48px;
                   width: 100%; justify-content: center; display: flex; align-items: center; }
}
@media (max-width: 400px) {
  .ahero-title   { font-size: clamp(3rem, 18vw, 4.5rem); }
  .ahero-sub     { font-size: 0.88rem; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  .ahero-bg { animation: none; }
  .ahero-eyebrow,
  .ahero-title,
  .ahero-sub,
  .ahero-btns { opacity: 1; animation: none; }
}
