/* ============================================
   🕉️ CHAMUNDA PUJA SERVICE — Base Styles
   ============================================ */

/* ── Modern Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  scroll-padding-top: var(--nav-height);
  -webkit-overflow-scrolling: touch; /* iOS inertial scrolling */
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

/* ── Selection ── */
::selection {
  background: var(--clr-saffron);
  color: var(--clr-white);
}

::-moz-selection {
  background: var(--clr-saffron);
  color: var(--clr-white);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--clr-cream-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--grad-saffron);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-saffron-dark);
}

/* ── Focus Styles ── */
:focus-visible {
  outline: 2px solid var(--clr-saffron);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Links ── */
a {
  color: var(--clr-saffron);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--clr-saffron-dark);
}

/* ── Images ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Lists ── */
ul, ol {
  list-style: none;
}

/* ── Buttons ── */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ── Inputs ── */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--text-primary);
  letter-spacing: var(--ls-wide);
}

h1 {
  font-size: var(--fs-5xl);
  letter-spacing: var(--ls-tight);
}

h2 {
  font-size: var(--fs-4xl);
}

h3 {
  font-size: var(--fs-3xl);
}

h4 {
  font-size: var(--fs-2xl);
}

h5 {
  font-size: var(--fs-xl);
}

h6 {
  font-size: var(--fs-lg);
}

p {
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

strong {
  font-weight: var(--fw-semibold);
}

small {
  font-size: var(--fs-sm);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

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

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

/* ── Section ── */
.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-16);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--clr-saffron);
  margin-bottom: var(--sp-4);
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--grad-saffron);
}

.section-title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-6);
  background: var(--grad-golden-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Decorative Divider ── */
.divider-mandala {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sp-8);
  background: url('../images/golden-mandala.png') center/contain no-repeat;
  opacity: 0.4;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Hardware Acceleration & Content Visibility Rendering Optimizations ── */
#about,
#services,
#pujas,
#astrology,
#gallery,
#festivals,
#contact,
.reviews-section,
.faq-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 1000px;
}

/* GPU Accelerated Transitions for smoother scroll reveal & hover effects */
.animate-on-scroll,
.card,
.btn,
.nav-link,
.gallery-item {
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
