/* ============================================================
   TEMPLATE: HERO SLIDER — v20.1 "Obsidian Ceylon"
   Annora Ceylon · Premium Inbound Tourism Specialists
   ⚠  ALL values reference main.css variables — zero hardcoding
   ⚠  Class prefix: ac-hero__ (replaces tt-hero__)
   ============================================================ */

/* ── 1. SECTION SHELL ──────────────────────────────────────── */
.ac-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--color-navy-abyss);
  display: flex;
  align-items: center;
}

/* ── 2. IMAGE SLIDES ───────────────────────────────────────── */
.ac-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ac-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.ac-hero__slide.ac-slide--active {
  opacity: 1;
  transform: scale(1);
}

/* ── 3. VIDEO LAYER ────────────────────────────────────────── */
.ac-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}

.ac-hero__video.ac-video--ready {
  opacity: 1;
}

/* ── 4. OVERLAYS ───────────────────────────────────────────── */
.ac-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ac-hero__overlay--cinematic {
  z-index: 3;
  background:
    linear-gradient(
      108deg,
      rgba(8, 8, 16, 0.90) 0%,
      rgba(8, 8, 16, 0.72) 30%,
      rgba(8, 8, 16, 0.32) 54%,
      rgba(8, 8, 16, 0.10) 74%,
      transparent 90%
    ),
    linear-gradient(
      180deg,
      rgba(8, 8, 16, 0.40) 0%,
      transparent 30%,
      transparent 60%,
      rgba(8, 8, 16, 0.78) 100%
    );
}

.ac-hero__overlay--vignette {
  z-index: 4;
  background: radial-gradient(
    ellipse at center,
    transparent 42%,
    rgba(8, 8, 16, 0.40) 100%
  );
}

/* ── 5. NOISE TEXTURE ──────────────────────────────────────── */
.ac-hero__noise {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0.028;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── 6. CONTENT STAGE ──────────────────────────────────────── */
.ac-hero__stage {
  position: relative;
  z-index: 10;
  max-width: 820px;
  width: 100%;
  padding: 0 5vw;
  padding-top: var(--header-height-total, 114px);
  margin-top: -3rem;
}

/* ── 7. EYEBROW ────────────────────────────────────────────── */
.ac-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(18px);
}

