/* ============================================================
   style.css — Bhaskar Temple Constructions
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --cream:      #faf6ef;
  --parchment:  #f2ead8;
  --sandstone:  #d9c9a8;
  --sand-dark:  #b8a07a;
  --gold:       #c9972c;
  --gold-light: #e8c060;
  --gold-deep:  #9a6f1a;
  --brown:      #5c3d1e;
  --text:       #2e1f0e;
  --text-muted: #7a6040;

  --ff-heading: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Jost', system-ui, sans-serif;

  --transition: 0.3s ease;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(92,61,30,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }

button { cursor: pointer; border: none; background: none; font-family: var(--ff-body); }

/* ── Utility ─────────────────────────────────────────────────── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-family: var(--ff-body);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.6em;
}

.btn-primary {
  display: inline-block;
  padding: 0.85em 2.2em;
  background: var(--gold);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

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

.btn-outline {
  display: inline-block;
  padding: 0.75em 2em;
  background: transparent;
  color: var(--gold);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  transition: background var(--transition), color var(--transition);
}

.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

/* ── Scroll-reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 0.42s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay: 0.50s; }
.reveal-stagger.visible > *:nth-child(7) { opacity:1; transform:none; transition-delay: 0.57s; }
.reveal-stagger.visible > *:nth-child(8) { opacity:1; transform:none; transition-delay: 0.64s; }

/* ── Navigation ──────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#main-nav.scrolled {
  background: rgba(250,246,239,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.7rem 0;
  box-shadow: 0 2px 16px rgba(92,61,30,0.10);
}

#main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-logo-icon {
  height: 48px;
  width: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}

.logo-text {
  display: inline-block;
}

.nav-logo .logo-bhaskar { color: var(--brown); }
.nav-logo .logo-temple  { color: var(--gold); }
.nav-logo .logo-sub {
  display: block;
  font-size: 0.65rem;
  font-family: var(--ff-body);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* Animate hamburger → X when menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--cream);
  overflow: hidden;
}

.hero-mandala {
  display: none;
}

.hero-drawing {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.13;
  filter: sepia(0.9) brightness(0.6) saturate(1.4);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-block: 7rem 4rem;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.2rem;
}

.hero-eyebrow span { margin-inline: 0.6em; opacity: 0.6; }

#hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--brown);
  margin-bottom: 1.4rem;
  line-height: 1.08;
}

#hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-subtitle {
  font-family: var(--ff-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--text);
  max-width: 580px;
  margin-bottom: 2.4rem;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.scroll-indicator {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1.5px;
  height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* Mobile hero stats strip — hidden on desktop */
.hero-stats-strip { display: none; }

/* Gallery — batch loading */
.gallery-extra { display: none; }

.gallery-show-more {
  display: block;
  margin: 2rem auto 0;
  padding: 0.85em 2.4em;
  background: transparent;
  border: 1.5px solid rgba(250,246,239,0.3);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.gallery-show-more:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* Mobile scroll bounce — hidden on desktop */
.scroll-bounce { display: none; }

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.6; }
  50%       { transform: translateX(-50%) translateY(9px); opacity: 1; }
}

/* ── About ───────────────────────────────────────────────────── */
#about {
  padding: 80px 60px;
  background: var(--parchment);
}

.about-grid {
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Left column */
.about-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.about-label-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.about-label-text {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-heading {
  font-family: var(--ff-heading);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 32px;
}

.about-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.about-divider-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--sandstone);
  flex-shrink: 0;
}

.about-divider-star {
  fill: var(--gold);
  flex-shrink: 0;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-body p {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-muted);
  text-align: justify;
}

.about-body p em {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: 17px;
  color: var(--gold-deep);
}

.about-body p strong {
  font-weight: 600;
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--sand-dark);
  border-radius: 2px;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: transparent;
  transition: background 0.2s, color 0.2s;
  cursor: default;
}

.about-tag:hover {
  background: var(--sandstone);
  color: var(--brown);
}

