/* Hallmark · built: the project · redesign: restyle · genre: editorial · tokens: yes · copy: verbatim */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · unified control heights, section rhythm, sticky table, and 3-weight type */

/**
 * Hotel Shubh Ayodhya - Master Animations & Motion Design System
 * Polished to Hallmark Anti-Slop & Modern Web Standards.
 * Adheres to: prefers-reduced-motion, compositor-only GPU transforms, zero color leaks, instant focus.
 */

/* ==========================================================================
   0. DESIGN SYSTEM TOKENS (:root)
   ========================================================================== */

:root {
  /* Control & Sizing Tokens (Gate 39b) */
  --control-height: 48px;
  --control-height-sm: 42px;
  --section-gap-s: 4rem;
  --section-gap: 6rem;
  --section-gap-l: 7.5rem;

  /* Surface Ground Tokens (Deep Night Mandir) */
  --color-surface: #160d06;
  --color-surface-dim: #120a04;
  --color-surface-card: #221309;
  --color-surface-high: #2b170c;
  --color-surface-border: #422413;
  --color-surface-lowest: #0e0703;

  /* Sacred Brand & Accent Tokens (Auspicious Gold & Saffron) */
  --color-primary: #f5a623;
  --color-primary-container: #c97816;
  --color-primary-bright: #ecc246;
  --color-primary-fixed: #ffd572;
  --color-secondary: #f97316;
  --color-tertiary: #fb923c;

  /* Typography & Ink Tokens */
  --color-on-surface: #fffbeb;
  --color-on-surface-variant: #ebd5b3;
  --color-on-primary: #2b1400;

  /* Focus & Accessibility Tokens */
  --color-focus: #ffd572;
  --color-focus-ring: #f5a623;
  --color-focus-halo: rgba(245, 166, 35, 0.35);

  /* Semantic Alpha Elevation & Glow Tokens */
  --color-gold-glow-1: rgba(245, 166, 35, 0.3);
  --color-gold-glow-2: rgba(245, 166, 35, 0.6);
  --color-gold-glow-subtle: rgba(245, 166, 35, 0.25);
  --color-gold-glow-halo: rgba(245, 166, 35, 0.4);
  --color-gold-shimmer-base: rgba(236, 194, 70, 0.4);
  --color-gold-shimmer-btn-hover: rgba(236, 194, 70, 0.45);
  --color-gold-shimmer-card-hover: rgba(236, 194, 70, 0.22);
  --color-gold-shimmer-pulse: rgba(236, 194, 70, 0.7);
  --color-gold-shimmer-active: rgba(236, 194, 70, 0.85);
  --color-saffron-pulse-1: rgba(249, 115, 22, 0.4);
  --color-saffron-pulse-2: rgba(249, 115, 22, 0.8);
  --color-white-shimmer: rgba(255, 255, 255, 0.35);
  --color-white-dot: rgba(255, 255, 255, 0.4);
  --color-white-dot-hover: rgba(255, 255, 255, 0.85);
  --color-dark-shadow-deep: rgba(0, 0, 0, 0.75);
  --color-border-card-hover: rgba(236, 194, 70, 0.55);
  --color-border-field: rgba(245, 166, 35, 0.52);

  /* Typography Families */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   HALLMARK FLOOR: ACCESSIBILITY & INSTANT FOCUS-VISIBLE (Gate 26a)
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-focus) !important;
  outline-offset: 2px !important;
  transition: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-focus) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px var(--color-focus-halo) !important;
  transition: none !important;
}

/* ==========================================================================
   HALLMARK FLOOR: HORIZONTAL OVERFLOW PREVENTION (Gate 34)
   ========================================================================== */

html,
body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   HALLMARK FLOOR: INPUT & SELECT HIGH CONTRAST BORDERS (Gate 40)
   ========================================================================== */

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border: 1px solid var(--color-border-field) !important;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-focus) !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 3px var(--color-focus-halo) !important;
}

