/* =========================================================
   POP'S BARBER & BEAUTY SHOP — Design System
   Palette pulled from the shop's own logo (red/brass) and
   the actual epoxy floor in the shop (marble blue).
   ========================================================= */

:root {
  --ink: #14161A;
  --ink-soft: #1F2227;
  --charcoal: #2B2E33;
  --slate: #8A8F98;
  --cream: #F5F3EE;
  --cream-dim: #D8D4C9;
  --pop-red: #C23A34;
  --pop-red-dark: #8F2A26;
  --brass: #C9A24B;
  --brass-light: #E4C878;
  --marble-blue: #2E5C8A;
  --marble-blue-light: #5B8FC0;
  --marble-blue-dark: #1D3E5E;

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

  --radius-sm: 4px;
  --radius-md: 8px;
  --header-h: 92px;

  --shadow-card: 0 12px 30px -12px rgba(20, 22, 26, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pop-red);
  color: var(--cream);
  border-color: var(--pop-red);
}
.btn-primary:hover { background: var(--pop-red-dark); border-color: var(--pop-red-dark); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 243, 238, 0.65);
}
.btn-ghost:hover { background: rgba(245, 243, 238, 0.12); border-color: var(--cream); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--cream); }

.btn-brass {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}
.btn-brass:hover { background: var(--brass-light); border-color: var(--brass-light); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 22, 26, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.25);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
}
.brand-logo { height: 58px; width: auto; }
.brand-tagline {
  color: var(--cream);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav { display: flex; }
.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  position: relative;
}
.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.open > a::after { transform: scaleX(1); }

.dropdown {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--ink-soft);
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-top: 3px solid var(--marble-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--cream-dim);
  font-size: 0.9rem;
  font-weight: 500;
}
.dropdown li a:hover { background: rgba(201, 162, 75, 0.14); color: var(--brass-light); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-call { white-space: nowrap; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(245,243,238,0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--cream);
  margin: 0 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--ink-soft);
  border-top: 1px solid rgba(201,162,75,0.2);
}
.mobile-menu.open { display: block; }
.mobile-menu .container { padding: 18px 24px 28px; }
.mobile-accordion { list-style: none; margin: 0; padding: 0; }
.mobile-accordion > li { border-bottom: 1px solid rgba(245,243,238,0.08); }
.mobile-top-link, .mobile-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 4px;
  cursor: pointer;
  text-align: left;
}
.mobile-accordion-toggle .chev { transition: transform 0.2s ease; color: var(--brass); }
.mobile-accordion-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mobile-sub {
  list-style: none;
  margin: 0 0 12px;
  padding: 0 0 0 14px;
  display: none;
}
.mobile-sub.open { display: block; }
.mobile-sub li a { display: block; padding: 10px 0; color: var(--cream-dim); font-size: 0.92rem; }
.mobile-cta-row { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

@media (max-width: 900px) {
  .main-nav, .header-actions { display: none; }
  .hamburger { display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,26,0.15) 0%, rgba(20,22,26,0.35) 45%, rgba(20,22,26,0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 56px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
  color: var(--cream);
}
.hero-logo { height: 76px; width: auto; margin: 0 0 10px; }
.hero-tagline {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.hero-headline { max-width: 780px; margin: 0 0 10px; }
.hero-sub { max-width: 560px; margin: 0 0 30px; color: var(--cream-dim); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
.hero-ctas .btn { min-width: 200px; }

.g-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.g-icon { width: 22px; height: 22px; flex-shrink: 0; }
.g-stars { color: var(--brass); font-size: 1.05rem; letter-spacing: 2px; }
.g-divider { color: var(--cream-dim); opacity: 0.5; }
.g-count { color: var(--cream); font-weight: 700; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; }
.g-count:hover { color: var(--brass-light); }
.section-charcoal .g-divider { color: var(--cream-dim); }

/* Signature marble-wave divider — echoes the real epoxy floor */
.wave-divider {
  display: block;
  width: 100%;
  height: 64px;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
section { padding: 88px 0; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-charcoal { background: var(--charcoal); color: var(--cream); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--slate); }
.section-dark .section-head p, .section-charcoal .section-head p { color: var(--cream-dim); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
}

/* Service teaser cards */
.card {
  background: var(--cream);
  border: 1px solid rgba(20,22,26,0.08);
  border-top: 4px solid var(--marble-blue);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.section-dark .card, .section-charcoal .card {
  background: var(--ink-soft);
  border-color: rgba(245,243,238,0.08);
  color: var(--cream);
}
.card-icon { width: 44px; height: 44px; margin-bottom: 16px; color: var(--brass); }
.card a.card-link { color: var(--marble-blue-light); font-weight: 700; font-size: 0.9rem; }
.section-dark .card a.card-link, .section-charcoal .card a.card-link { color: var(--brass-light); }

/* Pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  border-left: 4px solid var(--brass);
  padding-left: 24px;
  color: var(--ink);
  margin: 28px 0;
}
.section-dark .pull-quote, .section-charcoal .pull-quote { color: var(--cream); }
.pull-quote cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--slate); margin-top: 10px; font-family: var(--font-body); }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid rgba(245,243,238,0.12); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.closed td:last-child { color: var(--slate); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.review-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--brass);
}
.stars { color: var(--brass); letter-spacing: 3px; margin-bottom: 12px; font-size: 1rem; }
.review-author { font-weight: 700; margin-top: 14px; font-size: 0.92rem; }

/* Map / location */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Pricing tables */
.price-table { width: 100%; border-collapse: collapse; margin: 24px 0 40px; }
.price-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 14px 0 10px;
  border-bottom: 2px solid var(--brass);
  color: var(--ink);
}
.price-table td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(20,22,26,0.1);
}
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--pop-red); white-space: nowrap; }

/* Team cards */
.team-card { text-align: center; }
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 18px;
  overflow: hidden;
}
.team-name { margin-bottom: 2px; }
.team-role { color: var(--pop-red); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }

/* Page hero (non-home pages) */
.page-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid rgba(201,162,75,0.25);
}
.page-hero p { color: var(--cream-dim); max-width: 560px; margin: 0 auto; }

