/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  --gold:      #c9a96e;
  --gold-dark: #a8854a;
  --blush:     #f5e6d3;
  --rose:      #8b5e52;
  --bg:        #faf7f4;
  --white:     #ffffff;
  --text:      #2d2d2d;
  --text-mute: #7a7068;
  --border:    #ede5db;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-sm: 0 2px 8px  rgba(0,0,0,.06);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: .5rem; }
.logo-icon { color: var(--gold); font-size: 1.2rem; }
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 600;
  letter-spacing: .02em; white-space: nowrap;
}
.lang-toggle {
  background: none; border: 1.5px solid var(--gold);
  color: var(--gold); border-radius: 20px;
  padding: .25rem .75rem; font-size: .8rem;
  font-weight: 700; letter-spacing: .06em;
  transition: all .2s;
}
.lang-toggle:hover { background: var(--gold); color: var(--white); }

/* ── Flash ─────────────────────────────────────────────────────────────── */
.flash-wrap { max-width: 720px; margin: 1rem auto; padding: 0 1.5rem; }
.flash {
  padding: .75rem 1.2rem; border-radius: var(--radius);
  background: #fdecea; border-left: 4px solid #e74c3c; color: #c0392b;
  font-size: .9rem;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #2d2d2d 0%, #4a3728 100%);
  color: var(--white); text-align: center;
  padding: 5rem 1.5rem 4rem;
}
.hero-inner { max-width: 600px; margin: 0 auto; }
.hero-sub {
  font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 600; line-height: 1.15; margin-bottom: 1rem;
}
.hero-desc { color: rgba(255,255,255,.7); font-weight: 300; font-size: 1.05rem; }

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

/* ── Hours Bar ─────────────────────────────────────────────────────────── */
.hours-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.5rem;
}
.hours-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: .6rem; flex-wrap: wrap;
}
.hours-bar-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-mute);
}
.hours-bar-item svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.hours-bar-sep { color: var(--border); font-size: 1.1rem; }
.hours-bar-divider {
  width: 1px; height: 18px;
  background: var(--border); margin: 0 .4rem;
}
.hours-bar-value { font-size: .95rem; font-weight: 600; color: var(--text); }
.hours-bar-link { text-decoration: none; transition: color .2s; }
.hours-bar-link:hover { color: var(--gold-dark); }
.hours-bar-link:hover svg { color: var(--gold-dark); }

/* ── Services Section ──────────────────────────────────────────────────── */
.services-section { padding: 4rem 0; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600;
  text-align: center; margin-bottom: 2.5rem;
  color: var(--text);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card-body { padding: 1.5rem; flex: 1; }
.service-name {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 1rem; color: var(--text);
}
.service-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
}
.service-duration {
  display: flex; align-items: center; gap: .4rem;
  color: var(--text-mute); font-size: .875rem;
}
.service-duration svg { width: 15px; height: 15px; }
.service-price {
  font-size: 1.25rem; font-weight: 700; color: var(--gold);
}
.btn-reserve {
  display: block; text-align: center;
  background: var(--gold); color: var(--white);
  padding: .85rem 1rem;
  font-weight: 700; font-size: .9rem; letter-spacing: .05em;
  transition: background .2s;
}
.btn-reserve:hover { background: var(--gold-dark); }

/* ── Info Section ──────────────────────────────────────────────────────── */
.info-section { padding: 3rem 0 4rem; background: var(--white); }
.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.info-card { text-align: center; padding: 2rem 1rem; }
.info-icon { font-size: 2rem; margin-bottom: .75rem; }
.info-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.info-card p { color: var(--text-mute); font-size: .9rem; }

/* ── Page Hero ─────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; margin-top: .5rem;
}
.back-link {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--text-mute); font-size: .875rem;
  transition: color .2s;
}
.back-link:hover { color: var(--gold); }
.back-link svg { width: 16px; height: 16px; }

/* ── Booking Layout ────────────────────────────────────────────────────── */
.booking-section { padding: 3rem 0 5rem; }
.booking-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem; align-items: start;
}
@media (max-width: 700px) {
  .booking-layout { grid-template-columns: 1fr; }
}

/* Service Summary */
.summary-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); position: sticky; top: 80px;
}
.summary-label {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: .5rem;
}
.summary-name {
  font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem;
  line-height: 1.4;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0; border-top: 1px solid var(--border);
  font-size: .9rem;
}
.summary-row span { color: var(--text-mute); }
.summary-row strong { color: var(--gold); font-size: 1rem; }

