/* ===========================
   Minimal Luxe – Light Theme
   =========================== */
:root{
  /* Base surface & typography */
  --bg: #f7f8fb;
  --bg-alt: #eef1f6;
  --panel: #ffffff;
  --text: #111216;
  --muted: #6b7280;

  /* Lines / rings / shadows */
  --line: #e6e8ee;
  --ring: #d8dbe3;
  --shadow: 0 8px 24px rgba(15, 18, 22, .08), 0 2px 10px rgba(15,18,22,.06);

  /* Elegant ink & CTA */
  --ink: #1f2937;     /* headings, strong text */
  --accent: #2c2f36;  /* subtle UI accents */
  --cta: #0e1115;     /* primary button background */

  /* Nav underline accent */
  --underline: linear-gradient(90deg, transparent, var(--navy), var(--crimson), transparent);
  
  --navy:   #16253b;  /* classy ink navy */
  --crimson:#8e1b1f;  /* deep barbershop crimson */
  --stripe1: rgba(22,37,59,.05);
  --stripe2: rgba(142,27,31,.06);
}

/* Reset / globals */
*{ box-sizing: border-box }
html, body{
  margin:0; padding:0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  scroll-behavior: smooth;
}
img{ max-width:100%; display:block;  height: auto;}
a{ color: var(--ink); text-decoration: none }
.container{ width:min(1100px,90%); margin-inline:auto }
.section{ padding:84px 0; border-top:1px solid var(--line); background: transparent }
.section-alt{ background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.55)) }
.section-title{ font-size: clamp(28px,3.2vw,38px); margin:0 0 18px; color: var(--ink) }
/* Only render sections once they’re needed */
.section { content-visibility: auto; contain-intrinsic-size: 800px 1200px; }
.section:first-of-type { content-visibility: visible; } /* Keep hero visible */

.muted{ color: var(--muted) }

/* Fixed animated “silk” background (stays put) */
#bg-fixed{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(255,255,255,.92), transparent 60%),
    radial-gradient(700px 400px at 92% 6%, rgba(255,255,255,.80), transparent 60%),
    radial-gradient(900px 500px at 80% 90%, rgba(255,255,255,.72), transparent 60%),
    
    /* whisper-faint diagonal silk */
    repeating-linear-gradient(135deg,
    var(--stripe1) 0 16px,
    var(--stripe2) 16px 32px,
  rgba(255,255,255,.05) 32px 48px);

  animation: bgFloat 40s linear infinite;
}
@keyframes bgFloat{
  0%   { background-position: 0 0, 0 0, 0 0, 0 0; }
  50%  { background-position: 10px -8px, -8px 6px, 6px 12px, 40px 40px; }
  100% { background-position: 0 0, 0 0, 0 0, 80px 80px; }
}
/* Ensure content paints above */
body > header, main, footer{ position: relative; z-index: 1 }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.78rem 1.05rem; border:1px solid var(--ring); border-radius:14px;
  background:#fff; color:#111; letter-spacing:.2px; cursor:pointer;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow:0 12px 28px rgba(15,18,22,.12) }
.btn:active{ transform: translateY(0) }
.btn-primary{ background: linear-gradient(180deg, var(--navy), #0b1424);
              border-color:#0b1424; color:#fff; }
.btn-outline{ background: transparent; color: var(--ink); border-color: var(--ring) }
.btn-mini{ padding:.5rem .85rem; border-radius:999px }
.btn-sm{ padding:.5rem .8rem; border-radius:12px }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--ring) }
.btn-primary:hover{ filter: saturate(1.05) brightness(1.02); }

