/* ============================================================
   University Barbershop — 2026 rebuild
   Warm charcoal + heritage gold + cream. Fraunces / Inter.
   ============================================================ */

:root {
  --bg:        #100f0d;
  --bg-2:      #17150f;
  --surface:   #1b1915;
  --surface-2: #221f19;
  --line:      rgba(242, 237, 226, 0.12);
  --line-soft: rgba(242, 237, 226, 0.07);

  --cream:     #f2ede2;
  --muted:     #b6ac9a;
  --muted-2:   #8b8271;

  --gold:      #c8a24b;
  --gold-lt:   #e2c479;
  --slate:     #5c8bad;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* subtle film-grain texture over the whole page */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: 0.8; }
.eyebrow-gold { color: var(--gold-lt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.92em 1.6em; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: #241c08;
  box-shadow: 0 8px 24px -12px rgba(200, 162, 75, 0.9);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(200, 162, 75, 0.95); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lt); transform: translateY(-2px); }

.link-gold { color: var(--gold-lt); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; }
.link-gold:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Utility bar ---------- */
.utilitybar {
  background: #0b0a09;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.76rem; color: var(--muted);
  letter-spacing: 0.04em;
}
.util-inner { display: flex; align-items: center; justify-content: center; gap: 0.9em; height: 38px; text-align: center; }
.util-dot { color: var(--gold); opacity: 0.6; }
.util-link { transition: color .25s; }
.util-link:hover { color: var(--gold-lt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 15, 13, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.site-header.scrolled {
  background: rgba(12, 11, 9, 0.92);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.9);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .4s var(--ease); }
.site-header.scrolled .header-inner { height: 68px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 46px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .brand-logo { height: 38px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.06rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.26em; color: var(--muted-2); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav > a:not(.btn) {
  font-size: 0.9rem; font-weight: 500; color: var(--cream);
  letter-spacing: 0.01em; position: relative; padding: 4px 0; opacity: 0.85;
  transition: opacity .25s, color .25s;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav > a:not(.btn):hover { opacity: 1; color: var(--gold-lt); }
.nav > a:not(.btn):hover::after { width: 100%; }
.nav-book { margin-left: 6px; padding: 0.7em 1.35em; font-size: 0.85rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1000px 600px at 78% 12%, rgba(92, 139, 173, 0.10), transparent 60%),
    radial-gradient(760px 520px at 12% 100%, rgba(200, 162, 75, 0.10), transparent 62%),
    linear-gradient(180deg, #14120e 0%, var(--bg) 60%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero-title {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-weight: 600; letter-spacing: -0.02em; margin: 0.32em 0 0.42em;
}
.hero-lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-marks { list-style: none; display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.hero-marks li { display: flex; flex-direction: column; gap: 2px; }
.hero-marks strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--gold-lt); }
.hero-marks span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); }

.hero-figure { position: relative; justify-self: center; }
.hero-frame {
  position: relative; border-radius: 220px 220px 20px 20px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9), inset 0 0 0 6px rgba(242,237,226,0.03);
  aspect-ratio: 3 / 3.6; max-width: 380px;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.06) brightness(0.94); }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16,15,13,0.55)); }
.hero-badge {
  position: absolute; bottom: -18px; left: -18px;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold)); color: #241c08;
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; text-align: center; line-height: 1.3;
  box-shadow: 0 18px 40px -18px rgba(200,162,75,0.9);
}
.hero-badge b { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.04em; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line-soft); background: var(--bg-2); overflow: hidden; padding: 16px 0; }
.marquee-track {
  display: flex; align-items: center; gap: 34px; white-space: nowrap; width: max-content;
  animation: scroll 34s linear infinite;
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.02em; color: var(--cream);
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 0.8rem; }
.marquee-track span { opacity: 0.9; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(64px, 10vw, 128px); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin: 0.28em 0 0.3em; }
.section-lede { color: var(--muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services { background:
  linear-gradient(180deg, var(--bg), var(--bg-2)); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); }
.menu-col { min-width: 0; }
.menu-cat {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold);
  padding-bottom: 12px; margin-bottom: 6px; margin-top: 34px; border-bottom: 1px solid var(--line);
}
.menu-cat:first-child { margin-top: 0; }
.menu-list { list-style: none; }
.menu-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.mi-name { flex: 1 1 auto; min-width: 0; font-size: 1.05rem; font-weight: 500; color: var(--cream); }
.mi-name em { font-style: normal; color: var(--muted-2); font-size: 0.82rem; font-weight: 400; }
.mi-lead { display: none; }
.mi-price { flex: 0 0 auto; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--gold-lt); white-space: nowrap; }

.menu-note { margin-top: 26px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; }
.menu-note p { font-size: 0.88rem; color: var(--muted); }
.menu-note a { color: var(--gold-lt); }

