/* ============================================================
   THE AMERICAN BARBER SHOP — ZAGREB
   Design system: American enamel signage / wood-type poster
   Palette: pole red, shop navy, enamel cream, brass
   Type: Big Shoulders Display (display) + Libre Franklin (body)
   Signature: the animated barber pole
   ============================================================ */

:root {
  --red: #a6242b;
  --red-dark: #7f181e;
  --navy: #16273b;
  --navy-deep: #0f1b2b;
  --cream: #f2ebdc;
  --cream-dark: #e6dcc6;
  --brass: #b9892f;
  --ink: #171c24;
  --line: #d5c9ae;
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Barber pole (signature) ---------- */
.pole-ribbon {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 18px,
    var(--cream) 18px 36px,
    var(--navy) 36px 54px,
    var(--cream) 54px 72px
  );
  background-size: 102px 102px;
  animation: pole-slide 3.2s linear infinite;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
@keyframes pole-slide { to { background-position: 102px 0; } }
@media (prefers-reduced-motion: reduce) {
  .pole-ribbon, .hero-pole::before { animation: none !important; }
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--red);
  color: var(--cream);
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 15px;
  padding: 7px 12px;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  color: var(--cream);
  border-bottom: 3px solid var(--brass);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--brass);
  background:
    repeating-linear-gradient(-45deg, var(--red) 0 7px, var(--cream) 7px 14px, var(--navy) 14px 21px, var(--cream) 21px 28px);
  flex: none;
}
.brand-text { font-family: var(--display); line-height: 1.05; }
.brand-text .b1 { font-size: 21px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-text .b2 { font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--brass); font-weight: 600; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 16px;
  padding: 8px 12px;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--brass); color: var(--cream);
  font-family: var(--display); font-weight: 700; letter-spacing: 0.1em;
  padding: 8px 14px; text-transform: uppercase; cursor: pointer; font-size: 15px;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; z-index: 40;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 8px 24px 18px;
    border-bottom: 3px solid var(--brass);
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 64px 1.2fr 1fr;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 540px;
  align-items: center;
}
.hero-pole {
  align-self: stretch;
  position: relative;
  border-left: 3px solid var(--brass);
  border-right: 3px solid var(--brass);
  background: var(--cream);
  overflow: hidden;
}
.hero-pole::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    var(--red) 0 22px,
    var(--cream) 22px 44px,
    var(--navy) 44px 66px,
    var(--cream) 66px 88px
  );
  background-size: 100% 155px;
  animation: pole-down 4s linear infinite;
}
@keyframes pole-down { to { background-position: 0 155px; } }

.hero-copy { padding: 64px 0; }
.eyebrow {
  font-family: var(--display);
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.hero h1 .accent { color: var(--red); -webkit-text-stroke: 1px var(--cream); }
.hero p.lede { margin: 22px 0 30px; font-size: 19px; max-width: 46ch; color: #e9e2d2; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 17px;
  text-decoration: none;
  padding: 13px 26px;
  border: 2px solid var(--cream);
}
.btn-primary { background: var(--red); color: var(--cream); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--navy); }

.hero-card {
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--red);
  padding: 26px 28px;
  margin: 48px 0;
}
.hero-card h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 22px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours .closed td:last-child { color: #8a8071; font-weight: 400; }
.hero-card .addr { margin-top: 12px; font-size: 15px; border-top: 1px dashed var(--ink); padding-top: 10px; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 40px 1fr; }
  .hero-card-col { grid-column: 2; }
  .hero-card { margin-top: 0; }
}
@media (max-width: 560px) {
  .hero-grid { grid-template-columns: 26px 1fr; gap: 22px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-dark { background: var(--navy); color: var(--cream); }
.section-red { background: var(--red); color: var(--cream); }
.section h2.title, h1.title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1;
  margin-bottom: 10px;
}
.section .sub { max-width: 62ch; margin-bottom: 34px; }
.section-dark .sub { color: #e9e2d2; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: #fbf7ec;
  border: 2px solid var(--ink);
  padding: 24px;
  box-shadow: 6px 6px 0 var(--navy);
}
.svc h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 22px; margin-bottom: 8px; }
.svc .price { font-family: var(--display); font-weight: 800; color: var(--red); font-size: 26px; }
.svc p { font-size: 15.5px; margin: 8px 0 0; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .svc-grid { grid-template-columns: 1fr; } }

/* Menu board (pricelist) */
.board {
  background: var(--navy-deep);
  color: var(--cream);
  border: 3px solid var(--brass);
  padding: 40px clamp(20px, 5vw, 56px);
  max-width: 860px;
  margin: 0 auto;
}
.board h2 {
  font-family: var(--display); text-transform: uppercase; text-align: center;
  letter-spacing: 0.2em; font-size: 30px; color: var(--brass); margin: 26px 0 14px;
}
.board h2:first-child { margin-top: 0; }
.price-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0;
}
.price-row .name { text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; font-size: 16px; }
.price-row .name small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; color: #bfb59d; font-size: 13.5px; }
.price-row .dots { flex: 1; border-bottom: 2px dotted #4a5a70; transform: translateY(-4px); }
.price-row .amt { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--cream); white-space: nowrap; }

/* Press */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.press-card {
  background: #fbf7ec; border: 2px solid var(--ink); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.press-card .src { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em; color: var(--red); font-weight: 700; font-size: 14px; }
.press-card h3 { font-size: 19px; line-height: 1.35; }
.press-card a { color: var(--ink); text-decoration: none; }
.press-card a:hover { color: var(--red); }
.press-card .read { margin-top: auto; font-weight: 600; color: var(--red); font-size: 15px; }
@media (max-width: 820px) { .press-grid { grid-template-columns: 1fr; } }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fbf7ec; border: 2px solid var(--ink); display: flex; flex-direction: column; }
.post-card figure { aspect-ratio: 16/10; background: var(--navy); border-bottom: 2px solid var(--ink); overflow: hidden; }
.post-card figure img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pad { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .tag { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 13px; color: var(--brass); font-weight: 700; }
.post-card h3 { font-size: 20px; line-height: 1.3; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--red); }
.post-card p { font-size: 15px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 64px 24px; }
.article h1 { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1; margin-bottom: 8px; }
.article .meta { color: #756a54; font-size: 14.5px; margin-bottom: 28px; }
.article h2 { font-family: var(--display); text-transform: uppercase; font-size: 27px; margin: 38px 0 12px; letter-spacing: 0.03em; }
.article h3 { font-size: 19px; margin: 26px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 6px; }
.article .callout {
  border: 2px solid var(--ink); background: #fbf7ec; box-shadow: 6px 6px 0 var(--red);
  padding: 20px 22px; margin: 28px 0;
}
.article .callout strong { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; }
.article figure { margin: 28px 0; border: 2px solid var(--ink); }
.article figcaption { font-size: 13.5px; padding: 8px 12px; background: var(--cream-dark); border-top: 2px solid var(--ink); }

/* Two-col about */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.split figure { border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--red); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #cfc6ae; font-size: 15px; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 52px 24px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
.site-footer h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; color: var(--brass); font-size: 16px; margin-bottom: 12px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.copyline { border-top: 1px solid #24364e; text-align: center; padding: 16px 24px; font-size: 13.5px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

/* Utility */
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.badge-walkin {
  display: inline-block; background: var(--brass); color: var(--navy-deep);
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; padding: 6px 14px; font-size: 15px; margin-bottom: 18px;
}
