/* ============================================
   SHRED HIMALAYAS — Base Styles
   Dark Gold Luxury Edition
   ============================================ */

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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-color: var(--sand-beige) !important;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--sand-beige) !important;
  overflow-x: hidden;
  min-height: 100vh;
  /* iOS momentum scrolling for the main page */
  -webkit-overflow-scrolling: touch;
}

/* ---------- Modal Background Scroll Freeze ---------- */
/* NOTE: overflow:hidden on body/html is ignored by iOS Safari.
   iOS-safe freeze is handled by the ios-scroll-locked class in
   ios-compat.css + the JS scroll-position fix in navbar.js/gallery.js */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  /* overscroll-behavior is not supported in older Safari — use as enhancement */
  overscroll-behavior: none;
  touch-action: none;
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

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

select {
  -webkit-appearance: none;
  appearance: none;
}

/* Prevent iOS Safari auto-zoom on input focus (requires font-size >= 16px) */
/* Applied globally since ios-compat.css also enforces this */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
    /* Prevent iOS tap zoom */
    touch-action: manipulation;
  }
}

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

h1 { font-size: var(--text-7xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-4xl); }
h4 { font-size: var(--text-3xl); }
h5 { font-size: var(--text-2xl); }
h6 { font-size: var(--text-xl); }

button,
input,
textarea,
select,
label,
p,
span,
a,
li {
  font-family: var(--font-body);
}

h1 span, h2 span, h3 span, h4 span, h5 span, h6 span,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  font-family: inherit !important;
}

p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 65ch;
}

/* ---- Green Text Gradient ---- */
.text-gradient {
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Cream Section Utility ---- */
.section--cream {
  background: var(--bg-cream);
  color: var(--text-on-cream);
}

.section--cream .section-label {
  color: var(--primary-700);
}

.section--cream .section-label::before {
  background: var(--primary-700);
}

.section--cream .section-title {
  color: var(--text-on-cream);
}

.section--cream .section-subtitle {
  color: var(--text-secondary-on-cream);
}

.section--cream p {
  color: var(--text-secondary-on-cream);
}

/* Fix for split-text animated gradient spans */
.text-gradient .anim-word {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: inline-block !important;
}

.text-gold {
  color: var(--primary-600);
}

.text-accent {
  font-family: var(--font-accent);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--primary-600);
}

/* ---------- Section Label ---------- */
.section-label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--primary-600);
  opacity: 0.7;
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

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

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

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

section {
  /* padding: var(--space-section) 0; */
  position: relative;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 13px 32px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-premium);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

/* Primary = Forest Green filled */
.btn--primary {
  background: var(--primary-600);
  color: #ffffff;
  border: 1px solid var(--primary-600);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: 11px;
  transition: var(--transition-color), transform 0.25s var(--ease-premium);
}

.btn--primary::before {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  background: var(--primary-700);
  border-color: var(--primary-700);
}

.btn--primary:hover::before {
  opacity: 1;
}

/* Secondary = Forest Green outlined */
.btn--secondary {
  background: transparent;
  color: var(--primary-600);
  border: 1px solid var(--gold-border);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: 11px;
  transition: var(--transition-color), transform 0.25s var(--ease-premium);
}

.btn--secondary:hover {
  border-color: var(--primary-600);
  color: #ffffff;
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.btn--large {
  padding: 16px 44px;
  font-size: 11px;
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--duration-normal) var(--ease-premium);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

/* ---------- Visibility / Animation Helpers ---------- */
.reveal        { opacity: 1; transform: none; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left   { opacity: 1; transform: none; }
.reveal-right  { opacity: 1; transform: none; }
.reveal-scale  { opacity: 1; transform: none; }

/* ---------- Selection ---------- */
::selection {
  background: var(--primary-400);
  color: #ffffff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track  { background: var(--primary-100); }
::-webkit-scrollbar-thumb  { background: var(--primary-500); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-700); }

/* ---------- Screen Reader Only ---------- */
.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;
}

/* ---------- Responsive Helpers ---------- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .section-title { font-size: var(--text-4xl); margin-bottom: var(--space-4); /* Reduced from --space-6 */ }
  .section-label { margin-bottom: var(--space-2); /* Reduced from --space-4 */ }
  .explore-more { margin-top: var(--space-6); /* Reduced from --space-10 */ }
}

@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}

@media (min-width: 769px) {
  .show-mobile-only { display: none !important; }
}

/* ---- Explore More Button ---- */
.explore-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

.explore-more .btn {
  padding: 16px 40px;
}
