/* ============ HD Haven Barbershop & Salon ============ */

@font-face { font-family: "Josefin Sans"; src: url("../fonts/JosefinSans-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("../fonts/JosefinSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("../fonts/JosefinSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --black: #0a0a0a;
  --ink: #111110;
  --surface: #171614;
  --surface-2: #1f1d1a;
  --line: rgba(212, 175, 90, 0.22);
  --gold: #d4af5a;
  --gold-light: #f3d98b;
  --gold-dark: #a77d2b;
  --gold-grad: linear-gradient(135deg, #a77d2b 0%, #f3d98b 45%, #d4af5a 60%, #a77d2b 100%);
  --white: #f7f3ea;
  --muted: #b3ab9c;
  --silver: #d9d9d9;
  --radius: 14px;
  --nav-h: 76px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Josefin Sans", system-ui, sans-serif;
  --font-script: "Great Vibes", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.075rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .02em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95em 1.9em;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s, color .2s;
}
.btn-gold { background: var(--gold-grad); color: #1a1408; box-shadow: 0 6px 22px rgba(212,175,90,.25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,175,90,.4); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: rgba(212,175,90,.12); }
.btn-sm { padding: .65em 1.3em; font-size: .8rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
}
/* Background lives on a pseudo-element so backdrop-filter doesn't trap the fixed mobile menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10,10,10,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .3s;
}
.site-header.scrolled::before { opacity: 1; }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 52px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  text-decoration: none; font-weight: 400; font-size: .88rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--white);
  position: relative; padding: 6px 0;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-menu a:not(.btn):hover::after,
.nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--gold-light); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--gold-light); margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--black);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; }
  .nav-menu a:not(.btn) { font-size: 1.15rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; padding: calc(var(--nav-h) + 20px) 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,10,10,.55) 0%, rgba(10,10,10,.88) 70%, var(--black) 100%),
    url("../images/hero3.jpg") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.14); } }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: min(540px, 88vw); height: auto;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.7));
  animation: fadeUp 1.1s ease both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 34px; animation: fadeUp 1.1s .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border: 1.5px solid var(--gold); border-radius: 14px; z-index: 1;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold-light); animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-alt { background: var(--ink); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.eyebrow {
  font-family: var(--font-script); color: var(--gold); font-size: 2rem; line-height: 1; margin: 0 0 .25em;
}
.section-title { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-sub { color: var(--muted); margin: 1em 0 0; }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ornament {
  width: 160px; height: 14px; margin: 6px auto 0; position: relative;
}
.ornament::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px;
  background: var(--gold); transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 4px var(--black);
}
.section-alt .ornament::after { box-shadow: 0 0 0 4px var(--ink); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  border: 1px solid var(--line);
}
.about-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold);
  border-radius: var(--radius); z-index: -1;
}
.about-badge {
  position: absolute; right: -14px; bottom: 34px;
  background: var(--gold-grad); color: #1a1408; border-radius: 12px; padding: 16px 20px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.5);
}
.about-badge strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.about-badge span { font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.about-copy .eyebrow { text-align: left; }
.about-copy p { color: var(--muted); }
.about-points { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; gap: 10px; }
.about-points li { padding-left: 30px; position: relative; }
.about-points li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px;
  background: var(--gold); transform: rotate(45deg);
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-group {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
}
.service-group h3 {
  color: var(--gold-light); font-size: 1.45rem; padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.price-list li { padding-left: 24px; position: relative; }
.price-list li::before {
  content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg);
}
.services-note { text-align: center; color: var(--muted); margin: 32px auto 0; max-width: 620px; }
.price-list li { display: flex; align-items: baseline; gap: 10px; }
.price-list .svc { font-weight: 400; }
.price-list .dots { flex: 1; border-bottom: 1px dotted rgba(212,175,90,.45); transform: translateY(-4px); min-width: 20px; }
.price-list .price { font-family: var(--font-display); color: var(--gold-light); font-weight: 600; white-space: nowrap; }
.service-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 40px;
}
.service-strip img {
  aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%;
  filter: grayscale(.35) contrast(1.05); transition: filter .3s, transform .3s;
}
.service-strip img:hover { filter: none; transform: translateY(-3px); }

/* ---------- Barbers ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.barber { text-align: center; }
.barber-photo {
  position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
  border: 1px solid var(--line); aspect-ratio: 4 / 5;
}
.barber-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s; filter: grayscale(.25); }
.barber:hover .barber-photo img { transform: scale(1.05); filter: none; }
.barber-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gold-grad);
  transform: scaleX(0); transition: transform .35s ease;
}
.barber:hover .barber-photo::after { transform: scaleX(1); }
.barber h3 { font-size: 1.25rem; margin-bottom: .2em; }
.barber .role { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; margin: 0; }
.barber .specialty { color: var(--muted); font-size: .95rem; margin: .4em 0 0; }

/* ---------- Booking ---------- */
.section-booking {
  background:
    linear-gradient(rgba(10,10,10,.9), rgba(10,10,10,.94)),
    url("../images/hero2.jpg") center / cover fixed;
}
.booking-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin-inline: auto; }
.book-card {
  display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; gap: 4px 18px; align-items: center;
  padding: 18px 22px; background: rgba(23,22,20,.85); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .25s, transform .25s, background-color .25s;
}
.book-card:hover { border-color: var(--gold); transform: translateY(-3px); background: rgba(31,29,26,.95); }
.book-card img { grid-row: 1 / 3; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.book-card h3 { font-size: 1.15rem; margin: 0; }
.book-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.book-cta {
  grid-column: 2; color: var(--gold-light); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.book-cta span { display: inline-block; transition: transform .25s; }
.book-card:hover .book-cta span { transform: translateX(5px); }
.booking-note { text-align: center; color: var(--muted); margin: 36px 0 0; }
.booking-note a, .contact-info a { color: var(--gold-light); text-decoration: none; }
.booking-note a:hover, .contact-info a:hover { text-decoration: underline; }

/* ---------- Reviews ---------- */
.reviews { position: relative; display: flex; align-items: center; gap: 14px; }
.reviews-track {
  flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 6px 2px 12px; outline: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start; margin: 0; padding: 34px 30px; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.review::before {
  content: "\201C"; position: absolute; top: 4px; right: 22px;
  font-family: var(--font-display); font-size: 5rem; line-height: 1; color: rgba(212,175,90,.2);
}
.stars { color: var(--gold); letter-spacing: .15em; font-size: 1.05rem; }
.review blockquote { margin: 14px 0 22px; font-size: 1.05rem; flex: 1; }
.review figcaption { font-family: var(--font-display); font-weight: 600; color: var(--gold-light); }
.review figcaption span { display: block; font-family: var(--font-body); font-weight: 300; color: var(--muted); font-size: .85rem; }
.rev-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid var(--gold); color: var(--gold-light);
  font-size: 1.6rem; line-height: 1; display: grid; place-items: center; padding-bottom: 4px;
  transition: background-color .2s, color .2s;
}
.rev-btn:hover { background: var(--gold); color: var(--black); }

/* ---------- Award (in Reviews) ---------- */
.award {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 44px); align-items: center;
  max-width: 920px; margin: 0 auto clamp(40px, 6vw, 56px);
  padding: clamp(20px, 3vw, 28px); border: 1px solid var(--gold); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212,175,90,.10), rgba(212,175,90,.02) 60%), var(--surface);
}
.award-badge { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.5); transition: transform .25s; }
.award-badge:hover { transform: translateY(-3px) rotate(-1deg); }
.award-badge img { width: 100%; height: auto; }
.award-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; margin: 0 0 .5em; }
.award h3 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); text-wrap: balance; }
.award-copy p:not(.award-kicker) { color: var(--muted); margin: 0; }
.award .link-gold { color: var(--gold-light); text-decoration: none; }
.award .link-gold:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .award { grid-template-columns: 1fr; text-align: center; }
  .award-badge { width: 100%; max-width: 220px; margin-inline: auto; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: stretch; }
