/* ============================================================
   THE GLIDE INN — GLOBAL DESIGN SYSTEM
   Dark cinematic Himalayan adventure aesthetic
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400;1,9..40,500&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* — Colors — */
  --bg-color:       #FAFAF7;
  --midnight:       #0D2B1A; /* Deep forest green for headers/footers */
  --midnight-light: #16402A;
  --midnight-dark:  #071510;
  --sky-blue:       #3A8EBF; /* Mountain sky blue */
  --sky-blue-dark:  #2970A0;
  --pine-green:     #1A4A28;
  --pine-green-light:#4D9865;
  --amber:          #D98A0A; /* Warm mountain gold */
  --amber-dark:     #B87200;
  --amber-glow:     rgba(217,138,10,0.25);
  --white:          #FFFFFF;
  --white-pure:     #FFFFFF;
  --text-main:      #2C302C;
  --text-heading:   #0F1A10;
  --muted:          #626D66;
  --muted-dark:     #475050;
  --muted-light:    #98A8A0;
  --danger:         #EF4444;
  --success:        #10B981;

  /* — Glassmorphism (Light) — */
  --glass:          rgba(255, 255, 255, 0.85);
  --glass-hover:    rgba(255, 255, 255, 0.95);
  --glass-border:   rgba(229, 231, 235, 0.5);
  --glass-border-hover: rgba(209, 213, 219, 0.8);
  --glass-blur:     20px;

  /* — Gradients — */
  --gradient-hero:    linear-gradient(180deg, rgba(7,21,12,0.42) 0%, rgba(7,21,12,0.55) 55%, rgba(7,21,12,0.72) 100%);
  --gradient-hero-top:linear-gradient(180deg, rgba(7,21,12,0.55) 0%, transparent 40%);
  --gradient-amber:   linear-gradient(135deg, #E09212 0%, #C07800 100%);
  --gradient-sky:     linear-gradient(135deg, #3A8EBF 0%, #2970A0 100%);
  --gradient-card:    linear-gradient(180deg, #FFFFFF 0%, #FAFAF7 100%);

  /* — Typography — */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* — Spacing — */
  --space-xs:   0.25rem;  /* 4px */
  --space-sm:   0.5rem;   /* 8px */
  --space-md:   1rem;     /* 16px */
  --space-lg:   1.5rem;   /* 24px */
  --space-xl:   2rem;     /* 32px */
  --space-2xl:  3rem;     /* 48px */
  --space-3xl:  4rem;     /* 64px */
  --space-4xl:  6rem;     /* 96px */
  --space-5xl:  8rem;     /* 128px */

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

  /* — Shadows (Soft Light Theme) — */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.10);
  --shadow-glow:  0 10px 30px rgba(58,142,191,0.15);
  --shadow-amber: 0 8px 24px rgba(217,138,10,0.30);

  /* — Z-index layers — */
  --z-base:      1;
  --z-cards:     10;
  --z-sticky:    100;
  --z-navbar:    1000;
  --z-dropdown:  1100;
  --z-overlay:   2000;
  --z-modal:     3000;
  --z-whatsapp:  9999;

  /* — Transitions — */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast:   0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
  --transition-slow:   0.6s var(--ease-in-out);

  /* — Container — */
  --container-max: 1280px;
  --container-narrow: 900px;
  --container-padding: clamp(1rem, 4vw, 2rem);
}


/* ============================================================
   CSS RESET
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--sky-blue-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--amber);
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
}

::selection {
  background: var(--sky-blue);
  color: var(--midnight);
}


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

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -1px;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.5px;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
  font-weight: 500;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
}

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

.text-white { color: var(--white); }
.text-muted { color: var(--muted); }
.text-sky   { color: var(--sky-blue); }
.text-amber { color: var(--amber); }
.text-green { color: var(--pine-green-light); }

.text-sm    { font-size: 0.875rem; }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem; }

strong, b   { font-weight: 600; color: var(--text-heading); }
em, i       { font-style: italic; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sky-blue);
  margin-bottom: var(--space-md);
  display: block;
}

.section-heading {
  margin-bottom: var(--space-lg);
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-amber);
  margin-top: var(--space-md);
  border-radius: 2px;
}

.section-heading.centered::after {
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 680px;
}

.lead.centered {
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

.section {
  padding: var(--space-4xl) 0;
}

.section--dark {
  background-color: var(--midnight);
  color: var(--white);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark h5, .section--dark h6, .section--dark strong {
  color: var(--white);
}
.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section--alt {
  background-color: #FFFFFF;
}

.section--tint {
  background-color: #F3F7F4;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center{ align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }
.gap-xl      { gap: var(--space-xl); }
.gap-2xl     { gap: var(--space-2xl); }

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
}

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-xl   { margin-top: var(--space-xl); }
.mt-2xl  { margin-top: var(--space-2xl); }
.mb-xl   { margin-bottom: var(--space-xl); }
.mb-2xl  { margin-bottom: var(--space-2xl); }


/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.12s; }
.stagger > *:nth-child(3) { transition-delay: 0.24s; }
.stagger > *:nth-child(4) { transition-delay: 0.36s; }
.stagger > *:nth-child(5) { transition-delay: 0.48s; }
.stagger > *:nth-child(6) { transition-delay: 0.60s; }
.stagger > *:nth-child(7) { transition-delay: 0.72s; }
.stagger > *:nth-child(8) { transition-delay: 0.84s; }
.stagger > *:nth-child(9) { transition-delay: 0.96s; }
.stagger > *:nth-child(10){ transition-delay: 1.08s; }
.stagger > *:nth-child(11){ transition-delay: 1.2s; }
.stagger > *:nth-child(12){ transition-delay: 1.32s; }


/* ============================================================
   GRAIN TEXTURE OVERLAY (for hero sections)
   ============================================================ */
.grain::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.035;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}


/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
  background: var(--muted-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sky-blue);
}


/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .show-mobile {
    display: block !important;
  }
  .section {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: var(--space-2xl) 0;
  }
}

/* ============================================================
   IMAGE PROTECTION — discourage casual copying/saving of photos
   ============================================================ */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none; /* disables iOS long-press "Save Image" menu */
}