/* Hero */
.hero{
  min-height:82vh; display:grid; place-items:center; padding-top:120px;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.35));
}
.hero__wrap{ display:grid; grid-template-columns:1.15fr .85fr; gap:44px }
.hero__text h1{ font-size: clamp(42px,8vw,76px); margin:0 0 10px; letter-spacing:.6px; color: var(--ink) }
.hours ul{ list-style:none; padding:0; margin:8px 0 18px }
.hours li{ color:#343a46 }

/* “Frosted” cards/panels (site-wide) */
.hero-card, .panel, .team-card, .contact-card{
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero-card{ padding:48px; min-width:300px; min-height:240px; position:relative; overflow:hidden }
.hero-card__ring{ position:absolute; inset:-35%; border-radius:50%; border:1px solid #e9ebf0; filter:blur(.3px); animation: spin 18s linear infinite reverse }
.hero-card__title{ font-weight:800; font-size:20px; position:relative; z-index:1; color:var(--ink) }
.hero-card__subtitle{ color: var(--muted); font-size:14px; position:relative; z-index:1 }
@keyframes spin{ to{ transform:rotate(360deg) } }

/* Hero photo strip */
.hero-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px }
.hero-thumb{ aspect-ratio:16/10; border-radius:14px; overflow:hidden; border:1px solid var(--line); position:relative; background:#fff }
.hero-thumb img{ width:100%; height:100%; object-fit:cover; transform:scale(1.02); filter:saturate(.95) brightness(1.05); transition: transform .35s ease, filter .35s ease }
.hero-thumb:hover img{ transform:scale(1.06); filter:saturate(1.02) brightness(1.07) }
.hero-thumb::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent, rgba(255,255,255,.0)) }

/* Team */
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:22px }
.team-card{ padding:0; overflow:hidden; transition: transform .2s ease, box-shadow .25s ease }
.team-card:hover{ transform:translateY(-4px); box-shadow:0 20px 50px rgba(15,18,22,.15) }
.team-photo{ aspect-ratio:4/3; overflow:hidden; border-bottom:1px solid var(--line) }
.team-photo img{ width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition: transform .35s ease, filter .35s ease; filter:saturate(.95) brightness(1.02) }
.team-card:hover .team-photo img{ transform:scale(1.06); filter:saturate(1.02) brightness(1.06) }
.team-body{ padding:16px 16px 18px }
.team-card h3{ margin:0 0 6px; color: var(--ink) }
.team-card .role{ font-weight:700; color:#3a4250; font-size:.9rem; margin-left:8px }
.team-card p{ margin:0; color:var(--muted) }

/* Services / Accordion */
.accordion details{
  border:1px solid var(--line); border-radius:16px; overflow:hidden;
  background: rgba(255,255,255,.85); box-shadow: var(--shadow); margin-bottom:14px; position:relative;
}
.accordion summary{
  list-style:none; display:flex; justify-content:space-between; align-items:center;
  padding:16px 18px; cursor:pointer; font-weight:700; color: var(--ink)
}
.accordion summary::-webkit-details-marker{ display:none }
.chev{ transition: transform .2s ease }
details[open] .chev{ transform:rotate(180deg) }
.service-list{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line) }
.service-list li{
  display:grid; grid-template-columns:1fr auto auto; gap:12px; align-items:center;
  padding:14px 18px; border-top:1px dashed #e2e5ec; background:#fff
}
.service-list h4{ margin:0 0 4px; color: var(--ink) }
.price{ color: var(--ink); font-weight:700 }
.duration{ color: var(--muted) }

/* Category label (optional: place in each <summary>) */
.category-chip{
  display:inline-block; margin-left:.5rem; font-size:.78rem; padding:.2rem .5rem;
  border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--navy);
}


/* Contact */
.contact-grid{ display:grid; grid-template-columns:1fr 1.2fr; gap:20px }
.contact-card{ padding:18px }
.map iframe{ width:100%; height:100%; min-height:300px; border:0; border-radius:16px }

/* Booking layout */
.booking-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px }
.panel{ padding:18px; position:relative; overflow:hidden }
.panel::before{ /* animated edge (non-blocking) */
  content:""; position:absolute; inset:0; border-radius:16px; padding:1px;
  background: linear-gradient(120deg, rgba(15,17,21,.06), transparent 30%, transparent 70%, rgba(15,17,21,.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: panelGlow 6s linear infinite; pointer-events:none;
}
@keyframes panelGlow{ 0%{opacity:.35} 50%{opacity:.7} 100%{opacity:.35} }
.select{ display:grid; gap:6px }
.select input, .select select, .field-2 input{
  background:#fff; color:var(--ink); border:1px solid var(--ring); border-radius:12px; padding:.7rem .85rem
}
.field-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:10px 0 }

/* Cart */
.cart{ display:grid; gap:8px }
.cart-item{
  display:grid; grid-template-columns:1fr auto auto auto; gap:12px; align-items:center;
  background:#fff; border:1px solid var(--line); padding:12px; border-radius:12px
}
.cart-item .remove{ opacity:.9; color:var(--ink) }
.cart-summary{
  display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:10px; flex-wrap:wrap
}

/* Timeslots */
.timeslots{ display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px }
.slot{
  padding:.6rem .7rem; border:1px solid var(--ring); border-radius:12px; text-align:center;
  background:#fff; color:var(--ink); cursor:pointer; transition: transform .15s ease, box-shadow .2s ease
}
.slot:hover{ transform: translateY(-1px); box-shadow:0 10px 22px rgba(15,18,22,.10) }
.slot[disabled], .slot.disabled{ opacity:.45; cursor:not-allowed }
.slot.active{ outline:2px solid var(--cta); background:#f0f2f7 }

/* Confirmation */
.confirmation{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; margin-top:12px }
.hidden{ display:none }

/* Footer */
footer .brand--footer{ display:flex; align-items:center; gap:.6rem; margin-bottom:.2rem }
.brand__mark{ display:inline-grid; place-items:center; width:30px; height:30px; border-radius:50%; border:1px solid var(--line); font-weight:800; color:var(--ink) }
.brand__name{ font-weight:800; letter-spacing:.3px; color:var(--ink) }
.footer__grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:16px; align-items:center }
.footer__links{ list-style:none; margin:0; padding:0; display:flex; gap:12px; justify-content:flex-end }
.footer__links a{ color: var(--muted) }
.footer-placeholder, .nav-placeholder{ min-height:64px }

/* NAV (glassy) */
.nav{
  position:fixed; inset:auto 0 auto 0; top:0; z-index:50;
  background: rgba(255,255,255,.78); backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line)
}
.nav__inner{ width:min(1100px,90%); margin-inline:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0 }
.brand{ display:flex; align-items:center; gap:.7rem; color:var(--ink) }
.nav__links{ display:flex; align-items:center; gap:14px; list-style:none; margin:0; padding:0 }
.nav__toggle{ display:none; background:transparent; border:0; cursor:pointer }
.nav__toggle span{ display:block; width:22px; height:2px; background:#111; margin:5px 0; transition:transform .2s ease }

/* Animated underline for nav links on light */
.nav__links a{ position:relative; padding:.2rem .1rem; color: var(--ink) }
.nav__links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--underline);
  transform: scaleX(0); transform-origin:center; transition: transform .25s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after{ transform: scaleX(1) }