.about-tag-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Right column */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--sandstone);
  border: 1px solid var(--sandstone);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 40px;
}

/* Stat cards carry both the hover transition and the reveal transition */
.about-stat {
  background: var(--parchment);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s, opacity 0.65s ease, transform 0.65s ease;
}

.about-stat:hover { background: var(--cream); }

/* Apply staggered delay only during the reveal phase, not on hover */
.about-stat.reveal:not(.visible),
.about-principles.reveal:not(.visible) {
  transition-delay: var(--about-delay, 0s);
}

.about-stat-number {
  font-family: var(--ff-heading);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
}

.about-stat-label {
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-principles {
  border-left: 2px solid var(--gold-light);
  padding-left: 24px;
}

.about-principles-label {
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.about-principles-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-principle {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: 18px;
  color: var(--brown);
}

.principle-dash {
  color: var(--gold);
  font-style: normal;
}

/* .chip — kept for the Craftsmanship section's material tags */
.chip {
  display: inline-block;
  padding: 0.35em 1em;
  border: 1.5px solid var(--sandstone);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brown);
  background: var(--cream);
  letter-spacing: 0.04em;
}

/* ── Process Strip ───────────────────────────────────────────── */
#process {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold), var(--gold-light));
}

.process-title {
  text-align: center;
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 4rem;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

/* Steps start hidden — revealed by IntersectionObserver adding .in-view to #process */
.process-step {
  flex: 1 1 160px;
  text-align: center;
  padding: 0 1.2rem;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

#process.in-view .process-step { opacity: 1; transform: none; }

/* Stagger each step (odd children = steps, even = connectors) */
#process.in-view .process-steps > :nth-child(1)  { transition-delay: 0s; }
#process.in-view .process-steps > :nth-child(3)  { transition-delay: 0.13s; }
#process.in-view .process-steps > :nth-child(5)  { transition-delay: 0.26s; }
#process.in-view .process-steps > :nth-child(7)  { transition-delay: 0.39s; }
#process.in-view .process-steps > :nth-child(9)  { transition-delay: 0.52s; }
#process.in-view .process-steps > :nth-child(11) { transition-delay: 0.65s; }

.process-step-num {
  font-family: var(--ff-heading);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.18);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
}

.process-step h4 {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.55rem;
}

.process-step p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
}

/* Connector arrow between steps */
.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  padding-top: 3.2rem;
}

/* SVG line draws itself left-to-right when .in-view is added to #process */
.connector-line {
  stroke: rgba(255,255,255,0.4);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  transition: stroke-dashoffset 0.5s ease;
}

#process.in-view .connector-line { stroke-dashoffset: 0; }

/* Connectors draw after the step they follow has appeared */
#process.in-view .process-steps > :nth-child(2)  .connector-line { transition-delay: 0.18s; }
#process.in-view .process-steps > :nth-child(4)  .connector-line { transition-delay: 0.31s; }
#process.in-view .process-steps > :nth-child(6)  .connector-line { transition-delay: 0.44s; }
#process.in-view .process-steps > :nth-child(8)  .connector-line { transition-delay: 0.57s; }
#process.in-view .process-steps > :nth-child(10) .connector-line { transition-delay: 0.70s; }

/* ── Services ────────────────────────────────────────────────── */
#services {
  padding: 6rem 0;
  background: var(--cream);
}

#services h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--brown);
  margin-bottom: 0.6rem;
}

#services .section-intro {
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.service-card {
  background: var(--parchment);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card:hover::after { width: 100%; }

.service-icon {
  width: 44px; height: 44px;
  margin-bottom: 1.1rem;
  color: var(--gold);
}

.service-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  color: var(--brown);
  margin-bottom: 0.55rem;
}

.service-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Photo Gallery ───────────────────────────────────────────── */
#gallery {
  padding: 6rem 0;
  background: var(--brown);
}

#gallery .section-label { color: var(--gold-light); }
#gallery .section-label::before { background: var(--gold-light); }

