/* Brena's Shave & Cuts Shop — mobile-first */

:root {
  --blue: #1a4fd6;
  --blue-dark: #1239b0;
  --red: #e01b1b;
  --cream: #efe9dc;
  --cream-dark: #e4dcc9;
  --paper: #f7f3eb;
  --ink: #161616;
  --muted: #5c564c;
  --white: #fff;
  --font-display: "Playfair Display SC", "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow: 0 10px 28px rgba(22, 22, 22, 0.1);
  --radius: 16px;
  --wrap: 70rem;
  --sticky: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(ellipse at top, #f7f3ea 0%, var(--cream) 55%, #e8e0d0 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
address { font-style: normal; }

.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: absolute;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 1.75rem, var(--wrap));
  margin-inline: auto;
}

.wrap.narrow { width: min(100% - 1.75rem, 36rem); }

/* Barber-pole stripe */
.pole {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 11px,
    var(--white) 11px 22px,
    var(--blue) 22px 33px,
    var(--white) 33px 44px
  );
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}

.header-bar {
  width: min(100% - 1.25rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.45rem 1rem;
  padding: 0.65rem 0;
}

.wordmark {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.wordmark-logo {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--white), 0 1px 4px rgba(22, 22, 22, 0.2);
}

.nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  font-weight: 600;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
}

.nav a:hover, .nav a:focus-visible { color: var(--blue); }

.header-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--blue);
  border-radius: 50%;
  text-decoration: none;
}

.icon-btn:hover, .icon-btn:focus-visible {
  background: rgba(26, 79, 214, 0.1);
  color: var(--blue-dark);
}

.btn.header-cta { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(22, 22, 22, 0.45);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--blue);
  color: var(--blue-dark);
}

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

.btn:focus-visible, .icon-btn:focus-visible, .fb-link:focus-visible {
  outline-offset: 3px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 1.25rem 2.75rem;
}

.hero-logo {
  width: min(13.5rem, 58vw);
  height: auto;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--paper),
    0 0 0 5px rgba(22, 22, 22, 0.12),
    0 12px 28px rgba(22, 22, 22, 0.16);
}

.brand {
  margin: 0;
  line-height: 1.05;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.15rem, 9vw, 3.6rem);
  letter-spacing: 0.05em;
  color: var(--blue);
}

.brand-sub {
  display: block;
  margin-top: 0.28em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 4.4vw, 1.75rem);
  letter-spacing: 0.06em;
  color: var(--red);
}

.tagline {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.nowrap { white-space: nowrap; }

.badge {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.28rem 0.85rem;
  border: 1.5px solid #c41212;
  border-radius: 999px;
  color: #c41212;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
}

.fb-link:hover, .fb-link:focus-visible { text-decoration: underline; }
.fb-link svg { flex: none; }

/* Sections */
.section {
  padding: 0.5rem 0 2.5rem;
}

.section h2 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: 0.06em;
  color: var(--ink);
  text-align: center;
}

.section h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 0.55rem auto 0;
  background: linear-gradient(90deg, var(--red), var(--white) 50%, var(--blue));
}

/* Services menu */
.menu {
  list-style: none;
  margin: 0 auto;
  padding: 0.4rem 1.2rem 0.2rem;
  max-width: 36rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(22, 22, 22, 0.06);
}

.menu li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}

.menu li:last-child { border-bottom: 0; }

.svc { font-weight: 600; }
.svc small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

.dots {
  flex: 1;
  border-bottom: 2px dotted rgba(22, 22, 22, 0.28);
  transform: translateY(-0.35em);
  min-width: 1.5rem;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

/* Hours + location */
.split {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2.25rem;
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(22, 22, 22, 0.06);
  padding: 1.35rem 1.2rem 1.4rem;
}

.card.section { padding-bottom: 1.4rem; }

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th, .hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
  text-align: left;
}

.hours th { font-weight: 600; }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.hours tr.is-today th,
.hours tr.is-today td {
  font-weight: 700;
  color: var(--blue-dark);
}

.hours tr.is-today th::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  background: var(--red);
  border-radius: 50%;
  vertical-align: 0.1rem;
}

.note {
  margin: 1rem 0 0;
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
}

.addr {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  text-align: center;
}

#location p { text-align: center; margin: 0 0 0.9rem; }

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.map {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--cream-dark);
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 22, 0.08);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.gallery-grid button {
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--cream-dark);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-grid button:hover img,
.gallery-grid button:focus-visible img {
  transform: scale(1.04);
}

/* Reviews */
.reviews-cta { margin-top: 0; }
#reviews .wrap { text-align: center; }

/* Footer */
.site-footer {
  background: #141414;
  color: #efe9dc;
  margin-top: 0.5rem;
  text-align: center;
}

.footer-inner { padding: 1.75rem 0 1.5rem; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.site-footer p { margin: 0.3rem 0; }
.site-footer a { color: #efe9dc; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }

.footer-fb { color: #efe9dc; margin-top: 0.7rem; }
.footer-fb:hover, .footer-fb:focus-visible { color: #fff; }

.copy {
  margin-top: 1.1rem !important;
  font-size: 0.88rem;
  color: #c9c2b3;
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(247, 243, 234, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(22, 22, 22, 0.1);
  box-shadow: 0 -8px 20px rgba(22, 22, 22, 0.08);
}

.sticky-cta .btn { flex: 1; }
.sticky-cta .btn-ghost { background: var(--paper); }

body {
  padding-bottom: calc(var(--sticky) + env(safe-area-inset-bottom));
}

/* Lightbox */
.lightbox[hidden] { display: none !important; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3rem;
}

.lightbox img {
  max-width: min(100%, 1600px);
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
}

.lightbox-close {
  top: 0.6rem;
  right: 0.6rem;
  font-size: 2.4rem;
}

.lightbox-nav.prev { left: 0.2rem; }
.lightbox-nav.next { right: 0.2rem; }

.lightbox-close:hover, .lightbox-nav:hover,
.lightbox-close:focus-visible, .lightbox-nav:focus-visible {
  color: #fff;
}

/* Desktop */
@media (min-width: 800px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .btn.header-cta { display: inline-flex; }
  .header-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem 1.1rem;
  }
  .nav { margin-left: auto; grid-column: auto; justify-content: flex-end; }
  .hero { padding: 2.75rem 1.5rem 3.5rem; }
  .hero-logo { width: 17.5rem; }
  .split {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
    gap: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
  .menu { padding: 0.5rem 1.75rem 0.3rem; }
}

@media (min-width: 1100px) {
  .header-bar { padding: 0.75rem 0; }
}

@media print {
  .sticky-cta, .site-header .header-cta, .lightbox { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a, .copy { color: #000; }
}
