/* =============================================================================
   MUHURTAS.COM — MAIN STYLESHEET
   Hindu Muhurat & Panchang Website
   Design System: Saffron / Gold / Maroon / Cream
   Fonts: Poppins (headings), Inter (body)
   Strategy: Mobile-first, CSS custom properties, dark mode, RTL, print
   ============================================================================= */

/* =============================================================================
   1. GOOGLE FONTS IMPORT
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');


/* =============================================================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================================= */

:root {
  /* --- Brand Colors --- */
  --color-saffron: #FF9933;
  --color-gold: #F4A460;
  --color-maroon: #800020;
  --color-cream: #FFF8E7;
  --color-cream-dark: #F5EDDB;

  /* --- Semantic Text Colors --- */
  --color-text: #2C1810;
  --color-text-light: #5C3D2E;

  /* --- Semantic Surface Colors --- */
  --color-bg: #FFF8E7;
  --color-card-bg: #FFFFFF;
  --color-border: #E8D5B7;
  --color-shadow: rgba(128, 0, 32, 0.1);

  /* --- Status / Muhurat Tints --- */
  --color-shubh-bg: #E8F5E9;
  --color-shubh-border: #66BB6A;
  --color-shubh-text: #1B5E20;
  --color-ashubh-bg: #FFEBEE;
  --color-ashubh-border: #EF5350;
  --color-ashubh-text: #B71C1C;
  --color-neutral-bg: #F5F5F5;
  --color-neutral-border: #9E9E9E;
  --color-neutral-text: #424242;

  /* --- Typography --- */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Courier New', 'Courier', monospace;

  /* --- Spacing Scale --- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* --- Border Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px var(--color-shadow);
  --shadow-md: 0 4px 12px var(--color-shadow);
  --shadow-lg: 0 8px 24px var(--color-shadow);
  --shadow-xl: 0 16px 48px var(--color-shadow);

  /* --- Layout --- */
  --container-max: 1280px;
  --header-height: 64px;
  --header-height-lg: 72px;
}

/* --- Dark Mode Overrides --- */
[data-theme="dark"] {
  --color-bg: #1A0A05;
  --color-card-bg: #2C1010;
  --color-text: #FFF8E7;
  --color-text-light: #E8C99A;
  --color-border: #4A2020;
  --color-shadow: rgba(255, 153, 51, 0.1);
  --color-cream: #2C1810;
  --color-cream-dark: #3D1F10;

  /* Status tints adjusted for dark */
  --color-shubh-bg: #1B3A1F;
  --color-shubh-border: #4CAF50;
  --color-shubh-text: #A5D6A7;
  --color-ashubh-bg: #3B1212;
  --color-ashubh-border: #EF5350;
  --color-ashubh-text: #EF9A9A;
  --color-neutral-bg: #2A2A2A;
  --color-neutral-border: #616161;
  --color-neutral-text: #BDBDBD;
}


/* =============================================================================
   3. BASE / RESET
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); }
h5 { font-size: clamp(1rem, 2vw, 1.125rem); }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-saffron);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-maroon);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-saffron);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--font-body);
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
}

/* Remove default button/input outlines, add accessible focus styles */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-saffron);
  outline-offset: 2px;
}

/* Prevent text selection on interactive UI chrome */
.no-select {
  -webkit-user-select: none;
  user-select: none;
}


/* =============================================================================
   4. ANIMATIONS / KEYFRAMES
   ============================================================================= */

/* Fade in with upward translate */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulsing glow for active/current muhurat card */
@keyframes pulse-glow {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 153, 51, 0.4),
      0 4px 12px var(--color-shadow);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(255, 153, 51, 0),
      0 4px 20px rgba(255, 153, 51, 0.35);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 153, 51, 0.4),
      0 4px 12px var(--color-shadow);
  }
}