.nav.shrink .nav__inner{ padding:6px 0 }
.nav .btn.btn-mini{ background: var(--cta); color:#fff; border-color:#0f1115 }

/* Calendar (Block Month) */
.calendar{ display:grid; gap:10px; margin-bottom:12px }
.cal-head{ display:flex; align-items:center; justify-content:space-between }
.cal-head button{ min-width:40px }
.cal-title{ font-weight:800; letter-spacing:.3px; color:var(--ink) }
.cal-tools{ display:flex; gap:8px }
.calendar--block .cal-grid--head{
  display:grid; grid-template-columns:repeat(7,1fr); gap:10px; margin-bottom:10px
}
.calendar--block .cal-dow{
  text-align:center; font-weight:700; color:var(--muted);
  background:#fff; border:1px solid var(--line); padding:.6rem; border-radius:10px
}
.cal-days--block{ display:grid; grid-template-columns:repeat(7,1fr); gap:10px }
.cal-day{
  background:#fff; border:1px solid var(--line); border-radius:12px; min-height:84px;
  display:flex; align-items:flex-start; justify-content:flex-end; padding:8px; position:relative; cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease
}
.cal-day:hover{ transform: translateY(-1px); box-shadow:0 12px 28px rgba(15,18,22,.10) }
.cal-day.empty{ visibility:hidden; pointer-events:none }
.cal-day .num{ display:inline-block; font-weight:800; border-radius:8px; padding:.1rem .35rem; color:var(--ink) }
.cal-day.today .num{ outline:2px solid var(--cta) }
.cal-day.selected{ outline:2px solid var(--cta) }
.cal-day.disabled{ opacity:.45; cursor:not-allowed }
.cal-day .dot{ position:absolute; left:10px; bottom:8px; width:6px; height:6px; border-radius:50%; background:#9aa3b2; opacity:.85 }

/* Barber Availability helper */
.barber-availability{ margin-top:8px; font-size:.95rem }
.barber-availability .avail-list{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px }
.barber-availability .b{ padding:.2rem .5rem; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--ink) }
.barber-availability .b.unavail{ opacity:.45; text-decoration: line-through }

/* Custom Barber Dropdown (light) */
.barber-dd{ position:relative; display:inline-block; min-width:260px }
.barber-dd__btn{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding:.7rem .85rem; border-radius:12px; border:1px solid var(--ring); background:#fff; color:var(--ink)
}
.barber-dd__menu{
  position:absolute; z-index:20; top:calc(100% + 8px); left:0; right:0; display:none;
  background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow: var(--shadow); padding:6px
}
.barber-dd__menu.is-open { display: block; } 
.barber-dd.open .barber-dd__menu{ display:block }
.barber-dd__item{
  list-style:none; margin:0; padding:.55rem .7rem; border-radius:10px; display:flex; justify-content:space-between; align-items:center;
  cursor:pointer; color:var(--ink)
}
.barber-dd__item:hover{ background:#f4f6fa }
.barber-dd__item[aria-disabled="true"]{ opacity:.45; text-decoration: line-through; cursor:not-allowed }
.barber-dd__item .tag{ font-size:.85rem; color:var(--muted) }

/* Reveal animations (unchanged) */
.reveal{ opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease }
.reveal.visible{ opacity:1; transform:none }

/* Responsive */
@media (max-width:960px){
  .hero__wrap{ grid-template-columns:1fr }
  .hero-strip{ grid-template-columns:1fr 1fr 1fr }
  .team-grid{ grid-template-columns:repeat(2,1fr) }
  .contact-grid{ grid-template-columns:1fr }
  .booking-grid{ grid-template-columns:1fr }
  .nav__toggle{ display:block }
  .nav__links{
    position:fixed; inset:64px 0 auto 0; background: rgba(255,255,255,.95);
    border-bottom:1px solid var(--line); padding:14px; display:grid; gap:10px;
    transform: translateY(-120%); transition: transform .25s ease
  }
  .nav.open .nav__links{ transform: translateY(0) }
}

/* Important: keep interactive layers on top of decorative ones */
.panel::before{ pointer-events: none; }
.calendar *{ position: relative; z-index: 1; }
.timeslots, .slot{ position: relative; z-index: 1; }

/* --- NAV CLICKABILITY FIX --- */

/* 1) Make the nav sit above everything, regardless of parent stacking contexts */
.nav {
  position: fixed;         /* already set, reaffirm */
  z-index: 9999 !important;/* jump above any accidental overlays */
  pointer-events: auto;
}

/* 2) Don't create a stacking context on page wrappers that can trap the nav below them */
body > header,
main,
footer {
  position: relative;      /* keep layout */
  z-index: auto !important;/* remove forced stacking level */
}

/* 3) Ensure decorative overlays never intercept clicks */
.panel::before { pointer-events: none; }
#bg-fixed { pointer-events: none; }

/* 4) Mobile menu: only receive clicks when visible */
@media (max-width: 960px){
  .nav__links { pointer-events: none; }             /* hidden state */
  .nav.open .nav__links { pointer-events: auto; }   /* tappable when opened */
}

/* 5) Belt-and-suspenders: nav elements explicitly clickable */
.nav *, .nav__links a, .nav__toggle { pointer-events: auto; }

/* Gallery */
.gallery-grid{
  display:grid; gap:14px;
  grid-template-columns: repeat(12, 1fr);
}
.g-item{
  background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .25s ease;
}
.g-item:hover{ transform: translateY(-3px); box-shadow: 0 20px 48px rgba(15,18,22,.14); }
.g-item img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 4 / 3; }
.g-item figcaption{ padding:.6rem .8rem; color:var(--muted); font-size:.95rem }

/* Masonry-like spans for variety */
.g-item:nth-child(6n+1){ grid-column: span 6; }
.g-item:nth-child(6n+2){ grid-column: span 3; }
.g-item:nth-child(6n+3){ grid-column: span 3; }
.g-item:nth-child(6n+4){ grid-column: span 4; }
.g-item:nth-child(6n+5){ grid-column: span 4; }
.g-item:nth-child(6n+6){ grid-column: span 4; }

@media (max-width: 960px){
  .gallery-grid{ grid-template-columns: repeat(6, 1fr); }
  .g-item{ grid-column: span 6; }
}

/* Toasts */
#toast{
  position: fixed; bottom: 20px; right: 20px; z-index: 9998;
  display: grid; gap: 10px; pointer-events: none;
}
.toast{
  pointer-events:auto;
  background:#111; color:#fff; border-radius:12px; padding:.65rem .9rem;
  border:1px solid #0b1424; box-shadow: 0 12px 28px rgba(0,0,0,.2);
  display:flex; align-items:center; gap:.6rem; overflow:hidden;
  animation: toastIn .22s ease-out;
}
.toast .dot{ width:10px; height:10px; border-radius:50%; background: linear-gradient(180deg, var(--crimson), #651316); }
@keyframes toastIn{ from{ transform: translateY(8px); opacity:0 } to{ transform:none; opacity:1 } }

/* Button “Added” pulse */
.btn.added{
  box-shadow: 0 0 0 3px rgba(142,27,31,.15), 0 8px 24px rgba(15,18,22,.16);
  transform: translateY(-1px);
}

/* Cart bump */
.cart-summary.bump{ animation: bump .25s ease-out }
@keyframes bump{ 0%{ transform:scale(.98) } 50%{ transform:scale(1.02) } 100%{ transform:none } }

/* --- Booking Suite layout & overflow fixes --- */
.booking-suite{ display:grid; grid-template-columns: 1fr 1.4fr; gap:18px; }
.suite-right{ display:grid; gap:18px; align-content:start; }
.suite-left{ position:sticky; top:84px; align-self:start; display:grid; gap:12px; }

/* Allow dropdown menus and calendar popouts to render outside panels */
.suite-left .panel, .suite-right .panel { overflow: visible; }

/* Barber dropdown sizing and stacking */
.barber-dd{ max-width: 320px; }
.barber-dd__menu{ z-index: 10001; }     /* above panels */
.panel::before{ pointer-events:none; }  /* don’t block clicks */

/* Calendar header visibility & safer click targets */
.cal-head{ display:flex; align-items:center; justify-content:space-between; }
.cal-title{ font-weight:800; letter-spacing:.3px; }
#cal-month, #cal-year{ display:inline-block; }

/* Ensure interactive layers are above decorative ones */
.calendar, .timeslots{ isolation: isolate; }
.calendar *{ position: relative; z-index: 1; }
.timeslots, .slot{ position: relative; z-index: 1; }

/* Prevent the calendar from visually covering the "Selected" panel */
#cal-days, .cal-grid--head{ contain: layout; }  /* reduces weird overflow on zoom */

/* Make the left column stick near the nav height for convenience */
.suite-left{
  position: sticky;
  top: 84px;   /* adjust if your nav height differs */
  align-self: start;
  display: grid;
  gap: 12px;
}

@media (max-width: 1040px){
  .booking-suite{ grid-template-columns: 1fr; }
  .suite-left{ position: static; }
}

/* Ensure decorative layers never eat clicks */
.panel::before { pointer-events: none; }

/* Allow dropdown menu and calendar to overflow their panels if needed */
.suite-left .panel, .suite-right .panel { overflow: visible; }

/* Keep interactive layers on top */
.calendar * { position: relative; z-index: 1; }
.timeslots, .slot { position: relative; z-index: 1; }

/* Ensure decorative layers never block clicks */
.panel::before { pointer-events: none; }

/* Allow dropdowns/calendars to overflow panels */
.suite-left .panel, .suite-right .panel { overflow: visible; }

/* Keep interactive layers above decorative background */
.calendar * { position: relative; z-index: 1; }
.timeslots, .slot { position: relative; z-index: 1; }

/* Restore nav underline to use the gradient token directly */
.nav__links a::after{
  background: var(--underline);
}

/* --- Barber dropdown should sit above the calendar --- */
#booking .barber-dd { 
  position: relative;          /* create a stacking context */
  z-index: 10010;              /* lift the whole control */
}
#booking .barber-dd__menu {
  position: absolute;          /* already absolute, re-assert just in case */
  z-index: 10020;              /* higher than panels & their ::before */
}

