/* Terry's Barber Shop — modern responsive stylesheet
   Palette drawn from the shop's own photos: warm cream, vintage brown,
   barber-pole red. Mobile-first. */

:root {
  --cream: #f4ece0;
  --cream-2: #efe5d0;
  --paper: #fbf7ef;
  --brown: #675c47;
  --brown-dark: #3a3228;
  --ink: #2c2620;
  --red: #9e3a36;
  --red-bright: #b5413c;
  --blue: #2f5d8a;
  --line: #ddcfb6;
  --shadow: 0 6px 24px rgba(44, 38, 32, .14);
  --radius: 14px;
  --wrap: 1100px;
  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

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

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

a { color: var(--red); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0 0 .4em;
}

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

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

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--brown-dark); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 8px; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- Barber-pole motif ---------- */
.brand-pole {
  display: inline-block; width: 12px; height: 34px; border-radius: 7px;
  vertical-align: middle; border: 1px solid rgba(0,0,0,.15);
  background-image: repeating-linear-gradient(
    -45deg, var(--red-bright) 0 6px, #fff 6px 12px, var(--blue) 12px 18px, #fff 18px 24px);
  background-size: 100% 34px;
}
.brand-pole--sm { width: 9px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em;
  font-size: .95rem; text-decoration: none; cursor: pointer;
  padding: .7em 1.2em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 1.05rem; padding: .85em 1.5em; }

.btn-call { background: var(--red); color: #fff; }
.btn-call:hover { background: var(--red-bright); }
.btn-primary { background: var(--brown-dark); color: #fff; }
.btn-primary:hover { background: #50473a; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(0,0,0,.06); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--brown-dark); color: var(--cream);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand-text {
  font-family: var(--font-head); text-transform: uppercase; line-height: 1; font-size: 1.05rem;
  display: flex; flex-direction: column;
}
.brand-text strong { font-weight: 700; font-size: 1.2rem; color: #fff; letter-spacing: .02em; }

.nav { margin-left: auto; }
.nav-menu {
  list-style: none; display: flex; gap: 22px; margin: 0; padding: 0;
}
.nav-menu a {
  color: var(--cream); text-decoration: none; font-family: var(--font-head);
  text-transform: uppercase; font-size: .95rem; letter-spacing: .03em;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-menu a:hover { border-bottom-color: var(--red-bright); color: #fff; }

.header-call { background: var(--red); color: #fff; padding: .55em 1em; }
.header-call:hover { background: var(--red-bright); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(44,38,32,.55) 0%, rgba(44,38,32,.78) 100%);
}
.hero-content { padding: clamp(56px, 12vw, 130px) 20px; max-width: 760px; }
.eyebrow {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em;
  font-size: .8rem; color: var(--cream-2); margin: 0 0 .6em;
}
.hero h1 { font-size: clamp(2.6rem, 9vw, 5rem); color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.lead { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin: 0 0 1.2em; max-width: 36ch; }
.lead strong { color: #ffd9a8; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.6em; padding: 0; }
.badge {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em;
  font-size: .82rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  padding: .4em .9em; border-radius: 999px; backdrop-filter: blur(2px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-status { margin: 1.4em 0 0; font-family: var(--font-head); letter-spacing: .04em; }

/* open/closed pill (shared) */
.status-pill {
  display: inline-flex; align-items: center; gap: .5em;
  text-transform: uppercase; font-size: .9rem; letter-spacing: .05em;
  padding: .35em .85em; border-radius: 999px; font-family: var(--font-head);
}
.status-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status-open { background: rgba(60,140,70,.18); color: #2f8f43; border: 1px solid #2f8f43; }
.status-closed { background: rgba(160,60,55,.16); color: #c14b46; border: 1px solid #c14b46; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 86px) 0; }
.section--alt { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--brown-dark); }
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: .35em;
  background: var(--red); border-radius: 2px;
}
.section-sub { margin-top: -.4em; color: var(--brown); font-size: 1.1rem; }

/* ---------- Pricing ---------- */
.price-grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .3em;
}
.price-card h3 { font-size: 1.25rem; color: var(--ink); margin: 0; }
.price-card .price { font-family: var(--font-head); font-size: 2.4rem; color: var(--red); margin: 0; }
.price-card--feature { background: var(--brown-dark); border-color: var(--brown-dark); }
.price-card--feature h3 { color: #fff; }
.price-card--feature .price { color: #ffd9a8; }
.note {
  margin-top: 1.8rem; text-align: center; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .06em; color: var(--brown); font-size: .95rem;
}

/* ---------- Hours ---------- */
.hours-layout { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 1rem; max-width: 460px; }
.hours-table th, .hours-table td {
  text-align: left; padding: .7em .2em; border-bottom: 1px solid var(--line); font-weight: 400;
}
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table .closed { color: #9b8e76; }
.hours-table tr.is-today th, .hours-table tr.is-today td { font-weight: 600; color: var(--brown-dark); }
.hours-table tr.is-today { background: rgba(181,65,60,.08); }
.hours-now { margin: .4em 0 0; }

.hours-photo { margin: 0; }
.hours-photo img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; height: auto; max-height: 460px;
  object-fit: cover; object-position: center 60%;
}
.hours-photo figcaption {
  margin-top: .6em; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .04em; font-size: .85rem; color: var(--brown);
}

/* ---------- Barber ---------- */
.barber-layout { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
.barber-photo img {
  width: 220px; height: 220px; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--paper); box-shadow: var(--shadow);
}
.barber-name { font-size: 1.6rem; color: var(--red); }

/* ---------- Visit ---------- */
.visit-layout { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: stretch; }
.visit-line { margin: 0 0 1.2em; font-size: 1.1rem; }
.visit-line strong {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  font-size: .85rem; color: var(--brown); display: inline-block; margin-bottom: .2em;
}
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: .5em; }
.visit-map { min-height: 320px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.visit-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-dark); color: var(--cream); padding: 40px 0; text-align: center; }
.footer-brand {
  font-family: var(--font-head); text-transform: uppercase; font-size: 1.3rem;
  color: #fff; margin: 0 0 .4em; display: inline-flex; align-items: center; gap: 8px;
}
.footer-meta { margin: .2em 0; color: var(--cream-2); }
.footer-meta a { color: #ffd9a8; }
.footer-copy { margin-top: 1em; font-size: .85rem; color: #b3a78f; }

/* ---------- Responsive: tablet/desktop ---------- */
@media (min-width: 760px) {
  .hours-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
  .barber-layout { grid-template-columns: 240px 1fr; gap: 44px; }
  .barber-photo img { width: 240px; height: 240px; }
  .visit-layout { grid-template-columns: 1fr 1.2fr; }
}

/* ---------- Responsive: mobile nav ---------- */
@media (max-width: 720px) {
  .header-call { display: none; }
  .nav { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center;
    width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 0;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 26px; height: 3px; background: var(--cream);
    border-radius: 2px; margin: 0 auto; transition: transform .25s, opacity .2s;
  }
  .nav-toggle-bar::before { transform: translateY(-8px); }
  .nav-toggle-bar::after { transform: translateY(5px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: rotate(-45deg); }

  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--brown-dark);
    padding: 8px 20px 18px; box-shadow: 0 12px 20px rgba(0,0,0,.3);
    transform-origin: top; display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.1rem; }
  .nav-menu li:last-child a { border-bottom: 0; }
}

/* ---------- Motion / accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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