/* ==========================================================================
   HALLMARK RESTYLE: ERGONOMIC CONTROL HEIGHT (Gate 39b: 44px - 52px bracket)
   ========================================================================== */

.btn-gold-shimmer,
.btn-primary,
button[type="submit"],
a[class*="btn-gold-shimmer"],
button.tab-pill,
button.menu-tab-btn {
  height: 48px;
  min-height: 44px;
  max-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
  height: 48px;
  min-height: 44px;
  max-height: 50px;
  box-sizing: border-box;
}

/* ==========================================================================
   HALLMARK FLOOR: BUTTON WRAPPING PREVENTION ON MOBILE (Gate 49a)
   ========================================================================== */

.btn-gold-shimmer,
.btn-primary,
button[type="submit"],
a[class*="btn-gold-shimmer"] {
  white-space: nowrap;
}

/* ==========================================================================
   HALLMARK RESTYLE: TYPOGRAPHY HIERARCHY & FINISH (Gate 75 & Gate F19)
   ========================================================================== */

.text-\[7\.5px\],
.text-\[8px\],
.text-\[9px\],
.text-\[10px\],
.font-label-sm,
.text-label-sm {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

/* Map font-medium (500) to semi-bold (600) to maintain strict 3-weight hierarchy */
.font-medium {
  font-weight: 600 !important;
}

/* ==========================================================================
   HALLMARK RESTYLE: PINNED TABLE COLUMN FOR MOBILE SWIPING (Gate F25)
   ========================================================================== */

.overflow-x-auto table th:first-child,
.overflow-x-auto table td:first-child {
  position: sticky;
  left: 0;
  background-color: var(--color-surface-card) !important;
  z-index: 2;
  box-shadow: 2px 0 8px var(--color-dark-shadow-deep);
}

/* ==========================================================================
   1. KEYFRAME DEFINITIONS
   ========================================================================== */

/* Fade In Up Entrance */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Down (for Header & Banners) */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In From Left */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-36px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade In From Right */
@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(36px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale & Pop In (for Badges & Medallions) */
@keyframes scaleInPop {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  70% {
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gentle Sacred Float / Levitation (for Logo Badges & Medallions) */
@keyframes sacredFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(0.4deg);
  }
}

/* Golden Halo Pulse (Breathing Sacred Radiance) */
@keyframes goldGlowPulse {
  0%, 100% {
    box-shadow: 0 0 16px var(--color-gold-glow-1), 0 0 0 1px var(--color-saffron-pulse-1);
  }
  50% {
    box-shadow: 0 0 32px var(--color-gold-glow-2), 0 0 0 2px var(--color-saffron-pulse-2);
  }
}

/* Golden Shimmer Light Beam (Sweeps across CTA buttons) */
@keyframes shimmerSweep {
  0% {
    transform: translateX(-160%) skewX(-20deg);
  }
  40%, 100% {
    transform: translateX(260%) skewX(-20deg);
  }
}

/* Holy Beacon Pulse (for Aarti / Darshan Live Badges) */
@keyframes holyPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 var(--color-gold-shimmer-pulse);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 transparent;
  }
}