/* Panels: allow overflow and keep their decorative ::before behind */
#booking .suite-left .panel,
#booking .suite-right .panel { 
  overflow: visible;
  position: relative;
  z-index: 1;
}
#booking .suite-left .panel::before,
#booking .suite-right .panel::before { 
  z-index: 0;                  /* decorative border stays under content */
  pointer-events: none;
}

/* Calendar shouldn’t eclipse adjacent UI */
#booking .calendar { 
  position: relative; 
  z-index: 1;
  isolation: isolate;          /* keeps its children from creating weird contexts */
}

/* Ensure Barber panel sits above the Calendar panel */
#booking .suite-right .panel { position: relative; z-index: 1; }
#booking .suite-right .panel:nth-of-type(1) { z-index: 100; }  /* Barber */
#booking .suite-right .panel:nth-of-type(2) { z-index: 10; }   /* Calendar */

/* The dropdown menu itself sits above everything in booking */
#booking .barber-dd { position: relative; z-index: 1000; }
#booking .barber-dd__menu { position: absolute; z-index: 2000; }

/* Allow menus to overflow panels; keep decorative borders behind */
#booking .suite-left .panel,
#booking .suite-right .panel { overflow: visible; }
#booking .suite-left .panel::before,
#booking .suite-right .panel::before { z-index: 0; pointer-events: none; }

