/* ============================================
   NYO BARBERSHOP — Wilkes-Barre, PA
   Theme: Premium warm dark, confident
   Fonts: Archivo Black (display) + Barlow (body)
   Palette: Charcoal + warm gold accent
   ============================================ */

:root {
  --bg: #0d0b09;
  --bg-alt: #151210;
  --bg-card: #1c1815;
  --text: #ede8e2;
  --text-muted: #9e9589;
  --accent: #C9A84C;
  --accent-dark: #a8893a;
  --heading: 'Archivo Black', sans-serif;
  --body: 'Barlow', sans-serif;
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: #e0c56a; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 7.5vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

.overline {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(13, 11, 9, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.06);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.5); }

.nav .container { display: flex; justify-content: space-between; align-items: center; }

.nav__brand {
  font-family: var(--heading);
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav__phone {
  font-family: var(--body);
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__phone svg { width: 16px; height: 16px; fill: var(--accent); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(8rem, 15vh, 12rem) 0 clamp(6rem, 10vh, 10rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 35%, rgba(201, 168, 76, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
    linear-gradient(165deg, #0d0b09 0%, #1a1510 45%, #0d0b09 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero__tagline {
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero__accent {
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}

.hero__stat-num {
  font-family: var(--heading);
  font-size: 2.2rem;
  color: var(--accent);
  display: block;
}

.hero__stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background:
    radial-gradient(ellipse at 45% 40%, rgba(201, 168, 76, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #1a1510, #0d0b09);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual-icon {
  opacity: 0.08;
}

.hero__visual-icon svg {
  width: 140px;
  height: 140px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 0.8;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0d0b09;
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(201, 168, 76, 0.4);
  color: #0d0b09;
}

/* ---- SECTION BASE ---- */
.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); }

.section__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.section__header p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-top: 0.75rem;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.75rem;
  transition: all 0.4s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.18);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { margin-bottom: 0.75rem; }

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- REVIEWS ---- */
.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
}

.review-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.review-card__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.review-card__text {
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.review-card__author {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- INFO ---- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-block {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
}

.info-block h3 { margin-bottom: 1.5rem; }

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.05);
  font-size: 0.95rem;
}

.hours-table td:first-child { color: var(--text-muted); }
.hours-table td:last-child { text-align: right; font-weight: 500; }
.hours-table .closed { color: var(--text-muted); opacity: 0.5; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-line svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-line a { color: var(--text); }

.map-embed {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 168, 76, 0.06);
  margin-top: 1.5rem;
}

/* ---- CTA ---- */
.cta-section {
  padding: clamp(5rem, 8vw, 8rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201, 168, 76, 0.07) 0%, transparent 60%),
    var(--bg);
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.cta-section .phone-big {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}

.cta-section .address { color: var(--text-muted); font-size: 0.95rem; }

/* ---- FOOTER ---- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(201, 168, 76, 0.06);
  text-align: center;
}

.footer__name {
  font-family: var(--heading);
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer__info { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }

.footer__credit { color: var(--text-muted); font-size: 0.8rem; margin-top: 1.5rem; }
.footer__credit a { color: var(--accent); }

/* ---- ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; stroke: #0d0b09; fill: none; stroke-width: 2.5; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__stats { justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-layout { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .reviews-layout { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 1.25rem; }
  .nav__brand { font-size: 1.15rem; }
}
