/* ═══════════════════════════════════════════════════════
   Kaz Barbershop — Shared Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────── */
*, html { scroll-behavior: smooth; box-sizing: border-box; }

body {
  background: #0A0A0A;
  color: #E8E8E8;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,.5); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #D4AF37; }

/* ── Helpers ──────────────────────────────────────────── */
.gold-text {
  background: linear-gradient(135deg, #C9A84C 0%, #F0D060 50%, #C9A84C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gold-divider {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

/* ── Navbar ───────────────────────────────────────────── */
#navbar {
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(212,175,55,.12);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,.9); }

.nav-link {
  position: relative;
  color: rgba(232,232,232,.65);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: color .3s;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: #D4AF37;
  transition: width .3s;
}
.nav-link:hover,
.nav-link.active { color: #D4AF37; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s ease, opacity .45s ease;
}
#mobile-menu.open { max-height: 420px; opacity: 1; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #C9A84C, #D4AF37, #C9A84C);
  background-size: 200% auto;
  color: #0A0A0A;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .06em;
  transition: all .35s;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-gold::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .5s;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover {
  box-shadow: 0 0 32px rgba(212,175,55,.45);
  transform: translateY(-3px);
}

.btn-outline {
  border: 1px solid rgba(212,175,55,.55);
  color: #D4AF37;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: .06em;
  transition: all .3s;
  display: inline-block;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(212,175,55,.1);
  border-color: #D4AF37;
  transform: translateY(-2px);
}

/* ── Page Banner (subpages) ───────────────────────────── */
.page-banner {
  padding: 148px 24px 72px;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(10,10,10,.94) 0%, rgba(12,12,12,.98) 100%),
    url('photos/kaz-haircut-2.jpeg') center/cover no-repeat;
  border-bottom: 1px solid rgba(212,175,55,.1);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,.07) 0%, transparent 65%);
  pointer-events: none;
}
.breadcrumb { font-family: 'Montserrat', sans-serif; font-size: .72rem; letter-spacing: .1em; color: rgba(232,232,232,.4); }
.breadcrumb a { color: rgba(212,175,55,.7); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #D4AF37; }

/* ── Hero (index.html) ────────────────────────────────── */
#home-hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.62) 55%, rgba(10,10,10,.88) 100%),
    url('https://images.unsplash.com/photo-1621605815971-fbc98d665033?w=1920&q=80') center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hu  { animation: fadeUp .9s ease both; }
.hu1 { animation-delay: .15s; }
.hu2 { animation-delay: .32s; }
.hu3 { animation-delay: .50s; }
.hu4 { animation-delay: .68s; }
.hu5 { animation-delay: .85s; }

.scroll-indicator {
  width: 30px; height: 50px;
  border: 2px solid rgba(212,175,55,.45);
  border-radius: 15px;
  position: relative;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  background: #D4AF37;
  border-radius: 50%;
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0%   { top: 8px;  opacity: 1; }
  100% { top: 28px; opacity: 0; }
}

/* ── Service cards ────────────────────────────────────── */
.svc-card {
  background: rgba(26,26,26,.85);
  border: 1px solid rgba(212,175,55,.1);
  transition: all .4s cubic-bezier(.175,.885,.32,1.275);
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
  opacity: 0; transition: opacity .3s;
}
.svc-card:hover {
  border-color: rgba(212,175,55,.4);
  transform: translateY(-10px);
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 40px rgba(212,175,55,.07);
}
.svc-card:hover::before { opacity: 1; }

.pkg-featured {
  background: linear-gradient(145deg, rgba(212,175,55,.08) 0%, rgba(26,26,26,.9) 100%) !important;
  border-color: rgba(212,175,55,.4) !important;
}
.pkg-badge {
  background: linear-gradient(135deg, #C9A84C, #F0D060);
  color: #0A0A0A;
  font-size: .65rem; letter-spacing: .1em;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
}

/* ── About section ────────────────────────────────────── */
.about-img-wrap { position: relative; }
.about-img-wrap::before {
  content: '';
  position: absolute; inset: -12px -12px auto auto;
  width: 180px; height: 180px;
  border-top: 2px solid rgba(212,175,55,.4);
  border-right: 2px solid rgba(212,175,55,.4);
  pointer-events: none;
}
.about-img-wrap::after {
  content: '';
  position: absolute; inset: auto auto -12px -12px;
  width: 180px; height: 180px;
  border-bottom: 2px solid rgba(212,175,55,.4);
  border-left: 2px solid rgba(212,175,55,.4);
  pointer-events: none;
}

/* ── Gallery ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 10px;
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 200px; }
  .g-tall { grid-row: span 1; }
  .g-wide { grid-column: span 1; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-auto-rows: 160px; }
}

.g-item { overflow: hidden; border-radius: 3px; cursor: pointer; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.25,.46,.45,.94); }
.g-item:hover img { transform: scale(1.1); }
.g-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.85) 0%, transparent 55%);
  opacity: 0; transition: opacity .35s;
  display: flex; align-items: flex-end; padding: 16px;
}
.g-item:hover .g-overlay { opacity: 1; }
.g-item.hidden-item { display: none; }

/* Filter buttons */
.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 22px; border-radius: 4px;
  border: 1px solid rgba(212,175,55,.2);
  color: rgba(232,232,232,.55);
  background: transparent; cursor: pointer;
  transition: all .25s;
}
.filter-btn:hover { border-color: rgba(212,175,55,.45); color: #D4AF37; }
.filter-btn.active {
  background: linear-gradient(135deg, #C9A84C, #D4AF37);
  color: #0A0A0A; border-color: transparent;
}

/* Lightbox */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.94);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }

/* ── Testimonials ─────────────────────────────────────── */
.review-card {
  background: rgba(26,26,26,.7);
  border: 1px solid rgba(212,175,55,.1);
  transition: border-color .3s, transform .3s;
}
.review-card:hover { border-color: rgba(212,175,55,.3); transform: translateY(-4px); }

/* ── Contact form ─────────────────────────────────────── */
.form-input {
  background: rgba(26,26,26,.9);
  border: 1px solid rgba(212,175,55,.2);
  color: #E8E8E8; width: 100%;
  transition: all .3s;
}
.form-input:focus {
  outline: none;
  border-color: rgba(212,175,55,.6);
  box-shadow: 0 0 0 3px rgba(212,175,55,.07);
}
.form-input::placeholder { color: rgba(232,232,232,.3); }

.info-chip {
  background: rgba(26,26,26,.8);
  border: 1px solid rgba(212,175,55,.12);
  transition: border-color .3s;
}
.info-chip:hover { border-color: rgba(212,175,55,.35); }

/* ── Reveal animations ────────────────────────────────── */
.reveal        { opacity: 0; transform: translateY(48px); transition: opacity .8s ease, transform .8s ease; }
.reveal.show   { opacity: 1; transform: none; }
.reveal-l      { opacity: 0; transform: translateX(-48px); transition: opacity .8s ease, transform .8s ease; }
.reveal-l.show { opacity: 1; transform: none; }
.reveal-r      { opacity: 0; transform: translateX(48px); transition: opacity .8s ease, transform .8s ease; }
.reveal-r.show { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ── Toast ────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 9999;
  background: rgba(26,26,26,.96);
  border: 1px solid rgba(212,175,55,.4);
  padding: 14px 24px; border-radius: 8px;
  font-size: .9rem;
  transform: translateY(80px); opacity: 0;
  transition: all .4s; pointer-events: none;
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ── Value cards (index) ──────────────────────────────── */
.value-card {
  background: rgba(26,26,26,.5);
  border: 1px solid rgba(212,175,55,.1);
  transition: all .35s;
}
.value-card:hover {
  border-color: rgba(212,175,55,.35);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}

/* ── CTA strip (index) ────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, #111 0%, #1A1A1A 100%);
  border-top: 1px solid rgba(212,175,55,.1);
  border-bottom: 1px solid rgba(212,175,55,.1);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(212,175,55,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Gallery strip (index preview) ───────────────────── */
.strip-item { overflow: hidden; border-radius: 4px; position: relative; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.strip-item:hover img { transform: scale(1.08); }
.strip-item .strip-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.7) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 14px;
}
.strip-item:hover .strip-overlay { opacity: 1; }

/* ── GHL Calendar Spinner ─────────────────────────────── */
@keyframes ghlSpin {
  to { transform: rotate(360deg); }
}

/* ── Gallery strip responsive height ─────────────────── */
.gallery-strip-grid { height: 320px; }
@media (min-width: 768px) { .gallery-strip-grid { height: 520px; } }

/* ── Mobile optimizations ────────────────────────────── */
@media (max-width: 767px) {
  /* iOS Safari: background-attachment:fixed is broken/janky */
  #home-hero {
    background-attachment: scroll;
  }

  /* Reduce excess section vertical padding (overrides inline style) */
  section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* Reduce page banner padding on mobile */
  .page-banner {
    padding-top: 112px;
    padding-bottom: 48px;
  }

  /* Shrink corner brackets so they don't overflow on narrow screens */
  .about-img-wrap::before,
  .about-img-wrap::after {
    width: 60px;
    height: 60px;
  }

  /* Hamburger: ensure 44×44 px touch target */
  #hamburger {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* Toast: full-width, centered at bottom */
  #toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }

  /* Lightbox: safer image sizing on small screens */
  #lightbox img {
    max-width: 96vw;
    max-height: 78vh;
  }
  #lightbox > button {
    top: 14px;
    right: 14px;
    font-size: 2rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* CTA strip section (uses class, not tag — needs separate rule) */
  .cta-strip {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* Gallery filter buttons — smaller padding on mobile */
  .filter-btn {
    padding: 8px 14px;
    font-size: .68rem;
  }

  /* Hero stats bar — tighter text on small phones */
  .hero-stat-label {
    font-size: .65rem;
  }
}

/* Hover transforms only on devices that support hover (not touch) */
@media (hover: none) {
  .svc-card:hover,
  .value-card:hover,
  .review-card:hover { transform: none; }
  .btn-gold:hover    { transform: none; box-shadow: none; }
  .btn-outline:hover { transform: none; }

  /* Gallery: always show overlay label on touch devices */
  .g-item .g-overlay   { opacity: 1; }
  .strip-item .strip-overlay { opacity: 1; }
}
