/* Zone Z — clean & minimal barber shop styling */
:root {
  --bg: #131009;          /* near-black warm */
  --bg-alt: #1a160d;      /* slightly lifted dark for alt sections */
  --card: #201a10;        /* card surface */
  --ink: #f1ebdf;         /* warm off-white text */
  --ink-soft: #a99e88;    /* muted warm */
  --line: #33291b;        /* dark warm hairline */
  --accent: #cba24e;      /* gold */
  --accent-ink: #e3c67f;  /* lighter gold for text on dark */
  --radius: 14px;
  --maxw: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: .6rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 2px; font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .07em;
  cursor: pointer; border: 1.5px solid transparent; transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #14100b; }
.btn-primary:hover { background: #e6cb85; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--accent); color: #14100b; border-color: var(--accent); }
.btn-lg { padding: 17px 36px; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,14,8,.88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 16px; }
.header-inner > .brand-logo { justify-self: start; }
.header-center { display: flex; align-items: center; gap: 22px; justify-self: center; }
.header-inner > .brand { justify-self: end; }
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 48px; width: 48px; display: block; border-radius: 50%; }
.brand { font-weight: 800; letter-spacing: .12em; font-size: 1.25rem; }
.brand span { color: var(--accent); margin-left: .12em; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: #fff;
  text-align: center;
  background-color: #14100c;
  background-image:
    linear-gradient(180deg, rgba(13,10,7,.62) 0%, rgba(13,10,7,.38) 40%, rgba(13,10,7,.75) 100%),
    url('/img/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 0 14px; }
.hero-inner { max-width: 720px; position: relative; margin: 0 auto; }
.hero-info { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(203,162,78,.3); }
.hero-info .qi-icon { width: 25px; height: 25px; }
.hero-info .qi-value { font-size: 1.22rem; }
.hero-info .qi-value a { color: #f1ebdf; }
.hero .eyebrow { color: #d9ad74; }
.hero h1 { margin-bottom: .3em; color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto 1rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.hero .btn-primary { background: var(--accent); color: #14100c; }
.hero .btn-primary:hover { background: #fff; color: #14100c; }
.hero .btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: #14100c; border-color: #fff; }

/* Hero title "shave-in" reveal — a gold razor-line sweeps each line into view.
   Runs when the splash clears (body.ready is set by the preloader script). */
.rline { display: block; width: fit-content; margin: 0 auto; position: relative; }
.rline .rtxt { display: inline-block; }
.rline::after {
  content: ""; position: absolute; top: -8%; bottom: -8%; left: 0; width: 3px;
  background: var(--accent); box-shadow: 0 0 14px 2px rgba(203,162,78,.75);
  opacity: 0; pointer-events: none;
}
body.ready .rline .rtxt { animation: shaveIn .85s cubic-bezier(.45,0,.15,1) var(--d, 0s) both; }
body.ready .rline::after { animation: bladeSwipe .85s cubic-bezier(.45,0,.15,1) var(--d, 0s) both; }
@keyframes shaveIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0% 0 0); } }
@keyframes bladeSwipe {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rline .rtxt { clip-path: none !important; animation: none !important; }
  .rline::after { display: none !important; }
}

/* Sections */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 44px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 40px; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .18s, transform .18s;
}
.section-alt .service-card { background: #241d12; }
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.service-body { padding: 18px 20px 20px; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-card h3 { font-size: 1.02rem; margin: 0; text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; }
.service-card .price { font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.service-card .dur { margin: 6px 0 0; color: var(--ink-soft); font-size: .9rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.gallery-item { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.ph {
  background: repeating-linear-gradient(45deg, #1c1710, #1c1710 12px, #221c12 12px, #221c12 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: .9rem; letter-spacing: .05em;
}

/* About */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Location */
.location-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.addr { margin-top: 4px; }
.hours { border-collapse: collapse; margin: 18px 0; width: 100%; max-width: 380px; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--ink-soft); }
.location-map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.location-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.socials { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* CTA band */
.cta-band { background: #0e0b06; color: var(--ink); padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band h2 { color: var(--ink); }
.cta-band .muted { color: var(--ink-soft); }
.cta-band .btn-primary { background: var(--accent); color: #14100b; }
.cta-band .btn-primary:hover { background: #fff; color: #14100b; }

/* Quick info band — address / hours / phone, book centered below */
.hero-info { text-align: center; }
.qi-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.qi-item { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 22px; }
.qi-item + .qi-item::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: var(--line); }
.qi-icon { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; display: block; }
.qi-value { color: var(--ink); font-size: 1.05rem; line-height: 1.4; }
.qi-value a { color: var(--ink); }
.qi-value a:hover { color: var(--accent-ink); }
@media (max-width: 700px) {
  /* Fit the whole hero on one mobile screen */
  .hero-main { padding: 16px 0 120px; }
  .hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.5rem); }
  .hero-sub { font-size: 1rem; margin-bottom: .7rem; max-width: 440px; }
  .hero-cta { margin-top: 14px; gap: 10px; }
  .hero .btn { padding: 11px 18px; font-size: .76rem; }
  .hero-info { margin-top: 16px; padding-top: 14px; }
  .qi-grid { flex-direction: column; gap: 8px; }
  .qi-item { gap: 9px; padding: 4px 8px; }
  .qi-item::before { display: none; }
  .qi-phone { display: none; }
  .qi-icon, .hero-info .qi-icon { width: 20px; height: 20px; }
  .hero-info .qi-value { font-size: 1rem; line-height: 1.35; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,16,12,.55); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }

/* Booking widget internals */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #221c13;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: #221c13;
  cursor: pointer; text-align: center; font-weight: 600; font-size: .9rem; transition: all .15s;
}
.slot:hover { border-color: var(--accent); }
.slot.selected { background: var(--accent); color: #14100b; border-color: var(--accent); }
.booking-msg { padding: 12px 14px; border-radius: 10px; font-size: .92rem; margin-bottom: 14px; }
.booking-msg.error { background: #fdecec; color: #a12a2a; }
.booking-msg.success { background: #eaf7ee; color: #1f7a3d; }
.booking-summary { background: var(--bg-alt); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; font-size: .92rem; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

/* Responsive */
/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
.why-item { text-align: center; }
.why-icon { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 14px; display: block; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* Before / After slider */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 22px; }
.ba-grid-2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.ba-slider {
  position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #14110b;
  user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.ba-pane { position: absolute; inset: 0; }
.ba-pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-after { background: repeating-linear-gradient(45deg, #241d12, #241d12 16px, #2b2216 16px, #2b2216 32px); }
.ba-before { background: repeating-linear-gradient(45deg, #17130b, #17130b 16px, #1d1810 16px, #1d1810 32px);
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-tag { position: absolute; bottom: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 4px; background: rgba(13,10,7,.72); color: #f1ebdf; }
.ba-before .ba-tag { left: 12px; }
.ba-after .ba-tag { right: 12px; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.ba-handle {
  position: absolute; top: 50%; left: var(--pos, 50%); width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--accent); color: #14100b; border: 3px solid #fff;
  display: grid; place-items: center; cursor: ew-resize; padding: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
.ba-handle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 22px; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 10px; font-size: 1.05rem; }
.review-card p { font-size: .98rem; margin-bottom: 0; }
.review-by { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; font-size: .9rem; }

/* FAQ */
.container.narrow { max-width: 760px; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 40px 18px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--ink-soft); }

/* Responsive */
@media (max-width: 780px) {
  .nav { display: none; }
  .about-inner, .location-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-sub { font-size: 1.05rem; }
  .header-inner { height: 62px; }
  .brand-logo img { height: 38px; width: 38px; }
  .brand { font-size: 1rem; }
  .btn-book { padding: 11px 16px; font-size: .72rem; letter-spacing: .05em; }
}
