/* TrimFinder — barbershop-inspired editorial theme.
   Deep navy + warm gold, Inter for UI, DM Serif Display for the hero.
   Generous whitespace, real visual hierarchy, no template feel. */

:root {
  --navy:        #0f1e3a;
  --navy-2:      #1a2c54;
  --navy-3:      #243a6a;
  --gold:        #d4a24a;
  --gold-2:      #b78636;
  --gold-soft:   #f3e2bd;
  --cream:       #f7f2e7;
  --paper:       #ffffff;
  --ink:         #0f1e3a;
  --ink-soft:    #586484;
  --line:        #e6dfce;
  --line-strong: #d6cdb6;
  --success:     #1f7a4d;
  --warn:        #b04022;
  --maxw:        1180px;
  --radius:      12px;
  --radius-lg:   18px;
  --shadow:      0 1px 2px rgba(15,30,58,.05), 0 14px 36px rgba(15,30,58,.08);
  --shadow-lift: 0 24px 60px rgba(15,30,58,.15);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy); text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
a:hover { color: var(--gold-2); border-bottom-color: currentColor; }
img, svg { max-width: 100%; height: auto; display: block; }

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

/* ============ HEADER ============ */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 30;
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.015em;
  border-bottom: 0;
}
.brand:hover { color: var(--gold); border-bottom: 0; }
.brand .scissors {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 900; font-size: .85rem;
}
.primary-nav { display: flex; gap: 28px; justify-content: center; }
.primary-nav a {
  color: #c8d2e8; font-weight: 500; font-size: 0.95rem;
  border-bottom: 0; padding: 4px 0;
  position: relative;
}
.primary-nav a:hover { color: #fff; border-bottom: 0; }
.primary-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--gold);
}
.header-search { display: flex; gap: 6px; }
.header-search input {
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  width: 240px;
  font-size: 14px;
  font-family: inherit;
}
.header-search input::placeholder { color: #97a3c1; }
.header-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; background: rgba(255,255,255,.14); }
.header-search button {
  background: var(--gold); color: var(--navy);
  border: 0; border-radius: 999px;
  padding: 9px 18px; font-weight: 700; font-size: 14px; cursor: pointer;
  font-family: inherit;
}
.header-search button:hover { background: var(--gold-2); color: #fff; }

/* ============ CRUMBS ============ */
.crumbs { padding: 18px 24px 0; }
.crumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-soft);
}
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-soft); border-bottom: 0; }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

.site-main { padding: 32px 24px 80px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  background: linear-gradient(135deg, #0a1628 0%, #1a2c54 60%, #243a6a 100%);
  color: #fff;
  isolation: isolate;
  padding: 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(212,162,74,.32), transparent 55%),
    radial-gradient(circle at 15% 90%, rgba(212,162,74,.18), transparent 50%);
  z-index: -1;
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .15; z-index: -2;
  filter: saturate(.7);
}
.hero-inner { padding: 88px 56px 72px; max-width: 740px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(212,162,74,.16);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero p.lead {
  font-size: 1.1rem;
  margin: 0 0 32px;
  color: #d4dcef;
  max-width: 560px;
  line-height: 1.55;
}
.hero-search {
  display: flex; gap: 8px;
  background: #fff;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0,0,0,.25);
  max-width: 540px;
}
.hero-search input {
  flex: 1; border: 0; background: transparent;
  font-size: 1rem; font-family: inherit; color: var(--ink);
  padding: 12px 4px;
  min-width: 0;
}
.hero-search input:focus { outline: 0; }
.hero-search button {
  background: var(--navy); color: #fff;
  border: 0; border-radius: 999px;
  padding: 12px 26px; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  font-family: inherit;
  transition: background .15s ease;
}
.hero-search button:hover { background: var(--navy-2); }
.hero-meta {
  display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap;
  font-size: 13px; color: #97a8c5;
}
.hero-meta strong { color: var(--gold); font-weight: 700; font-size: 1.4rem; display: block; line-height: 1.1; font-family: "DM Serif Display", Georgia, serif; }

/* ============ SECTIONS / HEADINGS ============ */
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -0.015em; }
h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(1.9rem, 3.5vw, 2.4rem); line-height: 1.15; margin: 0 0 14px; }
h2 { font-size: 1.45rem; font-weight: 700; margin: 40px 0 16px; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 22px 0 8px; }

.muted { color: var(--ink-soft); }
.lede { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 28px; max-width: 720px; line-height: 1.6; }

.section { margin: 48px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--gold-2); border-bottom: 0; }
.section-head a:hover { color: var(--navy); }

/* ============ CARDS / GRIDS ============ */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: 0 1px 2px rgba(15,30,58,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  border-bottom: 0;
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
  border-bottom: 1px solid var(--gold);
}
.card h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.badge.gold { background: var(--gold); color: var(--navy); }
.badge.cream { background: var(--gold-soft); color: var(--navy-2); }

