/* ==========================================================================
   AARADHYA — Base Styles, Typography, Texture & Odisha Motifs
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-warm-ivory);
  color: var(--color-charcoal-brown);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-charcoal-brown);
  background-color: var(--color-warm-ivory);
  overflow-x: clip;
  position: relative;
}

/* Subtle archival paper-grain texture over ivory canvas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Tactile Handmade Paper & Cotton-Rag Texture for Selected Editorial Backgrounds */
.paper-texture {
  position: relative;
  isolation: isolate;
}

.paper-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.085;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 280 280' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0.35 0 0 0 0.18  0 0.30 0 0 0.15  0 0 0.22 0 0.10  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(
      0deg,
      rgba(201, 185, 154, 0.06) 0px,
      rgba(201, 185, 154, 0.06) 1px,
      transparent 1px,
      transparent 4px
    );
}

.paper-texture--subtle::before {
  opacity: 0.055;
}

.paper-texture--dark::before {
  opacity: 0.06;
  mix-blend-mode: overlay;
}

body.no-scroll {
  overflow: hidden;
}

/* Typography Hierarchy (Cormorant Garamond Display + Plus Jakarta Sans Body) */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-forest-green);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1, 'liga' 1;
  text-wrap: balance;
}

h1 em, h2 em, h3 em {
  font-weight: 500;
}

p {
  color: var(--color-charcoal-muted);
  letter-spacing: var(--tracking-normal);
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-editorial);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary-yellow);
  outline-offset: 3px;
}

/* Skip to Content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  background-color: var(--color-forest-green);
  color: var(--color-warm-ivory);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-section);
  position: relative;
}

.section--ivory-alt {
  background-color: var(--color-ivory-deep);
}

.section--green {
  background-color: var(--color-forest-green);
  color: var(--color-ivory-on-dark);
}

/* Simple Traditional Odia Jhoti Chita Lotus Mandala Accents (Balanced Editorial Placement) */
.odia-jhoti-bg {
  position: relative;
  overflow: hidden;
}

.odia-jhoti-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: right -115px center;
  background-size: 440px 440px;
  background-image: url("data:image/svg+xml,%3Csvg width='320' height='320' viewBox='0 0 320 320' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23963F32' stroke-opacity='0.16' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='160' cy='160' r='134' stroke-dasharray='1 10' stroke-width='3.2'/%3E%3Ccircle cx='160' cy='160' r='114'/%3E%3Ccircle cx='160' cy='160' r='30'/%3E%3Ccircle cx='160' cy='160' r='10'/%3E%3Cpath d='M160 46C174 80 174 118 160 130C146 118 146 80 160 46Z'/%3E%3Cpath d='M160 274C174 240 174 202 160 190C146 202 146 240 160 274Z'/%3E%3Cpath d='M46 160C80 146 118 146 130 160C118 174 80 174 46 160Z'/%3E%3Cpath d='M274 160C240 146 202 146 190 160C202 174 240 174 274 160Z'/%3E%3Cpath d='M79 79C113 94 139 120 139 139C120 139 94 113 79 79Z'/%3E%3Cpath d='M241 241C207 226 181 200 181 181C200 181 226 207 241 241Z'/%3E%3Cpath d='M241 79C226 113 200 139 181 139C181 120 207 94 241 79Z'/%3E%3Cpath d='M79 241C94 207 120 181 139 181C139 200 113 226 79 241Z'/%3E%3C/g%3E%3C/svg%3E");
}

.odia-jhoti-bg--left::after {
  background-position: left -115px center;
}

.odia-jhoti-bg--top-right::after {
  background-position: right -90px top -85px;
  background-size: 380px 380px;
}

