/* ==========================================================================
   York Barbershop — Est. 1928
   Palette drawn from the shop's own gold seal + wall-of-frames interior.
   ========================================================================== */

:root {
  --espresso: #161210;
  --espresso-2: #1d1815;
  --ivory: #F6EFE1;
  --gold: #C9A24B;
  --gold-bright: #E0BE72;
  --red: #8B1E1E;
  --bronze: #3A2E22;
  --stone: #7C7264;

  --display: 'Cormorant', 'Georgia', serif;
  --body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --max: 1180px;
  --gap: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--espresso);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-family: var(--body);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 0.75rem;
  font-weight: 500;
}
.eyebrow-dark {
  color: var(--red);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 2px;
  border: 1.5px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  min-height: 44px;
  line-height: 1.3;
}
.btn-primary {
  background: var(--red);
  color: var(--ivory);
  border-color: var(--red);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #6f1717;
  border-color: #6f1717;
}
.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--gold);
  color: var(--espresso);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 18, 16, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.25);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ivory);
}
.wordmark-seal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.wordmark-text {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.wordmark-text em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--gold-bright);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ivory);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}
.nav-cta {
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  padding: 0.5rem 1.1rem;
  color: var(--gold-bright);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover, .nav-cta:focus-visible {
  background: var(--gold);
  color: var(--espresso);
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--espresso-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem var(--gap) 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid rgba(201, 162, 75, 0.25);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22,18,16,0.55) 0%, rgba(22,18,16,0.55) 30%, rgba(22,18,16,0.88) 100%),
    linear-gradient(90deg, rgba(22,18,16,0.35) 0%, rgba(22,18,16,0.1) 55%);
}

.hero-seal {
  position: absolute;
  top: 8%;
  right: -6%;
  width: min(48vw, 460px);
  opacity: 0.16;
  z-index: 1;
  animation: seal-spin 90s linear infinite;
}
.hero-seal img {
  border-radius: 50%;
}
@keyframes seal-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-seal { animation: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap) clamp(3rem, 8vh, 5.5rem);
  width: 100%;
}

.hero .eyebrow { color: var(--gold-bright); }

.hero h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  color: var(--ivory);
  margin-bottom: 1.1rem;
}

.hero-lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(246, 239, 225, 0.86);
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- History ---------- */

.history {
  background: var(--ivory);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.history-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--espresso);
}

.history-copy p {
  color: var(--bronze);
  font-size: 1.05rem;
  max-width: 62ch;
}

.history-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--red);
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 860px) {
  .history-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
  }
}

/* ---------- Services ---------- */

.services {
  background: var(--espresso);
  color: var(--ivory);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.services h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--ivory);
  margin-bottom: 2.5rem;
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) {
  .package-grid { grid-template-columns: 1fr 1fr; }
}

.package-card {
  background: var(--bronze);
  border: 1px solid rgba(201, 162, 75, 0.25);
  padding: 2rem;
  border-radius: 3px;
}
.package-card h3 {
  font-size: 1.6rem;
  color: var(--gold-bright);
  margin-bottom: 0.9rem;
}
.package-card p {
  color: rgba(246, 239, 225, 0.85);
  margin: 0 0 1rem;
}
.package-note {
  font-style: italic;
  color: var(--stone);
  font-size: 0.92rem;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.plain-list li {
  padding: 0.4rem 0;
  border-bottom: 1px dotted rgba(201, 162, 75, 0.25);
  color: rgba(246, 239, 225, 0.85);
}
.plain-list li:last-child { border-bottom: none; }

.service-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 720px) {
  .service-lists { grid-template-columns: 1fr 1fr; }
}

.service-list h3 {
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(201, 162, 75, 0.35);
}
.service-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(246, 239, 225, 0.08);
  color: rgba(246, 239, 225, 0.85);
}
.service-list li:last-child { border-bottom: none; }

/* ---------- Stylists ---------- */

.stylists {
  background: var(--ivory);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.stylists h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--espresso);
  margin-bottom: 2.5rem;
}

.stylist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 780px) {
  .stylist-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.stylist-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.stylist-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.15) sepia(0.08);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.stylist-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0) sepia(0);
}
.stylist-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 0.75rem 0.75rem;
  background: linear-gradient(0deg, rgba(22,18,16,0.85), rgba(22,18,16,0));
  color: var(--ivory);
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

/* ---------- Products ---------- */

.products {
  background: var(--bronze);
  color: var(--ivory);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
}
.products h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin-bottom: 1rem;
}
.products-intro {
  color: rgba(246, 239, 225, 0.75);
  margin-bottom: 1.75rem;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.brand-row li {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 162, 75, 0.4);
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
}

.products-note {
  color: var(--stone);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Visit ---------- */

.visit {
  background: var(--espresso);
  color: var(--ivory);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1.3fr 0.7fr; }
}

.visit h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--ivory);
  margin-bottom: 2rem;
}

.visit-detail {
  margin-bottom: 1.75rem;
}
.visit-detail h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  font-family: var(--body);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.visit-detail p {
  margin: 0.2rem 0;
  color: rgba(246, 239, 225, 0.9);
}
.visit-detail a {
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 75, 0.4);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.visit-detail a:hover, .visit-detail a:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.hours-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 360px;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.45rem 0;
  font-weight: 400;
  color: rgba(246, 239, 225, 0.9);
  border-bottom: 1px solid rgba(246, 239, 225, 0.1);
  font-size: 0.95rem;
}
.hours-table th { color: var(--stone); font-weight: 400; padding-right: 1rem; }

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.visit-seal {
  display: flex;
  justify-content: center;
  align-items: center;
}
.visit-seal img {
  width: min(100%, 280px);
  border-radius: 50%;
  opacity: 0.9;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--espresso-2);
  color: var(--stone);
  padding: 3rem var(--gap) 2.5rem;
  border-top: 1px solid rgba(201, 162, 75, 0.2);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.footer-seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}
.footer-inner p {
  margin: 0.3rem 0;
  font-size: 0.88rem;
}
.footer-copy {
  margin-top: 1rem;
  color: rgba(124, 114, 100, 0.7);
  font-size: 0.8rem;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
