/* WOODOO Barbershop — homepage mockup 1:1 */

:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --bg-3: #161616;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --gold: #c4a574;
  --gold-light: #d4b88a;
  --border: rgba(196, 165, 116, 0.4);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --header-h: 88px;
  --container: 1240px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover { color: var(--gold-light); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

p { margin: 0; }

.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

/* Preloader */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader img {
  width: 90px;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: #0a0a0a;
}

.btn--gold:hover {
  background: var(--gold-light);
  color: #0a0a0a;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  background: rgba(196, 165, 116, 0.06);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn--block { width: 100%; }

.btn--hero {
  padding: 17px 34px;
  font-size: 12px;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(14px);
}

.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

.logo { justify-self: start; }

.logo img {
  height: 52px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 36px;
  justify-self: center;
}

.site-nav a {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a:hover { color: var(--gold); }

.site-header .btn--outline {
  justify-self: end;
  padding: 11px 22px;
  font-size: 11px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.97) 0%,
    rgba(10, 10, 10, 0.55) 40%,
    rgba(10, 10, 10, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
  padding-top: calc(var(--header-h) + 60px);
}

.hero__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.92;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero__meta-item svg {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.85;
}

/* Sections */

.section {
  padding: 96px 0;
  position: relative;
}

.section__title {
  font-size: clamp(2.8rem, 5vw, 4rem);
  margin-bottom: 48px;
}

.section__action {
  text-align: center;
  margin-top: 52px;
}

.section--services {
  background: var(--bg);
  overflow: hidden;
}

.section--team { background: var(--bg-2); }

.section--gallery {
  background: var(--bg);
  padding-bottom: 80px;
}

.section__watermark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
}

.section__watermark img {
  width: 420px;
  height: auto;
}

/* Service cards */

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-3);
  overflow: hidden;
}

.service-card__img {
  aspect-ratio: 1;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}

.service-card:hover .service-card__img img {
  filter: grayscale(20%);
  transform: scale(1.04);
}

.service-card__body {
  padding: 22px 20px 24px;
}

.service-card__body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.service-card__body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  min-height: 36px;
}

.service-card__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Features */

.features {
  padding: 56px 0;
  background: var(--bg-3);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature {
  text-align: center;
  padding: 12px 28px;
  border-right: 1px solid rgba(196, 165, 116, 0.15);
}

.feature:last-child { border-right: none; }

.feature__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}

.feature h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.feature p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 220px;
  margin-inline: auto;
}

/* Team */

.team-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.team-intro .section__title {
  margin-bottom: 24px;
}

.team-intro p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 240px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.team-card {
  margin: 0;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  transition: filter 0.4s var(--ease);
}

.team-card:hover img { filter: grayscale(0%); }

/* Gallery */

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

.gallery-head .section__title { margin-bottom: 0; }

.gallery-head p {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.gallery-grid__item {
  margin: 0;
  overflow: hidden;
}

.gallery-grid__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-grid__item:hover img { transform: scale(1.04); }

.gallery-grid__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 1;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--gold);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.gallery-grid__more:hover {
  background: rgba(196, 165, 116, 0.06);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Footer */

.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 72px 0 48px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr 1.2fr;
  gap: 48px;
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
  align-items: start;
}

.site-footer__brand img {
  height: 60px;
  margin-bottom: 20px;
}

.site-footer__brand p {
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer__col h3 {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.site-footer__col p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.site-footer__col a { color: var(--text-muted); }
.site-footer__col a:hover { color: var(--gold); }

.site-footer__social {
  display: flex;
  gap: 20px;
  margin-top: 14px;
}

.site-footer__cta {
  padding: 28px 24px;
  border: 1px solid var(--border);
  text-align: center;
}

.site-footer__cta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.site-footer__cta-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Booking FAB */

.booking-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: none;
}

.booking-fab .btn {
  padding: 14px 22px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */

@media (max-width: 1100px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .team-layout { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }

  .container,
  .site-header__inner,
  .hero__content,
  .site-footer__grid {
    width: min(var(--container), calc(100% - 32px));
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: rgba(10, 10, 10, 0.98);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    justify-self: stretch;
  }

  .site-nav.is-open { transform: translateX(0); }

  .site-header .btn--outline { display: none; }

  .hero__title { font-size: clamp(3rem, 14vw, 4.5rem); }

  .service-cards,
  .features__grid,
  .team-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    border-right: none;
    border-bottom: 1px solid rgba(196, 165, 116, 0.12);
    padding-bottom: 28px;
    margin-bottom: 12px;
  }

  .feature:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .gallery-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gallery-head p { text-align: left; }

  .site-footer__grid { grid-template-columns: 1fr; }

  .booking-fab { display: block; }

  .section__watermark { display: none; }
}