/* Paired opposite-corner Odia Jhoti mandalas (preserves .paper-texture::before) */
.odia-jhoti-bg--pair::after {
  background-image:
    url("data:image/svg+xml,%3Csvg width='320' height='320' viewBox='0 0 320 320' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23963F32' stroke-opacity='0.16' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='160' cy='160' r='134' stroke-dasharray='1 10' stroke-width='3.2'/%3E%3Ccircle cx='160' cy='160' r='114'/%3E%3Ccircle cx='160' cy='160' r='30'/%3E%3Ccircle cx='160' cy='160' r='10'/%3E%3Cpath d='M160 46C174 80 174 118 160 130C146 118 146 80 160 46Z'/%3E%3Cpath d='M160 274C174 240 174 202 160 190C146 202 146 240 160 274Z'/%3E%3Cpath d='M46 160C80 146 118 146 130 160C118 174 80 174 46 160Z'/%3E%3Cpath d='M274 160C240 146 202 146 190 160C202 174 240 174 274 160Z'/%3E%3Cpath d='M79 79C113 94 139 120 139 139C120 139 94 113 79 79Z'/%3E%3Cpath d='M241 241C207 226 181 200 181 181C200 181 226 207 241 241Z'/%3E%3Cpath d='M241 79C226 113 200 139 181 139C181 120 207 94 241 79Z'/%3E%3Cpath d='M79 241C94 207 120 181 139 181C139 200 113 226 79 241Z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='320' height='320' viewBox='0 0 320 320' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23D99B24' stroke-opacity='0.22' stroke-width='1.35' stroke-linecap='round'%3E%3Ccircle cx='160' cy='160' r='134' stroke-dasharray='1 10' stroke-width='3.2'/%3E%3Ccircle cx='160' cy='160' r='114'/%3E%3Ccircle cx='160' cy='160' r='30'/%3E%3Ccircle cx='160' cy='160' r='10'/%3E%3Cpath d='M160 46C174 80 174 118 160 130C146 118 146 80 160 46Z'/%3E%3Cpath d='M160 274C174 240 174 202 160 190C146 202 146 240 160 274Z'/%3E%3Cpath d='M46 160C80 146 118 146 130 160C118 174 80 174 46 160Z'/%3E%3Cpath d='M274 160C240 146 202 146 190 160C202 174 240 174 274 160Z'/%3E%3Cpath d='M79 79C113 94 139 120 139 139C120 139 94 113 79 79Z'/%3E%3Cpath d='M241 241C207 226 181 200 181 181C200 181 226 207 241 241Z'/%3E%3Cpath d='M241 79C226 113 200 139 181 139C181 120 207 94 241 79Z'/%3E%3Cpath d='M79 241C94 207 120 181 139 181C139 200 113 226 79 241Z'/%3E%3C/g%3E%3C/svg%3E");
  background-position: right -105px top -70px, left -90px bottom -90px;
  background-size: 400px 400px, 280px 280px;
}

.odia-jhoti-bg--dark.odia-jhoti-bg--pair::after {
  background-image:
    url("data:image/svg+xml,%3Csvg width='320' height='320' viewBox='0 0 320 320' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23D99B24' stroke-opacity='0.18' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='160' cy='160' r='134' stroke-dasharray='1 10' stroke-width='3.2'/%3E%3Ccircle cx='160' cy='160' r='114'/%3E%3Ccircle cx='160' cy='160' r='30'/%3E%3Ccircle cx='160' cy='160' r='10'/%3E%3Cpath d='M160 46C174 80 174 118 160 130C146 118 146 80 160 46Z'/%3E%3Cpath d='M160 274C174 240 174 202 160 190C146 202 146 240 160 274Z'/%3E%3Cpath d='M46 160C80 146 118 146 130 160C118 174 80 174 46 160Z'/%3E%3Cpath d='M274 160C240 146 202 146 190 160C202 174 240 174 274 160Z'/%3E%3Cpath d='M79 79C113 94 139 120 139 139C120 139 94 113 79 79Z'/%3E%3Cpath d='M241 241C207 226 181 200 181 181C200 181 226 207 241 241Z'/%3E%3Cpath d='M241 79C226 113 200 139 181 139C181 120 207 94 241 79Z'/%3E%3Cpath d='M79 241C94 207 120 181 139 181C139 200 113 226 79 241Z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='320' height='320' viewBox='0 0 320 320' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23F7F1E5' stroke-opacity='0.14' stroke-width='1.2' stroke-linecap='round'%3E%3Ccircle cx='160' cy='160' r='134' stroke-dasharray='1 10' stroke-width='3.2'/%3E%3Ccircle cx='160' cy='160' r='114'/%3E%3Ccircle cx='160' cy='160' r='30'/%3E%3Ccircle cx='160' cy='160' r='10'/%3E%3Cpath d='M160 46C174 80 174 118 160 130C146 118 146 80 160 46Z'/%3E%3Cpath d='M160 274C174 240 174 202 160 190C146 202 146 240 160 274Z'/%3E%3Cpath d='M46 160C80 146 118 146 130 160C118 174 80 174 46 160Z'/%3E%3Cpath d='M274 160C240 146 202 146 190 160C202 174 240 174 274 160Z'/%3E%3Cpath d='M79 79C113 94 139 120 139 139C120 139 94 113 79 79Z'/%3E%3Cpath d='M241 241C207 226 181 200 181 181C200 181 226 207 241 241Z'/%3E%3Cpath d='M241 79C226 113 200 139 181 139C181 120 207 94 241 79Z'/%3E%3Cpath d='M79 241C94 207 120 181 139 181C139 200 113 226 79 241Z'/%3E%3C/g%3E%3C/svg%3E");
  background-position: left -110px center, right -85px top -85px;
  background-size: 420px 420px, 270px 270px;
}

.odia-jhoti-bg > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .odia-jhoti-bg::after {
    background-size: 250px 250px;
    background-position: right -75px center;
  }
  .odia-jhoti-bg--left::after {
    background-position: left -75px center;
  }
  .odia-jhoti-bg--top-right::after {
    background-size: 230px 230px;
    background-position: right -65px top -60px;
  }
  .odia-jhoti-bg--pair::after {
    background-size: 230px 230px, 175px 175px;
    background-position: right -65px top -55px, left -60px bottom -60px;
  }
  .odia-jhoti-bg--dark.odia-jhoti-bg--pair::after {
    background-size: 240px 240px, 170px 170px;
    background-position: left -70px center, right -55px top -55px;
  }
}

