/* The American Dream Barbershop — styles
   Palette comes from the shop itself: black walls, reclaimed oak, galvanized steel,
   and the red/blue of the barber pole. Type: Zilla Slab (echoes the slab lettering
   on the wall) + Hanken Grotesk for reading. */

:root {
  --ink: #0f0e0d;
  --ink-2: #1a1816;
  --ink-3: #26231f;
  --oak: #c19a63;
  --steel: #c4c8cb;
  --red: #b3202a;
  --red-hover: #c9323c;
  --blue: #1f3f8f;
  --bone: #f2efe9;
  --text: #ebe8e2;
  --muted: #aaa59c;
  --line: #36322d;
  --slab: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oak); text-underline-offset: 3px; }
a:hover { color: #dcb985; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: #fff; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Barber-pole stripe (the one decorative device) ---------- */
.pole {
  height: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--red) 0 12px, var(--bone) 12px 24px, var(--blue) 24px 36px, var(--bone) 36px 48px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 1rem/1 var(--sans);
  padding: 15px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--steel); color: var(--steel); }
.btn.ghost:hover { background: var(--steel); color: var(--ink); border-color: var(--steel); }
.btn.sm { padding: 11px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; margin-right: auto; }
.brand img { width: 56px; height: 56px; }
.brand span { font: 700 1.2rem/1.1 var(--slab); max-width: 11ch; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: #fff; border-bottom-color: var(--oak); }
.nav a[aria-current="page"] { border-bottom-color: var(--oak); color: #fff; }
.menu-toggle { display: none; background: none; border: 2px solid var(--steel); color: var(--steel); border-radius: 3px; font: 700 .95rem var(--sans); padding: 9px 14px; cursor: pointer; }

@media (max-width: 860px) {
  .js .menu-toggle { display: block; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding-bottom: 8px; order: 3; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .nav { flex-wrap: wrap; flex-direction: column; }
  html:not(.js) .nav { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: flex-end;
  background: var(--ink) url("/assets/shop/hero.jpg") center 18% / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,14,13,0) 0%, rgba(15,14,13,0) 42%, rgba(15,14,13,.78) 74%, rgba(15,14,13,.96) 100%);
}
.hero .wrap { padding-top: 260px; padding-bottom: clamp(36px, 7vw, 72px); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: none; margin-bottom: .3em; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.hero .lede { font-size: 1.15rem; color: var(--text); margin-bottom: 1.4em; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.hero .lede span { display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.alt { background: var(--ink-2); }
.section.light { background: var(--bone); color: var(--ink); }
.section.light h2, .section.light h3 { color: var(--ink); }
.section.light a { color: var(--blue); }
.section.light a.btn { color: #fff; }
.section.light a.btn.ghost { color: var(--ink); border-color: var(--ink); }
.section.light a.btn.ghost:hover { background: var(--ink); color: var(--bone); }

/* ---------- Page title (inner pages) ---------- */
.page-title { padding: clamp(44px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); background: var(--ink-2); }
.page-title p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.page-title h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }

/* ---------- Info: location / hours / phone ---------- */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.info h2 { font-size: 1.4rem; color: var(--oak); margin-bottom: .4em; }
.info address { font-style: normal; }
.info p { margin-bottom: .6em; }
.hours { border-collapse: collapse; width: 100%; max-width: 20rem; }
.hours th, .hours td { text-align: left; padding: 5px 0; font-weight: 400; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .today th, .hours .today td { color: #fff; font-weight: 700; }
.phone-link { font: 700 1.6rem/1.2 var(--slab); color: #fff; text-decoration: none; }
.phone-link:hover { color: var(--oak); }
@media (max-width: 760px) { .info { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.rating { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 28px; }
.rating strong { font: 700 3.4rem/1 var(--slab); }
.rating span { color: #4a463f; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 44px; margin: 0 0 32px; padding: 0; list-style: none; }
.quotes.all { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.quote { margin: 0; padding-left: 20px; border-left: 4px solid var(--red); }
.quote p { margin-bottom: .6em; font-size: 1.05rem; }
.quote footer { font-weight: 700; }
.quote footer span { font-weight: 400; color: #5a554d; margin-left: 8px; }
.quote:nth-child(3n+2) { border-left-color: var(--blue); }

/* Live Google reviews widget; saved reviews show only if it fails to load */
.live-reviews { min-height: 220px; margin-bottom: 32px; }
.js .reviews-fallback { display: none; }
.js .reviews-fallback.show { display: block; }

/* ---------- Why choose us ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.why h3 { color: var(--oak); }
.why p { color: var(--text); }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }

/* ---------- Visit / map ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.visit iframe { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: 3px; background: var(--ink-3); }
.visit img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: 3px; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Closing call to action ---------- */
.cta { position: relative; isolation: isolate; text-align: center; padding: clamp(56px, 9vw, 104px) 0; background: var(--ink) url("/assets/shop/wall.jpg") center / cover; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(15,14,13,.84); z-index: -1; }
.cta img { width: 112px; height: 112px; margin: 0 auto 20px; }
.cta h2 { max-width: 20ch; margin: 0 auto 1em; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px; margin: 0; padding: 0; list-style: none; }
.member { display: flex; flex-direction: column; }
.member .btn { margin-top: auto; }
.member .photo { aspect-ratio: 1; background: var(--ink-2); overflow: hidden; border-radius: 3px; }
.member .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .3s; }
.member:hover .photo img, .member:focus-within .photo img { filter: none; }
@media (hover: none) { .member .photo img { filter: none; } }
.member .photo.placeholder { display: grid; place-items: center; background: var(--ink-3); }
.member .photo.placeholder img { width: 52%; height: auto; filter: none; opacity: .9; }
.member h2 { font-size: 1.6rem; margin: 16px 0 2px; }
.member .role { color: var(--oak); font-weight: 600; margin: 0 0 2px; }
.member .handle { color: var(--muted); margin: 0 0 14px; }
.member .handle a { color: var(--muted); }
.member .handle a:hover { color: #fff; }
.member .btn { display: block; text-align: center; }

/* ---------- Services ---------- */
.services { margin: 0; padding: 0; list-style: none; }
.service { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h2 { font-size: 1.8rem; margin: 0; }
.service p { margin: 0 0 .5em; }
.service .inc { color: var(--oak); font-weight: 600; }
.note { color: var(--muted); margin-top: 28px; }
@media (max-width: 700px) { .service { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about img { width: 100%; border-radius: 3px; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); padding: 40px 0 32px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a, .site-footer address a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover, .site-footer address a:hover { color: var(--oak); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--muted); }
.copy { width: 100%; color: var(--muted); font-size: .92rem; margin: 8px 0 0; max-width: none; }

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