/**
 * Aangan Aura — Phase 3 Homepage Stylesheet
 * Brand: Warm Indian Courtyard, Divine, Premium Modern
 * Colors: Primary #C2410C, Dark #1C1917, Background #FFF8F1, Surface #FFFFFF
 */

/* ==========================================
   1. SLIM ROTATING ANNOUNCEMENT BAR
   ========================================== */
.aa-announcement-wrap {
  background-color: var(--dark, #1C1917);
  color: #FFF8F1;
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 12px;
  font-weight: 500;
  height: 38px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(241, 228, 214, 0.12);
  z-index: 60;
}

.aa-announcement-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.aa-announcement-item {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.aa-announcement-item a {
  color: #FBBF24;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.aa-announcement-item a:hover {
  color: #FDE68A;
}

/* ==========================================
   1.5 SACRED COLLECTIONS STORY CAROUSEL (ASTROTALK STYLE)
   ========================================== */
.aa-sacred-bar {
  background: var(--surface, #FFFFFF);
  border-bottom: 1px solid var(--border, #F1E4D6);
  padding: 10px 0 12px;
  position: relative;
  z-index: 5;
}

.aa-sacred-track {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 4px 4px;
}

.aa-sacred-track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .aa-sacred-track {
    gap: 20px;
    justify-content: center;
  }
}

.aa-sacred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 68px;
  width: 68px;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.25s ease;
}

@media (min-width: 640px) {
  .aa-sacred-item {
    flex: 0 0 84px;
    width: 84px;
  }
}

.aa-sacred-thumb-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg, #FFF8F1);
  border: 1px solid var(--border, #F1E4D6);
  padding: 3px;
  box-shadow: 0 2px 6px rgba(28, 25, 23, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .aa-sacred-thumb-box {
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }
}

.aa-sacred-item:hover .aa-sacred-thumb-box {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--primary, #C2410C);
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.16);
}

.aa-sacred-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

@media (min-width: 640px) {
  .aa-sacred-thumb-img {
    border-radius: 16px;
  }
}

.aa-sacred-item:hover .aa-sacred-thumb-img {
  transform: scale(1.06);
}

.aa-sacred-label {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 11px;
  font-weight: 500;
  color: var(--text, #1C1917);
  line-height: 1.25;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  transition: color 0.2s ease;
}

@media (min-width: 640px) {
  .aa-sacred-label {
    font-size: 12px;
  }
}

.aa-sacred-item:hover .aa-sacred-label {
  color: var(--primary, #C2410C);
  font-weight: 600;
}

/* ==========================================
   2. HERO BANNER & KEN BURNS ZOOM
   ========================================== */
.aa-hero-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #1C1917;
  color: #FFFFFF;
  user-select: none;
}

.aa-hero-viewport {
  position: relative;
  width: 100%;
  min-height: 460px;
  height: 64vh;
  max-height: 580px;
  touch-action: pan-y;
}

@media (max-width: 640px) {
  .aa-hero-viewport {
    min-height: 380px;
    height: 54vh;
    max-height: 460px;
  }
}

.aa-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  overflow: hidden;
  background-color: #1C1917;
}

.aa-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 5;
}

.aa-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  z-index: 1;
}

.aa-hero-slide.active .aa-hero-bg {
  animation: aaKenBurns 20s ease-out infinite alternate;
}

@keyframes aaKenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-1%, -1%);
  }
}

/* Scrim Gradient for guaranteed text readability */
.aa-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 25, 23, 0.88) 0%,
    rgba(28, 25, 23, 0.65) 45%,
    rgba(28, 25, 23, 0.2) 100%
  );
  z-index: 2;
}

@media (max-width: 768px) {
  .aa-hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(28, 25, 23, 0.35) 0%,
      rgba(28, 25, 23, 0.82) 55%,
      rgba(28, 25, 23, 0.96) 100%
    );
  }
}

.aa-hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .aa-hero-content {
    justify-content: flex-end;
    padding-bottom: 64px;
  }
}

.aa-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(194, 65, 12, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #FDE68A;
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.aa-hero-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  max-width: 580px;
}

.aa-hero-desc {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: clamp(13px, 1.8vw, 16px);
  color: #F1E4D6;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 480px;
}

.aa-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary, #C2410C);
  color: #FFFFFF;
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(194, 65, 12, 0.4);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  width: fit-content;
}

.aa-hero-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: aaSweepShine 4s infinite;
}

@keyframes aaSweepShine {
  0% { left: -100%; }
  25% { left: 200%; }
  100% { left: 200%; }
}

.aa-hero-cta:hover {
  background-color: var(--primary-hover, #9A3412);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(194, 65, 12, 0.5);
}

/* Desktop Hero Nav Arrows */
.aa-hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: all 0.25s ease;
  opacity: 0;
}

.aa-hero-wrapper:hover .aa-hero-nav-btn {
  opacity: 1;
}