#gallery h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 0.6rem;
}

#gallery .section-intro {
  color: rgba(250,246,239,0.6);
  margin-bottom: 2.8rem;
}

#photo-grid {
  columns: 3;
  column-gap: 1rem;
}

#photo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 2rem;
  border: 2px dashed rgba(201,151,44,0.3);
  border-radius: var(--radius);
  color: rgba(250,246,239,0.45);
  text-align: center;
}

#photo-placeholder svg {
  width: 48px; height: 48px;
  opacity: 0.4;
}

.gallery-item {
  break-inside: avoid;
  position: relative;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,31,14,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.5em 1.2em;
  border-radius: 999px;
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(to top, rgba(46,31,14,0.8), transparent);
  color: rgba(250,246,239,0.9);
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* ── Photo Lightbox ──────────────────────────────────────────── */
#photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15,8,2,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#photo-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
}

.lb-caption-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
  color: rgba(250,246,239,0.7);
  font-size: 0.85rem;
}

#lb-close {
  position: absolute;
  top: -3rem; right: 0;
  color: rgba(255,255,255,0.7);
  font-size: 1.8rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

#lb-close:hover { color: #fff; }

.lb-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1000;
}

.lb-nav:hover { background: rgba(255,255,255,0.18); }
#lb-prev { left: 1.5rem; }
#lb-next { right: 1.5rem; }

/* ── Video Gallery ───────────────────────────────────────────── */
#videos {
  padding: 6rem 0;
  background: var(--parchment);
}

#videos h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--brown);
  margin-bottom: 0.6rem;
}

#videos .section-intro {
  color: var(--text-muted);
  margin-bottom: 2.8rem;
}

#video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

#video-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 2rem;
  border: 2px dashed var(--sandstone);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
  grid-column: 1 / -1;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(92,61,30,0.16);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1c1007;
}

.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.04); }

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: rgba(201,151,44,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
  border: none;
}

.play-btn svg { width: 22px; height: 22px; margin-left: 3px; }

.video-card:hover .play-btn {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.1);
}

.yt-badge {
  position: absolute;
  bottom: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25em 0.6em;
  border-radius: 3px;
  text-transform: uppercase;
}

.video-info {
  padding: 1rem 1.2rem 1.2rem;
}

.video-info h4 {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 0.25rem;
}

.video-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Video Modal ─────────────────────────────────────────────── */
#video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15,8,2,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.vm-inner {
  position: relative;
  width: min(900px, 90vw);
}

#vm-close {
  position: absolute;
  top: -2.8rem; right: 0;
  color: rgba(255,255,255,0.7);
  font-size: 1.8rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

#vm-close:hover { color: #fff; }

.yt-embed-wrap {
  aspect-ratio: 16/9;
  width: 100%;
}

.yt-embed-wrap iframe {
  width: 100%; height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ── Craftsmanship ───────────────────────────────────────────── */
#craftsmanship {
  padding: 6rem 0;
  background: var(--cream);
}

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.craft-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--brown);
  margin-bottom: 1.4rem;
}

.craft-text p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  font-size: 1.01rem;
  text-align: justify;
}

.material-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.quality-list {
  background: var(--parchment);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.quality-list h3 {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 1.6rem;
}

.quality-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--sandstone);
}

.quality-item:last-child { border-bottom: none; }

.quality-dot {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.quality-item span {
  font-size: 0.95rem;
  color: var(--text);
}

/* ── Contact ─────────────────────────────────────────────────── */
#contact {
  padding: 6rem 0;
  background: var(--brown);
  text-align: center;
}

#contact .section-label { color: var(--gold-light); }
#contact .section-label::before { background: var(--gold-light); }

#contact h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 0.8rem;
}

