/* ===== The Keza Barber Shop ===== */
:root {
  --bg: #0b0b0b;
  --bg-alt: #121212;
  --card: #161616;
  --line: #2a2a2a;
  --text: #ecebe6;
  --muted: #a6a39a;
  --gold: #d9a93a;
  --gold-light: #f2cf74;
  --gold-dark: #a97c1c;
  --green: #3ecf7a;
  --red: #e5584f;
  --radius: 14px;
  --font-display: "Bebas Neue", "Impact", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, 92%); margin-inline: auto; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}
.brand {
  display: flex; align-items: baseline; gap: 6px; text-decoration: none;
  font-family: var(--font-display); letter-spacing: 1px; line-height: 1;
}
.brand-small { font-size: 0.95rem; color: var(--muted); }
.brand-main { font-size: 2rem; color: var(--gold); }
.brand-sub { font-size: 0.95rem; letter-spacing: 3px; color: var(--text); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--text);
  position: relative; padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav a:not(.btn):hover::after,
.nav a.active::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.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; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #111;
}
.btn-outline { border-color: var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: var(--gold); color: #111; }

/* ===== Hero ===== */
.hero {
  padding: 70px 0 60px;
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(217, 169, 58, 0.14), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(217, 169, 58, 0.07), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center;
}
.eyebrow {
  margin: 0 0 10px; color: var(--gold); text-transform: uppercase;
  letter-spacing: 3px; font-size: 0.8rem; font-weight: 600;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 1px; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 5.6rem); margin-bottom: 20px; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 18px; }
h3 { font-size: 1.6rem; margin-bottom: 8px; color: var(--gold-light); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-logo { display: flex; justify-content: center; }
.logo-box {
  width: min(440px, 100%);
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px rgba(217, 169, 58, 0.35);
  background: #000;
}

/* Open/closed status pill */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 500;
}
.status-lg { margin-top: 18px; font-size: 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status.open .dot { background: var(--green); box-shadow: 0 0 0 0 rgba(62, 207, 122, 0.6); animation: pulse 2s infinite; }
.status.closed .dot { background: var(--red); }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(62, 207, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 122, 0); }
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 38px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-grid p { color: var(--muted); max-width: 58ch; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.features .icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 1.3rem; color: var(--gold); border-radius: 12px;
  background: rgba(217, 169, 58, 0.1); border: 1px solid rgba(217, 169, 58, 0.3);
}
.features strong { display: block; }
.features span:not(.icon) { color: var(--muted); font-size: 0.92rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-dark); }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Images with graceful placeholder when file is missing */
.img-box { position: relative; overflow: hidden; background: #181818; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.img-box.missing { display: grid; place-items: center; min-height: 260px; }
.img-box.missing img { display: none; }
.img-box.missing::after {
  content: attr(data-label); color: var(--muted); font-size: 0.9rem; padding: 20px; text-align: center;
}

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.g-item {
  position: relative; padding: 0; border: 1px solid var(--line); cursor: zoom-in;
  background: var(--card); border-radius: var(--radius); overflow: hidden; text-align: left;
  color: inherit; font: inherit;
}
.g-item .img-box { aspect-ratio: 4 / 3.4; transition: transform .5s ease; }
.g-item:hover .img-box { transform: scale(1.04); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-weight: 600;
}

/* Hours */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hours-table {
  width: 100%; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.hours-table th, .hours-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 600; }
.hours-table td { color: var(--muted); text-align: right; }
.hours-table tr.today { background: rgba(217, 169, 58, 0.12); }
.hours-table tr.today th, .hours-table tr.today td { color: var(--gold-light); }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; }
.contact-item { margin-bottom: 22px; }
.contact-item .label {
  display: block; text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.75rem; color: var(--gold); font-weight: 600; margin-bottom: 4px;
}
.contact-item p { margin: 0; font-size: 1.1rem; }
.contact-item a { text-decoration: none; color: var(--gold-light); }
.contact-item a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 58px 0 22px;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg) 75%);
  color: var(--muted);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr));
  gap: 64px;
  padding-bottom: 46px;
}
.footer-brand-mark {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 8px;
  text-decoration: none;
  line-height: 1;
}
.footer-mark-the { font-size: 0.85rem; color: var(--muted); }
.footer-mark-name {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 2px;
}
.footer-mark-shop {
  grid-column: 2;
  color: var(--text);
  font-size: 0.68rem;
  letter-spacing: 4px;
}
.footer-brand p { max-width: 300px; margin: 18px 0 0; }
.footer-heading {
  margin: 4px 0 18px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.footer-nav,
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a,
.footer-contact a { margin-top: 8px; }
.footer-contact p { margin: 0 0 8px; }
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-credit { text-align: right; }
.small { font-size: 0.85rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.92); padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 10px; }
.lb-close {
  position: absolute; top: 14px; right: 20px; background: none; border: 0;
  color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer;
}

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .hours-grid, .visit-grid, .gallery { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .logo-box { width: min(300px, 70%); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 4%; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 14px 0 8px; text-align: center; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hours-table th, .hours-table td { padding: 13px 16px; }
  .site-footer { padding-top: 42px; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding-bottom: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-credit { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