/* Form Steps */
.booking-form-wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.form-step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.step-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem;
}
.step-badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-header h3 { font-size: 1.05rem; font-weight: 700; }

/* Date Picker */
.datepicker-wrap { position: relative; }
.date-input {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 1rem; background: var(--bg);
  cursor: pointer; transition: border-color .2s;
}
.date-input:focus { outline: none; border-color: var(--gold); }

/* Time Slots */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .75rem;
}
.slot-btn {
  padding: .65rem .5rem; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: .95rem; font-weight: 600; color: var(--text);
  transition: all .15s; text-align: center;
}
.slot-btn:hover { border-color: var(--gold); background: var(--blush); }
.slot-btn.selected {
  background: var(--gold); border-color: var(--gold);
  color: var(--white);
}
.slots-loading { display: flex; justify-content: center; padding: 1.5rem; }
.spinner {
  width: 28px; height: 28px; border: 3px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.no-slots { color: var(--text-mute); font-size: .9rem; text-align: center; padding: 1rem 0; }

/* Form Group */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .875rem; font-weight: 700;
  margin-bottom: .4rem; color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .95rem; background: var(--bg);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* Pre-submit summary */
.pre-submit-summary {
  background: var(--blush); border-radius: 8px;
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.ps-row {
  display: flex; justify-content: space-between;
  padding: .3rem 0; font-size: .9rem;
}
.ps-row span { color: var(--text-mute); }

/* Submit button */
.btn-submit {
  width: 100%; padding: 1rem;
  background: var(--gold); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; letter-spacing: .04em;
  transition: background .2s;
}
.btn-submit:hover { background: var(--gold-dark); }

/* ── Status Badge ───────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block; padding: .25rem .7rem;
  border-radius: 20px; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em;
}
.status-badge.pending   { background: #fff3cd; color: #856404; }
.status-badge.confirmed { background: #d1e7dd; color: #0a5729; }
.status-badge.cancelled { background: #f8d7da; color: #842029; }
.status-badge.no_show  { background: #ffe5b4; color: #7a4800; }

/* ── Confirmation Page ─────────────────────────────────────────────────── */
.confirm-section { padding: 4rem 0; }
.confirm-wrap { max-width: 520px; margin: 0 auto; text-align: center; }
.confirm-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #d1e7dd; color: #0a5729;
  font-size: 1.75rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.confirm-wrap h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; margin-bottom: .5rem;
}
.confirm-sub { color: var(--text-mute); margin-bottom: 2rem; }
.confirm-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  text-align: left; box-shadow: var(--shadow-sm);
}
.confirm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .95rem;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row span { color: var(--text-mute); }
.confirm-contact { margin-top: 1.5rem; color: var(--text-mute); font-size: .9rem; }
.confirm-contact p + p { font-size: 1rem; color: var(--text); margin-top: .25rem; }

/* ── Policy Popup ──────────────────────────────────────────────────────── */
.policy-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.policy-modal {
  background: #1e1e1e;
  border-radius: 14px;
  padding: 2rem 2rem 1.5rem;
  max-width: 480px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform:translateY(20px);opacity:0 } to { transform:translateY(0);opacity:1 } }

.policy-modal h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 1.1rem;
  letter-spacing: .01em;
}
.policy-modal ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .65rem;
}
.policy-modal ul li {
  color: rgba(255,255,255,.85); font-size: .9rem;
  line-height: 1.55; padding-left: 1.1rem; position: relative;
}
.policy-modal ul li::before {
  content: '•'; position: absolute; left: 0;
  color: var(--gold);
}
.policy-footer {
  display: flex; justify-content: flex-end;
  margin-top: 1.5rem;
}
.policy-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.6);
  color: var(--white);
  padding: .5rem 1.6rem;
  border-radius: 20px;
  font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.policy-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

/* ── Booking Policy Block ───────────────────────────────────────────────── */
.booking-policy {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}
.booking-policy h4 {
  font-size: .75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-mute);
  margin-bottom: .75rem;
}
.booking-policy ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .5rem;
  margin-bottom: .75rem;
}
.booking-policy ul:last-child { margin-bottom: 0; }
.booking-policy ul li {
  font-size: .9rem; color: var(--text);
  line-height: 1.55; padding-left: 1.1rem; position: relative;
  border-top: 1px solid var(--border); padding-top: .5rem;
}
.booking-policy ul li::before {
  content: '•'; position: absolute; left: 0; top: .5rem;
  color: var(--gold);
}
.policy-cancel-title {
  font-size: .75rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-mute); margin-bottom: .5rem;
  border-top: 1px solid var(--border); padding-top: 1rem;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--white); border-top: 1px solid var(--border);
  text-align: center; padding: 1.5rem;
  color: var(--text-mute); font-size: .85rem;
}

