/* ═══════════════════════════════════════════
   Gaby Cano — Sistema de Agendamento
   Paleta: Rosa elegante
   ═══════════════════════════════════════════ */

:root {
  --pink:        #D4759A;
  --pink-dark:   #B85880;
  --pink-light:  #F4C4D8;
  --pink-pale:   #FFF0F7;
  --pink-hover:  #C5648A;
  --dark:        #2d1b2e;
  --text:        #3d2c35;
  --text-light:  #888;
  --border:      #f0e0ea;
  --white:       #ffffff;
  --bg:          #fdf8fb;
  --shadow:      0 4px 20px rgba(212,117,154,0.12);
  --radius:      14px;
  --radius-sm:   8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ─── UTILITIES ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page-container { padding: 40px 20px; max-width: 900px; margin: 0 auto; }

/* ─── NAVBAR ─── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(212,117,154,0.08);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.logo-nav { height: 120px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-light); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--pink); }
.btn-nav-primary {
  background: var(--pink);
  color: white !important;
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-nav-primary:hover { background: var(--pink-dark) !important; transform: translateY(-1px); }
.btn-nav-ghost {
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 25px;
  font-size: 0.88rem !important;
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--pink); }
.mobile-menu { display: none; flex-direction: column; padding: 8px 20px 16px; background: var(--white); border-top: 1px solid var(--border); }
.mobile-menu a { padding: 10px 0; text-decoration: none; color: var(--text); border-bottom: 1px solid #f5f0f3; font-weight: 500; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu.open { display: flex; }
}

/* ─── FLASH MESSAGES ─── */
.flash-container { padding: 0 20px; }
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  margin: 8px 0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  max-width: 900px;
  margin: 8px auto;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.alert-danger { background: #ffebee; color: #c62828; border-left: 4px solid #ef5350; }
.alert-warning { background: #fff8e1; color: #e65100; border-left: 4px solid #ffa726; }
.alert button { background: none; border: none; cursor: pointer; font-size: 1rem; margin-left: 8px; }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--pink-pale) 0%, #fff5fb 60%, var(--pink-pale) 100%);
  padding: 90px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-logo { width: 320px; margin-bottom: 20px; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark);
  margin: 0 0 8px;
}
.hero-title-divider { width:60px; height:2px; background:var(--pink); margin:12px auto 16px; border-radius:2px; }
.hero-subtitle { font-size: 1.1rem; color: var(--pink); font-weight: 500; margin: 0 0 16px; }
.hero-desc { max-width: 500px; margin: 0 auto 32px; color: var(--text-light); font-size: 0.95rem; }
.hero-decoration { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-content { position: relative; z-index: 1; }
.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--pink);
}
.c1 { width: 300px; height: 300px; top: -100px; right: -80px; }
.c2 { width: 200px; height: 200px; bottom: -60px; left: -60px; }
.c3 { width: 150px; height: 150px; top: 20px; left: 10%; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--pink);
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(212,117,154,0.35);
}
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,117,154,0.45); }
.btn-primary.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-secondary {
  display: inline-block;
  background: white;
  color: var(--pink);
  border: 2px solid var(--pink);
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--pink-pale); }
.btn-ghost { display: inline-block; color: var(--text-light); text-decoration: none; padding: 6px 24px; font-size: 0.9rem; }
.btn-ghost:hover { color: var(--pink); }
.btn-block { width: 100%; text-align: center; }
.btn-whatsapp {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 12px;
  transition: all 0.2s;
}
.btn-whatsapp:hover { background: #20b858; transform: translateY(-2px); }
.btn-whatsapp.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-sm { padding: 5px 12px; border-radius: 6px; font-size: 0.82rem; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.15s; }
.btn-sm:hover { opacity: 0.85; }

/* Client appt actions */
.btn-whatsapp-sm { background: #25D366; color: white; }
.btn-danger-sm { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ─── SERVICES ─── */
.services-section { padding:70px 0; background:white; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--dark); text-align: center; margin-bottom: 8px; }
.section-title-divider { width:48px; height:2px; background:var(--pink); margin:10px auto 12px; border-radius:2px; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 36px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(212,117,154,0.2); }
.service-color-bar { height: 6px; }
.service-body { padding: 20px; }
.service-name { font-size: 1rem; font-weight: 600; margin: 0 0 8px; color: var(--dark); }
.service-desc { font-size: 0.85rem; color: var(--text-light); margin: 0 0 12px; }
.service-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.service-duration { font-size: 0.82rem; color: var(--text-light); }
.service-price { font-weight: 700; color: var(--pink); font-size: 1rem; }
.btn-service { display:block; text-align:center; background:var(--pink); color:white; border:none; border-radius:25px; padding:10px; text-decoration:none; font-size:0.88rem; font-weight:600; transition:all 0.2s; box-shadow:0 3px 12px rgba(212,117,154,0.3); }
.btn-service:hover { background:var(--pink-dark); transform:translateY(-1px); }

/* ─── HOW IT WORKS ─── */
.how-section { background: white; padding: 60px 0; border-top: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 36px; }
.step { text-align: center; }
.step-icon { font-size: 2.5rem; margin-bottom: 12px; }
.step-icon-wrap { width:72px; height:72px; background:var(--pink-pale); border:2px solid var(--pink-light); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-size:1.8rem; transition:background 0.2s,transform 0.2s; }
.step:hover .step-icon-wrap { background:var(--pink); transform:scale(1.08); }
.step h3 { font-size: 1rem; color: var(--dark); margin: 0 0 8px; }
.step p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ─── BOOKING ─── */
.booking-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 24px;
}
.step-title { font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.step-subtitle { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.btn-group-booking { display: flex; gap: 12px; margin-top: 20px; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(212,117,154,0.12); }

/* ─── CONFIRMATION ─── */
.confirm-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.confirm-icon { font-size: 3.5rem; margin-bottom: 16px; }
.confirm-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--dark); margin-bottom: 8px; }
.confirm-subtitle { color: var(--text-light); margin-bottom: 28px; }
.confirm-details { background: var(--pink-pale); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 24px; text-align: left; }
.confirm-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.confirm-row:last-child { border-bottom: none; }
.confirm-row .label { color: var(--text-light); font-size: 0.88rem; }
.confirm-row .value { font-weight: 600; font-size: 0.9rem; }
.confirm-actions { margin-bottom: 20px; }
.confirm-note { font-size: 0.82rem; color: var(--text-light); margin-top: 8px; }
.confirm-footer-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── AUTH ─── */
.auth-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.auth-logo { display: block; margin: 0 auto 20px; width: 220px; }
.auth-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; text-align: center; color: var(--dark); margin-bottom: 24px; }
.auth-alt { text-align: center; font-size: 0.88rem; color: var(--text-light); margin-top: 16px; }
.auth-alt a { color: var(--pink); text-decoration: none; font-weight: 600; }