#contact .section-intro {
  color: rgba(250,246,239,0.6);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.contact-card {
  background: rgba(250,246,239,0.07);
  border: 1px solid rgba(201,151,44,0.25);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  min-width: 220px;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

.contact-card:hover {
  background: rgba(201,151,44,0.1);
  border-color: rgba(201,151,44,0.5);
}

.contact-card-icon {
  width: 40px; height: 40px;
  margin-inline: auto;
  margin-bottom: 0.9rem;
  color: var(--gold-light);
}

.contact-card h4 {
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: rgba(250,246,239,0.82);
  font-size: 0.95rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: #1c1007;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(201,151,44,0.15);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer .nav-logo .logo-bhaskar { color: var(--cream); }
footer .nav-logo .logo-sub { color: rgba(250,246,239,0.4); }

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(250,246,239,0.4);
  text-align: center;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(250,246,239,0.35);
  text-align: right;
}

/* ── ADMIN STYLES ────────────────────────────────────────────── */

/* Login page */
body.admin-bg {
  background: #1c1007;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: var(--parchment);
  border-radius: 10px;
  padding: 3rem 2.6rem;
  width: min(440px, 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.login-logo .nav-logo { font-size: 1.7rem; }

.login-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1.5px solid var(--sandstone);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold);
}

.login-error {
  color: #c0392b;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.4rem;
  margin-bottom: 0.5rem;
}

#login-form .btn-primary { width: 100%; text-align: center; font-size: 1rem; }

/* Dashboard */
body.dashboard-bg {
  background: #f5f0e8;
  min-height: 100vh;
}

.admin-header {
  background: #1c1007;
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.admin-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header .nav-logo .logo-bhaskar { color: var(--cream); }
.admin-header .nav-logo .logo-sub { color: rgba(250,246,239,0.4); }

.admin-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-user span {
  font-size: 0.83rem;
  color: rgba(250,246,239,0.6);
}

#signout-btn {
  padding: 0.45em 1.1em;
  border: 1.5px solid rgba(201,151,44,0.4);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background var(--transition), border-color var(--transition);
}

#signout-btn:hover {
  background: rgba(201,151,44,0.15);
  border-color: var(--gold-light);
}

.dashboard-main {
  padding: 2.5rem 0 4rem;
}

.dashboard-main h1 {
  font-size: 1.9rem;
  color: var(--brown);
  margin-bottom: 0.3rem;
}

.dashboard-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.2rem;
}

/* Tabs */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--sandstone);
  margin-bottom: 2.2rem;
}

.tab-btn {
  padding: 0.7em 1.8em;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}

.tab-btn.active { color: var(--gold-deep); border-bottom-color: var(--gold); }
.tab-btn:hover:not(.active) { color: var(--brown); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Add forms */
.add-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(92,61,30,0.08);
}

.add-form-card h3 {
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--sandstone);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.add-form-card .btn-primary { margin-top: 0.5rem; }

/* Admin list */
.admin-list-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: 0 2px 12px rgba(92,61,30,0.08);
}

.admin-list-card h3 {
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--sandstone);
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f0ead8;
  transition: background var(--transition);
  border-radius: 4px;
}

.admin-row:last-child { border-bottom: none; }
.admin-row.dragging { opacity: 0.5; }
.admin-row.drag-over { background: rgba(201,151,44,0.08); }

.drag-handle {
  color: var(--sandstone);
  font-size: 1.2rem;
  cursor: grab;
  flex-shrink: 0;
  user-select: none;
}

.admin-thumb {
  width: 72px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--sandstone);
}

.admin-caption {
  flex: 1;
  font-size: 0.92rem;
  color: var(--text);
}

