*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #C4A25A;
  --gold-dark:  #9E7D3A;
  --bg:         #0A0A0A;
  --bg2:        #111111;
  --bg3:        #181818;
  --border:     #2A2A2A;
  --text:       #C0C0C0;
  --text-muted: #707070;
  --white:      #F0F0F0;
  --radius:     8px;
}

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; color: var(--white); }

a { text-decoration: none; color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
}
.logo-bar i { color: var(--gold); font-size: 1.2rem; }

nav { display: flex; align-items: center; gap: 2rem; }

nav a {
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--text);
  text-transform: uppercase;
  transition: color .2s;
}
nav a:hover { color: var(--gold); }

.btn-nav-auth {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.btn-nav-auth:hover { border-color: var(--gold); color: var(--gold); }

#menuToggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.50) 0%, rgba(0,0,0,.72) 100%),
    url('/assets/background.jpg') center/cover no-repeat,
    linear-gradient(135deg, #1c1208 0%, #0a0a0a 100%);
}

.hero-content { position: relative; z-index: 1; padding: 0 1.5rem; }

.hero-icon {
  width: 64px; height: 64px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.hero-icon i { color: var(--gold); font-size: 1.4rem; }

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  line-height: .95;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1.2rem;
}
.hero-title .first-word { color: var(--gold); display: block; }
.hero-title .rest-words { color: var(--white); display: block; }

.hero-sub {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(.75rem, 2vw, .95rem);
  letter-spacing: 8px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  margin-bottom: 2.8rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--gold);
  color: #000;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 1rem 3.2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(196,162,90,.35);
  min-width: 240px;
  justify-content: center;
}
.btn-hero:hover { background: var(--gold-dark); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(196,162,90,.5); }

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-family: 'Oswald', sans-serif;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .65rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  min-width: 240px;
  justify-content: center;
}
.btn-hero-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: .5rem;
}
.section-divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: .8rem auto 0;
}

section { padding: 5rem 0; }
section:nth-child(even) { background: var(--bg2); }

/* ===== SERVIÇOS ===== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s;
}
.service-row:hover { border-color: var(--gold); }

.service-row-name {
  font-weight: 500;
  color: var(--white);
  font-size: .95rem;
}

.service-row-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.service-row-price { color: var(--gold); font-weight: 600; font-size: .9rem; }
.service-row-time  { color: var(--text-muted); font-size: .82rem; }

.btn-agendar-row {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-agendar-row:hover { background: var(--gold); color: #000; }

/* ===== AGENDAMENTO ===== */
.booking-wrapper {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  transition: border-color .2s, background .2s, color .2s;
}
.step.active .step-num { border-color: var(--gold); color: var(--gold); }
.step.done .step-num   { border-color: var(--gold); background: var(--gold); color: #000; }
.step-label { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.step.active .step-label { color: var(--gold); }

.step-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 40px;
  margin-bottom: 1.4rem;
}

.booking-step { display: none; }
.booking-step.active { display: block; }

.step-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: .4rem; text-transform: uppercase; letter-spacing: 1px; }

.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  padding: .7rem 1rem;
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group select option { background: #1a1a1a; }

.btn-primary {
  width: 100%;
  background: var(--gold);
  color: #000;
  border: none;
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .85rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 1rem;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.btn-primary:hover { background: var(--gold-dark); }

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .8rem;
  cursor: pointer;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: 0;
  transition: color .2s;
}
.btn-back:hover { color: var(--gold); }

.service-info-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  margin-top: .5rem;
  display: none;
  justify-content: space-between;
  font-size: .85rem;
}
.service-info-box span:first-child { color: var(--gold); font-weight: 600; }
.service-info-box span:last-child  { color: var(--text-muted); }

.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-bottom: 1rem;
}
.time-slot {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .82rem;
  padding: .5rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  text-align: center;
}
.time-slot:hover:not(.busy) { border-color: var(--gold); color: var(--gold); }
.time-slot.selected { border-color: var(--gold); background: var(--gold); color: #000; font-weight: 600; }
.time-slot.busy { opacity: .3; cursor: not-allowed; }

.booking-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-muted); }
.summary-row span:last-child { color: var(--white); font-weight: 500; }

.booking-success { text-align: center; padding: 1rem 0; }
.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
  color: #000;
}
.booking-success h3 { font-size: 1.4rem; margin-bottom: .5rem; color: var(--white); }
.booking-success p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.2rem; }

.booking-detail-box { text-align: left; margin: 1rem 0; }
.booking-detail-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.booking-detail-row:last-child { border-bottom: none; }
.booking-detail-row i { color: var(--gold); width: 14px; }

.alert {
  background: #3a1a1a;
  border: 1px solid #7a3030;
  color: #f08080;
  border-radius: var(--radius);
  padding: .6rem 1rem;
  font-size: .84rem;
  margin-top: .5rem;
  display: none;
}
.alert.show { display: block; }