/* Signature package */
.signature {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 0;
  background:
    linear-gradient(135deg, rgba(200,162,75,0.10), rgba(92,139,173,0.06)),
    var(--surface);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.sig-body { padding: clamp(28px, 4vw, 48px); }
.sig-body h3 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 0.2em 0 0.35em; }
.sig-body p { color: var(--muted); max-width: 44ch; margin-bottom: 26px; }
.sig-price {
  align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: clamp(28px, 4vw, 44px); text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.4));
  border-left: 1px solid var(--line);
}
.sig-from { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted-2); }
.sig-amount { font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 4.6rem); font-weight: 600; color: var(--gold-lt); line-height: 1; }
.sig-meta { font-size: 0.76rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; }
.g-item { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--surface); }
.g-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) contrast(1.05) brightness(0.9); transition: transform .8s var(--ease), filter .6s; }
.g-item:hover img { transform: scale(1.05); filter: grayscale(0) contrast(1.05) brightness(1); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-item figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--cream);
  background: rgba(11,10,9,0.55); backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-soft);
}
.gallery-cta { margin-top: 34px; }

/* ---------- Story ---------- */
.story { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.story-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.story-medallion { position: relative; justify-self: center; }
.medallion {
  width: clamp(240px, 34vw, 360px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #f2ede2;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -44px rgba(0,0,0,0.9), 0 0 0 10px rgba(242,237,226,0.03);
}
.medallion img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.story-est {
  position: absolute; right: -6px; bottom: 6px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg); border: 1px solid var(--gold); color: var(--gold-lt);
  padding: 12px 18px; border-radius: 14px; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.2em; line-height: 1.4;
}
.story-est b { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.06em; }
.story-copy h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin: 0.28em 0 0.5em; }
.story-quote {
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); font-style: italic;
  font-weight: 400; line-height: 1.45; color: var(--cream);
  padding-left: 22px; border-left: 2px solid var(--gold); margin-bottom: 24px;
}
.story-copy p { color: var(--muted); }
.story-cta { margin-top: 30px; }

/* ---------- Visit ---------- */
.visit { background: var(--bg); }
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-block { padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.info-block:first-child { padding-top: 0; }
.info-block h3 { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 12px; }
.info-lg { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.3; }
.info-lg a:hover { color: var(--gold-lt); }
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.98rem; color: var(--cream); border-bottom: 1px solid var(--line-soft); }
.hours li:last-child { border-bottom: none; }
.hours li span:last-child { color: var(--muted); }
.hours-note { font-size: 0.84rem; color: var(--muted-2); margin-top: 12px; }

.visit-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: border-color .3s, transform .3s, background .3s; }
.socials a img { width: 18px; height: 18px; opacity: 0.85; }
.socials a:hover { border-color: var(--gold); transform: translateY(-2px); background: rgba(200,162,75,0.08); }

.visit-map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 440px; height: 100%; }
.visit-map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: grayscale(0.6) invert(0.9) contrast(0.9) hue-rotate(180deg); }

/* ---------- Footer ---------- */
.site-footer { background: #0b0a09; border-top: 1px solid var(--line-soft); padding-top: clamp(56px, 8vw, 88px); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 56px; }
.footer-logo { height: 60px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 38ch; margin-bottom: 22px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 18px; }
.footer-col a:not(.btn) { display: block; color: var(--muted); font-size: 0.94rem; padding: 6px 0; transition: color .25s; }
.footer-col a:not(.btn):hover { color: var(--gold-lt); }
.footer-col p { color: var(--muted); font-size: 0.94rem; margin-bottom: 8px; }
.footer-hours { color: var(--muted-2) !important; font-size: 0.84rem !important; letter-spacing: 0.04em; }
.footer-book .btn { margin-top: 4px; }

.footer-base {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 24px; border-top: 1px solid var(--line-soft);
  font-size: 0.78rem; color: var(--muted-2); letter-spacing: 0.04em;
}
.footer-estd { text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); opacity: 0.7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; margin-bottom: 8px; }
  .hero-frame { max-width: 320px; }
  .menu-grid { grid-template-columns: 1fr; gap: 8px; }
  .signature { grid-template-columns: 1fr; }
  .sig-price { border-left: none; border-top: 1px solid var(--line); }
  .story-inner, .visit-grid { grid-template-columns: 1fr; }
  .story-medallion { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: #100f0d; border-left: 1px solid var(--line);
    padding: 40px; transform: translateX(100%); transition: transform .45s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: none; box-shadow: -30px 0 80px -30px rgba(0,0,0,0.9); }
  .nav > a:not(.btn) { font-size: 1.4rem; font-family: var(--serif); opacity: 1; }
  .nav-book { margin-left: 0; margin-top: 8px; font-size: 0.95rem; padding: 0.85em 1.6em; }
  .nav-toggle { display: flex; z-index: 95; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .hero-marks { flex-wrap: wrap; gap: 22px; }
  .util-inner { gap: 0.55em; font-size: 0.7rem; }
  /* keep hours + phone; drop the city label so nothing clips */
  .util-inner .util-item:first-child,
  .util-inner .util-dot:first-of-type { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 10px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