/* ─── CLIENT APPOINTMENTS ─── */
.appt-list { display: flex; flex-direction: column; gap: 16px; }
.appt-card {
  background: white;
  border-radius: var(--radius);
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.appt-card:hover { box-shadow: var(--shadow); }
.appt-card.appt-cancelled { opacity: 0.6; }
.appt-color-bar { width: 5px; flex-shrink: 0; }
.appt-body { padding: 16px; flex: 1; }
.appt-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.appt-header h3 { margin: 0; font-size: 1rem; color: var(--dark); }
.appt-datetime { font-size: 0.88rem; color: var(--text-light); margin: 4px 0; }
.appt-price { font-size: 0.85rem; color: var(--text-light); margin: 0 0 10px; }
.appt-actions { display: flex; gap: 8px; }

.badge { padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 500; }
.badge-confirmed { background: #e8f5e9; color: #2e7d32; }
.badge-completed { background: #f3e5f5; color: #7b1fa2; }
.badge-cancelled { background: #ffebee; color: #c62828; }
.badge-pending { background: #fff8e1; color: #e65100; }

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 20px;
  margin-top: 60px;
  font-size: 0.88rem;
}
.logo-footer { width: 160px; margin-bottom: 8px; filter: brightness(0) invert(1) opacity(0.6); }
.footer p { margin: 4px 0; }
.subtitle-footer { color: var(--pink-light); font-size: 0.8rem; }
.wa-btn-footer {
  display: inline-block;
  margin-top: 12px;
  background: #25D366;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 40px; color: var(--text-light); }
.empty-state > div { margin-bottom: 12px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .booking-card { padding: 20px; }
  .confirm-card { padding: 24px; }
  .auth-card { padding: 24px; }
  .btn-group-booking { flex-direction: column; }
  .hero { padding: 50px 20px; }
  .btn-whatsapp { margin: 10px 0 0 0; display: block; }
}

.sidebar-logo-svg { width: 200px; margin: 0 auto 8px; display: block; }

.booking-hero { background:linear-gradient(160deg,#fff5fb 0%,var(--pink-pale) 100%); text-align:center; padding:36px 20px 20px; border-bottom:1px solid var(--border); }
.booking-hero-logo { width:200px; margin:0 auto; display:block; }

.auth-wrapper { background:linear-gradient(160deg,#fff5fb 0%,var(--pink-pale) 100%); min-height:calc(100vh - 120px); padding:48px 20px; }