/* Keep calendar from eclipsing adjacent UI */
#booking .calendar { position: relative; z-index: 1; isolation: isolate; }

@media (max-width: 768px) {
  #bg-fixed { animation: none; }
  .panel::before { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  #bg-fixed, .panel::before { animation: none !important; }
}

/* Lock card media size to avoid CLS and reflow */
.product-card .media { aspect-ratio: 4 / 3; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }

/* Keep animations to transform/opacity */
.product-card { will-change: transform; }

/* Keep gallery items stable */
.gallery-card { aspect-ratio: 4 / 3; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Steel & Shear — Grayscale Theme
   (paste at end of styles.css)
   ========================================================= */

/* 1) Core palette (high-contrast grayscale) */
:root{
  /* Surfaces */
  --bg:          #0f1115;   /* deep onyx */
  --bg-alt:      #13161b;   /* slightly lighter */
  --panel:       #161a21;   /* panels/cards */
  --panel-2:     #1b2028;
  --glass:       rgba(255,255,255,0.04);

  /* Text */
  --text:        #e7e9ee;   /* bone white */
  --text-2:      #c6c9d0;   /* pewter */
  --muted:       #a0a5ae;   /* soft steel */

  /* Lines/Accents */
  --line:        rgba(255,255,255,0.08);
  --line-2:      rgba(255,255,255,0.14);
  --shadow:      rgba(0,0,0,0.45);

  /* Brand (kept grayscale) */
  --brand-50:    #f3f4f6;
  --brand-100:   #e5e7eb;
  --brand-200:   #d1d5db;
  --brand-300:   #9ca3af;
  --brand-400:   #6b7280;
  --brand-500:   #4b5563;  /* primary accent */
  --brand-600:   #374151;
  --brand-700:   #1f2937;
  --brand-800:   #111827;
  --brand-900:   #0b0f14;

  /* Underline animation */
  --underline: linear-gradient(90deg, transparent, #aeb4bf, transparent);
}

/* 2) Site background — fixed, subtle diagonal tile */
body{
  background:
    radial-gradient(1200px 800px at 50% -100px, rgba(255,255,255,0.06), transparent 70%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0 14px,
      rgba(255,255,255,0.02) 14px 28px),
    var(--bg);
  color: var(--text);
  background-attachment: fixed, fixed, fixed;
}

/* 3) Panels / cards / glass */
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px var(--shadow);
}
.panel::before{ background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02)); }

.section-alt{ background: transparent; }