/* Subtle scale tick for clock digits on second change */
@keyframes clock-tick {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Shimmer for loading skeleton placeholders */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

/* Rotate for decorative mandala / sacred geometry */
@keyframes slow-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hamburger bar morph */
@keyframes bar-top-open {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(7px) rotate(45deg); }
}
@keyframes bar-mid-open {
  from { opacity: 1; }
  to   { opacity: 0; transform: scaleX(0); }
}
@keyframes bar-bot-open {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-7px) rotate(-45deg); }
}

/* Dropdown slide-in */
@keyframes dropdownOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

/* Modal entrance */
@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


/* =============================================================================
   5. UTILITY CLASSES
   ============================================================================= */

/* Layout helpers */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.grid         { display: grid; }
.inline-flex  { display: inline-flex; align-items: center; }

/* Spacing */
.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

/* Typography helpers */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-saffron { color: var(--color-saffron); }
.text-maroon  { color: var(--color-maroon); }
.text-gold    { color: var(--color-gold); }
.text-light   { color: var(--color-text-light); }
.font-heading { font-family: var(--font-heading); }
.font-bold    { font-weight: 700; }
.font-semibold{ font-weight: 600; }

/* Container — max-width, centered, padded */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-xl); }
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--space-2xl); }
}

/* Accessibility: visually hidden but screen-reader accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-cream-dark) 25%,
    var(--color-border) 50%,
    var(--color-cream-dark) 75%
  );
  background-size: 468px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* Section spacing */
.section {
  padding-block: var(--space-2xl);
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-3xl);
  }
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-lg);
}

/* Section heading with decorative underline */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--color-maroon);
  margin-bottom: var(--space-xs);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--color-saffron), var(--color-gold));
  border-radius: var(--radius-full);
  margin-top: var(--space-sm);
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  max-width: 60ch;
  margin-bottom: var(--space-xl);
}


/* =============================================================================
   6. BUTTONS
   ============================================================================= */

/* Base button styles shared by all variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--color-saffron);
  outline-offset: 3px;
}

/* Primary — saffron fill */
.btn-primary {
  background-color: var(--color-saffron);
  color: #ffffff;
  border-color: var(--color-saffron);
}

.btn-primary:hover {
  background-color: #e8851a;
  border-color: #e8851a;
  box-shadow: 0 4px 14px rgba(255, 153, 51, 0.45);
  color: #ffffff;
  text-decoration: none;
}

.btn-primary:active {
  background-color: #cc7315;
  border-color: #cc7315;
}

/* Secondary — maroon outline */
.btn-secondary {
  background-color: transparent;
  color: var(--color-maroon);
  border-color: var(--color-maroon);
}

.btn-secondary:hover {
  background-color: var(--color-maroon);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(128, 0, 32, 0.3);
}

.btn-secondary:active {
  background-color: #660018;
  border-color: #660018;
  color: #ffffff;
}

/* Ghost — transparent with saffron text */
.btn-ghost {
  background-color: transparent;
  color: var(--color-saffron);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: rgba(255, 153, 51, 0.1);
  color: var(--color-saffron);
  text-decoration: none;
}

.btn-ghost:active {
  background-color: rgba(255, 153, 51, 0.2);
}

/* Icon — square, icon-only, minimal padding */
.btn-icon {
  padding: var(--space-sm);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: transparent;
  color: var(--color-text);
  border-color: transparent;
  flex-shrink: 0;
}

.btn-icon:hover {
  background-color: rgba(128, 0, 32, 0.08);
  color: var(--color-maroon);
}

.btn-icon svg,
.btn-icon .icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Size modifiers */
.btn--sm {
  padding: 6px var(--space-md);
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 14px var(--space-xl);
  font-size: 1.0625rem;
}

/* Disabled state */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}


/* =============================================================================
   7. HEADER / NAVIGATION
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-maroon);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: height var(--transition-base), box-shadow var(--transition-base);
}

/* Scrolled state — slightly compact */
.site-header--scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-md);
}