/* Ambient Sacred Rotation (Slow rotational accent for mandir motifs) */
@keyframes sacredRotateSlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Modal Popup Scale In */
@keyframes modalZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Scroll Progress Bar Gradient Animation */
@keyframes shimmerBar {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ==========================================================================
   2. INITIAL HERO & HEADER ENTRANCE ANIMATIONS (Run on Page Load)
   ========================================================================== */

.hero-animate-badge {
  animation: scaleInPop 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.hero-animate-title {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.25s;
}

.hero-animate-subtitle {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.4s;
}

.hero-animate-highlights {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.48s;
}

.hero-animate-actions {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.55s;
}

.hero-animate-media {
  animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.35s;
}

.hero-animate-trust {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.7s;
}

/* Floating Seal Component */
.floating-seal {
  animation: sacredFloat 6s ease-in-out infinite;
  will-change: transform;
}

/* Gold Glow Pulse Component */
.gold-glow-pulse {
  animation: goldGlowPulse 3.5s ease-in-out infinite;
}

/* Holy Beacon Indicator */
.holy-beacon {
  animation: holyPulse 2s infinite;
}


/* ==========================================================================
   3. GOLDEN SHIMMER LUXURY CTA BUTTONS
   ========================================================================== */

.btn-gold-shimmer {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    var(--color-white-shimmer) 50%,
    var(--color-gold-shimmer-base) 60%,
    transparent 80%
  );
  transform: translateX(-160%) skewX(-20deg);
  animation: shimmerSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-gold-shimmer:hover {
  transform: scale(1.03);
  filter: brightness(1.12);
  box-shadow: 0 12px 28px -6px var(--color-gold-shimmer-btn-hover);
}

.btn-gold-shimmer:active {
  transform: scale(0.98);
}


/* ==========================================================================
   4. SCROLL-TRIGGERED REVEAL SYSTEM (Gate 62: Scripted Scoping)
   Visible by default; animates progressively only when JavaScript is loaded.
   ========================================================================== */

.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.js .reveal-on-scroll {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Initial offsets when JS is active */
.reveal-up { transform: none; }
.js .reveal-up { transform: translateY(38px); }

.reveal-down { transform: none; }
.js .reveal-down { transform: translateY(-30px); }

.reveal-left { transform: none; }
.js .reveal-left { transform: translateX(-40px); }

.reveal-right { transform: none; }
.js .reveal-right { transform: translateX(40px); }

.reveal-scale { transform: none; }
.js .reveal-scale { transform: scale(0.91); }

.reveal-fade { transform: none; }
.js .reveal-fade { transform: none; }

/* Active State (added by IntersectionObserver when scrolled into view) */
.js .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Staggered Children Transitions */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }


/* ==========================================================================
   5. NATIVE SCROLL-DRIVEN ANIMATION PROGRESSIVE ENHANCEMENT
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .native-scroll-reveal {
      animation: fadeInUp auto cubic-bezier(0.16, 1, 0.3, 1) backwards;
      animation-timeline: view();
      animation-range: entry 10% contain 40%;
    }
  }
}


/* ==========================================================================
   6. LUXURY CARD HOVER MICRO-INTERACTIONS
   ========================================================================== */

.hover-luxury-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.hover-luxury-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-card-hover);
  box-shadow: 0 20px 40px -12px var(--color-dark-shadow-deep),
              0 8px 24px -4px var(--color-gold-shimmer-card-hover);
}

/* Image Zoom inside hover card */
.hover-luxury-card .card-img-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.hover-luxury-card:hover .card-img-zoom {
  transform: scale(1.06);
  filter: contrast(105%) brightness(102%);
}


/* ==========================================================================
   7. SCROLL PROGRESS BAR AT TOP OF WINDOW (Gate 10a: GPU ScaleX)
   ========================================================================== */

#siteScrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary-fixed), var(--color-primary));
  background-size: 200% 100%;
  animation: shimmerBar 3s ease infinite;
  box-shadow: 0 0 10px var(--color-gold-glow-2);
  transition: transform 0.1s linear;
  pointer-events: none;
  will-change: transform;
}

#siteScrollProgress:hover,
#siteScrollProgress:focus {
  animation-play-state: paused;
}


/* ==========================================================================
   8. BACK TO TOP BUTTON WITH PULSE (Gate 62: Scripted Visibility)
   ========================================================================== */

#backToTopBtn {
  display: none;
}

.js #backToTopBtn {
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.js #backToTopBtn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#backToTopBtn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 28px var(--color-gold-shimmer-btn-hover);
}


/* ==========================================================================
   10. HERO IMAGE CAROUSEL / SLIDER (Gate 62: First slide active)
   ========================================================================== */

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.js .hero-slide:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}