.aa-hero-nav-btn:hover {
  background: var(--primary, #C2410C);
  border-color: var(--primary, #C2410C);
  transform: translateY(-50%) scale(1.08);
}

.aa-hero-nav-prev {
  left: 20px;
}

.aa-hero-nav-next {
  right: 20px;
}

@media (max-width: 768px) {
  .aa-hero-nav-btn {
    display: none;
  }
}

/* Hero Progress Dots */
.aa-hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 12;
  pointer-events: auto;
}

.aa-hero-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  max-width: 8px;
  min-height: 8px;
  max-height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
  outline: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  appearance: none;
  -webkit-appearance: none;
}

.aa-hero-dot.active {
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  height: 8px;
  min-height: 8px;
  max-height: 8px;
  background: var(--primary, #C2410C);
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.6);
}

/* ==========================================
   3. CLEAN STATIC TRUST GRID (4 ITEMS)
   ========================================== */
.aa-trust-strip {
  background: var(--surface, #FFFFFF);
  border-top: 1px solid var(--border, #F1E4D6);
  border-bottom: 1px solid var(--border, #F1E4D6);
  padding: 18px 16px;
}

.aa-trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .aa-trust-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.aa-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aa-trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(194, 65, 12, 0.08);
  color: var(--primary, #C2410C);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.dark .aa-trust-icon-box {
  background: rgba(194, 65, 12, 0.2);
  color: #FB923C;
}

.aa-trust-item:hover .aa-trust-icon-box {
  transform: scale(1.08);
}

.aa-trust-text-box h4 {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #1C1917);
  line-height: 1.25;
  margin: 0;
}

.aa-trust-text-box p {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 11px;
  color: var(--muted, #6B5E55);
  margin-top: 2px;
  line-height: 1.3;
}

/* ==========================================
   4. CATEGORY TILES WITH ARCH DOORWAY
   ========================================== */
.aa-cat-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.aa-cat-scroll::-webkit-scrollbar {
  display: none;
}

@media (max-width: 640px) {
  .aa-cat-scroll {
    padding-right: 36px; /* Shows a peek of the next card */
  }
}

.aa-cat-item {
  flex: 0 0 94px;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
  group: true;
}

@media (min-width: 640px) {
  .aa-cat-item {
    flex: 0 0 110px;
  }
}

.aa-cat-arch-frame {
  width: 94px;
  height: 110px;
  border-top-left-radius: 47px;
  border-top-right-radius: 47px;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  overflow: hidden;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #F1E4D6);
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .aa-cat-arch-frame {
    width: 110px;
    height: 130px;
    border-top-left-radius: 55px;
    border-top-right-radius: 55px;
  }
}

.aa-cat-item:hover .aa-cat-arch-frame {
  transform: translateY(-4px);
  border-color: var(--primary, #C2410C);
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.15);
}

.aa-cat-arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.aa-cat-item:hover .aa-cat-arch-frame img {
  transform: scale(1.08);
}

.aa-cat-label {
  display: block;
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #1C1917);
  margin-top: 8px;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.aa-cat-item:hover .aa-cat-label {
  color: var(--primary, #C2410C);
  font-weight: 600;
}

/* ==========================================
   5. SHOP BY PURPOSE / INTENT CARDS
   ========================================== */
.aa-purpose-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #F1E4D6);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.aa-purpose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.aa-purpose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
  border-color: var(--primary, #C2410C);
}

.aa-purpose-card:hover::before {
  background: var(--primary, #C2410C);
}

.aa-purpose-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.aa-purpose-card:hover .aa-purpose-icon {
  transform: scale(1.12);
}

/* ==========================================
   6. BRAND STORY / "HOW WE ENERGIZE" SECTION
   ========================================== */
.aa-story-section {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.04) 0%, rgba(255, 248, 241, 0.8) 100%);
  border-top: 1px solid var(--border, #F1E4D6);
  border-bottom: 1px solid var(--border, #F1E4D6);
  position: relative;
}

.dark .aa-story-section {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.1) 0%, #1C1917 100%);
  border-color: #2D241E;
}

.aa-step-pill {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary, #C2410C);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================
   7. LAB CERTIFICATE SPOTLIGHT
   ========================================== */
.aa-cert-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #F1E4D6);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(28, 25, 23, 0.06);
  padding: 24px;
}

.dark .aa-cert-card {
  background: #25201C;
  border-color: #382F28;
}

.aa-cert-stamp {
  border: 2px dashed #B7791F;
  border-radius: 12px;
  padding: 12px;
  background: rgba(183, 121, 31, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================
   8. REAL REVIEWS PHOTO & QUOTE GRID
   ========================================== */
.aa-review-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #F1E4D6);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aa-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.06);
}

/* ==========================================
   9. SCROLL REVEAL UTILITY (16px, 500ms, stagger)
   ========================================== */
.aa-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.aa-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.aa-reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.aa-reveal-stagger > *:nth-child(2) { transition-delay: 60ms; }
.aa-reveal-stagger > *:nth-child(3) { transition-delay: 120ms; }
.aa-reveal-stagger > *:nth-child(4) { transition-delay: 180ms; }
.aa-reveal-stagger > *:nth-child(5) { transition-delay: 240ms; }
.aa-reveal-stagger > *:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .aa-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .aa-hero-slide.active .aa-hero-bg {
    animation: none !important;
  }
}