/* --- Logo --- */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  text-decoration: none;
}

/* Om symbol styled as logo mark */
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-saffron), var(--color-gold));
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  color: #fff;
  font-family: serif;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 153, 51, 0.4);
}

/* Sanskrit/Devanagari OM character: ॐ */
.logo-mark::before {
  content: 'ॐ';
  font-size: 1.15rem;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--color-saffron);
}

/* --- Primary Nav (desktop) --- */
.nav-primary {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .nav-primary {
    display: flex;
  }

  .site-header {
    height: var(--header-height-lg);
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

/* Animated underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background-color: var(--color-saffron);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* --- Header Controls (right side) --- */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* --- Language Selector Dropdown --- */
.lang-selector {
  position: relative;
}

.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px var(--space-sm);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.lang-selector-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Chevron icon */
.lang-selector-btn::after {
  content: '▾';
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.lang-selector[aria-expanded="true"] .lang-selector-btn::after {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-sm));
  right: 0;
  min-width: 140px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 950;
  transform-origin: top right;
}

.lang-selector[aria-expanded="true"] .lang-dropdown {
  display: block;
  animation: dropdownOpen 200ms ease forwards;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  background-color: var(--color-cream-dark);
}

.lang-option[aria-selected="true"] {
  color: var(--color-maroon);
  font-weight: 700;
  background-color: rgba(255, 153, 51, 0.08);
}

.lang-option .lang-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-saffron);
  min-width: 24px;
}

/* --- Dark Mode Toggle --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Sun icon (light mode) / Moon icon (dark mode) via data attribute */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* --- Hamburger Menu Button (mobile) --- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  padding: 9px var(--space-sm);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.hamburger:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

/* Animated X on open */
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  animation: bar-top-open var(--transition-base) forwards;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  animation: bar-mid-open var(--transition-base) forwards;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  animation: bar-bot-open var(--transition-base) forwards;
}

/* --- Mobile Nav Drawer --- */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-maroon);
  z-index: 850;
  padding: var(--space-lg);
  overflow-y: auto;
  flex-direction: column;
  gap: var(--space-xs);
  animation: fadeIn var(--transition-base) ease;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile .nav-link {
  font-size: 1.125rem;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile .nav-link::after {
  display: none; /* Remove underline on mobile nav */
}


/* =============================================================================
   8. HERO SECTION
   ============================================================================= */

.hero {
  position: relative;
  background: linear-gradient(
    160deg,
    var(--color-cream) 0%,
    var(--color-cream-dark) 50%,
    rgba(255, 153, 51, 0.12) 100%
  );
  overflow: hidden;
  padding-block: var(--space-2xl) var(--space-xl);
  min-height: 520px;
}

/* Subtle radial saffron glow in background */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(128, 0, 32, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2xl);
  }
}

/* --- Hero Left — Clock & Timezone --- */
.hero-clock-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-clock-panel {
    align-items: flex-start;
    text-align: left;
  }
}

.hero-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-saffron);
  background-color: rgba(255, 153, 51, 0.1);
  padding: 4px var(--space-md);
  border-radius: var(--radius-full);
  display: inline-block;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--color-maroon);
  line-height: 1.15;
  max-width: 14ch;
}

.hero-heading em {
  font-style: normal;
  color: var(--color-saffron);
}

/* Digital clock display */
.digital-clock {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--color-maroon);
  letter-spacing: 0.02em;
  line-height: 1;
  background-color: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .digital-clock {
  color: var(--color-saffron);
}

.clock-segment {
  display: inline-block;
  min-width: 1.1ch;
  text-align: center;
}

/* Trigger the tick animation via JS adding .ticking class */
.clock-segment.ticking {
  animation: clock-tick 300ms ease;
}

.clock-colon {
  color: var(--color-saffron);
  animation: none;
  opacity: 1;
  font-weight: 400;
}