.no-slots {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ===== CONTATO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon i { color: var(--gold); }
a.contact-item-icon { transition: background .2s; }
a.contact-item-icon:hover { background: rgba(212,175,55,.12); }
.contact-item h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: .2rem; }
.contact-item p  { font-size: .9rem; color: var(--text); }

.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-link {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

.map-container {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 380px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
footer p { font-size: .8rem; color: var(--text-muted); }

/* ===== FLOAT WHATSAPP ===== */
.float-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  z-index: 200;
  transition: transform .2s;
}
.float-whatsapp:hover { transform: scale(1.1); }

/* ===== AUTH MODAL ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.overlay.open { display: flex; }

.modal {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  position: relative;
}

.modal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.modal-close:hover { color: var(--white); }

.auth-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .6rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.auth-form { display: none; }
.auth-form.active { display: block; }

.input-group { margin-bottom: .8rem; }
.input-group label { display: block; font-size: .75rem; color: var(--text-muted); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: 1px; }
.input-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  padding: .65rem .9rem;
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color .2s;
}
.input-group input:focus { border-color: var(--gold); }

.btn-auth {
  width: 100%;
  background: var(--gold);
  color: #000;
  border: none;
  font-family: 'Oswald', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .75rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: .5rem;
  transition: background .2s;
}
.btn-auth:hover { background: var(--gold-dark); }

.btn-google {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
  padding: .7rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: border-color .2s;
}
.btn-google:hover { border-color: var(--gold); }

.auth-link { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }
.auth-link a { color: var(--gold); cursor: pointer; }

/* User chip */
.user-chip { position: relative; }
.user-chip-name {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--text); cursor: pointer;
  font-family: 'Oswald', sans-serif; letter-spacing: 1px;
}
.user-chip-name:hover { color: var(--gold); }
.user-dropdown {
  position: absolute; top: calc(100% + .5rem); right: 0;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 170px;
  display: none; flex-direction: column; overflow: hidden;
}
.user-dropdown.open { display: flex; }
.user-dropdown-item {
  background: none; border: none; color: var(--text);
  font-size: .85rem; padding: .7rem 1rem; cursor: pointer;
  text-align: left; display: flex; align-items: center; gap: .5rem;
  transition: background .15s, color .15s;
}
.user-dropdown-item:hover { background: var(--bg2); color: var(--gold); }
.user-dropdown-item.logout { color: #f08080; }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 0; border: none; }

/* My bookings panel */
.side-panel {
  position: fixed; top: 0; right: -100%; height: 100%;
  width: 100%; max-width: 420px;
  background: var(--bg3); border-left: 1px solid var(--border);
  z-index: 250; transition: right .3s ease; overflow-y: auto;
}
.side-panel.open { right: 0; }
.side-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border);
}
.side-panel-header h3 { font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; }
.side-panel-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.side-panel-body { padding: 1.2rem 1.5rem; }

.my-booking-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; margin-bottom: .8rem;
}
.my-booking-card.cancelled { opacity: .5; }
.my-booking-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .5rem; }
.my-booking-service { font-weight: 600; font-size: .9rem; color: var(--white); }
.my-booking-meta { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: var(--text-muted); }
.my-booking-meta span { display: flex; align-items: center; gap: .4rem; }
.my-booking-meta i { color: var(--gold); width: 12px; }
.my-booking-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.btn-reschedule, .btn-cancel-booking {
  flex: 1; background: none; border: 1px solid var(--border);
  color: var(--text); font-size: .78rem; padding: .4rem;
  border-radius: var(--radius); cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: .3rem;
  transition: border-color .2s, color .2s;
}
.btn-reschedule:hover { border-color: var(--gold); color: var(--gold); }
.btn-cancel-booking:hover { border-color: #f08080; color: #f08080; }

.my-panel-empty { text-align: center; padding: 3rem 0; color: var(--text-muted); }
.my-panel-empty i { font-size: 2rem; margin-bottom: 1rem; display: block; color: var(--border); }

/* Reschedule modal */
.reschedule-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: 1rem; max-height: 200px; overflow-y: auto; }

/* Phone overlay */
#phoneOverlay .modal-title { font-size: 1rem; }

/* Password reset overlay */
#newPassOverlay .modal { max-width: 360px; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; z-index: 99; }
  nav.open { display: flex; }
  nav a { font-size: 1.2rem; }
  #menuToggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }
  .hero-title { letter-spacing: 0; }
  .btn-hero, .btn-hero-outline { width: 100%; min-width: unset; }

  /* Diferenciais */
  .diferenciais-grid { grid-template-columns: 1fr !important; }
  .diferenciais-grid > div { border-right: none !important; border-bottom: 1px solid var(--border); }
  .diferenciais-grid > div:last-child { border-bottom: none; }

  /* Serviços */
  .service-row-time { display: none; }
  .service-row-right { gap: .6rem; }

  /* Date input iOS */
  input[type="date"] { color-scheme: dark; }
}
