/* Kendall Barbers — site stylesheet */

:root {
  --red: #8b0000;
  --red-dark: #6e0000;
  --navy: #3a4774;
  --navy-dark: #2b355a;
  --ink: #2f2e2e;
  --muted: #5f6360;
  --line: #e2e2e2;
  --paper: #ffffff;
  --paper-alt: #f5f4f2;
  --max: 1140px;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
}

*, *::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: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; line-height: 1;
}
.wordmark .pole {
  width: 14px; height: 40px; border-radius: 7px;
  background: repeating-linear-gradient(
    -55deg, var(--red) 0 7px, #fff 7px 12px, var(--navy) 12px 19px, #fff 19px 24px);
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.18);
  flex: none;
}
.wordmark .text { display: flex; flex-direction: column; }
.wordmark .name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem;
  letter-spacing: .01em; text-transform: uppercase;
}
.wordmark .name .k { color: var(--red); }
.wordmark .name .b { color: var(--navy); }
.wordmark .est {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-top: .2rem;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.6rem;
}
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600;
  font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--red); border-bottom-color: var(--red);
}
.site-nav a.btn { border-bottom: 0; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em;
  text-transform: uppercase; padding: .8rem 1.7rem; border-radius: 4px;
  border: 2px solid var(--red); background: var(--red); color: #fff !important;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff !important; }
.btn-light { background: #fff; color: var(--red) !important; border-color: #fff; }
.btn-light:hover { background: #f1f1f1; border-color: #f1f1f1; }
.site-nav a.btn { padding: .55rem 1.2rem; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: min(78vh, 720px);
  display: grid; place-items: center; text-align: center;
  background: var(--ink) url("../images/hero-sign.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20,20,25,.35), rgba(20,20,25,.7));
}
.hero .container { padding-block: 5rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero .lede {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem); max-width: 42rem; margin-inline: auto;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero .actions { margin-top: 1.8rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .walkins { margin-top: 1.4rem; font-weight: 600; font-size: 1.05rem; }
.hero .note { font-size: .95rem; opacity: .92; margin: .3rem 0 0; }

.page-hero { min-height: min(46vh, 440px); }
.page-hero.about { background-image: url("../images/shop-3.jpg"); background-position: center 45%; }
.page-hero.contact { background-image: url("../images/exterior-board.jpg"); background-position: center 40%; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--navy-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.85); }
.eyebrow {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: .6rem;
}
.section-dark .eyebrow { color: #f0b6b6; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.service img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.service .body { padding: 1.2rem 1.4rem 1.5rem; }
.service h3 { margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .05em; }
.service p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Split (image + text) */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse > .media { order: 2; }
.split .media img { border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.split .copy p { font-size: 1.05rem; }
.split .copy .btn { margin-top: .6rem; }

/* Hours / visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.hours { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: 24rem; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.18);
}
.hours li span:first-child { font-weight: 600; }
.hours small { display: block; font-size: .8rem; opacity: .8; }
.section-dark .hours li { border-bottom-color: rgba(255,255,255,.18); }
.section-dark a { color: #fff; }
.address { font-size: 1.15rem; font-style: normal; margin-bottom: 1rem; }
.map-embed {
  border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px;
  filter: grayscale(.15); background: #ddd;
}
.map-note { font-size: .95rem; margin-top: .8rem; opacity: .9; }

/* Gallery — column layout so every photo shows uncropped */
.gallery { columns: 3; column-gap: 1rem; }
.gallery figure {
  margin: 0 0 1rem; border-radius: 8px; overflow: hidden; background: #ddd;
  break-inside: avoid;
}
.gallery img { width: 100%; height: auto; display: block; transition: transform .35s; }
.gallery figure:hover img { transform: scale(1.04); }

/* History */
.history { max-width: 46rem; margin-inline: auto; }
.history p { font-size: 1.08rem; }
.timeline { list-style: none; margin: 2rem 0; padding: 0; border-left: 3px solid var(--red); }
.timeline li { padding: 0 0 1.4rem 1.4rem; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .45rem; width: 15px; height: 15px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--red);
}
.timeline strong {
  display: block; font-family: var(--font-display); font-size: 1.25rem;
  color: var(--navy); letter-spacing: .04em;
}

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.barber { text-align: center; }
.barber img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.14); margin-bottom: .9rem;
}
.barber h3 { margin-bottom: .1rem; }
.barber p { color: var(--muted); margin: 0; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; }
.team-photo { margin: 3rem auto 0; max-width: 900px; }
.team-photo img { border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.team-photo figcaption { text-align: center; color: var(--muted); font-size: .95rem; margin-top: .7rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2rem; }
.contact-card dl { margin: 0; }
.contact-card dt {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-top: 1.2rem;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: .2rem 0 0; font-size: 1.1rem; }
.contact-card .hours li { border-bottom-color: var(--line); }
.contact-card .hours { margin-bottom: 0; }
.contact-card .actions { margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .4rem; }
.cta-band p { max-width: 36rem; margin: 0 auto 1.4rem; }


/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong {
  display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1;
  color: var(--red); margin-bottom: .35rem; letter-spacing: .02em;
}
.section-dark .stat strong { color: #f0b6b6; }
.stat span { font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.section-dark .stat span { color: rgba(255,255,255,.85); }

/* ---------- Feature tiles (what makes the shop different) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.8rem 1.6rem; }
.tile .icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-alt); color: var(--red); margin-bottom: 1rem;
}
.tile .icon svg { width: 26px; height: 26px; }
.tile h3 { margin-bottom: .4rem; text-transform: uppercase; letter-spacing: .05em; }
.tile p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Owner feature ---------- */
.badges { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.badges li {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid var(--navy); color: var(--navy); border-radius: 999px; padding: .35rem .9rem;
}
.media-stack { display: grid; gap: 1rem; }
.media-stack img { border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.15); }

/* Barber bios */
.barber .bio { font-size: .92rem; color: var(--muted); text-transform: none; letter-spacing: 0; margin-top: .5rem; line-height: 1.5; }

/* Gallery captions */
.gallery figcaption {
  font-size: .85rem; color: var(--muted); padding: .55rem .8rem .7rem; background: #fff; line-height: 1.4;
}

/* Landmarks list */
.landmarks { list-style: none; padding: 0; margin: 1rem 0 0; }
.landmarks li { padding: .7rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; }
.landmarks li:last-child { border-bottom: 0; }
.landmarks strong { flex: 0 0 11rem; color: var(--navy); font-family: var(--font-display); letter-spacing: .04em; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #cfcfcf; padding: 2.5rem 0 2rem; font-size: .92rem;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: center;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #f0b6b6; }
.site-footer .wordmark .name .k { color: #f28b8b; }
.site-footer .wordmark .name .b { color: #aab6e0; }
.site-footer .wordmark .est { color: #f28b8b; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer .legal { width: 100%; margin-top: .5rem; color: #9a9a9a; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services, .team, .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .visit, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse > .media { order: 0; }
  .gallery { columns: 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none; padding: .6rem 0 1.2rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav li:last-child { margin-top: .8rem; }
  .site-nav a.btn { text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { background-image: url("../images/hero-sign-mobile.jpg"); min-height: min(70vh, 600px); }
  .hero .container { padding-block: 3.5rem; }
  .page-hero { min-height: min(40vh, 340px); }
  .services, .team, .tiles { grid-template-columns: 1fr; }
  .landmarks li { flex-direction: column; gap: .2rem; }
  .landmarks strong { flex: none; }
  .gallery { columns: 1; }
  .contact-card { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img, .btn { transition: none; }
}