.clock-colon.blink {
  animation: none; /* Optionally blink at 1s intervals via JS */
}

.clock-meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-align: center;
}

/* Timezone selector */
.timezone-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
}

@media (min-width: 1024px) {
  .timezone-wrap { align-items: flex-start; }
}

.timezone-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

.timezone-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--color-card-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  min-width: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23800020' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.timezone-select:hover {
  border-color: var(--color-saffron);
}

.timezone-select:focus-visible {
  border-color: var(--color-saffron);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
  outline: none;
}

/* --- Current Muhurat Highlight Card --- */
.current-muhurat-highlight {
  background: var(--color-card-bg);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  min-width: 260px;
  max-width: 340px;
  box-shadow:
    0 0 0 4px rgba(244, 164, 96, 0.15),
    var(--shadow-lg);
  animation: pulse-glow 2.8s ease-in-out infinite;
  flex-shrink: 0;
}

.current-muhurat-highlight .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-saffron);
  margin-bottom: var(--space-sm);
}

.current-muhurat-highlight .muhurat-name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-maroon);
  margin-bottom: var(--space-xs);
}

.current-muhurat-highlight .muhurat-time {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.current-muhurat-highlight .muhurat-quality {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px var(--space-sm);
  border-radius: var(--radius-full);
  background-color: var(--color-shubh-bg);
  color: var(--color-shubh-text);
  border: 1px solid var(--color-shubh-border);
}

.current-muhurat-highlight .muhurat-quality.ashubh {
  background-color: var(--color-ashubh-bg);
  color: var(--color-ashubh-text);
  border-color: var(--color-ashubh-border);
}

/* --- Muhurat Scroll Row (all day muhurats) --- */
.muhurat-row-wrap {
  width: 100%;
  overflow: hidden;
}

.muhurat-row-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.muhurat-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar visually but keep functionality */
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.muhurat-row::-webkit-scrollbar {
  height: 4px;
}

.muhurat-row::-webkit-scrollbar-track {
  background: transparent;
}

.muhurat-row::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: var(--radius-full);
}

/* Muhurat pill in scroll row */
.muhurat-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: var(--space-md);
  min-width: 160px;
  background-color: var(--color-card-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.muhurat-pill:hover {
  border-color: var(--color-saffron);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.muhurat-pill.is-current {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.06) 0%, var(--color-card-bg) 100%);
  box-shadow: 0 0 0 3px rgba(244, 164, 96, 0.2);
}

.muhurat-pill .pill-name {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-maroon);
  white-space: nowrap;
}

