/* ===== 1. DESIGN SETTINGS ===== */
:root {
  --black: #080706;
  --leather: #24160d;
  --cream: #f5ead6;
  --muted: #bcae97;
  --gold: #dda63a;
  --gold-hover: #f0c469;
  --line: #4a3722;
  --display: "Rye", "Rockwell", Georgia, serif;   /* woodblock western */
  --script: "Yellowtail", "Brush Script MT", cursive;   /* rockabilly script */
  --body: "Zilla Slab", "Rockwell", Georgia, serif;
  --neon: #ff5a3c;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== 2. BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.25rem; background: var(--black); }
body { background: var(--black); color: var(--cream); font: 400 1.15rem/1.55 var(--body); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.9rem); }
h2 { font-size: clamp(1.8rem, 3.9vw, 3.3rem); color: var(--gold); }
h3 { font-size: 1.6rem; }
.section { padding: clamp(4.5rem, 9vw, 8rem) var(--gutter); }
.skip-link { position: fixed; top: 0; left: 0; z-index: 100; padding: 0.75rem 1rem; background: var(--gold); color: var(--black); transform: translateY(-110%); }
.skip-link:focus { transform: none; }
.concept { padding: 0.4rem var(--gutter); background: var(--cream); color: var(--black); font-size: 0.85rem; text-align: center; white-space: nowrap; }

/* ===== 3. BUTTONS ===== */
.btn { display: inline-block; padding: 0.75rem 1.4rem; border: 2px solid transparent; border-radius: 4px; font-weight: 600; text-align: center; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--outline { border-color: var(--gold); background: transparent; color: inherit; }
.btn--outline:hover { background: var(--gold); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ===== 4. NAVIGATION ===== */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; margin-bottom: -4.25rem; padding: 0 var(--gutter); transition: background-color 0.3s; }
.nav--solid { background: var(--black); }
.logo { font-family: var(--display); font-size: 1.4rem; color: var(--gold); text-decoration: none; white-space: nowrap; }
.nav__links { display: none; gap: 2rem; }
.nav__links a { text-decoration: none; padding: 0.4rem 0; }
.nav__links a:hover { text-decoration: underline; }
.nav__cta { padding: 0.5rem 1rem; }

/* ===== 5. OPENING FILM ===== */
.hero { position: relative; display: flex; align-items: flex-end; min-height: calc(100vh - 2.2rem); min-height: calc(100svh - 2.2rem); padding: 7rem var(--gutter) clamp(5.5rem, 8vw, 6rem); overflow: hidden; background: #000; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; }
.hero--playing .hero__video { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgb(0 0 0 / 0.7), transparent 9rem), linear-gradient(to top, rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.6) 38%, transparent 72%); }
.hero__copy { position: relative; z-index: 1; max-width: 42rem; }
.hero__copy p { margin: 1rem 0 1.75rem; font-size: 1.2rem; }
.film-control { position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 1; padding: 0.6rem 0.9rem; border: 1px solid var(--muted); border-radius: 4px; background: rgb(0 0 0 / 0.7); color: inherit; font: inherit; font-size: 0.95rem; cursor: pointer; }
.film-control:hover { background: var(--leather); }

/* ===== 6. LOCATIONS ===== */
.shops { display: grid; margin-top: 3rem; border-bottom: 1px solid var(--line); }
.shop { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2.25rem 0; border-top: 1px solid var(--line); }
.shop p { color: var(--muted); }
.shop p a { display: inline-block; padding: 0.15rem 0; color: var(--cream); }
.shop .btn { margin-top: auto; }