.js .hero-slide {
  transform: scale(1.04);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
  pointer-events: none;
  will-change: opacity, transform;
}

.js .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 5;
}

.hero-dot {
  width: 0.5rem;
  background-color: var(--color-white-dot);
  cursor: pointer;
}

.hero-dot:hover {
  background-color: var(--color-white-dot-hover);
}

.hero-dot.is-active {
  width: 1.75rem;
  background-color: var(--color-primary-bright);
  box-shadow: 0 0 12px var(--color-gold-shimmer-active);
}

@media (max-width: 640px) {
  .hero-dot {
    width: 0.375rem;
  }
  .hero-dot.is-active {
    width: 1.25rem;
  }
}

/* ==========================================================================
   11. RESPONSIVE TYPOGRAPHY & MOBILE TEXT ADJUSTMENTS (Modern Web Guidance)
   ========================================================================== */

/* Balanced headlines preventing single-word dangling orphans */
h1, h2, h3, .text-balance {
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* Pretty paragraph wrapping preventing orphan words */
p, .text-pretty {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* Fluid responsive headings */
.fluid-hero-heading {
  font-size: clamp(1.75rem, 1.25rem + 2.8vw, 3.5rem);
  line-height: 1.18;
}

.fluid-section-heading {
  font-size: clamp(1.35rem, 1.05rem + 1.6vw, 2.35rem);
  line-height: 1.25;
}

/* Mobile text break containment */
.mobile-text-safe {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ==========================================================================
   12. DYNAMIC RESPONSIVE SCREEN ADAPTATION (.site-container)
   Fluidly adapts all sections across mobile, tablet, laptop, desktop, & ultrawide
   ========================================================================== */

.site-container,
.site-section-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .site-container,
  .site-section-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 640px) {
  .site-container,
  .site-section-container {
    max-width: 600px;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

@media (min-width: 768px) {
  .site-container,
  .site-section-container {
    max-width: 720px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .site-container,
  .site-section-container {
    max-width: 1020px;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }
}

@media (min-width: 1280px) {
  .site-container,
  .site-section-container {
    max-width: 1200px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1440px) {
  .site-container,
  .site-section-container {
    max-width: 1320px;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1600px) {
  .site-container,
  .site-section-container {
    max-width: 1400px;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

@media (min-width: 1920px) {
  .site-container,
  .site-section-container {
    max-width: 1480px;
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* Ensure wide-screen sections utilize proportional height and breathing room */
@media (min-width: 1024px) {
  .about-img-frame {
    min-height: 480px;
    height: 100%;
  }
  .about-img-frame img {
    height: 100%;
    min-height: 480px;
  }
}

/* Responsive typography & layout enhancements for small screens */
@media (max-width: 640px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .hero-animate-badge {
    max-width: 100%;
    white-space: normal !important;
  }

  .card-title-row {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

/* ==========================================================================
   9. ACCESSIBILITY: PREFERS-REDUCED-MOTION (Gate 27)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-animate-badge,
  .hero-animate-title,
  .hero-animate-subtitle,
  .hero-animate-actions,
  .hero-animate-media,
  .hero-animate-trust {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .floating-seal,
  .gold-glow-pulse,
  .holy-beacon,
  .btn-gold-shimmer::after,
  #siteScrollProgress {
    animation: none !important;
  }

  .hover-luxury-card:hover {
    transform: none !important;
  }

  .hover-luxury-card:hover .card-img-zoom {
    transform: none !important;
  }
}

/* ==========================================================================
   10. SANATAN DHARMA FORM CONTROLS & DATE PICKER (High-Contrast Sacred Theme)
   ========================================================================== */

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(72%) sepia(85%) saturate(1200%) hue-rotate(350deg) brightness(105%) contrast(95%);
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.08);
  filter: invert(82%) sepia(90%) saturate(1500%) hue-rotate(350deg) brightness(115%);
}

