/* Legacy Gents Salon — concept by Beans Digital
   Palette: espresso black, brass gold, aged cream.
   Derived from the name "Legacy": classic gentleman's barbering heritage,
   late-night lounge atmosphere (open to 11:30 PM). */

@view-transition { navigation: auto; }

:root {
  --bg: #15110d;
  --surface: #1f1913;
  --surface-2: #272015;
  --line: #3a3022;
  --gold: #c9a35c;
  --gold-soft: #9d7f49;
  --cream: #f1e7d3;
  --muted: #a3947c;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }

.wrap { width: min(1060px, 100% - 2.5rem); margin-inline: auto; }

/* ---- concept banner ---- */
.concept-banner {
  background: var(--gold);
  color: #1b150c;
  font-size: .78rem;
  font-weight: 500;
  text-align: center;
  padding: .45rem 1rem;
  letter-spacing: .02em;
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 17, 13, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--cream);
}
.brand:hover { color: var(--cream); }

.monogram {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold-soft);
  outline-offset: 3px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold);
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: .58rem;
  letter-spacing: .42em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 1.8rem; align-items: center; }

.site-nav a {
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
  transition: color .25s, letter-spacing .25s, border-color .25s;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .5rem .8rem;
  cursor: pointer;
}

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(201, 163, 92, .13), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  letter-spacing: .02em;
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }

.hero p.lede {
  max-width: 34rem;
  margin: 0 auto 2.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.rating-line {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .55rem 1.2rem;
  margin-bottom: 2.4rem;
}
.rating-line .stars { color: var(--gold); letter-spacing: .25em; }

.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--gold); color: #1b150c; }
.btn.solid { background: var(--gold); color: #1b150c; }
.btn.solid:hover { background: var(--cream); border-color: var(--cream); }

/* ---- ornamental rule ---- */
.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 auto 1.4rem;
  max-width: 280px;
  color: var(--gold);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.rule::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ---- sections ---- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: .6rem; }
.section-head p { color: var(--muted); max-width: 36rem; margin-inline: auto; }

/* ---- services ---- */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.service {
  background: var(--bg);
  padding: 2.2rem 1.9rem;
  transition: background .35s;
}
.service:hover { background: var(--surface-2); }

.service .numeral {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--gold);
  letter-spacing: .3em;
  display: block;
  margin-bottom: .9rem;
}
.service h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.service p { color: var(--muted); font-size: .95rem; }

/* ---- quotes ---- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }

blockquote.review {
  border: 1px solid var(--line);
  padding: 1.9rem 1.7rem;
  background: var(--bg);
  position: relative;
}
blockquote.review::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: .4rem;
}
blockquote.review p { color: var(--cream); font-size: .98rem; font-style: italic; }
blockquote.review footer {
  margin-top: 1.1rem;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- hours & location ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

table.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.hours caption {
  font-family: var(--serif);
  font-size: 1.4rem;
  text-align: left;
  margin-bottom: 1rem;
  color: var(--cream);
}
table.hours th, table.hours td {
  padding: .6rem .3rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
table.hours th { color: var(--muted); font-weight: 400; }
table.hours td { color: var(--cream); text-align: right; }
table.hours tr.today th, table.hours tr.today td { color: var(--gold); }

.map-frame {
  border: 1px solid var(--line);
  padding: .5rem;
  background: var(--surface);
}
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(.4) sepia(.12); }

.addr { color: var(--muted); font-size: .95rem; margin: 1rem 0; }

/* ---- CTA strip ---- */
.cta-strip { text-align: center; }
.cta-strip h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.cta-strip p { color: var(--muted); margin-bottom: 2rem; }

/* ---- page intro (inner pages) ---- */
.page-intro { text-align: center; padding: clamp(3.5rem, 8vw, 5.5rem) 0 1rem; }
.page-intro h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.page-intro p { color: var(--muted); max-width: 36rem; margin-inline: auto; }

/* ---- contact ---- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; margin-bottom: 3rem; }
.contact-card {
  border: 1px solid var(--line);
  padding: 1.9rem 1.6rem;
  text-align: center;
  background: var(--surface);
}
.contact-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.contact-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 6.5rem;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
.site-footer .monogram { margin: 0 auto 1.2rem; }
.site-footer nav { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.site-footer nav a { color: var(--muted); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--gold); }
.credit { margin-top: 1.2rem; font-size: .75rem; letter-spacing: .08em; }

/* ---- floating WhatsApp ---- */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: #1f8f54;
  color: #fff;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: transform .25s;
}
.wa-float:hover { transform: translateY(-3px); color: #fff; }
.wa-float svg { width: 20px; height: 20px; flex: none; }

/* ---- reveal animations (JS-gated: visible without JS) ---- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- mobile ---- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem 1.4rem; width: 100%; border-bottom: none; }
  .site-nav a[aria-current="page"] { background: var(--surface-2); }
  .split { grid-template-columns: 1fr; }
}

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