.muhurat-pill .pill-time {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.muhurat-pill .pill-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.muhurat-pill .pill-badge.shubh {
  background-color: var(--color-shubh-bg);
  color: var(--color-shubh-text);
}

.muhurat-pill .pill-badge.ashubh {
  background-color: var(--color-ashubh-bg);
  color: var(--color-ashubh-text);
}

.muhurat-pill .pill-badge.neutral {
  background-color: var(--color-neutral-bg);
  color: var(--color-neutral-text);
}


/* =============================================================================
   9. MUHURAT CARDS
   ============================================================================= */

/* Base muhurat card */
.muhurat-card {
  background-color: var(--color-card-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.muhurat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Left accent stripe */
.muhurat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background-color: var(--color-border);
}

/* --- Variant: Shubh (auspicious) --- */
.muhurat-card--shubh {
  background-color: var(--color-shubh-bg);
  border-color: var(--color-shubh-border);
}

.muhurat-card--shubh::before {
  background-color: var(--color-shubh-border);
}

.muhurat-card--shubh .muhurat-card__title {
  color: var(--color-shubh-text);
}

/* --- Variant: Ashubh (inauspicious) --- */
.muhurat-card--ashubh {
  background-color: var(--color-ashubh-bg);
  border-color: var(--color-ashubh-border);
}

.muhurat-card--ashubh::before {
  background-color: var(--color-ashubh-border);
}

.muhurat-card--ashubh .muhurat-card__title {
  color: var(--color-ashubh-text);
}

/* --- Variant: Neutral --- */
.muhurat-card--neutral {
  background-color: var(--color-neutral-bg);
  border-color: var(--color-neutral-border);
}

.muhurat-card--neutral::before {
  background-color: var(--color-neutral-border);
}

.muhurat-card--neutral .muhurat-card__title {
  color: var(--color-neutral-text);
}

/* --- Current muhurat — pulsing glow --- */
.muhurat-card--current {
  border-color: var(--color-gold);
  border-width: 2px;
  animation: pulse-glow 2.8s ease-in-out infinite;
}

.muhurat-card--current::after {
  content: 'NOW';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  background-color: var(--color-saffron);
  color: #ffffff;
  border-radius: var(--radius-full);
}

/* Card internals */
.muhurat-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.muhurat-card--shubh .muhurat-card__badge {
  background-color: rgba(102, 187, 106, 0.18);
  color: var(--color-shubh-text);
  border: 1px solid var(--color-shubh-border);
}

.muhurat-card--ashubh .muhurat-card__badge {
  background-color: rgba(239, 83, 80, 0.15);
  color: var(--color-ashubh-text);
  border: 1px solid var(--color-ashubh-border);
}

.muhurat-card--neutral .muhurat-card__badge {
  background-color: rgba(158, 158, 158, 0.15);
  color: var(--color-neutral-text);
  border: 1px solid var(--color-neutral-border);
}

.muhurat-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-maroon);
  margin: 0;
}

.muhurat-card__time {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

.muhurat-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0;
}

/* Card grid layout */
.muhurat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .muhurat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .muhurat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .muhurat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* =============================================================================
   10. PANCHANG SECTION
   ============================================================================= */

.panchang-section {
  background-color: var(--color-cream-dark);
  padding-block: var(--space-2xl);
}

[data-theme="dark"] .panchang-section {
  background-color: var(--color-cream);
}

/* Panchang info grid: 5 tattvas in a row on desktop */
.panchang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .panchang-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .panchang-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Panchang info card */
.panchang-card {
  background-color: var(--color-card-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.panchang-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.panchang-card__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  display: block;
}

.panchang-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-saffron);
}

.panchang-card__value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-maroon);
  line-height: 1.3;
}

.panchang-card__sub {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* Vara (weekday) card — spans full first row on mobile */
.panchang-card--vara {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.07) 0%, var(--color-card-bg) 100%);
  border-color: rgba(255, 153, 51, 0.35);
}

@media (min-width: 1024px) {
  .panchang-card--vara {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Sunrise/Sunset display */
.sun-times-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.sun-time-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background-color: var(--color-card-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  flex: 1;
  min-width: 180px;
  transition: box-shadow var(--transition-fast);
}

.sun-time-card:hover {
  box-shadow: var(--shadow-md);
}

/* Icon area for sun/moon */
.sun-time-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sun-time-card--sunrise .sun-time-card__icon {
  background: linear-gradient(135deg, rgba(255, 200, 50, 0.2), rgba(255, 153, 51, 0.15));
  color: #f59e0b;
}

.sun-time-card--sunset .sun-time-card__icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(128, 0, 32, 0.1));
  color: var(--color-maroon);
}

.sun-time-card--moonrise .sun-time-card__icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(148, 163, 184, 0.1));
  color: #6366f1;
}

.sun-time-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.sun-time-card__time {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

/* Inauspicious times sub-row */
.inauspicious-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .inauspicious-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .inauspicious-row { grid-template-columns: repeat(3, 1fr); }
}

.inauspicious-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background-color: var(--color-ashubh-bg);
  border: 1.5px solid var(--color-ashubh-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.inauspicious-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-ashubh-border);
  flex-shrink: 0;
}

