/* =========================================================
   Mohammed's Barber Shop — shared styles
   Palette taken from the shop itself: feature-wall blue,
   pole red, chair black, tile white, exterior grey.
   ========================================================= */

:root {
  --blue: #1d4fc4;        /* interior feature wall */
  --blue-deep: #143a94;
  --blue-soft: #e6ecfa;
  --red: #c8102e;         /* barber pole */
  --ink: #161b2e;         /* chairs, text */
  --ink-soft: #4a5068;
  --wall: #dfe3e9;        /* exterior grey */
  --tile: #f6f7f9;        /* floor tile */
  --white: #ffffff;
  --line: #d4d9e1;

  --font-display: "Alfa Slab One", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Yellowtail", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--tile);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Barber pole stripe (the signature) ---------- */
.pole-stripe {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 12px, var(--white) 12px 22px,
    var(--blue) 22px 34px, var(--white) 34px 44px
  );
  background-size: 62.2px 62.2px;
}

.pole {
  position: relative;
  width: 22px;
  border-radius: 11px;
  background: repeating-linear-gradient(
    -40deg,
    var(--red) 0 14px, var(--white) 14px 26px,
    var(--blue) 26px 40px, var(--white) 40px 52px
  );
  background-size: 100% 136px;
  box-shadow: inset -5px 0 8px rgba(0,0,0,.25), inset 4px 0 6px rgba(255,255,255,.5);
  animation: pole-turn 3.2s linear infinite;
}
.pole::before, .pole::after {
  content: "";
  position: absolute; left: -5px; right: -5px; height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #8d939e, #e9ecf0 45%, #9aa0aa);
}
.pole::before { top: -10px; }
.pole::after { bottom: -10px; }

@keyframes pole-turn {
  from { background-position: 0 0; }
  to   { background-position: 0 136px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand {
  display: flex; flex-direction: column; line-height: 1;
  text-decoration: none; color: var(--ink);
}
.brand-script {
  font-family: var(--font-script);
  font-size: 1.35rem; color: var(--blue);
  margin-bottom: -2px; padding-left: 2px;
}
.brand-slab {
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--red); letter-spacing: .02em;
}
.brand:hover .brand-slab { color: var(--red); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .98rem;
  padding: 10px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--blue-soft); color: var(--blue-deep); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 3px; margin-top: 2px; border-radius: 2px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 4px, var(--white) 4px 6px, var(--blue) 6px 10px, var(--white) 10px 12px);
}

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--blue-deep); }
.btn-light:hover { background: var(--blue-soft); color: var(--blue-deep); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }

/* ---------- Live OPEN sign ---------- */
.open-sign {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0f1220;
  border: 3px solid #2a2f45;
  border-radius: 12px;
  padding: 10px 18px 10px 14px;
  color: #ffd9de;
  box-shadow: 0 10px 30px rgba(15,18,32,.35);
}
.open-sign-word {
  font-family: var(--font-display);
  font-size: 1.6rem; line-height: 1; letter-spacing: .06em;
  color: #ff4d64;
  text-shadow: 0 0 6px rgba(255,60,85,.9), 0 0 18px rgba(255,40,70,.6);
}
.open-sign-detail { font-size: .9rem; line-height: 1.3; color: #d9dcea; }
.open-sign-detail strong { color: var(--white); font-weight: 700; display: block; }
.open-sign.is-closed { color: #9aa0b8; }
.open-sign.is-closed .open-sign-word {
  color: #5c6178; text-shadow: none;
}
.open-sign.is-open .open-sign-word { animation: neon 6s ease-in-out infinite; }
@keyframes neon {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .55; }
  94% { opacity: 1; }
  95.5% { opacity: .7; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 7vw, 88px); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 { color: var(--ink); margin-bottom: .35em; }
.hero h1 span { display: block; }
.hero-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-address {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-soft); font-size: .98rem; margin: 0;
}
.hero-address svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--red); }

.hero-visual {
  position: relative;
  display: grid; grid-template-columns: 22px 1fr; gap: 18px;
  align-items: stretch;
}
.hero-visual .pole { margin: 12px 0; }
.hero-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3.3;
  box-shadow: 0 24px 50px -20px rgba(22,27,46,.45);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .open-sign {
  position: absolute; left: 0; bottom: -22px;
}

/* ---------- Today strip ---------- */
.today-strip { background: var(--blue); color: var(--white); }
.today-strip .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.today-item {
  padding: 22px 24px;
  display: flex; gap: 14px; align-items: center;
}
.today-item + .today-item { border-left: 1px solid rgba(255,255,255,.22); }
.today-item svg { width: 26px; height: 26px; flex: none; opacity: .9; }
.today-item small { display: block; font-size: .85rem; opacity: .8; }
.today-item strong, .today-item a { font-size: 1.08rem; font-weight: 700; color: var(--white); text-decoration: none; }
.today-item a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-white { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ---------- Price list ---------- */
.price-board {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 72px);
}
.price-group { margin-bottom: 36px; }
.price-group h2, .price-group h3 {
  font-size: 1.45rem;
  color: var(--blue);
  padding-bottom: 10px; margin-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.price-list .item { font-weight: 600; }
.price-list .item small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.price-list .leader {
  flex: 1; border-bottom: 2px dotted #b8bfcc; transform: translateY(-5px); min-width: 20px;
}
.price-list .price {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); white-space: nowrap;
}
.price-list .price.ask { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--ink-soft); }

