@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;600;700;800&display=swap');

/* --- DESIGN TOKENS & SYSTEM VARIABLES --- */
:root {
  --bg-obsidian-deep: #050507;
  --bg-obsidian-card: #0e0f12;
  --bg-obsidian-hover: #16171b;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a5;
  --color-text-muted: #6e6e73;
  --accent-silver: #f5f5f7;
  --accent-silver-glow: rgba(245, 245, 247, 0.15);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --font-headline: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- ROOT & RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian-deep);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-obsidian-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* --- REUSABLE UTILITIES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 3.5rem;
}

.section-title span {
  color: var(--color-text-muted);
  font-weight: 300;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-silver);
  color: var(--bg-obsidian-deep);
  border: 1px solid var(--accent-silver);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-text-primary);
  box-shadow: 0 0 25px var(--accent-silver-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-silver);
  background-color: rgba(255, 255, 255, 0.03);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-weight: 300;
  color: var(--color-text-secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-silver);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--color-text-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--color-text-primary);
}

.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(5, 5, 7, 0.45) 0%, rgba(5, 5, 7, 0.97) 100%),
              url('assets/hero-bg.png') center/cover no-repeat;
  text-align: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Subtle overlay grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-silver);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--accent-silver);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-silver);
}

.hero-title {
  font-family: var(--font-headline);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-title span {
  font-weight: 300;
  display: block;
  font-size: 4rem;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

/* --- SERVICES & MENU --- */
.services {
  background-color: var(--bg-obsidian-deep);
  border-top: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border-color);
  transition: var(--transition-fast);
}

.menu-item:hover {
  border-bottom-color: var(--border-color-hover);
}

.menu-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.menu-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.menu-item-name {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.menu-item-price {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  padding-left: 1.5rem;
}

.menu-item-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 300;
  max-width: 85%;
}

/* Sidebar Info Card */
.services-info {
  background: var(--bg-obsidian-card);
  border: 1px solid var(--border-color);
  padding: 3rem;
  position: sticky;
  top: 120px;
}

.info-title {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.info-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.5rem;
}

.hours-day {
  color: var(--color-text-secondary);
}

.hours-time {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* --- CUTS GALLERY CAROUSEL --- */
.gallery {
  background-color: var(--bg-obsidian-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.gallery-carousel-wrapper {
  position: relative;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 2rem;
}

.gallery-track-container {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-slide {
  min-width: calc(33.333% - 1.333rem);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background-color: #121212;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-slide:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 7, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-slide:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info {
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.gallery-slide:hover .gallery-info {
  transform: translateY(0);
}

.gallery-style-name {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.gallery-style-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* Slider Controls */
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3.5rem;
}

.carousel-indicators {
  display: flex;
  gap: 0.8rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color-hover);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator.active {
  background-color: var(--color-text-primary);
  transform: scale(1.35);
}

.carousel-buttons {
  display: flex;
  gap: 1rem;
}

.carousel-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  border-color: var(--accent-silver);
  background-color: var(--bg-obsidian-hover);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* --- BARBER PROFILES --- */
.barbers {
  background-color: var(--bg-obsidian-deep);
}

.barbers-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.barber-card {
  position: relative;
  background: var(--bg-obsidian-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  max-width: 380px;
  width: 100%;
}

.barber-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-hover);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.barber-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  position: relative;
}

.barber-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.barber-card:hover img {
  transform: scale(1.05);
}

.barber-info {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-obsidian-card);
  transition: var(--transition-smooth);
}

.barber-card:hover .barber-info {
  background-color: var(--bg-obsidian-hover);
}

.barber-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.barber-name {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.barber-specialty {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 300;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background-color: var(--bg-obsidian-card);
  border-top: 1px solid var(--border-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  background: var(--bg-obsidian-deep);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  font-size: 5rem;
  font-family: var(--font-headline);
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

.testimonial-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-5px);
}

.rating {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.rating svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-silver);
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--color-text-secondary);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.client-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.client-name {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
}

.client-service {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- CTA SECTION --- */
.cta {
  background: linear-gradient(to bottom, rgba(5, 5, 7, 0.8) 0%, rgba(5, 5, 7, 1) 100%),
              url('assets/hero-bg.png') center/cover no-repeat;
  text-align: center;
  padding: 10rem 0;
  border-top: 1px solid var(--border-color);
}

.cta-content {
  max-width: 650px;
  margin: 0 auto;
}

.cta .section-title {
  margin-bottom: 1.5rem;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 3.5rem;
  font-weight: 300;
}

/* --- FOOTER --- */
footer {
  background-color: var(--bg-obsidian-deep);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 300;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--color-text-primary);
  border-color: var(--accent-silver);
  background-color: rgba(255, 255, 255, 0.02);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-col h4 {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-copyright {
  font-weight: 300;
}

.footer-policy {
  display: flex;
  gap: 2rem;
}

.footer-policy a {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.footer-policy a:hover {
  color: var(--color-text-secondary);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .services-info {
    position: static;
  }
  
  .barbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gallery-slide {
    min-width: calc(50% - 1rem);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-title span {
    font-size: 2.75rem;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-obsidian-deep);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    gap: 3rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .barbers-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-slide {
    min-width: 100%;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