.inauspicious-card__name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-ashubh-text);
}

.inauspicious-card__time {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-ashubh-text);
  opacity: 0.8;
}


/* =============================================================================
   11. SACRED GEOMETRY DECORATIVE ELEMENTS
   ============================================================================= */

/* CSS-only lotus/mandala pattern as background decoration.
   Uses overlapping petal shapes created via border-radius and rotate transforms
   on ::before and ::after pseudo-elements. Purely decorative, aria-hidden. */

.sacred-geometry {
  position: relative;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Mandala wrapper — absolutely positioned within section */
.sacred-geometry-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Central lotus ring */
.sacred-geometry-bg::before,
.sacred-geometry-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -200px;
  width: 500px;
  height: 500px;
  transform: translate(0, -50%);
  border-radius: 50%;
  opacity: 0.04;
  background: transparent;
}

/* Outer ring - concentric circle */
.sacred-geometry-bg::before {
  border: 40px solid var(--color-maroon);
  right: -180px;
}

/* Inner ring */
.sacred-geometry-bg::after {
  width: 320px;
  height: 320px;
  right: -110px;
  border: 30px solid var(--color-saffron);
  opacity: 0.06;
}

/* Lotus petals using a dedicated container */
.lotus-mandala {
  position: absolute;
  top: 50%;
  right: -100px;
  width: 400px;
  height: 400px;
  transform: translate(0, -50%);
  opacity: 0.05;
  pointer-events: none;
}

/* Each petal: a rotated ellipse using border-radius trick */
.lotus-mandala::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--color-maroon);
  transform: rotate(0deg);
  box-shadow:
    0 0 0 0 transparent,
    /* 8 petals at 45deg intervals */
    0 -120px 0 -60px var(--color-maroon),
    85px -85px 0 -60px var(--color-saffron),
    120px 0 0 -60px var(--color-maroon),
    85px 85px 0 -60px var(--color-saffron),
    0 120px 0 -60px var(--color-maroon),
    -85px 85px 0 -60px var(--color-saffron),
    -120px 0 0 -60px var(--color-maroon),
    -85px -85px 0 -60px var(--color-saffron);
}

/* Secondary layer — smaller petals rotated 22.5deg */
.lotus-mandala::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: var(--color-saffron);
  box-shadow:
    0 -80px 0 -50px var(--color-saffron),
    56px -56px 0 -50px var(--color-gold),
    80px 0 0 -50px var(--color-saffron),
    56px 56px 0 -50px var(--color-gold),
    0 80px 0 -50px var(--color-saffron),
    -56px 56px 0 -50px var(--color-gold),
    -80px 0 0 -50px var(--color-saffron),
    -56px -56px 0 -50px var(--color-gold);
}


/* =============================================================================
   12. MODALS
   ============================================================================= */

/* Overlay backdrop */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(44, 24, 16, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Modal container / card */
.modal-container {
  background-color: var(--color-card-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - var(--space-2xl));
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base);
}

.modal-overlay.is-open .modal-container {
  animation: modalEnter var(--transition-base) forwards;
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Modal header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-maroon);
}

/* Close button */
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--color-ashubh-bg);
  color: var(--color-ashubh-text);
  border-color: var(--color-ashubh-border);
}

.modal-close::before {
  content: '×';
}

/* Modal body */
.modal-body {
  padding: var(--space-xl);
}

/* Modal footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* Scroll lock when modal open */
body.modal-open {
  overflow: hidden;
}


/* =============================================================================
   13. FOOTER
   ============================================================================= */

.site-footer {
  background-color: var(--color-maroon);
  color: rgba(255, 248, 231, 0.85);
  padding-block: var(--space-2xl) var(--space-lg);
}

/* Multi-column grid: 1 col mobile → 2 tablet → 4 desktop */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-2xl);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* Footer logo col */
.footer-brand .site-logo {
  margin-bottom: var(--space-md);
}