/* 4) Navigation (animated underline kept) */
.nav{
  background: rgba(10,12,16,0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.shrink{ transform: translateY(-2px); box-shadow: 0 10px 24px var(--shadow); }
.nav__links a{ color: var(--text-2); }
.nav__links a:hover, .nav__links a.active{ color: var(--text); }
.nav__links a::after{ background: var(--underline); }

/* 5) Headings / copy */
h1,h2,h3,h4{ color: var(--text); }
.muted{ color: var(--muted); }

/* 6) Buttons (grayscale) */
.btn{
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  --btn-bd: var(--line-2);
  color: var(--btn-fg);
  background: linear-gradient(180deg, var(--btn-bg), var(--brand-700));
  border: 1px solid var(--btn-bd);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.btn:hover{ filter: brightness(1.06); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn-primary{ --btn-bg: var(--brand-500); }
.btn-outline{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--brand-500);
}
.btn-ghost{
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

/* Keep "Added ✓" look strong in gray theme */
.btn.added{
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.4);
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
}

/* 7) Inputs */
input, select, textarea{
  background: #0f1319;
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
input::placeholder, textarea::placeholder{ color: #8c929d; }

/* 8) Services accordion */
.accordion summary{
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid var(--line);
}
.accordion .service-list li{
  border-bottom: 1px dashed var(--line);
}
.price{ color: var(--text); }

/* 9) Barber dropdown (menu sits above calendar) */
.barber-dd__btn{
  background: #0f1319;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.barber-dd__menu{
  background: #0f1319;
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px var(--shadow);
}
.barber-dd__item{ color: var(--text-2); }
.barber-dd__item[aria-disabled="true"]{ color: #5a616c; text-decoration: line-through; }
.barber-dd__item:hover{ background: rgba(255,255,255,0.04); color: var(--text); }

/* 10) Calendar (block layout) */
.calendar{
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
}
.cal-head{ color: var(--text); }
.cal-dow{ color: #9aa1ab; }
.cal-day{ background: rgba(255,255,255,0.015); border: 1px solid rgba(255,255,255,0.03); }
.cal-day.today{ outline: 2px dashed rgba(255,255,255,0.25); }
.cal-day.selected{ background: rgba(255,255,255,0.065); box-shadow: inset 0 0 0 1px var(--line-2); }
.cal-day.empty{ background: transparent; border: none; }
.slot{
  background: #0f1319; color: var(--text);
  border: 1px solid var(--line-2);
}
.slot:hover{ background: #141922; }
.slot.active{
  background: linear-gradient(180deg, #1a2130, #161d29);
  box-shadow: 0 10px 24px var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.slot.disabled{ color:#6c737e; background:#0c0f14; }

/* 11) Toasts */
.toast{
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px var(--shadow);
}

/* 12) Gallery (classy grayscale with color-on-hover option) */
.gallery img{
  filter: grayscale(100%) contrast(1.05);
  transition: filter .3s ease, transform .3s ease;
}
.gallery figure:hover img{
  filter: grayscale(0%) contrast(1.05);
  transform: translateY(-2px);
}

/* 13) Lines, dividers, chips */
hr{ border-color: var(--line); }
.category-chip{
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
  border: 1px solid var(--line);
}

/* 14) Booking suite layout polishing for darker theme */
.booking-suite{ gap: 22px; }
.suite-left{ top: 88px; }

/* 15) Accessibility tuning */
a{ color: #cfd5de; }
a:hover{ color: #e7ebf2; }

/* =========================================================
   Readability Fix — Services Section Text Contrast
   ========================================================= */

/* Make all service text slightly darker on its lighter panels */
#services,
#services .panel,
#services .accordion summary,
#services .accordion .service-list li,
#services .accordion .service-list li strong,
#services .accordion .service-list li span,
#services .price {
  color: #1c1f26 !important;     /* deep graphite text */
}

/* The muted descriptions should still contrast */
#services .muted {
  color: #2b303a !important;
}

/* Buttons stay bright for readability on darker text panels */
#services .btn,
#services .btn-ghost,
#services .btn-outline {
  color: #f1f3f7 !important;
  border-color: rgba(255,255,255,0.1);
}

/* Preserve the "Added ✓" visual */
#services .btn.added {
  background: linear-gradient(180deg, #3b424d, #2a3039) !important;
  color: #ffffff !important;
}

/* ===============================================
   Readability boost — Services section only
   =============================================== */
#services,
#services .container,
#services .accordion,
#services .service-list,
#services .service-list li,
#services .accordion summary,
#services .accordion summary span,
#services .service-list li h4,
#services .service-list li p,
#services .price {
  color: #111317 !important;          /* deep graphite text */
}

/* Slightly darker headings for scannability */
#services h2.section-title,
#services .service-list li h4 {
  color: #0d0f13 !important;
  font-weight: 700;
  letter-spacing: .1px;
}

/* If your summaries look washed out, give them a touch more contrast */
#services .accordion summary{
  background: rgba(0,0,0,0.035);
  border-color: rgba(0,0,0,0.08);
}

/* Descriptions still darker than before but subordinate to titles */
#services .muted{
  color: #2a2f37 !important;
}

/* Keep buttons readable against the darker text context */
#services .btn,
#services .btn-ghost,
#services .btn-outline{
  color: #ffffff !important;
  border-color: rgba(0,0,0,0.18);
}

/* Preserve the “Added ✓” state */
#services .btn.added{
  background: linear-gradient(180deg, #3b424d, #2a3039) !important;
  color: #fff !important;
}

/* =========================================================
   FIX — Make Services Section Text Dark & Readable
   ========================================================= */
#services .accordion summary,
#services .accordion summary span,
#services .accordion summary strong,
#services .accordion summary::marker,
#services .accordion summary::after {
  color: #1b1d23 !important;        /* deep graphite text */
  font-weight: 600;
}

#services .accordion summary {
  background: rgba(255,255,255,0.8) !important;  /* brighter background for contrast */
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Opened summary styling (when clicked) */
#services .accordion summary[aria-expanded="true"],
#services details[open] summary {
  background: rgba(255,255,255,0.9) !important;
  color: #0d0f13 !important;
}

/* Service list items inside accordion */
#services .accordion .service-list li,
#services .accordion .service-list li strong,
#services .accordion .service-list li span,
#services .accordion .service-list li .price {
  color: #111317 !important;
}

/* Keep muted text darker too */
#services .muted {
  color: #30343c !important;
}

/* Ensure Add buttons stay legible */
#services .btn,
#services .btn-ghost,
#services .btn-outline {
  color: #fff !important;
  background: linear-gradient(180deg, #383e47, #2c3139);
  border: 1px solid rgba(0,0,0,0.2);
}

#services .btn.added {
  background: linear-gradient(180deg, #4b525d, #373d47) !important;
}

/* =========================================================
   Readability boost — Booking calendar & timeslots
   ========================================================= */

/* Month title + helper label */
#booking #chosen-date-label { color:#0d0f13 !important; }

/* Day-of-week chips (Sun…Sat) */
#booking .calendar .cal-dow button{
  background:#f3f4f6 !important;
  color:#0d0f13 !important;
  border:1px solid rgba(0,0,0,0.12) !important;
}

