/* ============================================
   TOKENS
   ============================================ */
:root {
  --ink: #1b1b1b;
  --ink-soft: #262422;
  --oxblood: #7a2e2e;
  --oxblood-bright: #9c3a3a;
  --brass: #b8935b;
  --brass-bright: #cca86e;
  --slate: #2c4a5e;
  --bone: #ede7dd;
  --bone-dim: #cfc7b8;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, sans-serif;

  --stripe-h: 10px;
  --radius: 2px;
  --max-w: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ============================================
   SIGNATURE: barber-pole stripe divider
   A slow diagonal-stripe band used as the shop's
   recurring section break — the one bold element.
   ============================================ */
.pole-divider {
  height: var(--stripe-h);
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--oxblood) 0px,
    var(--oxblood) 18px,
    var(--bone) 18px,
    var(--bone) 36px,
    var(--slate) 36px,
    var(--slate) 54px,
    var(--bone) 54px,
    var(--bone) 72px
  );
  background-size: 200% 200%;
  animation: pole-scroll 14s linear infinite;
}
@keyframes pole-scroll {
  from { background-position: 0 0; }
  to { background-position: 200px 0; }
}

/* ============================================
   NAV (used standalone on admin.html / inner pages)
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--bone);
  border-bottom: 1px solid rgba(237, 231, 221, 0.1);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--bone);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--bone-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--brass-bright); }
.nav-cta {
  background: var(--oxblood);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--oxblood-bright); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--bone);
    font-size: 1.6rem;
    cursor: pointer;
  }
}

/* ============================================
   HERO — full-bleed photo, overlay nav, brush headline
   ============================================ */
.hero-photo {
  position: relative;
  min-height: 100vh;
  background: url("../images/gallery-1.jpg") center 40% / cover no-repeat;
  display: flex;
  flex-direction: column;
  color: var(--white);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,14,13,0.75) 0%, rgba(20,14,13,0.45) 40%, rgba(20,14,13,0.55) 70%, rgba(15,10,9,0.92) 100%);
  z-index: 1;
}

.hero-nav { position: relative; z-index: 3; }
.hero-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.hero-brand {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--white);
  text-decoration: none;
}
.hero-nav .nav-links a { color: rgba(237,231,221,0.85); }
.hero-nav .nav-links a:hover { color: var(--brass-bright); }
.hero-nav .nav-toggle { color: var(--white); }

.hero-center {
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.hero-script {
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  line-height: 1.05;
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--white);
  text-shadow: 0 6px 30px rgba(0,0,0,0.4);
}
.hero-script span {
  display: block;
  font-size: 0.62em;
  color: var(--brass-bright);
  margin-top: 6px;
}
.hero-center .hero-ctas {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-infobar {
  position: relative;
  z-index: 2;
  background: rgba(15,10,9,0.92);
  border-top: 1px solid rgba(237,231,221,0.1);
}
.hero-infobar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 26px 24px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.info-icon {
  font-size: 1.3rem;
  color: var(--brass-bright);
  flex-shrink: 0;
}
.info-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
}
.info-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--bone-dim);
  margin-top: 2px;
}
.tel-link { color: inherit; text-decoration: none; }
.tel-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .hero-nav .nav-links { display: none; }
  .hero-infobar-inner { grid-template-columns: 1fr; gap: 16px; padding: 22px 24px; }
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--oxblood);
  color: var(--white);
}
.btn-primary:hover { background: var(--oxblood-bright); }
.btn-outline {
  background: transparent;
  border-color: var(--bone-dim);
  color: var(--bone);
}
.btn-outline:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.btn-dark {
  background: var(--ink);
  color: var(--bone);
}
.btn-dark:hover { background: var(--ink-soft); }

/* Hero pole graphic — a stylized rotating barber pole cylinder */
.hero-pole {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 999px;
  overflow: hidden;
  background: repeating-linear-gradient(
    115deg,
    var(--oxblood) 0px,
    var(--oxblood) 26px,
    var(--white) 26px,
    var(--white) 52px,
    var(--slate) 52px,
    var(--slate) 78px,
    var(--white) 78px,
    var(--white) 104px
  );
  background-size: 300% 300%;
  animation: pole-scroll 6s linear infinite;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), inset 0 0 0 10px var(--brass);
}

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-pole { max-width: 220px; margin: 0 auto; aspect-ratio: 1/1.2; }
  .hero { padding: 70px 0 60px; text-align: left; }
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
section { padding: 84px 0; }
.section-head {
  margin-bottom: 48px;
  max-width: 60ch;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-top: 10px;
}
.section-head p {
  margin-top: 14px;
  color: #4a4640;
  font-size: 1.02rem;
}
.section-dark {
  background: var(--ink);
  color: var(--bone);
}
.section-dark .section-head p { color: var(--bone-dim); }

