/* =========================================================
   main.css — BM Barbearia — Página Principal (Clientes)
   ========================================================= */

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.nav-logo-text small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-2);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.gold { color: var(--gold); }
.nav-links a.gold:hover { color: var(--gold-light); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 3px;
  transition: background 0.25s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1010;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 13, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile a {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.2s ease;
}
.nav-mobile a:hover, .nav-mobile a.gold { color: var(--gold); }
.nav-mobile .mobile-cta { margin-top: 1rem; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: var(--dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 45%, rgba(201, 168, 76, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

/* Scanlines */
.hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-scanlines::before,
.hero-scanlines::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.25), transparent);
  animation: scanline 6s linear infinite;
}
.hero-scanlines::after { animation-delay: 3s; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
}

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

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted-2);
  font-weight: 300;
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero-stat-item { text-align: left; }
.hero-stat-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

/* Hero Logo Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-rings {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--gold);
}
.ring-1 {
  width: 100%; height: 100%;
  opacity: 0.12;
  animation: pulse-ring 3.5s ease-in-out infinite;
}
.ring-2 {
  width: 78%; height: 78%;
  opacity: 0.22;
  animation: pulse-ring 3.5s ease-in-out infinite 0.6s;
}
.ring-3 {
  width: 58%; height: 58%;
  opacity: 0.38;
  animation: pulse-ring 3.5s ease-in-out infinite 1.2s;
}

.hero-logo-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 12px 50px rgba(201, 168, 76, 0.2);
  position: relative;
  z-index: 2;
}

/* ── Services ── */
.services { background: var(--dark); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-top: 1rem;
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.service-card {
  background: var(--dark-2);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  cursor: default;
}
.service-card:hover { background: #111111; }

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: block;
}
.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.service-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
.service-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.service-price small {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Gallery ── */
.gallery { background: var(--dark-2); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 6px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* Placeholder */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--dark-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px dashed rgba(201, 168, 76, 0.2);
}
.gallery-placeholder .ph-icon {
  font-size: 1.8rem;
  opacity: 0.4;
}
.gallery-placeholder .ph-text {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  padding: 0 1rem;
}

/* ── Experience ── */
.experience { background: var(--dark-3); }

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.experience-block {
  padding: 2.5rem 1.75rem;
  background: var(--dark-3);
  text-align: center;
  transition: background 0.3s ease;
}
.experience-block:hover { background: #191919; }
.experience-block .exp-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.experience-block .exp-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.experience-block .exp-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Scheduling ── */
.scheduling { background: var(--dark); }

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

/* ── Barbers Banner ── */
.barbers-banner {
  background: linear-gradient(135deg, #0D0D0D 0%, #120E05 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.banner-eyebrow { margin-bottom: 1rem; }

.banner-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.banner-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.banner-visual {
  text-align: right;
  position: relative;
}
.banner-big-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 900;
  color: rgba(201, 168, 76, 0.07);
  line-height: 1;
  user-select: none;
}
.banner-cadeiras-label {
  position: absolute;
  bottom: 0.5rem;
  right: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* ── Location ── */
.location { background: var(--dark-2); }

.location-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}

.location-info { padding-top: 0.5rem; }
.location-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.location-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.loc-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.loc-icon {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--gold);
}
.loc-text { font-size: 0.9rem; color: var(--muted-2); line-height: 1.5; }
.loc-text strong { display: block; color: var(--white); font-weight: 500; margin-bottom: 0.2rem; }

#map {
  height: 400px;
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* Custom marker override */
.leaflet-popup-content-wrapper {
  background: var(--dark-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
  color: var(--white) !important;
}
.leaflet-popup-tip { background: var(--dark-2) !important; }
.leaflet-popup-content { margin: 12px 16px !important; }

/* ── Footer ── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-links a.gold { color: var(--gold); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .logo-rings { width: 240px; height: 240px; }
  .hero-logo-img { width: 130px; height: 130px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .scheduling-grid { grid-template-columns: 1fr; }
  .location-inner { grid-template-columns: 1fr; }
  .banner-inner { grid-template-columns: 1fr; }
  .banner-visual { display: none; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
  .navbar { padding: 0 1.25rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }

  .services-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }

  #map { height: 280px; }
}
