/* ==========================================================================
   LINEAGE barbershop — stylesheet
   Brand colors: black / grey / white. Vibe: modern, luxury, minimalist,
   relaxed, family-friendly.
   ========================================================================== */

:root {
  --black: #111111;
  --near-black: #1a1a1a;
  --charcoal: #2b2b2b;
  --grey: #6b6b6b;
  --light-grey: #d8d8d8;
  --off-white: #f5f4f2;
  --white: #ffffff;
  --accent: #c9a35a; /* muted gold, restrained use only */

  --font-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; letter-spacing: 0.02em; }

p { margin: 0 0 16px; color: var(--charcoal); }

.eyebrow {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.section {
  padding: 80px 0;
}

.section--tight { padding: 56px 0; }

.section--dark {
  background: var(--near-black);
  color: var(--off-white);
}

.section--dark p { color: var(--light-grey); }

.section--grey { background: var(--off-white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border-radius: 2px;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}
.btn--primary:hover { background: var(--charcoal); }

.btn--outline {
  background: transparent;
  color: var(--black);
}
.btn--outline:hover { background: var(--black); color: var(--white); }

.section--dark .btn--outline {
  color: var(--white);
  border-color: var(--white);
}
.section--dark .btn--outline:hover { background: var(--white); color: var(--black); }

.btn--small { padding: 10px 22px; font-size: 0.8rem; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.brand img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--light-grey);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-display);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--near-black);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open { max-height: 400px; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-links a { display: block; padding: 16px 24px; }
}

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

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--near-black);
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero .eyebrow {
  color: var(--accent);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.hero-logo {
  margin: 0 0 24px;
  line-height: 0;
}
.hero-logo img {
  width: clamp(140px, 20vw, 220px);
  height: auto;
  margin: 0 auto;
}

.hero p.tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--light-grey);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero .btn-row { justify-content: center; }

.hero .btn--outline {
  color: var(--white);
  border-color: var(--white);
}
.hero .btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

.hero-meta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--light-grey);
  letter-spacing: 0.04em;
}

.page-hero {
  background: var(--near-black);
  color: var(--white);
  padding: 70px 0 50px;
  text-align: center;
}
.page-hero p { color: var(--light-grey); max-width: 560px; margin: 0 auto; }

/* ---------- Cards: services ---------- */

.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 960px) {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card .price {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.note {
  font-size: 0.9rem;
  color: var(--grey);
  text-align: center;
  max-width: 640px;
  margin: 32px auto 0;
}

/* ---------- Team ---------- */

.team-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-card .photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--near-black);
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.team-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.team-card h3 { margin-bottom: 4px; }

.team-card .experience {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--charcoal);
}

.team-card .bio-line {
  font-size: 0.75rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 10px 0 2px;
}

.socials {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.icon-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--light-grey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.icon-link:hover { background: var(--black); color: var(--white); }

/* Full team detail sections on team.html */

.barber-detail {
  padding: 60px 0;
  border-bottom: 1px solid var(--light-grey);
}
.barber-detail:last-child { border-bottom: none; }

.barber-detail .layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 760px) {
  .barber-detail .layout { grid-template-columns: 1fr; }
}

.barber-detail .photo {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--near-black);
}
.barber-detail .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.detail-row { margin-bottom: 18px; }
.detail-row .label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 4px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hours-table td { padding: 4px 0; border-bottom: 1px solid var(--light-grey); }
.hours-table td:first-child { color: var(--grey); width: 100px; }

/* ---------- Portfolio ---------- */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  border: 1px solid var(--light-grey);
  border-radius: 20px;
  background: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-display);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.filter-btn.is-active,
.filter-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.portfolio-grid {
  columns: 4;
  column-gap: 16px;
}
@media (max-width: 960px) { .portfolio-grid { columns: 3; } }
@media (max-width: 680px) { .portfolio-grid { columns: 2; } }

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.portfolio-item img { width: 100%; }
.portfolio-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0));
}

.portfolio-item.is-hidden { display: none; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.info-block { margin-bottom: 28px; }
.info-block .label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.info-block .value { font-size: 1.05rem; }

.map-frame {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 4px;
  filter: grayscale(0.3);
}

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

.site-footer {
  background: var(--black);
  color: var(--light-grey);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-grid p, .footer-grid a { color: var(--light-grey); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Home page teasers ---------- */

.home-teaser-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .home-teaser-cards { grid-template-columns: 1fr; } }

.mini-team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .mini-team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .mini-team-grid { grid-template-columns: repeat(2, 1fr); } }

.mini-team-card {
  text-align: center;
}
.mini-team-card .photo {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--near-black);
  margin-bottom: 12px;
}
.mini-team-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.mini-team-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.mini-team-card .specialty { font-size: 0.8rem; color: var(--grey); }
.mini-team-card { display: block; transition: opacity 0.2s ease; }
.mini-team-card:hover { opacity: 0.75; }

.center { text-align: center; }