.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head-row > div { max-width: 60ch; }
.section-head-row .btn { flex-shrink: 0; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(27,27,27,0.12);
  border: 1px solid rgba(27,27,27,0.12);
}
.service-card {
  background: var(--bone);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card .price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--oxblood);
}
.service-card h3 { font-size: 1.15rem; }
.service-card p { color: #57534c; font-size: 0.92rem; margin: 0; flex-grow: 1; }
.service-card .btn { margin-top: 8px; align-self: flex-start; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews-summary {
  color: var(--brass);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.review-card {
  background: var(--white);
  border: 1px solid rgba(27,27,27,0.1);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars { color: var(--brass); letter-spacing: 2px; }
.review-text { color: #3a3733; font-size: 0.96rem; margin: 0; flex-grow: 1; }
.review-author { font-family: var(--font-display); color: var(--oxblood); font-size: 0.92rem; }
.reviews-cta { margin-top: 34px; text-align: center; }

/* ============================================
   BOOKING (Fresha embed)
   ============================================ */
/* ============================================
   GALLERY / SLIDESHOW
   ============================================ */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16/8;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-soft);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 22px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--white);
  font-size: 0.92rem;
}
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: var(--white);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}
.slide-nav:hover { background: rgba(0,0,0,0.65); }
.slide-prev { left: 14px; }
.slide-next { right: 14px; }
.slide-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.slide-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--bone-dim);
  cursor: pointer;
}
.slide-dot.active { background: var(--oxblood); }

@media (max-width: 640px) {
  .slideshow { aspect-ratio: 4/5; }
}

/* ============================================
   PRODUCTS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--white);
  border: 1px solid rgba(27,27,27,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .product-img {
  aspect-ratio: 1/1;
  background: var(--bone-dim);
  overflow: hidden;
}
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.product-body h3 { font-size: 1.02rem; }
.product-body .price { color: var(--oxblood); font-weight: 600; }
.product-body p.desc { color: #57534c; font-size: 0.88rem; margin: 0; flex-grow: 1; }
.product-body .btn { margin-top: 10px; text-align: center; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--ink);
  color: var(--bone-dim);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  color: var(--bone);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid p, .footer-grid a {
  font-size: 0.92rem;
  color: var(--bone-dim);
  text-decoration: none;
  line-height: 1.8;
}
.footer-grid a:hover { color: var(--brass-bright); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(237,231,221,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #877f74;
}
.footer-bottom a { color: #877f74; }
.footer-bottom a:hover { color: var(--brass-bright); }

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

/* ============================================
   ADMIN (shared with admin.html)
   ============================================ */
.admin-body {
  background: var(--bone);
  min-height: 100vh;
}
.admin-topbar {
  background: var(--ink);
  color: var(--bone);
  padding: 16px 0;
}
.admin-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.admin-topbar .brand { font-family: var(--font-display); font-size: 1.15rem; }
.admin-main { padding: 40px 0 80px; }
.admin-panel {
  background: var(--white);
  border: 1px solid rgba(27,27,27,0.1);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 28px;
}
.admin-panel h2 { font-size: 1.2rem; margin-bottom: 6px; }
.admin-panel .hint { color: #6b6660; font-size: 0.86rem; margin-bottom: 18px; }
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(27,27,27,0.12);
}
.admin-tab {
  background: none;
  border: none;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: #6b6660;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.admin-tab.active { color: var(--oxblood); border-color: var(--oxblood); }
.admin-view { display: none; }
.admin-view.active { display: block; }

.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(27,27,27,0.18);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.94rem;
}
.form-row textarea { resize: vertical; min-height: 70px; }

.item-list { display: flex; flex-direction: column; gap: 10px; }
.item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(27,27,27,0.1);
  border-radius: var(--radius);
}
.item-row img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; background: var(--bone-dim); }
.item-row .item-info { flex-grow: 1; min-width: 0; }
.item-row .item-info strong { display: block; font-size: 0.94rem; }
.item-row .item-info span { display: block; font-size: 0.82rem; color: #6b6660; }
.item-row .item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn {
  background: none;
  border: 1px solid rgba(27,27,27,0.18);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
}
.icon-btn.danger { color: var(--oxblood); border-color: rgba(122,46,46,0.4); }
.icon-btn:hover { background: var(--bone); }

.login-shell {
  max-width: 380px;
  margin: 90px auto;
  padding: 34px;
  background: var(--white);
  border: 1px solid rgba(27,27,27,0.1);
  border-radius: var(--radius);
}
.login-shell h1 { font-size: 1.5rem; margin-bottom: 4px; }
.login-shell p.hint { color: #6b6660; font-size: 0.88rem; margin-bottom: 22px; }
.status-msg { font-size: 0.85rem; margin-top: 10px; }
.status-msg.error { color: var(--oxblood); }
.status-msg.success { color: #2c6e3f; }

.badge-config {
  display: inline-block;
  background: #fff4e0;
  border: 1px solid #e8c48a;
  color: #7a5a1f;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