.footer-brand .logo-text {
  font-size: 1.375rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 248, 231, 0.65);
  max-width: 28ch;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* Social icons row */
.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: rgba(255, 248, 231, 0.8);
  font-size: 1rem;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.footer-social a:hover {
  background-color: var(--color-saffron);
  color: #ffffff;
  border-color: var(--color-saffron);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Footer nav columns */
.footer-nav h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-saffron);
  margin-bottom: var(--space-md);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 248, 231, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: block;
}

.footer-nav a:hover {
  color: #ffffff;
  padding-left: var(--space-xs);
  text-decoration: none;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255, 248, 231, 0.5);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255, 248, 231, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: rgba(255, 248, 231, 0.9);
}


/* =============================================================================
   14. ADDITIONAL COMPONENT STYLES
   ============================================================================= */

/* --- Date header bar (between hero and sections) --- */
.date-bar {
  background-color: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-sm);
}

.date-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.date-bar .gregorian-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.date-bar .hindu-date {
  font-size: 0.875rem;
  color: var(--color-saffron);
  font-weight: 600;
}

.date-bar .samvat {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* --- Tabs component (for switching calendar views) --- */
.tabs {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.tab-btn:hover {
  color: var(--color-maroon);
}

.tab-btn[aria-selected="true"] {
  color: var(--color-maroon);
  font-weight: 700;
  border-bottom-color: var(--color-saffron);
}

/* Tab panels */
.tab-panel {
  display: none;
  animation: fadeIn var(--transition-base) ease;
}

.tab-panel.is-active {
  display: block;
}

/* --- Badge / Tag component --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge--saffron {
  background-color: rgba(255, 153, 51, 0.12);
  color: #b45309;
  border: 1px solid rgba(255, 153, 51, 0.35);
}

.badge--maroon {
  background-color: rgba(128, 0, 32, 0.1);
  color: var(--color-maroon);
  border: 1px solid rgba(128, 0, 32, 0.2);
}

.badge--green {
  background-color: var(--color-shubh-bg);
  color: var(--color-shubh-text);
  border: 1px solid var(--color-shubh-border);
}

.badge--red {
  background-color: var(--color-ashubh-bg);
  color: var(--color-ashubh-text);
  border: 1px solid var(--color-ashubh-border);
}

/* --- Info tooltip --- */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
}

.tooltip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-text);
  color: var(--color-cream);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 100;
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-text);
}

.tooltip-wrap:hover .tooltip-content,
.tooltip-wrap:focus-within .tooltip-content {
  opacity: 1;
}

/* --- Notice / Alert banners --- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1.5px solid;
  margin-bottom: var(--space-md);
}

.notice--info {
  background-color: rgba(99, 102, 241, 0.07);
  border-color: rgba(99, 102, 241, 0.3);
  color: #3730a3;
}

.notice--shubh {
  background-color: var(--color-shubh-bg);
  border-color: var(--color-shubh-border);
  color: var(--color-shubh-text);
}

.notice--ashubh {
  background-color: var(--color-ashubh-bg);
  border-color: var(--color-ashubh-border);
  color: var(--color-ashubh-text);
}

[data-theme="dark"] .notice--info { color: #a5b4fc; }

/* --- Monthly calendar grid --- */
.cal-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: var(--space-sm);
}

.cal-day-name {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-saffron);
  padding: var(--space-sm);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 4px 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background-color: transparent;
  border: 1.5px solid transparent;
  position: relative;
}

.cal-cell:hover {
  background-color: rgba(255, 153, 51, 0.07);
}

.cal-cell.today {
  background-color: rgba(255, 153, 51, 0.12);
  border-color: var(--color-saffron);
  font-weight: 700;
  color: var(--color-maroon);
}

.cal-cell.selected {
  background-color: var(--color-maroon);
  color: #ffffff;
}

