/* ===== Ironclad Barber Co. ===== */
:root {
  --ink: #15130f;
  --ink-2: #1d1a15;
  --ink-3: #26221b;
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --cream: #fbf8f1;
  --brass: #c79233;
  --brass-bright: #e0aa45;
  --rust: #a8551f;
  --muted: #8a8175;
  --muted-dark: #b8ad98;
  --line: rgba(20, 18, 14, 0.12);
  --line-dark: rgba(245, 241, 232, 0.12);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.55);
  --maxw: 1140px;
  --r: 4px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: "Oswald", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ===== Buttons ===== */
.btn {
  --b: var(--brass);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--r);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--brass);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(199, 146, 51, 0.8);
}
.btn-accent:hover { background: var(--brass-bright); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 241, 232, 0.4);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-bright); }

.btn-lg { font-size: 1rem; padding: 15px 28px; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; padding: 15px; font-size: 1rem; }

/* ===== Eyebrow / headings ===== */
.eyebrow {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--brass-bright);
  margin: 0 0 14px;
}
.eyebrow-dark { color: var(--rust); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 19, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark { color: var(--brass); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.18rem;
}
.brand-text em {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  text-decoration: none;
  color: var(--paper);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-menu a:not(.nav-cta):hover { color: var(--brass-bright); }
.nav-cta { color: var(--ink) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.2s ease;
  margin: 0 auto;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.7) sepia(0.18);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21,19,15,0.55) 0%, rgba(21,19,15,0.35) 40%, rgba(21,19,15,0.92) 100%),
    radial-gradient(80% 60% at 25% 30%, rgba(199,146,51,0.16), transparent 60%);
}
.hero-inner { position: relative; padding: 80px 24px; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  margin: 0 0 22px;
  max-width: 14ch;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  max-width: 50ch;
  color: var(--paper-2);
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  list-style: none;
  margin: 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-dark);
}
.hero-facts li { font-size: 0.98rem; color: var(--muted-dark); }
.hero-facts strong { color: var(--brass-bright); font-family: "Oswald", sans-serif; font-size: 1.15rem; margin-right: 4px; }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .section-lead { color: var(--muted-dark); }
.section-dark a { color: var(--brass-bright); }

.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head-left { margin-left: 0; margin-right: auto; text-align: left; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.section-lead { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.service {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(199, 146, 51, 0.5);
}
.service-feature {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.service-feature p { color: var(--muted-dark); }
.service-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.service-top h3 { font-size: 1.32rem; text-transform: none; letter-spacing: 0; }
.service-top h3 .muted { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.price {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brass);
  flex-shrink: 0;
}
.service-feature .price { color: var(--brass-bright); }
.service p { margin: 0 0 16px; color: var(--ink); opacity: 0.82; font-size: 0.97rem; }
.service-meta {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  color: var(--muted);
}
.service-feature .service-meta { color: var(--muted-dark); }
.tag {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--brass);
  color: var(--ink);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.services-note {
  text-align: center;
  margin: 36px auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Barbers ===== */
.barbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.barber {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.barber:hover { transform: translateY(-5px); border-color: rgba(199, 146, 51, 0.5); }
.barber img { width: 100%; aspect-ratio: 8 / 9; object-fit: cover; filter: grayscale(0.2) contrast(1.05); }
.barber-body { padding: 20px 20px 24px; }
.barber-body h3 { font-size: 1.2rem; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.barber-role {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--brass-bright);
  margin: 0 0 12px;
}
.barber-body p { color: var(--muted-dark); font-size: 0.92rem; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted-dark);
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  transition: transform 0.4s ease, filter 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); filter: grayscale(0) contrast(1.08); }
.gallery-tall { grid-row: span 2; }

/* ===== Quote strip ===== */
.quote-strip {
  background: var(--ink-3);
  color: var(--paper);
  padding: clamp(56px, 8vw, 84px) 0;
  text-align: center;
}
.quote-strip blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: 30ch;
}
.quote-by { margin: 22px 0 0; color: var(--brass-bright); letter-spacing: 0.04em; font-size: 0.95rem; }

/* ===== Visit ===== */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.hours {
  margin: 0 0 8px;
  border-top: 1px solid var(--line-dark);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-dark);
}
.hours-row dt { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem; }
.hours-row dd { margin: 0; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.hours-row.is-today dt, .hours-row.is-today dd { color: var(--brass-bright); }
.hours-row.is-today dt::after {
  content: "Today";
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  background: var(--brass);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 9px;
  vertical-align: middle;
}

.status {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin: 4px 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.status::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.status.is-open { color: #6fbf73; }
.status.is-open::before { background: #6fbf73; box-shadow: 0 0 0 4px rgba(111,191,115,0.18); }
.status.is-closed { color: var(--rust); }
.status.is-closed::before { background: var(--rust); }

.walkin-card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--brass);
  border-radius: var(--r);
  padding: 20px 22px;
  margin: 0 0 26px;
}
.walkin-card h3 { font-size: 1.1rem; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.walkin-card p { margin: 0; color: var(--muted-dark); font-size: 0.94rem; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 3px; }
.contact-label {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--muted);
}
.contact-list a { color: var(--paper); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.contact-list a:hover { border-color: var(--brass); }

/* ===== Book card ===== */
.book-card {
  position: sticky;
  top: 90px;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--r);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.book-card h3 { font-size: 1.7rem; text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.book-sub { color: var(--muted); margin: 0 0 22px; font-size: 0.96rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--ink-3);
}
.field input, .field select {
  font: inherit;
  font-size: 0.96rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(199, 146, 51, 0.2);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(168, 85, 31, 0.16);
}
.form-fineprint { text-align: center; font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }
.form-fineprint a { color: var(--rust); font-weight: 600; }

.book-success { text-align: center; padding: 18px 6px; }
.book-success .check {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  animation: pop 0.4s ease;
}
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.book-success h3 { font-size: 1.5rem; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.book-success p { color: var(--muted); margin: 0 0 20px; }

/* ===== Footer ===== */
.site-footer { background: #100e0b; color: var(--paper); padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .brand-mark { color: var(--brass); }
.footer-brand p { margin: 0; line-height: 1.7; color: var(--muted-dark); }
.footer-brand strong { color: var(--paper); font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--brass-bright);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--muted-dark);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.footer-tag { color: var(--brass) !important; font-family: "Oswald", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(21, 19, 15, 0.99);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-dark);
    padding: 12px 24px 24px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { border-bottom: 1px solid var(--line-dark); }
  .nav-menu li:last-child { border: none; padding-top: 14px; }
  .nav-menu a:not(.nav-cta) { display: block; padding: 16px 0; font-size: 1.05rem; }
  .nav-cta { width: 100%; }

  .visit-grid { grid-template-columns: 1fr; }
  .book-card { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-tall { grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero-facts { gap: 10px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; }
}