/* ===== 7. BARBERS ===== */
.barbers { background: var(--leather); }
.barbers__note { max-width: 36rem; margin-top: 1rem; color: var(--muted); }
.tabs { display: flex; gap: 0.5rem; margin: 2rem calc(var(--gutter) * -1); padding: 0.5rem var(--gutter); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 0.65rem 1.3rem; border: 2px solid var(--line); border-radius: 4px; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.tab:hover { border-color: var(--gold); }
.tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--black); }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); gap: 2rem 1rem; }
.barber { animation: rise 0.45s var(--ease) both; }
.barber__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: #000; filter: sepia(0.18); }
.barber__photo--logo { object-fit: contain; filter: none; }
.barber h3 { margin-top: 0.8rem; font-size: 1.1rem; line-height: 1.2; }
.barber p { color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.barber .btn { margin-top: 0.7rem; padding: 0.45rem 1rem; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ===== BOOKING PANEL ===== */
.no-scroll { overflow: hidden; }
.compare { margin-bottom: 2.25rem; font: inherit; font-weight: 600; cursor: pointer; }
.booking { width: min(54rem, 100%); max-width: none; height: min(56rem, calc(100% - 3rem)); max-height: none; margin: auto; padding: 0; border: 2px solid var(--gold); border-radius: 6px; background: #fff; color: var(--cream); overflow: hidden; }
.booking[open] { display: flex; flex-direction: column; }
.booking::backdrop { background: rgb(0 0 0 / 0.8); }
.booking__head { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.1rem; background: var(--black); }
.booking__head h2 { flex: 1; min-width: 0; font-size: 1.15rem; }
.booking__direct { font-size: 0.92rem; white-space: nowrap; }
.booking__close { padding: 0.5rem 1rem; border: 0; border-radius: 4px; background: var(--gold); color: var(--black); font: inherit; font-weight: 600; cursor: pointer; }
.booking__close:hover { background: var(--gold-hover); }
.booking__body { position: relative; flex: 1; min-height: 0; }
.booking__body.is-loading::before { content: "Loading times\2026"; position: absolute; top: 2rem; left: 1.5rem; color: #333; }
.booking__frame { position: relative; display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 759px) {
  .booking { height: 100dvh; border: 0; border-radius: 0; }
  .booking__head { flex-wrap: wrap; gap: 0.25rem 0.75rem; }
  .booking__direct { order: 3; width: 100%; }
}
/* ===== 8. STORY ===== */
.story { position: relative; display: grid; align-items: end; min-height: 90vh; padding: clamp(4rem, 8vw, 7rem) var(--gutter); overflow: hidden; }
.story__image { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; object-fit: cover; object-position: 50% 42%; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(8 7 6 / 0.96), rgb(8 7 6 / 0.7) 50%, transparent); }
.story__text { position: relative; z-index: 1; max-width: 38rem; }
.story__text p { margin-top: 1.1rem; font-size: 1.15rem; }

/* ===== INSTAGRAM AND NOTICE ===== */
.notice { margin-bottom: 3rem; padding: 0.9rem 1.2rem; border: 1px dashed var(--gold); border-radius: 4px; }
.insta__intro { max-width: 34rem; margin-top: 1rem; color: var(--muted); }
.reels { margin: 2.5rem 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.reels li { border-bottom: 1px solid var(--line); }
.reels a { display: grid; gap: 0.25rem; padding: 1.4rem 0; color: var(--muted); text-decoration: none; }
.reels__title { font-family: var(--display); font-size: clamp(1.25rem, 2.5vw, 1.9rem); line-height: 1.2; color: var(--cream); transition: color 0.2s; }
.reels a:hover .reels__title { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; }
.insta .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
/* ===== 9. REVIEW AND FOOTER ===== */
.review { background: var(--gold); color: var(--black); }
.review blockquote { max-width: 60rem; margin: 0; }
.review blockquote p { font-family: var(--display); font-size: clamp(1.7rem, 4.2vw, 3.3rem); line-height: 1.15; text-wrap: balance; }
.review footer { margin-top: 1.25rem; font-weight: 500; }
.footer { display: grid; gap: 1.75rem; padding: 3.5rem var(--gutter) 7rem; background: #000; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.footer__note { color: var(--muted); font-size: 0.92rem; }

.callbar { position: fixed; inset: auto 0 0; z-index: 9; padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom)); background: var(--black); transform: translateY(100%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0.35s; }
.callbar--show { transform: none; visibility: visible; }
.callbar .btn { display: block; }

/* ===== SHOP, FAQ, FORMS, CHAIRS ===== */
.nav__links:has(+ .cart-button) { margin-left: 1.5rem; }
.cart-button { margin-left: auto; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 4px; background: rgb(0 0 0 / 0.5); color: inherit; font: inherit; cursor: pointer; }
.cart-button:hover { border-color: var(--gold); }
select, input, textarea { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #7d6546; border-radius: 4px; background: var(--black); color: var(--cream); font: inherit; color-scheme: dark; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.shop-section { background: var(--leather); }
.shop-section .notice { margin: 1.5rem 0; }
.shop-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.shop-bar label { display: grid; gap: 0.3rem; min-width: 12rem; }
.shop-status { min-height: 1.6rem; margin: 0.75rem 0; color: var(--gold); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 2.5rem 1.5rem; }
.product { display: flex; flex-direction: column; align-items: flex-start; }
.product__art { width: 100%; border-radius: 4px; background: #5b3a20; }
.product__art svg { display: block; width: 100%; max-height: 13rem; }
.product__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: 100%; margin-top: 0.9rem; }
.product__top h3 { font-size: 1.15rem; }
.product__price { font-weight: 600; }
.product__desc { color: var(--muted); }
.product__stock { margin: 0.3rem 0 0.9rem; }
.product .btn { margin-top: auto; }
.faq__list { max-width: 52rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.1rem 0; font-family: var(--display); font-size: 1.15rem; line-height: 1.35; cursor: pointer; }
.faq summary:hover { color: var(--gold); }
.faq details p { max-width: 42rem; padding: 0 0 1.4rem; color: var(--muted); }
.faq details a { color: var(--cream); }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.3rem; align-content: start; }
.form .btn { justify-self: start; }
.form__note { color: var(--muted); font-size: 0.95rem; }
.form__done, .cart__done { color: var(--gold); font-weight: 600; }
.cart { height: auto; max-height: calc(100% - 3rem); background: var(--leather); }
.cart__body { padding: 1.5rem; overflow-y: auto; }
.cart__items { margin: 0; padding: 0; list-style: none; }
.cart__row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.cart__row input { width: 4.5rem; }
.cart__sum { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-size: 1.15rem; }
.cart__error { color: #ffb59e; }
.nav--page { margin-bottom: 0; }
.page-top { padding-top: clamp(3rem, 6vw, 5rem); }
.page-title { color: var(--gold); }
.page-intro { max-width: 38rem; margin: 1.25rem 0 2rem; font-size: 1.2rem; }
.chair-shops { display: grid; gap: 2.5rem; }
.chair-shop { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding-top: 1.5rem; border-top: 2px solid var(--gold); }
.chair-shop h2 { font-size: 1.75rem; }
.chair-shop__count { font-size: 1.15rem; font-weight: 600; }
.chair-shop ul { width: 100%; margin: 0; padding: 0; list-style: none; }
.chair-shop li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.chair-shop li .btn { padding: 0.4rem 1rem; }
.chair-shop small { display: block; color: var(--muted); }
.request { background: var(--leather); }
.request__grid { display: grid; gap: 3rem; margin-top: 2rem; }
.direct h3 { margin-bottom: 0.75rem; }
.direct .btn { margin-top: 1rem; }
@media (max-width: 479px) { .nav { gap: 0.6rem; } .logo { font-size: 1.12rem; } .nav__cta { padding: 0.5rem 0.7rem; } .cart__row { grid-template-columns: 1fr auto; } }
@media (min-width: 760px) {
  .form { grid-template-columns: 1fr 1fr; }
  .form__wide { grid-column: 1 / -1; }
  .chair-shops { grid-template-columns: repeat(3, 1fr); }
  .request__grid { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 760px) and (max-width: 999px) { .nav__links { gap: 1.1rem; font-size: 0.95rem; } }
/* ===== ROCKABILLY WESTERN ===== */
/* Script with a neon glow, like the shop's own sign */
.neon { font-family: var(--script); color: #fff3ea; line-height: 1.2; text-shadow: 0 0 2px #fff, 0 0 10px var(--neon), 0 0 24px var(--neon), 0 0 46px #b3200f; }
.hero__copy .neon { margin: 1.1rem 0 0.6rem; font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.hero__copy .neon + p { margin-top: 0; }
/* Hot-rod pinstriping under section titles */
.section > h2::after, .section > .reveal > h2::after, .page-title::after, .story__text h2::after { content: ""; display: block; width: min(15rem, 70%); aspect-ratio: 360 / 44; margin-top: 0.7rem; background: url("../assets/img/pinstripe.svg") left center / contain no-repeat; }
.review footer { font-family: var(--script); font-size: 1.9rem; }
/* Dark wood planks */
.locations, .faq, .insta, .page-top { background: linear-gradient(90deg, rgb(0 0 0 / 0.35), transparent 18% 82%, rgb(0 0 0 / 0.35)), repeating-linear-gradient(180deg, #0b0704 0 3px, #2c1d12 3px 5px, #21150c 5px 62px, #1d120a 62px 112px, #24170d 112px 150px); }/* Bullet holes: added by js/holes.js, behind the words */
.has-holes { position: relative; isolation: isolate; overflow: hidden; }
.hole { position: absolute; z-index: -1; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); opacity: 0; pointer-events: none; transform: rotate(var(--turn)) scale(1.5); }
.hero .hole { z-index: 0; }
.hole--hit { opacity: 1; transform: rotate(var(--turn)); transition: opacity 0.04s linear var(--wait), transform 0.13s cubic-bezier(0.1, 0.9, 0.3, 1) var(--wait); }
@media (max-width: 759px) {
  /* Phones: two holes in the space above each title, clear of the words */
  .has-holes .hole { --size: 62px !important; left: 89% !important; top: 40px !important; }
  .has-holes .hole ~ .hole { --size: 42px !important; left: 73% !important; top: 34px !important; }
  .has-holes .hole ~ .hole ~ .hole { display: none; }
}
/* ===== ROTATING, SHINING LOGO (built by js/coin.js) ===== */
.coin { --coin: 2.6rem; display: block; width: var(--coin); height: var(--coin); perspective: calc(var(--coin) * 5); }
.coin__spin { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; animation: coin-spin 7s linear infinite; }
.coin__edge, .coin__face { position: absolute; inset: 0; width: 100%; height: 100%; }
.coin__edge { transform: translateZ(calc(var(--z) * var(--coin) * 0.07)); filter: brightness(0.42); }
.coin__face { backface-visibility: hidden; transform: translateZ(calc(var(--coin) * 0.037)); }
.coin__face--back { transform: rotateY(180deg) translateZ(calc(var(--coin) * 0.037)); }
.coin__face img { display: block; width: 100%; height: 100%; }
.coin--round .coin__edge, .coin--round .coin__face { border-radius: 50%; clip-path: circle(41% at 50% 50%); }
.coin__shine { position: absolute; inset: 0; -webkit-mask: center / 100% 100% no-repeat; mask: center / 100% 100% no-repeat; background: linear-gradient(110deg, transparent 42%, rgb(255 246 214 / 0.95) 50%, transparent 58%) no-repeat 160% 0 / 300% 100%; animation: coin-shine 3.5s ease-in-out infinite; }
.coin--round .coin__shine { opacity: 0.55; }
@keyframes coin-spin { to { transform: rotateY(360deg); } }
@keyframes coin-shine { 0%, 25% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.page-coin { --coin: clamp(8rem, 21vw, 17rem); float: right; margin: 0 2vw 1rem 2rem; }
.page-top .notice { clear: both; }
.footer__coin { --coin: 11rem; }
.hero__coin { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 44%; padding-bottom: 8vh; background: #000; opacity: 0; visibility: hidden; }
.hero__coin .coin { --coin: min(62vh, 40vw); }
.hero__coin--on { opacity: 1; visibility: visible; transition: opacity 0.6s; }
@media (orientation: portrait) {
  .hero__coin { place-items: start center; padding: 15vh 0 0; }
  .hero__coin .coin { --coin: min(72vw, 38vh); }
}
@media (max-width: 479px) { .logo { gap: 0.4rem; } .logo__coin { --coin: 2rem; } .page-coin { float: none; margin: 0 auto 1.5rem; } }
/* ===== 10. SCROLL REVEAL ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ===== 11. LARGER SCREENS ===== */
@media (min-width: 760px) {
  .nav__links { display: flex; }
  .callbar { display: none; }
  .story { align-items: center; }
  .story__image { left: 30%; width: 70%; }
  .story::after { background: linear-gradient(to right, var(--black) 32%, rgb(8 7 6 / 0.55) 58%, transparent); }
  .story__text { max-width: 30rem; }
  .reels a { grid-template-columns: 1fr auto; align-items: baseline; gap: 2rem; }
  .shops { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .shop { padding: 2.5rem 2rem; border-top: 0; border-left: 1px solid var(--line); }
  .shop:first-child { padding-left: 0; border-left: 0; }
  .crew { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 2.5rem 1.5rem; }
  .footer { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 3rem; padding-bottom: 3rem; }
  .footer__note { grid-column: 1 / -1; }
}

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