.contact-info {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); display: grid; gap: 26px;
}
.info-block h3 { color: var(--gold-light); font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4em; }
.info-block p { margin: 0; }
.link-gold { display: inline-block; margin-top: .5em; font-weight: 600; font-size: .9rem; letter-spacing: .08em; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 6px 0; border-bottom: 1px solid rgba(212,175,90,.12); text-align: left; font-weight: 300; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--gold-light); font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.6) invert(.9) contrast(.9); }
.map-placeholder {
  height: 100%; min-height: 380px; display: grid; place-items: center; text-align: center; color: var(--muted);
  background:
    repeating-linear-gradient(45deg, rgba(212,175,90,.05) 0 2px, transparent 2px 22px),
    var(--surface);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 56px 0 34px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-inner img { width: 150px; height: auto; }
.tagline { font-family: var(--font-script); color: var(--gold); font-size: 1.8rem; margin: 6px 0; }
.socials { display: flex; gap: 22px; list-style: none; padding: 0; margin: 6px 0 10px; }
.socials a { text-decoration: none; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.socials a:hover { color: var(--gold-light); }
.copy { color: var(--muted); font-size: .85rem; margin: 0; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; font-weight: 600;
  background: var(--gold-grad); color: #1a1408; box-shadow: 0 6px 20px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 820px) {
  .about-grid, .services-grid, .contact-grid, .booking-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin-inline: auto 18px; }
  .service-strip { grid-template-columns: repeat(3, 1fr); }
  .section-booking { background-attachment: scroll; }
}
@media (max-width: 600px) {
  :root { --nav-h: 66px; }
  .container { width: calc(100% - 32px); }
  .nav-logo img { height: 44px; }
  .reviews-track { grid-auto-columns: 100%; }
  .rev-btn { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { width: min(320px, 100%); }
  .about-badge { right: -8px; }
  .team-grid { gap: 18px; }
  .barber h3 { font-size: 1.05rem; }
  .barber .specialty { font-size: .85rem; }
  .book-card { grid-template-columns: 60px 1fr; padding: 16px; }
  .book-card img { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