/* CTA band */
.cta-band {
  background: var(--pop-red);
  color: var(--cream);
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band .btn-ghost { border-color: rgba(245,243,238,0.7); }

/* =========================================================
   FOOTER / SITEMAP
   ========================================================= */
.site-footer { background: var(--ink); color: var(--cream-dim); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-logo { height: 48px; margin-bottom: 14px; }
.footer-col h4 {
  color: var(--brass);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--brass-light); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(245,243,238,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--brass); color: var(--brass); }
.footer-bottom {
  border-top: 1px solid rgba(245,243,238,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--slate);
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* =========================================================
   BOOKING WIDGET
   ========================================================= */
.booking-widget {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px;
}
.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 700px) {
  .booking-row { grid-template-columns: 1fr; }
}
.booking-widget label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.booking-widget select,
.booking-widget input[type="date"],
.booking-widget input[type="text"],
.booking-widget input[type="tel"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid rgba(20,22,26,0.2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.booking-hint { color: var(--slate); font-size: 0.9rem; margin-bottom: 14px; }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.slot-btn {
  padding: 10px 6px;
  border: 2px solid var(--marble-blue);
  background: #fff;
  color: var(--marble-blue-dark);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.slot-btn:hover { background: var(--marble-blue); color: #fff; }
.slot-btn.selected { background: var(--pop-red); border-color: var(--pop-red); color: #fff; }
.booking-error { color: var(--pop-red-dark); font-weight: 600; margin-top: 14px; }
.booking-confirmed {
  background: #eef6ee;
  border: 1px solid #9fcf9f;
  color: #2a5c2a;
  padding: 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* =========================================================
   ADMIN CALENDAR
   ========================================================= */
.admin-shell { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.admin-lock { max-width: 340px; margin: 100px auto; text-align: center; }
.admin-lock input {
  width: 100%; padding: 12px; font-size: 1.2rem; text-align: center;
  letter-spacing: 0.3em; border-radius: var(--radius-sm); border: 1px solid rgba(20,22,26,0.2);
  margin-bottom: 14px;
}
.admin-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.admin-day-list { list-style: none; margin: 0; padding: 0; }
.admin-day-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border: 1px solid rgba(20,22,26,0.1); border-radius: var(--radius-sm);
  margin-bottom: 10px; background: #fff;
}
.admin-day-list .meta { color: var(--slate); font-size: 0.85rem; }
.admin-block-btn { background: none; border: 1px solid var(--pop-red); color: var(--pop-red); border-radius: var(--radius-sm); padding: 6px 12px; font-weight: 700; cursor: pointer; font-size: 0.8rem; }