.ac-hero__eyebrow.ac-anim--in {
  animation: acFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.ac-hero__eyebrow-gem {
  color: var(--color-gold);
  font-size: 7px;
  line-height: 1;
  animation: acGemPulse 3s ease-in-out infinite;
}

@keyframes acGemPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.ac-hero__eyebrow-text {
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ── 8. HEADLINE ───────────────────────────────────────────── */
.ac-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: var(--font-weight-light);
  line-height: 1.08;
  color: var(--color-white);
  margin: 0 0 1.4rem;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(22px);
  max-width: 700px;
}

.ac-hero__headline.ac-anim--in {
  animation: acFadeUp 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.ac-hero__headline .ac-hl-italic {
  font-style: italic;
  color: var(--color-gold-light);
  font-weight: var(--font-weight-light);
}

.ac-hero__headline .ac-hl-bold {
  font-weight: var(--font-weight-semibold);
  font-style: normal;
  color: var(--color-white);
}

/* ── 9. GOLD RULE ──────────────────────────────────────────── */
.ac-hero__rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.4rem;
  opacity: 0;
  transform-origin: left center;
}

.ac-hero__rule.ac-anim--in {
  animation: acRuleIn 0.70s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both;
}

@keyframes acRuleIn {
  from { opacity: 0; transform: scaleX(0.35); }
  to   { opacity: 1; transform: scaleX(1); }
}

.ac-hero__rule-line {
  display: block;
  height: 1px;
  width: 52px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.ac-hero__rule-line--short {
  width: 20px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.ac-hero__rule-diamond {
  color: var(--color-gold);
  font-size: 6px;
  flex-shrink: 0;
}

/* ── 10. DESCRIPTION ───────────────────────────────────────── */
.ac-hero__desc {
  font-family: var(--font-primary);
  font-size: clamp(0.90rem, 1.35vw, 1.04rem);
  font-weight: var(--font-weight-light);
  line-height: 1.78;
  color: var(--color-white-75);
  margin: 0 0 1.8rem;
  max-width: 560px;
  opacity: 0;
  transform: translateY(14px);
}

.ac-hero__desc.ac-anim--in {
  animation: acFadeUp 0.70s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

/* ── 11. STATS STRIP ───────────────────────────────────────── */
.ac-hero__stats {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(12px);
}

.ac-hero__stats.ac-anim--in {
  animation: acFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.54s both;
}

.ac-hero__stat {
  display: flex;
  flex-direction: column;
  padding: 0 1.4rem;
  border-left: 1px solid var(--color-white-12);
  gap: 4px;
}

.ac-hero__stat:first-child {
  border-left: none;
  padding-left: 0;
}

.ac-hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.65rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gold-light);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Icon-mode stat: the FA icon sits where the numeric value normally sits */
.ac-hero__stat-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gold-light);
  line-height: 1;
}

.ac-hero__stat-icon i {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

/* When a numeric value accompanies an icon, render it smaller beside it */
.ac-hero__stat-icon .ac-hero__stat-value {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

.ac-hero__stat-label {
  font-family: var(--font-primary);
  font-size: 0.63rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white-50);
  line-height: 1.3;
}

/* ── 12. CTA BUTTONS ───────────────────────────────────────── */
.ac-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(12px);
}

.ac-hero__actions.ac-anim--in {
  animation: acFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.66s both;
}

.ac-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 0.80rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.90rem 1.8rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-premium);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.ac-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-white);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.ac-btn:hover::before { opacity: 0.06; }

.ac-btn--gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy-deep);
}

.ac-btn--gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-2px);
  color: var(--color-navy-deep);
}

.ac-btn--gold .ac-btn__arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ac-btn--gold:hover .ac-btn__arrow {
  transform: translateX(4px);
}

.ac-btn--ghost {
  background: var(--color-white-08);
  border-color: var(--color-white-25);
  color: var(--color-white-90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ac-btn--ghost:hover {
  background: var(--color-white-15);
  border-color: var(--color-white-40);
  transform: translateY(-2px);
  color: var(--color-white);
}

/* ── 13. MEDIA CONTROL ROW ─────────────────────────────────── */
.ac-hero__media-row {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(10px);
}

.ac-hero__media-row.ac-anim--in {
  animation: acFadeUp 0.60s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both;
}

.ac-hero__media-pill {
  display: flex;
  align-items: center;
  background: var(--color-white-08);
  border: 1px solid var(--color-white-15);
  border-radius: var(--radius-full);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ac-hero__media-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  background: none;
  border: none;
  color: var(--color-white-70);
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 0.78rem;
}

.ac-hero__media-btn:hover {
  color: var(--color-gold-light);
  background: var(--color-white-08);
}

.ac-hero__media-divider {
  width: 1px;
  height: 18px;
  background: var(--color-white-15);
  flex-shrink: 0;
}

.ac-hero__slide-progress {
  width: 90px;
  height: 2px;
  background: var(--color-white-18);
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.ac-hero__slide-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  border-radius: inherit;
  transition: none;
}

.ac-hero__slide-counter {
  font-family: var(--font-primary);
  font-size: 0.70rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-white-45);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ac-hero__slide-cur { color: var(--color-gold); font-weight: var(--font-weight-semibold); }
.ac-hero__slide-sep { color: var(--color-white-25); }

/* ── 14. TRUST BADGE ───────────────────────────────────────── */
.ac-hero__trust {
  position: absolute;
  right: 3.5vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(8, 8, 16, 0.42);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: acTrustIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
  min-width: 106px;
  text-align: center;
}

@keyframes acTrustIn {
  from { opacity: 0; transform: translateY(-50%) translateX(16px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.ac-hero__trust-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.1rem;
  background: var(--color-gold-bg);
  flex-shrink: 0;
}

.ac-hero__trust-l1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-gold-light);
  line-height: 1;
  letter-spacing: -0.01em;
}

.ac-hero__trust-l2 {
  font-family: var(--font-primary);
  font-size: 0.58rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white-55);
  white-space: pre-line;
  line-height: 1.55;
}

/* ── 15. DOT INDICATORS ────────────────────────────────────── */
.ac-hero__dots {
  position: absolute;
  bottom: 4.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: acFadeUp 0.6s ease 1s both;
}

.ac-hero__dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-white-30);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition-premium);
  flex-shrink: 0;
}