.cal-cell.other-month {
  color: var(--color-text-light);
  opacity: 0.45;
}

/* Tithi dot indicator */
.cal-cell .tithi-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-saffron);
  margin-top: 3px;
  flex-shrink: 0;
}


/* =============================================================================
   15. RTL SUPPORT
   ============================================================================= */

[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .nav-primary {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .logo-text {
  direction: rtl;
}

[dir="rtl"] .nav-link::after {
  left: var(--space-md);
  right: var(--space-md);
  transform-origin: right center;
}

[dir="rtl"] .nav-link:hover::after,
[dir="rtl"] .nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .footer-nav a:hover {
  padding-left: 0;
  padding-right: var(--space-xs);
}

[dir="rtl"] .panchang-card--vara {
  flex-direction: row-reverse;
}

[dir="rtl"] .muhurat-card::before {
  left: auto;
  right: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[dir="rtl"] .muhurat-card--current::after {
  right: auto;
  left: var(--space-md);
}

[dir="rtl"] .section-title::after {
  margin-left: auto;
}

[dir="rtl"] .modal-footer {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

[dir="rtl"] .sun-times-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .timezone-select {
  background-position: left var(--space-md) center;
  padding-left: var(--space-xl);
  padding-right: var(--space-md);
}

[dir="rtl"] .tabs {
  flex-direction: row-reverse;
}


/* =============================================================================
   16. RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* --- sm: >= 640px --- */
@media (min-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .hero {
    padding-block: var(--space-3xl) var(--space-2xl);
    min-height: 600px;
  }

  .digital-clock {
    padding: var(--space-lg) var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- md: >= 768px --- */
@media (min-width: 768px) {
  .date-bar-inner {
    flex-wrap: nowrap;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .modal-container {
    max-width: 560px;
  }

  .sun-times-row {
    flex-wrap: nowrap;
  }
}

/* --- lg: >= 1024px --- */
@media (min-width: 1024px) {
  :root {
    --header-height: var(--header-height-lg);
  }

  .hero {
    min-height: 680px;
    padding-block: var(--space-3xl);
  }

  .hero-inner {
    align-items: center;
  }

  .panchang-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .muhurat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-mobile {
    display: none !important;
  }
}

/* --- xl: >= 1280px --- */
@media (min-width: 1280px) {
  .muhurat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    min-height: 720px;
  }

  .hero-clock-panel {
    align-items: flex-start;
  }
}


/* =============================================================================
   17. PRINT STYLES
   ============================================================================= */

@media print {
  /* Hide navigational and decorative chrome */
  .site-header,
  .nav-primary,
  .nav-mobile,
  .hamburger,
  .header-controls,
  .theme-toggle,
  .lang-selector,
  .site-footer,
  .modal-overlay,
  .sacred-geometry-bg,
  .lotus-mandala,
  .muhurat-row-wrap,
  .tabs,
  .btn,
  .tooltip-wrap {
    display: none !important;
  }

  /* Reset backgrounds and colors for paper */
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    font-family: Georgia, serif;
  }

  h1, h2, h3, h4 {
    font-family: Georgia, serif;
    page-break-after: avoid;
  }

  /* Ensure main content is visible */
  main,
  .container,
  .panchang-section,
  .muhurat-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Print-friendly panchang cards */
  .panchang-card,
  .muhurat-card,
  .sun-time-card {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
    margin-bottom: 12pt;
  }

  /* Section headings */
  .section-title::after {
    display: none;
  }

  /* Show full URLs for links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555 !important;
  }

  /* Don't show URL for local anchors or JS links */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  /* Panchang grid — 5 cols for print */
  .panchang-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }

  /* Muhurat grid — 3 cols for print */
  .muhurat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Page break before major sections */
  .panchang-section {
    page-break-before: always;
  }
}


/* =============================================================================
   END OF MUHURTAS.COM STYLESHEET
   ============================================================================= */