@media (max-width: 480px) {
  .odia-jhoti-bg::after {
    opacity: 0.72;
  }
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--color-ivory-on-dark);
}

.section--green p {
  color: var(--color-ivory-muted-on-dark);
}

/* Odia Script Accent */
.odia-accent {
  font-family: var(--font-odia);
  font-weight: 400;
  letter-spacing: 0.02em;
  display: inline-block;
}

/* Eyebrow Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-terracotta);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background-color: var(--color-terracotta);
  display: inline-block;
}

.eyebrow--gold {
  color: var(--color-primary-yellow);
}

.eyebrow--gold::before {
  background-color: var(--color-primary-yellow);
}

/* Subtle Odisha Kumbha & Pasapalli Geometric Pattern Borders */
.odia-pattern-border {
  width: 100%;
  height: 18px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 64px 18px;
  border-top: 1px solid rgba(201, 185, 154, 0.45);
  border-bottom: 1px solid rgba(201, 185, 154, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='18' viewBox='0 0 64 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 14L8 4L16 14L24 4L32 14L40 4L48 14L56 4L64 14' stroke='%23963F32' stroke-opacity='0.34' stroke-width='1'/%3E%3Cpath d='M8 9L11 12L8 15L5 12L8 9ZM24 9L27 12L24 15L21 12L24 9ZM40 9L43 12L40 15L37 12L40 9ZM56 9L59 12L56 15L53 12L56 9Z' fill='%23D99B24' fill-opacity='0.36'/%3E%3Ccircle cx='16' cy='6' r='1.1' fill='%23243D32' fill-opacity='0.35'/%3E%3Ccircle cx='32' cy='6' r='1.1' fill='%23243D32' fill-opacity='0.35'/%3E%3Ccircle cx='48' cy='6' r='1.1' fill='%23243D32' fill-opacity='0.35'/%3E%3C/svg%3E");
}

.odia-pattern-border--gold {
  border-top-color: rgba(217, 155, 36, 0.32);
  border-bottom-color: rgba(217, 155, 36, 0.32);
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='18' viewBox='0 0 64 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 14L8 4L16 14L24 4L32 14L40 4L48 14L56 4L64 14' stroke='%23D99B24' stroke-opacity='0.52' stroke-width='1'/%3E%3Cpath d='M8 9L11 12L8 15L5 12L8 9ZM24 9L27 12L24 15L21 12L24 9ZM40 9L43 12L40 15L37 12L40 9ZM56 9L59 12L56 15L53 12L56 9Z' fill='%23F7F1E5' fill-opacity='0.38'/%3E%3Ccircle cx='16' cy='6' r='1.1' fill='%23D99B24' fill-opacity='0.55'/%3E%3Ccircle cx='32' cy='6' r='1.1' fill='%23D99B24' fill-opacity='0.55'/%3E%3Ccircle cx='48' cy='6' r='1.1' fill='%23D99B24' fill-opacity='0.55'/%3E%3C/svg%3E");
}

.odia-pattern-border--compact {
  height: 12px;
  background-size: 48px 12px;
}

/* Subtle Pattachitra Scalloped Lotus Border Accent */
.pattachitra-border {
  width: 100%;
  height: 14px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: 56px 14px;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='14' viewBox='0 0 56 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12C7 12 9 3 14 3C19 3 21 12 28 12C35 12 37 3 42 3C47 3 49 12 56 12' stroke='%238C2D23' stroke-opacity='0.35' stroke-width='1'/%3E%3Ccircle cx='14' cy='8.5' r='1.4' fill='%23D99B24' fill-opacity='0.55'/%3E%3Ccircle cx='42' cy='8.5' r='1.4' fill='%23D99B24' fill-opacity='0.55'/%3E%3Ccircle cx='28' cy='5.5' r='1' fill='%23191815' fill-opacity='0.32'/%3E%3C/svg%3E");
}

/* Ornamental Puri Temple Spire Section Separator */
.temple-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding-block: 0.75rem;
}

.temple-separator::before,
.temple-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-sand-border);
}

.temple-separator__emblem {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-terracotta);
  opacity: 0.8;
}

.temple-separator__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.temple-separator__dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  display: block;
}

.temple-separator__dots i:nth-child(1) { background-color: var(--color-sacred-black); }
.temple-separator__dots i:nth-child(2) { background-color: var(--color-sacred-white); border: 1px solid var(--color-muted-sand); }
.temple-separator__dots i:nth-child(3) { background-color: var(--color-sacred-yellow); }
.temple-separator__dots i:nth-child(4) { background-color: var(--color-sacred-red); }

.kumbha-divider {
  width: 100%;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-block: 0;
}

.kumbha-divider::before,
.kumbha-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-sand-border);
}

.kumbha-divider__motif {
  padding-inline: 1.25rem;
  display: inline-flex;
  align-items: center;
  color: var(--color-terracotta);
  opacity: 0.72;
}

/* Scroll Reveal Animation (Refined, Lightweight) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--duration-slow) var(--ease-editorial),
              transform var(--duration-slow) var(--ease-editorial);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
