/* ==========================================================================
   URDU TYPOGRAPHY - JAMEEL NOORI NASTALEEQ
   ========================================================================== */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: url('../fonts/JameelNooriNastaleeq-Site.woff2') format('woff2'),
       url('../fonts/JameelNooriNastaleeq-Regular.woff2') format('woff2'),
       url('../fonts/JameelNooriNastaleeq-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.urdu-text, [dir="rtl"], [lang="ur"] {
  font-family: var(--font-urdu);
  line-height: 1.85;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   BASE RESET & MOBILE-FIRST FOUNDATIONS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-body);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  background-color: var(--color-bg-body);
  /* Extra bottom padding to prevent content being concealed by the sticky mobile bar */
  padding-bottom: calc(var(--bottom-bar-height) + 24px);
}

/* Hardware-accelerated GPU ambient background layer (eliminates scroll repaint stutter/lag) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(211, 47, 47, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(255, 160, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 75%, rgba(211, 47, 47, 0.05) 0%, transparent 50%);
  transform: translateZ(0);
}

/* Headings with high-end optical tracking & text-wrap balance */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: var(--font-3xl); }
h2 { font-size: var(--font-2xl); }
h3 { font-size: var(--font-xl); }
h4 { font-size: var(--font-lg); }
h5 { font-size: var(--font-md); }
h6 { font-size: var(--font-base); }

/* Tabular figures for pricing alignment */
.tabular-nums, 
.price-val, 
.tier-price, 
.cart-price, 
.counter-badge, 
#customizer-total-price, 
#summary-grand-total {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

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

a:hover, a:focus-visible {
  color: var(--color-gold-light);
}

/* Haptic active state */
button:active, 
.btn:active, 
.pill-btn:active, 
.star-btn:active {
  transform: scale(0.975);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: var(--font-base);
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
  user-select: none;
}

ul, ol {
  list-style: none;
}

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

/* Responsive Container */
.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
  body {
    padding-bottom: var(--space-xl);
  }
}

/* Visually Hidden for Screen Readers */
.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;
}

/* Section Header Typography */
.section-head {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  background: rgba(255, 160, 0, 0.08);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xs);
  border: 1px solid rgba(255, 160, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-head h2 {
  margin-bottom: var(--space-xs);
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--color-text-muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Kinetic Scroll Reveal System */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms var(--ease-spring), transform 650ms var(--ease-spring);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* ==========================================================================
   SVG Vector Icons Utility
   ========================================================================== */
.svg-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-icon-sm {
  width: 0.9em;
  height: 0.9em;
}

.svg-icon-lg {
  width: 1.4em;
  height: 1.4em;
}

.svg-icon-xl {
  width: 1.85em;
  height: 1.85em;
}

.brand-svg {
  width: 26px;
  height: 26px;
}

