/*
Theme Name: KG Barbershop Theme
Theme URI: https://kgbarbershop.com/
Author: KG Barbershop
Author URI: https://kgbarbershop.com/
Description: Custom one-page WordPress theme for KG Barbershop.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kg-barbershop
*/

:root {
  --ink: #111111;
  --charcoal: #1d1d1d;
  --cream: #f7f2e7;
  --gold: #c89b3c;
  --gold-dark: #9d772b;
  --red: #8f1f19;
  --line: #2f2f2f;
  --muted: #b7b7b7;
  --paper: #fffdfa;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  color: var(--cream);
  background: radial-gradient(circle at 20% -10%, #3b3b3b 0, var(--ink) 40%),
    linear-gradient(145deg, #161616, #0e0e0e 65%);
  min-height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 32px
  );
  z-index: -1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar .wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.brand img {
  width: auto;
  height: 56px;
  border-radius: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
}

.brand span {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 1.65rem;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.hero {
  position: relative;
  padding: 72px 0 54px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -130px;
  top: -100px;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: inline-block;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 0.98;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.4rem, 7.8vw, 5.4rem);
  margin-bottom: 16px;
  text-wrap: balance;
}

.lead {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 54ch;
  margin: 0 0 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold), #e4bd66);
  color: #171717;
}

.btn.ghost {
  background: linear-gradient(135deg, var(--gold), #e4bd66);
  color: #171717;
  border: 0;
}

.hero-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transform: none;
  animation: settle 0.8s ease both;
  display: grid;
  place-items: center;
  overflow: visible;
}

.hero-logo {
  width: 108%;
  max-height: 340px;
  height: auto;
  border-radius: 0;
  border: 0;
  display: block;
  margin: 0;
  object-fit: contain;
  background: transparent;
}

.section {
  padding: 40px 0;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.section-intro {
  color: #d7d7d7;
  max-width: 66ch;
  margin: 0 0 24px;
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service {
  border: 1px solid #6a6a6a;
  background: linear-gradient(160deg, #1a1a1a, #111111 70%);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service:hover {
  border-color: var(--gold-dark);
  transform: translateY(-3px);
}

.service-name {
  margin: 0;
  font-weight: 800;
  color: var(--paper);
  font-size: 1rem;
}

.price {
  margin: 0;
  color: var(--gold);
  font-size: 1.3rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tile {
  border: 1px solid #3f3f3f;
  border-radius: 14px;
  padding: 18px;
  background: rgba(18, 18, 18, 0.65);
}

.tile h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.tile p,
.tile a {
  margin: 0;
  color: #dfdfdf;
  text-decoration: none;
  line-height: 1.6;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-pin {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 16px;
  vertical-align: middle;
}

.tile a:hover {
  color: var(--gold);
}

.booking {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.book-link {
  border-radius: 12px;
  border: 1px solid #4f4f4f;
  background: linear-gradient(145deg, #191919, #101010 70%);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.book-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  display: block;
}

.book-link img.kevin-photo {
  height: 220px;
  object-position: 56% 26%;
}

.book-link img.david-photo {
  height: 220px;
  object-fit: cover;
  object-position: 70% 18%;
}

.book-link strong {
  font-size: 1rem;
  color: var(--paper);
}

.book-link .book-title-link {
  font-size: 1rem;
  font-weight: 800;
  color: var(--paper);
  text-decoration: none;
  width: fit-content;
}

.book-link .book-title-link:hover {
  color: var(--gold);
}

.book-link a {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.book-link a:hover {
  color: #f2cd7d;
}

.book-link a.reserve-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid #735622;
  background: linear-gradient(135deg, #d5aa50, #b88a31);
  color: #1a1a1a;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.book-link a.reserve-btn:hover {
  color: #111;
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.shot {
  grid-column: span 3;
  margin: 0;
  border: 1px solid #3f3f3f;
  border-radius: 12px;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.shot.featured {
  grid-column: span 6;
}

.shot.tall {
  grid-column: span 4;
}

.shot img {
  width: 100%;
  height: 285px;
  object-fit: cover;
  display: block;
}

.shot.featured img {
  height: 340px;
}

.shot.tall img {
  height: 360px;
}

.shot figcaption {
  padding: 11px 12px 12px;
  color: #efe3c7;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-top: 1px solid #3d2f17;
  background: linear-gradient(180deg, #1d1710, #100f0c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sign-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

.sign-panel {
  margin: 0;
  border: 1px solid #4a3a20;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(145deg, #1f1a12, #101010 70%);
}

.sign-panel img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.logo-sign {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
}

.logo-sign img {
  width: min(520px, 100%);
  max-height: 420px;
  object-fit: contain;
  border-radius: 18px;
  border: 2px solid #5f4a21;
  background: radial-gradient(circle at 50% 40%, #212121, #0f0f0f 70%);
  padding: 16px;
}

.logo-sign figcaption {
  margin-top: 10px;
  color: #ddd;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 981px) {
  .book-link img.kevin-photo,
  .book-link img.david-photo,
  .book-link img.ventura-photo {
    height: auto;
    object-fit: contain;
    object-position: center top;
    background: #0f0f0f;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about,
  .services-grid,
  .booking,
  .sign-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .shot,
  .shot.featured,
  .shot.tall {
    grid-column: span 3;
  }
}

@media (max-width: 740px) {
  .topbar .wrap {
    min-height: 64px;
  }

  .brand img {
    height: 50px;
  }

  .brand span {
    font-size: 1.35rem;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-logo {
    max-height: 390px;
  }

  .hero-grid,
  .about,
  .services-grid,
  .booking,
  .sign-showcase {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .shot,
  .shot.featured,
  .shot.tall {
    grid-column: span 1;
  }

  .shot img,
  .shot.featured img,
  .shot.tall img {
    height: 280px;
  }

  .nav {
    display: none;
  }
}