/* Day cells */
#booking .calendar .cal-day{
  background: rgba(255,255,255,0.88) !important;
  border:1px solid rgba(0,0,0,0.08) !important;
}
#booking .calendar .cal-day .num{
  color:#111317 !important;       /* darker numbers */
  font-weight:600;
}
#booking .calendar .cal-day .dot{
  background:#222831 !important;  /* higher-contrast availability dot */
  opacity:.65;
}

/* Today & Selected states */
#booking .calendar .cal-day.today{
  outline:2px dashed rgba(0,0,0,0.35) !important;
}
#booking .calendar .cal-day.selected{
  background:#ffffff !important;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.18) !important;
}
#booking .calendar .cal-day.empty{
  background:transparent !important;
  border:none !important;
}

/* Timeslot buttons */
#booking .calendar .slot{
  background:#10141b !important;
  color:#f4f6f9 !important;
  border:1px solid rgba(255,255,255,0.16) !important;
}
#booking .calendar .slot:hover{ background:#151b25 !important; }
#booking .calendar .slot.active{
  background:linear-gradient(180deg,#1a2130,#161d29) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.45),
             inset 0 0 0 1px rgba(255,255,255,.06) !important;
}
#booking .calendar .slot.disabled{
  background:#0c0f14 !important;
  color:#707783 !important;
}

/* Availability pills under the slots */
#booking .avail-list .b{
  background:#f1f3f7 !important;
  color:#0d0f13 !important;
  border:1px solid rgba(0,0,0,0.12) !important;
}
#booking .avail-list .b.unavail{
  background:#e8ebf1 !important;
  color:#79808b !important;
  text-decoration: line-through;
}

/* ===============================================
   Services accordion headings: strong contrast
   =============================================== */
#services details > summary,
#services details > summary * {
  color: #0e1116 !important;   /* deep graphite */
  opacity: 1 !important;       /* defeat any inherited fades */
  filter: none !important;     /* no grayscale/opacity filters */
  text-shadow: none !important;
}

#services details > summary {
  font-weight: 700;
  letter-spacing: .2px;
  background: rgba(255,255,255,0.92) !important;  /* brighter card */
  border: 1px solid rgba(0,0,0,0.12) !important;
}

/* When a section is open, keep it crisp too */
#services details[open] > summary {
  background: #ffffff !important;
  color: #0a0c10 !important;
}

/* Chevron/arrow inside the summary (if you use one) */
#services details > summary .chev,
#services details > summary svg,
#services details > summary i {
  color: #0e1116 !important;
  stroke: #0e1116 !important;
  border-color: #0e1116 !important;
}
#services details > summary { opacity: 1 !important; }

/* ===== Services headers readability (force above overlays) ===== */

/* 1) Make the services panel content sit ABOVE its glass ::before layer */
#services .panel { position: relative !important; opacity: 1 !important; }
#services .panel::before { z-index: 0 !important; pointer-events: none; }
#services .panel > * { position: relative; z-index: 1; }

/* 2) Kill any blending/filters/opacities on the accordion headers */
#services details > summary {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  background: #f7f8fa !important;            /* solid, not translucent */
  border: 1px solid rgba(0,0,0,0.12) !important;
}

/* 3) Make the header text truly dark and crisp */
#services details > summary,
#services details > summary * {
  color: #0b0e13 !important;                  /* deep graphite */
  text-shadow: none !important;
  -webkit-text-stroke: 0 transparent;         /* ensure no faint stroke */
}

/* 4) When open, keep it just as strong */
#services details[open] > summary {
  background: #ffffff !important;
  color: #0a0c10 !important;
}

/* 5) If your chevron/arrow is an SVG or icon, force it dark too */
#services details > summary svg,
#services details > summary i,
#services details > summary .chev {
  color: #0b0e13 !important;
  stroke: #0b0e13 !important;
  border-color: #0b0e13 !important;
}

/* ===============================================
   FINAL FIX — Accordion category headers contrast
   =============================================== */
/* Services category headers — solid card + dark text */
#services .accordion summary{
  position: relative;           /* lets us raise it above overlays */
  z-index: 2;
  background: #ffffff;          /* solid (no alpha) so text has real contrast */
  color: #0b0e13;               /* deep graphite */
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  opacity: 1;                   /* defeat inherited fades */
  filter: none;
  mix-blend-mode: normal;
}

/* Ensure any inner spans/icons inherit the dark color and aren't faded */
#services .accordion summary *{
  color:#0b0e13 !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
}

#services .accordion summary::before,
#services .accordion summary::after{
  background:none !important;
  box-shadow:none !important;
  opacity:0 !important;
}

