/* =============================================
   BARBEARIA MADICK — style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Lato:wght@300;400;700&display=swap');

/* === RESET & VARIÁVEIS === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:      #F5EFE0;
  --dark:       #1A1209;
  --gold:       #B8860B;
  --gold-light: #D4A017;
  --brown:      #3D2B1F;
  --mid:        #6B4C35;
  --text-muted: #8C7355;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
}

/* === NAVEGAÇÃO === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(26,18,9,0.92);
  border-bottom: 1px solid rgba(184,134,11,0.25);
  backdrop-filter: blur(8px);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 900;
  letter-spacing: 3px; color: var(--gold-light); text-transform: uppercase;
}
.nav-logo span { color: var(--cream); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--cream); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 300;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold); color: var(--dark);
  padding: 0.6rem 1.6rem; border: none; cursor: pointer;
  font-family: 'Lato', sans-serif; font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--gold-light); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 72px; position: relative; overflow: hidden;
}
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: brightness(0.55) sepia(0.2);
  transition: filter 0.5s;
}
.hero-photo:hover img { filter: brightness(0.7) sepia(0.1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,18,9,0.95) 0%, rgba(26,18,9,0.3) 50%, transparent 100%);
}
.hero-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 10; pointer-events: none;
}
.hero-center-line {
  width: 1px; height: 120px; margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.hero-badge {
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase;
  padding: 0.4rem 1.4rem; margin-bottom: 1rem;
  background: rgba(26,18,9,0.7);
}
.hero-logo-big {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900; letter-spacing: 6px;
  text-align: center; line-height: 1;
  color: var(--cream); text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.hero-logo-big em {
  color: var(--gold-light); font-style: normal;
  display: block; font-size: 0.45em;
  letter-spacing: 10px; margin-top: 0.5rem;
}
.hero-center-line2 {
  width: 1px; height: 80px; margin-top: 1.5rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.hero-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  padding: 2.5rem 4rem;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.hero-stats { display: flex; gap: 3rem; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--gold-light);
}
.stat-label {
  font-size: 0.65rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
}
.hero-cta-group { display: flex; gap: 1rem; pointer-events: all; }
.photo-label {
  position: absolute; bottom: 5rem; padding: 0.4rem 1rem;
  font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); z-index: 5;
}
.hero-photo:first-child .photo-label { left: 2rem; }
.hero-photo:last-child .photo-label  { right: 2rem; text-align: right; }

/* === BOTÕES === */
.btn-primary {
  background: var(--gold); color: var(--dark);
  padding: 1rem 2rem; border: none; cursor: pointer;
  font-family: 'Lato', sans-serif; font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--cream);
  padding: 1rem 2rem; border: 1px solid rgba(245,239,224,0.35); cursor: pointer;
  font-family: 'Lato', sans-serif; font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 300;
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* === SEÇÕES BASE === */
section { padding: 6rem 4rem; }
.section-label {
  font-size: 0.65rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 1rem;
}
.section-title em { color: var(--gold-light); font-style: italic; }
.divider-gold { width: 60px; height: 2px; background: var(--gold); margin: 1.5rem 0 2.5rem; }

/* === SERVIÇOS === */
.services { background: var(--brown); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; margin-top: 3rem;
  border: 1px solid rgba(184,134,11,0.2);
}
.service-card {
  padding: 2.5rem 2rem;
  background: rgba(26,18,9,0.5);
  border: 1px solid rgba(184,134,11,0.1);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s;
}
.service-card:hover { background: rgba(184,134,11,0.08); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem;
}
.service-desc {
  font-size: 0.85rem; font-weight: 300; line-height: 1.6;
  color: rgba(245,239,224,0.6); margin-bottom: 1.2rem;
}
.service-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--gold-light); font-weight: 700;
}
.service-price span { font-size: 0.8rem; font-weight: 300; color: var(--text-muted); }

/* === GALERIA === */
.gallery { background: var(--dark); }
.gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem; margin-top: 3rem;
}
.gallery-photo { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.gallery-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.5s;
  filter: brightness(0.85) sepia(0.15);
}
.gallery-photo:hover img { transform: scale(1.05); filter: brightness(0.95) sepia(0.05); }
.gallery-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,18,9,0.85) 0%, transparent 50%);
}
.gallery-photo-label {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  font-size: 0.75rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cream);
}
.gallery-photo-label strong {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--gold-light); margin-bottom: 0.2rem;
}

/* === AGENDAMENTO === */
.booking { background: var(--brown); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.booking-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.7rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted); font-weight: 700;
}
.form-input {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(245,239,224,0.2);
  color: var(--cream); padding: 0.8rem 0;
  font-family: 'Lato', sans-serif; font-size: 0.95rem; font-weight: 300;
  transition: border-color 0.3s; outline: none;
}
.form-input:focus { border-bottom-color: var(--gold); }
.form-input option { background: var(--dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.hours-row {
  display: flex; justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(245,239,224,0.08);
  font-size: 0.9rem; font-weight: 300;
}
.hours-day { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; font-weight: 300; }
.contact-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(184,134,11,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem; flex-shrink: 0;
}
.whatsapp-box {
  margin-top: 2rem; padding: 1.5rem;
  border: 1px solid rgba(184,134,11,0.25);
  background: rgba(184,134,11,0.05);
}
.whatsapp-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; margin-bottom: 0.5rem; color: var(--gold-light);
}
.whatsapp-box p {
  font-size: 0.85rem; font-weight: 300;
  color: rgba(245,239,224,0.7); line-height: 1.6;
}

/* === FOOTER === */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(184,134,11,0.2);
  padding: 3rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 2rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 900;
  letter-spacing: 3px; color: var(--gold-light); text-transform: uppercase;
}
.footer-sub { margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-muted); font-weight: 300; }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); font-weight: 300; }
.footer-social { display: flex; gap: 1rem; }
.social-btn {
  width: 38px; height: 38px;
  border: 1px solid rgba(184,134,11,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer;
  transition: all 0.3s; font-size: 0.85rem; text-decoration: none;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }

/* === ANIMAÇÕES === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-center > * { animation: fadeUp 0.8s ease both; }
.hero-center > *:nth-child(1) { animation-delay: 0.2s; }
.hero-center > *:nth-child(2) { animation-delay: 0.35s; }
.hero-center > *:nth-child(3) { animation-delay: 0.5s; }

/* === RESPONSIVO === */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  .hero { grid-template-columns: 1fr; min-height: 100vh; }
  .hero-photo:first-child { display: none; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-bottom { flex-direction: column; gap: 1.5rem; align-items: flex-start; padding: 2rem 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}