.admin-video-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-delete {
  padding: 0.4em 1em;
  border: 1.5px solid rgba(192,57,43,0.35);
  border-radius: var(--radius);
  color: #c0392b;
  font-size: 0.8rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.btn-delete:hover {
  background: rgba(192,57,43,0.08);
  border-color: #c0392b;
}

.loading-msg, .empty-msg, .error-msg {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.error-msg { color: #c0392b; }

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brown);
  color: var(--cream);
  padding: 0.75em 2em;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error { background: #c0392b; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Container — ensure at least 24px side padding on all screens */
  .container { width: min(1200px, calc(100% - 48px)); }

  /* Hero — full screen, text anchored top, drawing fills lower half */
  #hero { min-height: 100dvh; align-items: flex-start; }
  .hero-content {
    padding-top: 6.5rem;  /* clears nav + comfortable breathing room */
    padding-bottom: 3rem;
  }
  .hero-drawing { opacity: 0.15; }
  #hero h1 { font-size: 3.2rem; line-height: 1.1; margin-bottom: 0.9rem; }
  .hero-subtitle { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.6rem; max-width: 100%; }
  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    white-space: normal;
    line-height: 1.9;
    margin-bottom: 0.9rem;
  }
  /* Hero stats strip */
  .hero-stats-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: absolute;
    bottom: 4.5rem;
    left: 0; right: 0;
    padding-inline: 2rem;
    border-top: 1px solid var(--sandstone);
    padding-top: 1.2rem;
  }
  .hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
  }
  .hero-stat-num {
    font-family: var(--ff-heading);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
  }
  .hero-stat-lbl {
    font-family: var(--ff-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--sandstone);
    flex-shrink: 0;
  }

  .scroll-indicator { display: none; }
  .scroll-bounce {
    display: flex;
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    animation: bounceDown 1.8s ease-in-out infinite;
  }
  .scroll-bounce svg { width: 32px; height: 32px; }
  .hero-drawing {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center bottom;
    transform: none;
    opacity: 0.08;
    mix-blend-mode: normal;
    -webkit-mask-image: none;
    mask-image: none;
    filter: sepia(0.6) brightness(0.75) saturate(1.2) grayscale(0.3);
    z-index: 0;
  }
  .scroll-indicator { display: none; }

  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(250,246,239,0.97);
    backdrop-filter: blur(12px);
    padding: 5rem 2rem 3rem;
    gap: 1.5rem;
    box-shadow: 0 8px 24px rgba(92,61,30,0.15);
  }
  .nav-links.open a { font-size: 1.1rem; }

  /* Section vertical padding */
  #process, #services, #gallery, #videos, #craftsmanship, #contact { padding: 4rem 0; }

  /* About */
  #about { padding: 48px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-heading { font-size: 38px; }

  /* Section headings */
  #services h2, #gallery h2, #videos h2, #craftsmanship .craft-text h2,
  #contact h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

  /* Process */
  #process { padding: 3.5rem 0; }
  .process-steps { flex-wrap: wrap; }
  .process-arrow { display: none; }
  .process-step { flex: 1 1 calc(50% - 1rem); text-align: center; padding: 1rem 0.6rem; }
  .process-step-num { font-size: 3.5rem; }
  .process-step h4 { font-size: 1.1rem; }
  .process-step p { font-size: 0.85rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr 1fr; }

  /* Craft */
  .craft-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Gallery */
  #photo-grid { columns: 2; }
  #video-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-cards { flex-direction: column; align-items: stretch; }
  .contact-card { min-width: unset; }

  /* Footer */
  footer { padding: 3rem 0; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.8rem;
  }
  footer .nav-logo { font-size: 2rem; justify-content: center; text-align: left; }
  footer .nav-logo-icon { height: 58px; width: 58px; }
  .footer-tagline { font-size: 0.85rem; line-height: 2; }
  .footer-copy { text-align: center; font-size: 0.8rem; }

  /* Admin */
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-content { padding-top: 6rem; padding-bottom: 2.5rem; }
  #hero h1 { font-size: 2.8rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn-primary,
  .hero-cta .btn-outline { width: 100%; text-align: center; }

  /* Process — full width per step on very small screens */
  .process-step { flex: 1 1 100%; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Gallery */
  #photo-grid { columns: 1; }

  /* About stats */
  .about-stat { padding: 24px 16px; }
  .about-stat-number { font-size: 40px; }

  /* Lightbox nav */
  #lb-prev { left: 0.5rem; }
  #lb-next { right: 0.5rem; }
}