/* Chain logo card (text-only) */
.logo-card {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; border-bottom: 0;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.logo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); border-bottom: 1px solid var(--gold); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--navy); color: var(--gold);
  border-radius: 12px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.7rem; font-weight: 400;
}
.logo-card .name { color: var(--navy); font-weight: 700; font-size: 1rem; }
.logo-card .count { color: var(--ink-soft); font-size: 13px; }

/* ============ TWO-COLUMN LAYOUT ============ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.side-card h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-2);
}
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.side-card li:last-child { border-bottom: 0; }
.side-card a { border-bottom: 0; color: var(--navy); font-weight: 500; }
.side-card a:hover { color: var(--gold-2); }

.side-card.featured {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.side-card.featured h4 { color: var(--gold); }
.side-card.featured a { color: #fff; }
.side-card.featured a:hover { color: var(--gold); }
.side-card.featured li { border-color: rgba(255,255,255,.08); }
.side-card.featured p { color: #c8d2e8; }

@media (max-width: 940px) {
  .layout { grid-template-columns: 1fr; }
  .header-row { grid-template-columns: auto auto; gap: 14px; }
  .primary-nav { grid-column: 1 / -1; order: 3; gap: 18px; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .header-search { width: 100%; }
  .header-search input { flex: 1; width: auto; min-width: 0; }
  .hero-inner { padding: 56px 28px 48px; }
  .hero-search { flex-direction: column; padding: 14px; border-radius: 16px; }
  .hero-search button { width: 100%; }
}

/* ============ HOURS TABLE ============ */
.hours-table { width: 100%; border-collapse: collapse; margin: 12px 0 6px; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hours-table th, .hours-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { color: var(--ink-soft); font-weight: 600; width: 40%; }
.hours-row-today { background: var(--gold-soft); }
.hours-row-today th, .hours-row-today td { color: var(--navy); font-weight: 700; }

/* ============ BUTTONS ============ */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit; cursor: pointer;
  border-bottom: 0;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; border-bottom: 0; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); color: #fff; border-bottom: 0; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper); border-color: var(--navy); color: var(--navy); border-bottom: 1px solid var(--navy); }

/* ============ STATUS PILL ============ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-weight: 700; font-size: 12px;
  letter-spacing: .03em;
}
.pill.open { background: #def0e3; color: var(--success); }
.pill.closed { background: #fadcd2; color: var(--warn); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ============ LISTS ============ */
.link-list { columns: 2; column-gap: 36px; padding: 0; margin: 0; list-style: none; }
.link-list li { padding: 6px 0; break-inside: avoid; font-size: 14.5px; }
@media (max-width: 700px) { .link-list { columns: 1; } }

/* ============ ARTICLE PROSE ============ */
.prose { max-width: 760px; }
.prose p { margin: 14px 0; font-size: 1rem; }
.prose h2, .prose h3 { margin-top: 32px; }
.prose h2 { padding-top: 8px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 36px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 22px;
  margin: 22px 0;
  color: var(--ink-soft); font-style: italic;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  color: #c8d2e8;
  margin-top: 80px;
  padding: 56px 0 28px;
  border-top: 4px solid var(--gold);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; padding: 0 24px 36px;
}
.footer-grid h4 {
  color: #fff; margin: 0 0 14px;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 5px 0; font-size: 14px; }
.footer-grid a { color: #c8d2e8; border-bottom: 0; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid .brand { color: #fff; }
.footer-grid p { color: #97a8c5; font-size: 14px; line-height: 1.6; max-width: 360px; }
.fineprint {
  padding: 20px 24px 0;
  font-size: 12.5px; color: #6f7da0;
  border-top: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ============ SEARCH RESULTS ============ */
.results { display: flex; flex-direction: column; gap: 10px; }
.result-row {
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: block; text-decoration: none;
}
.result-row:hover { border-color: var(--gold); border-bottom: 1px solid var(--gold); }
.result-row .meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ============ EMPTY / 404 ============ */
.empty { text-align: center; padding: 72px 24px; color: var(--ink-soft); }
.empty h1 { color: var(--navy); }

/* ============ KEY FACTS PANEL (brand pages) ============ */
.facts {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin: 22px 0 30px;
}
.fact label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-2); margin-bottom: 4px;
}
.fact strong {
  color: var(--navy);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
  display: block;
}
.fact span { color: var(--ink-soft); font-size: 13.5px; display: block; margin-top: 2px; }

/* ============ GUIDE INDEX ============ */
.guide-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.guide-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; border-bottom: 0;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); border-bottom: 1px solid var(--gold); }
.guide-card .kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-2); }
.guide-card h3 { margin: 0; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 1.4rem; line-height: 1.2; color: var(--navy); }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ============ ARTICLE HEADER ============ */
.article-head {
  margin: 0 0 28px; max-width: 760px;
}
.article-head .kicker {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-2); margin-bottom: 12px;
}
.article-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
