/* ============================================
   SZCUTZ — Home Page Styles
   ============================================ */

.hero {
  position: relative;
  height: 92vh;
  min-height: 620px;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
}

/* Quiet grid texture, adapted to the barber site's black-and-white palette. */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(13, 13, 13, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 13, 13, 0.065) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 45%, black 0%, transparent 88%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 45%, black 0%, transparent 88%);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content > .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 22px;
  padding: 8px 13px;
  border: 1px solid rgba(13, 13, 13, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #555;
  box-shadow: 0 3px 12px rgba(13, 13, 13, 0.04), inset 0 1px rgba(255, 255, 255, 0.9);
}

.hero-heading {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.7rem, 5.3vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #111;
  margin: 0 auto 18px;
  text-wrap: balance;
}

@media (max-width: 768px) {
  .hero-heading { font-size: clamp(2.5rem, 10vw, 4rem); }
}

.hero-subtext {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #626262;
  max-width: 520px;
  margin: 0 auto 30px;
}

.btn .btn-arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

/* Reference's compact, dark pill button, using the shop's monochrome colors. */
.hero .btn {
  min-height: 54px;
  padding: 0 27px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, #222 0%, #111 100%);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(13, 13, 13, 0.12), inset 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.hero .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 26px rgba(13, 13, 13, 0.16), inset 0 1px rgba(255, 255, 255, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .hero .btn { transition: none; }
}
.btn:hover .btn-arrow,
.btn:active .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Section shell ---------- */
.section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.section-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-top: 12px;
}

.section-head p {
  color: var(--gray-700);
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Services ---------- */
.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 40px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(13, 13, 13, 0.15);
}

.service-card h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.service-meta {
  display: flex;
  gap: 18px;
  margin: 10px 0 24px;
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 600;
}

.service-price {
  color: var(--black);
}

.service-card .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gallery slider ---------- */

/* #gallery{
  padding-top: 0px;
} */

/* home.css mein — .stack-wrap ka z-index badhao */
.stack-wrap {
  position: relative;
  z-index: 3; /* pehle 1 tha — ab canvas (z-index: 2) se upar hai */
  --stack-size: 380px;
  max-width: min(var(--stack-size), 82vw);
  margin: 0 auto;
}

.card-stack,
.ghost-layer {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.ghost-layer {
  position: absolute;
  inset: 0;
  pointer-events: none; /* purely visual — never blocks drag/tap on real cards */
}

.card-stack {
  margin-bottom: 80px;
  touch-action: pan-y;
}

.stack-card {
  position: absolute;
  inset: 0;
  /* 🔧 More iPhone-like: bigger continuous radius */
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(13, 13, 13, 0.10);
  background: var(--white);
  /* Tight contact shadow + soft ambient shadow = "popped up" feel */
  box-shadow:
    0 1px 2px rgba(13, 13, 13, 0.06),
    0 14px 26px -10px rgba(13, 13, 13, 0.20),
    0 32px 60px -28px rgba(13, 13, 13, 0.22);
  cursor: grab;
  user-select: none;

  transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  opacity: var(--op, 1);
  filter: blur(var(--blur, 0px));
  z-index: var(--z, 1);
  /* 🔧 Snappier — was 320ms/no separate filter timing */
  transition: transform 240ms cubic-bezier(.22, .85, .32, 1), opacity 240ms ease, filter 180ms ease;
}

.stack-card.is-ghost {
  transition: none; /* JS sets this right before animating out */
}

.stack-card:active { cursor: grabbing; }

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.stack-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stack-hint {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

@media (max-width: 480px) {
  .stack-wrap { --stack-size: 260px; }
}
/* ---------- About ---------- */
.about {
  background: var(--white);
}

.about-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-grid h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}

.about-grid p {
  color: var(--gray-700);
  margin-bottom: 16px;
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.6;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
}

.about-stats div strong {
  display: block;
  font-family: var(--font);
  font-weight: 900;
  font-size: 2.2rem;
  font-variant-numeric: tabular-nums; /* 🔧 digits same width rakhte hain, counting ke waqt text kaanpta/shift nahi hota */
}

.about-stats div span {
  font-size: 0.8rem;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* home.css mein — about-photo ko explicitly stack context do */
.about-photo {
  position: relative;
  z-index: 3; /* naya add karo — canvas se upar */
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-empty-state {
  grid-column: 1 / -1;   /* poori grid-width span kare, sirf ek column nahi */
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--gray-500);
}

.services-empty-state .empty-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 16px;
  color: var(--gray-500);
}

.services-empty-state p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Navbar adapted from the PastPaper pill layout in the barber site's palette. */
.home-page .site-header {
  position: sticky;
  top: 12px;
  left: auto;
  width: calc(100% - 32px);
  max-width: 1040px;
  margin: 12px auto 0;
  transform: none;
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 40px rgba(13, 13, 13, 0.08), 0 0 0 1px rgba(13, 13, 13, 0.025), inset 0 1px rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.home-page .nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  height: auto;
  padding: 8px 10px 8px 18px;
}

.home-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #0d0d0d;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.home-page .brand img {
  display: block;
  width: 76px;
  height: 44px;
  object-fit: cover;
  object-position: center 54%;
}