.home-prices {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.home-prices-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.home-prices-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-prices .price-list { margin-bottom: 28px; }

/* ---------- Reviews ---------- */
.reviews {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px);
}
.review { margin: 0; padding-top: 20px; border-top: 4px solid var(--blue); }
.review:nth-child(2) { border-top-color: var(--red); }
.review:nth-child(3) { border-top-color: var(--ink); }
.review blockquote { margin: 0 0 16px; font-size: 1.12rem; line-height: 1.55; }
.review figcaption { font-weight: 700; }
.review figcaption span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .92rem; }

.rating-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin-top: clamp(32px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--line);
}
.stars { display: inline-flex; gap: 3px; color: #e8a317; }
.stars svg { width: 22px; height: 22px; }
.rating-line strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; }

/* ---------- Shop strip (photos on home) ---------- */
.shop-strip {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px;
}
.shop-strip a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.shop-strip a:first-child { grid-row: span 2; aspect-ratio: auto; }
.shop-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shop-strip a:hover img { transform: scale(1.04); }

/* ---------- Visit (hours + map) ---------- */
.visit {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start;
}
.hours { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.hours th, .hours td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: var(--blue-soft); }
.hours tr.is-today th { color: var(--blue-deep); }
.hours tr.is-today th::after {
  content: "Today"; margin-left: 10px;
  font-size: .75rem; font-weight: 700; color: var(--white);
  background: var(--blue); padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
}
.contact-lines { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-lines li { display: flex; gap: 12px; padding: 6px 0; }
.contact-lines svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--blue); }
.map-frame {
  border-radius: var(--radius); overflow: hidden; background: var(--wall);
  aspect-ratio: 1 / 1; min-height: 340px;
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: var(--blue); color: var(--white);
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.page-head h1 { color: var(--white); margin-bottom: .25em; }
.page-head p { font-size: 1.15rem; max-width: 46ch; opacity: .92; margin: 0; }
.page-head .wrap { position: relative; }
.page-head .pole {
  position: absolute; right: var(--gutter); top: -40px; bottom: -40px; height: auto;
}

/* ---------- Menu page ---------- */
.menu-layout {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start;
}
.menu-layout .price-board { grid-template-columns: 1fr; }
.menu-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.menu-aside .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 20px; }
.menu-aside .photo img { width: 100%; height: 100%; object-fit: cover; }
.note-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.note-card h2 { font-size: 1.4rem; margin-bottom: .6em; }
.note-card ul { margin: 0 0 20px; padding-left: 20px; }
.note-card li { margin-bottom: 6px; }

/* ---------- Gallery page ---------- */
.gallery-group + .gallery-group { margin-top: clamp(48px, 6vw, 72px); }
.gallery-group h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.gallery-group > p { color: var(--ink-soft); margin-bottom: 24px; max-width: 60ch; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; gap: 14px;
}
.gallery-grid button {
  padding: 0; border: 0; cursor: zoom-in; background: var(--wall);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid button:hover img { transform: scale(1.04); }
.g-wide  { grid-column: span 7; grid-row: span 3; }
.g-side  { grid-column: span 5; grid-row: span 3; }
.g-third { grid-column: span 4; grid-row: span 3; }
.g-tall  { grid-column: span 4; grid-row: span 4; }
.g-half  { grid-column: span 6; grid-row: span 3; }

.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(10,12,22,.92); }
.lightbox-inner {
  height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: 56px 16px 24px;
}
.lightbox img { max-height: calc(100vh - 140px); max-width: min(1200px, 100%); width: auto; border-radius: 8px; }
.lightbox-caption { color: #e3e6ef; margin-top: 14px; text-align: center; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); color: var(--white);
  border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); padding: clamp(48px, 7vw, 80px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: var(--white); margin: 0; max-width: 18ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { border-color: var(--white); color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: #0f1220; color: #c3c8d8; padding: 56px 0 28px; font-size: .97rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 40px;
}
.site-footer .brand-script { color: #8fb0ff; }
.site-footer h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--white); margin-bottom: 12px; }
.site-footer a { color: #c3c8d8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-base {
  border-top: 1px solid #262b40; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; color: #8b91a8;
}

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .home-prices, .visit, .menu-layout { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .home-prices-photo { aspect-ratio: 16 / 10; }
  .menu-aside { position: static; }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 76px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    box-shadow: 0 16px 30px -12px rgba(22,27,46,.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 12px; border-bottom: 0; }

  .hero-visual { grid-template-columns: 14px 1fr; gap: 12px; }
  .hero-visual .pole { width: 14px; }
  .hero-visual .open-sign { left: 26px; bottom: -18px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .today-strip .wrap { grid-template-columns: 1fr; padding: 0; }
  .today-item { padding: 16px var(--gutter); }
  .today-item + .today-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }

  .price-board { grid-template-columns: 1fr; }
  .shop-strip { grid-template-columns: 1fr 1fr; }
  .shop-strip a:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .g-wide, .g-side, .g-third, .g-tall, .g-half { grid-column: span 1; grid-row: span 1; }
  .gallery-grid > :first-child { grid-column: 1 / -1; grid-row: span 2; }

  .page-head .pole { width: 14px; }
  .page-head .wrap { padding-right: calc(var(--gutter) + 30px); }

  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { display: none; }

  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .action-bar .btn { padding: 13px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