.ac-hero__dot.ac-dot--active {
  background: var(--color-gold);
  width: 24px;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.50);
}

.ac-hero__dot:hover:not(.ac-dot--active) {
  background: var(--color-white-60);
}

/* ── 16. SCROLL CUE ────────────────────────────────────────── */
.ac-hero__scroll {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  animation: acFadeUp 0.6s ease 1.4s both;
  pointer-events: none;
}

.ac-hero__scroll-track {
  width: 1px;
  height: 32px;
  background: var(--color-white-20);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.ac-hero__scroll-pip {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 12px;
  background: var(--color-gold);
  animation: acScrollPip 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes acScrollPip {
  0%   { top: -100%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.ac-hero__scroll-lbl {
  font-family: var(--font-primary);
  font-size: 0.57rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white-40);
}

/* ── 17. BOTTOM MARQUEE ────────────────────────────────────── */
.ac-hero__marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 16;
  height: 36px;
  background: rgba(8, 8, 16, 0.68);
  border-top: 1px solid var(--color-white-08);
  overflow: hidden;
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ac-hero__marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: acMarquee 40s linear infinite;
}

@keyframes acMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ac-hero__marquee-track span {
  font-family: var(--font-primary);
  font-size: 0.60rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white-42);
  padding: 0 2rem;
}

.ac-hero__marquee-track span i {
  color: var(--color-gold);
  font-size: 5px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ── 18. KEYFRAMES ─────────────────────────────────────────── */
@keyframes acFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 19. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1200px) {
  .ac-hero__trust { right: 2vw; min-width: 94px; padding: 1.1rem 0.8rem; }
}

@media (max-width: 900px) {
  .ac-hero__trust { display: none; }
  .ac-hero__headline { font-size: clamp(2.2rem, 7vw, 3.4rem); }
  .ac-hero__stage { margin-top: -2rem; }
}

@media (max-width: 600px) {
  .ac-hero__stage { margin-top: -1.5rem; }
  .ac-hero__headline { font-size: clamp(2rem, 9vw, 2.8rem); }
  .ac-hero__stat { padding: 0 0.9rem; }
  .ac-hero__stat-value { font-size: 1.25rem; }
  .ac-hero__stat-icon i { font-size: 1.1rem; }
  .ac-hero__actions { flex-direction: column; gap: 10px; }
  .ac-btn { justify-content: center; width: 100%; max-width: 280px; }
  .ac-hero__slide-progress { width: 56px; }
  .ac-hero__dots { bottom: 4rem; }
  .ac-hero__scroll { bottom: 2.4rem; }
}

/* ── 20. REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ac-hero__slide, .ac-hero__video, .ac-hero__eyebrow, .ac-hero__headline,
  .ac-hero__rule, .ac-hero__desc, .ac-hero__stats, .ac-hero__actions,
  .ac-hero__media-row, .ac-hero__trust, .ac-hero__dots, .ac-hero__scroll {
    animation: none !important;
    transition: opacity 0.3s ease !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ac-hero__marquee-track, .ac-hero__scroll-pip, .ac-hero__eyebrow-gem {
    animation: none !important;
  }
}