.home-page .nav-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0d0d0d;
  box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.08);
}

.home-page .nav-menu-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.home-page .main-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.home-page .main-nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #595959;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.home-page .main-nav a:hover {
  color: #0d0d0d;
  background: rgba(13, 13, 13, 0.08);
  opacity: 1;
}

.home-page .main-nav a.is-active {
  border-color: rgba(13, 13, 13, 0.05);
  color: #000;
  background: #f1f1f1;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(13, 13, 13, 0.08), inset 0 1px rgba(255, 255, 255, 0.9);
}

.home-page .main-nav a:active {
  transform: scale(0.97);
}

.home-page .nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(13, 13, 13, 0.1);
  border-radius: 50%;
  background: #0d0d0d;
  color: #fff;
}

.home-page .nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.home-page .nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.home-page .nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (min-width: 861px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-page .nav-brand-dot {
    animation: nav-dot-beat 2.8s ease-in-out infinite;
  }
}

@media (min-width: 861px) {
  .home-page .main-nav {
    position: absolute;
    left: 50%;
    flex: none;
    transform: translateX(-50%);
  }
}

@keyframes nav-dot-beat {
  0%, 52%, 100% {
    transform: scale(1) rotate(0deg) translateX(0);
    box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.08);
  }
  8% {
    transform: scale(1.18) rotate(-6deg) translateX(-0.5px);
    box-shadow: 0 0 0 6px rgba(13, 13, 13, 0.14);
  }
  16% {
    transform: scale(1) rotate(3deg) translateX(0.5px);
    box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.08);
  }
  26% {
    transform: scale(1.1) rotate(5deg) translateX(0.5px);
    box-shadow: 0 0 0 5px rgba(13, 13, 13, 0.11);
  }
  36% {
    transform: scale(1) rotate(-2deg) translateX(0);
    box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.08);
  }
}

@media (max-width: 860px) {
  .home-page .site-header {
    width: calc(100% - 32px);
    border-radius: 28px;
  }

  .home-page .nav-inner {
    min-height: 58px;
    padding: 7px 8px 7px 14px;
  }

  .home-page .nav-toggle {
    display: block;
  }

  .home-page .nav-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(13, 13, 13, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(13, 13, 13, 0.12);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
  }

  .home-page .site-header.menu-open .nav-menu-panel {
    display: flex;
  }

  .home-page .main-nav {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    flex: 1;
    max-height: none;
    overflow: visible;
    transform: none;
  }

  .home-page .main-nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    color: #454545;
    font-size: 0.88rem;
  }

}

@media (max-width: 480px) {
  .home-page .site-header {
    top: 10px;
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .nav-brand-dot {
    animation: none;
  }
}