/* ── Admin ─────────────────────────────────────────────────────────────── */
.admin-body { background: #f0ece8; }

.admin-login-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center; padding: 1.5rem;
}
.admin-login-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2.5rem; width: 100%; max-width: 380px;
  box-shadow: var(--shadow);
}
.admin-logo {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .9rem; font-weight: 700; margin-bottom: 1.5rem;
  color: var(--text); line-height: 1.35; overflow-wrap: normal; word-break: normal;
}
.admin-logo .logo-icon { flex-shrink: 0; margin-top: .1rem; }
.admin-login-card h2 {
  font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--text);
}

/* Admin layout */
.admin-layout {
  display: grid; grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
@media (max-width: 640px) {
  .admin-layout { grid-template-columns: 1fr; }
}
.admin-sidebar {
  background: #2d2d2d; color: var(--white);
  padding: 2rem 1rem;
  display: flex; flex-direction: column; gap: 2rem;
}
.admin-sidebar .admin-logo { color: var(--white); }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; }
.admin-nav-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .9rem; border-radius: 8px;
  color: rgba(255,255,255,.7); font-size: .9rem;
  transition: all .2s;
}
.admin-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(255,255,255,.1); color: var(--white);
}
.admin-nav-link.logout { margin-top: auto; color: rgba(255,100,100,.8); }
.admin-nav-link.logout:hover { background: rgba(255,100,100,.1); color: #ff6464; }

.admin-main { padding: 2rem; overflow-x: auto; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.admin-topbar h1 { font-size: 1.5rem; font-weight: 700; }
.admin-date { color: var(--text-mute); font-size: .875rem; }

/* Stats */
.admin-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 700px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
}
.stat-card.total     { border-color: var(--gold); }
.stat-card.pending   { border-color: #ffc107; }
.stat-card.confirmed { border-color: #198754; }
.stat-card.cancelled { border-color: #dc3545; }
.stat-card.no-show   { border-color: #fd7e14; }
.stat-num  { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-mute); margin-top: .25rem; }

/* Filters */
.admin-filters {
  display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-group { display: flex; flex-direction: column; gap: .3rem; }
.filter-group label { font-size: .8rem; font-weight: 700; color: var(--text-mute); }
.filter-group select,
.filter-group input[type="date"] {
  padding: .5rem .75rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .9rem; background: var(--white);
}
.filter-clear {
  color: var(--text-mute); font-size: .85rem; padding: .5rem 0;
  transition: color .2s;
}
.filter-clear:hover { color: #dc3545; }

/* Table */
.admin-table-wrap {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: .75rem 1rem;
  font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-mute); border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: .8rem 1rem; border-bottom: 1px solid var(--border);
  font-size: .9rem; vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.row-confirmed { background: #f8fffe; }
.admin-table tr.row-cancelled { background: #fff8f8; opacity: .75; }
.admin-table tr:hover { background: var(--blush); }

.td-id    { color: var(--text-mute); font-size: .8rem; }
.td-date  { white-space: nowrap; }
.td-time  { white-space: nowrap; }
.td-price { color: var(--gold); font-weight: 700; }
.td-service { max-width: 180px; font-size: .85rem; }
.client-name { font-weight: 700; }
.client-note { font-size: .8rem; color: var(--text-mute); margin-top: .15rem; }
.phone-link { color: var(--gold); font-weight: 600; }
.phone-link:hover { text-decoration: underline; }

/* Action buttons */
.td-actions { display: flex; align-items: center; gap: .4rem; }
.action-btn {
  width: 30px; height: 30px; border-radius: 6px;
  border: none; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.action-btn:hover { opacity: .8; }
.confirm-btn { background: #d1e7dd; color: #0a5729; }
.cancel-btn  { background: #fff3cd; color: #856404; }
.delete-btn  { background: #f8d7da; color: #842029; }
.noshow-btn  { background: #ffe5b4; color: #7a4800; }

.admin-empty {
  background: var(--white); border-radius: var(--radius);
  padding: 3rem; text-align: center; color: var(--text-mute);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .info-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
