/* ==========================================================================
   INDEX.CSS - Global Design Tokens & Layout Utilities
   ========================================================================== */

:root {
  --bg-primary: #fbf4ec;
  --bg-card: #ffffff;
  --bg-card-alt: #fdfaf6;
  --border-subtle: #ead8c5;
  --border-strong: #d9c1ab;

  --primary-red: #d72a2a;
  --dark-red: #8c1a1a;
  --deep-red: #651111;
  --accent-gold: #c97d10;

  --text-dark: #2a1b1b;
  --text-brown: #6b4f4f;
  --text-muted: #876f62;
  --text-light: #ffffff;

  --shadow-sm: 0 2px 8px rgba(107, 79, 79, 0.06);
  --shadow-md: 0 8px 24px rgba(140, 26, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(140, 26, 26, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main: 'Noto Sans Devanagari', sans-serif;
  --font-serif: 'Noto Sans Devanagari', sans-serif;
}

/* Base resets & typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Layout container */
.ny-container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

@media (max-width: 768px) {
  .ny-container {
    width: calc(100% - 28px);
  }
}

/* Common Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(215, 42, 42, 0.08);
  border: 1px solid rgba(215, 42, 42, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary-red);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-tag svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.section-title .text-highlight {
  color: var(--primary-red);
  position: relative;
  display: inline-block;
}

.section-title .text-highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), transparent);
  border-radius: 2px;
  opacity: 0.45;
}

.section-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-brown);
  line-height: 1.6;
  margin: 0;
}

/* Global button styles */
.ny-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.ny-btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(215, 42, 42, 0.28);
}

.ny-btn-primary:hover {
  background: linear-gradient(135deg, #e43333 0%, #991d1d 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(215, 42, 42, 0.35);
}

.ny-btn-outline {
  background: transparent;
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.ny-btn-outline:hover {
  background: rgba(215, 42, 42, 0.08);
  color: var(--dark-red);
  transform: translateY(-2px);
}

.ny-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.ny-btn:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   GLOBAL HERO BANNER (SHARED SAME AS GALLERY)
   ========================================================================== */

.gallery-hero,
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #1f1212 0%, #3a1515 50%, #8c1a1a 100%);
  color: #ffffff;
  padding: 56px max(24px, calc((100% - 1232px) / 2)) 48px;
  text-align: left;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(215, 42, 42, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffddd3;
  font-size: 15px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  margin-left: 0;
}

.gallery-hero h1,
.page-hero h1 {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.gallery-hero h1 span,
.page-hero h1 span {
  color: #f7a288;
}

.gallery-hero p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-weight: 400;
}

.gallery-stats-pills {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.gallery-stat-pill strong {
  color: #f7b733;
  font-size: 19px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .gallery-hero,
  .page-hero {
    padding: 76px 18px 36px;
  }
  .gallery-hero h1,
  .page-hero h1 {
    font-size: clamp(26px, 6vw, 36px);
    margin-bottom: 12px;
  }
  .gallery-hero p,
  .page-hero p {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .gallery-stats-pills {
    gap: 10px;
  }
  .gallery-stat-pill {
    padding: 6px 14px;
    font-size: 14px;
  }
  .gallery-stat-pill strong {
    font-size: 16px;
  }
}

/* Shared banner size for interior pages; the homepage uses its own hero. */
.gallery-hero {
  min-height: 350px;
}

@media (max-width: 768px) {
  .gallery-hero {
    min-height: 280px;
  }

  .about-page-body .gallery-hero,
  .contact-page-body .gallery-hero {
    min-height: 320px;
  }

  .gallery-hero .gallery-stats-pills {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .about-page-body .gallery-hero .gallery-stats-pills {
    flex-wrap: wrap;
  }

  .about-page-body .gallery-hero .gallery-stat-pill {
    flex: 1 1 calc(50% - 6px);
  }

  .contact-page-body .gallery-hero .gallery-stats-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-page-body .gallery-hero .gallery-stat-pill {
    width: 100%;
  }

  .gallery-hero .gallery-stat-pill {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    gap: 4px;
    padding: 6px 5px;
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }

  .gallery-hero .gallery-stat-pill strong {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
}