/* If your panel uses a glass ::before, keep it behind the summary/text */
#services .panel{ position:relative; }
#services .panel::before{ z-index:0 !important; pointer-events:none; }

#services .accordion summary:hover {
  background: rgba(255,255,255,0.97) !important;
}

#services .accordion summary .chev,
#services .accordion summary svg,
#services .accordion summary i {
  color: #0b0e13 !important;
  stroke: #0b0e13 !important;
}

#services details[open] > summary {
  background: #ffffff !important;
  color: #0a0c10 !important;
  font-weight: 800;
}

/* === Fix: Booking left-column accordion headers (Haircuts/Fades/…) === */
#booking .accordion summary{
  position: relative;
  z-index: 2;
  background: #ffffff !important;            /* solid so text isn’t washed out */
  color: #0b0e13 !important;                 /* deep graphite */
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}
#booking .accordion summary *{
  color: #0b0e13 !important;                 /* force inner spans/icons dark */
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
#booking details[open] > summary{
  background: #ffffff !important;
  color: #0a0c10 !important;
}
#booking .accordion .service-list li,
#booking .accordion .service-list li strong,
#booking .accordion .service-list li span,
#booking .accordion .service-list li .price{
  color: #111317 !important;                 /* keep the items readable too */
}

/* =========================================================
   CONTACT CARD READABILITY FIX
   ========================================================= */

#contact,
#contact .contact-card {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(6px);
  color: #0b0e13 !important;
}

#contact .contact-card h3,
#contact .contact-card h4,
#contact .contact-card strong {
  color: #0b0e13 !important;                  /* headings and bold text */
  font-weight: 700;
}

#contact .contact-card p,
#contact .contact-card li,
#contact .contact-card a {
  color: #1a1d23 !important;                  /* standard paragraph text */
}

#contact .contact-card a:hover {
  color: #2e323a !important;
}

#contact .contact-card button,
#contact .contact-card .btn {
  background: linear-gradient(180deg, #383e47, #2c3139);
  color: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#contact .contact-card button:hover,
#contact .contact-card .btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* =========================
   Contact section – keep stripes visible
   ========================= */

/* 1) Let the page background show through the section */
section#contact,
#contact.section,
#contact.section-alt {
  background: transparent !important;   /* remove the big light wash */
}

/* 2) Keep the two inner blocks as cards (readable on dark stripes) */
#contact .contact-grid { align-items: stretch; }

#contact .contact-card,
#contact .map-card,
#contact .map {               /* whichever wrapper you have around the iframe */
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  overflow: hidden;           /* rounds the map corners too */
}

/* 3) Map sizing */
#contact .map iframe {
  display: block;
  width: 100%;
  height: 360px;              /* adjust if you like */
  border: 0;
  border-radius: 0;           /* corners handled by wrapper */
}

/* 4) Text colors inside the card */
#contact .contact-card,
#contact .contact-card * {
  color: #0b0e13 !important;
}
#contact .contact-card h3,
#contact .contact-card h4 { font-weight: 700; }
#contact .contact-card .btn {
  background: linear-gradient(180deg, #383e47, #2c3139);
  color: #fff !important;
  border: 1px solid rgba(0,0,0,.2);
}

/* ===============================================
   FINAL POLISH — Headings Readability Enhancement
   =============================================== */

/* Global heading color: brighter graphite-white */
h1, h2, h3, h4, h5, h6,
.section-title,
#services h2.section-title,
#booking h2.section-title,
#contact h2.section-title {
  color: #f4f6fa !important;           /* bright, easy to read */
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);  /* subtle lift from dark background */
  letter-spacing: 0.2px;
}

/* Section subtitles or smaller muted headings */
.section .muted,
h3.muted, h4.muted {
  color: #d0d4dc !important;
}

/* Hero/intro headline (if used over dark area) */
.hero__text h1,
.hero__text h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Panel or card headers (inside white cards) */
.panel h2, .panel h3, .panel h4,
.contact-card h3, .contact-card h4 {
  color: #0b0e13 !important;           /* stay dark on light panels */
  text-shadow: none !important;
}

/* Booking & Services headings specifically */
#booking h2, #services h2 {
  color: #f5f7fb !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  font-weight: 800;
}

/* Navbar brand */
.nav .brand__name {
  color: #f4f6fa !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Footer headers if any */
footer h3, footer h4 {
  color: #e6e8ec !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Force dark variables even if another sheet redefines :root */
body.theme-dark{
  --bg: #0f1115; --bg-alt: #13161b; --panel:#161a21; --panel-2:#1b2028; --glass: rgba(255,255,255,.04);
  --text:#e7e9ee; --text-2:#c6c9d0; --muted:#a0a5ae;
  --line:rgba(255,255,255,.08); --line-2:rgba(255,255,255,.14);
  --brand-500:#4b5563; --brand-600:#374151; --brand-700:#1f2937;
  --underline: linear-gradient(90deg, transparent, #aeb4bf, transparent);
}
/* Use body-scoped variables instead of relying only on :root */
body.theme-dark{
  background:
    radial-gradient(1200px 800px at 50% -100px, rgba(255,255,255,.06), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 14px, rgba(255,255,255,.02) 14px 28px),
    var(--bg);
  color: var(--text);
  background-attachment: fixed,fixed,fixed;
}
