:root {
  --bg: #fbf5ef;
  --bg-soft: #f6eee6;
  --surface: rgba(255, 252, 248, 0.9);
  --text: #5b463d;
  --muted: #90776b;
  --accent: #d69f95;
  --accent-strong: #bc7d73;
  --line: rgba(145, 115, 96, 0.18);
  --shadow: 0 18px 40px rgba(126, 94, 77, 0.12);
  --radius-xl: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214, 159, 149, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(233, 215, 196, 0.4), transparent 25%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 46%, #fffaf5 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.page-shell { padding-bottom: 3rem; }

.site-header, .admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 245, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-mark { display: grid; gap: 0.1rem; }
.brand-kicker, .eyebrow {
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.brand-mark strong, h1, h2, h3 { font-family: "Cormorant Garamond", serif; }
.brand-mark strong { font-size: 1.65rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.public-mobile-cta {
  display: none;
}
.main-nav a, .link-button {
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
}
.admin-user {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent-strong);
}

.flash {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.flash-success { background: rgba(111, 155, 130, 0.12); color: #406451; }
.flash-error { background: rgba(173, 107, 104, 0.12); color: #7c4b48; }

.hero-section { padding: 4.5rem 0 2rem; }
.hero-grid, .booking-layout, .admin-grid, .edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1.25rem;
}
.hero-copy, .hero-card, .service-card, .booking-form-wrap, .booking-side-card,
.panel, .login-card, .table-panel, .slot-admin-card, .stat-card, .detail-chip {
  background: var(--surface);
  border: 1px solid rgba(200, 168, 148, 0.2);
  box-shadow: var(--shadow);
}
.detail-chip {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  display: grid;
  gap: 0.25rem;
}
.detail-chip span { color: var(--muted); font-size: 0.85rem; }
.hero-actions, .form-actions, .panel-actions, .action-stack {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero-actions-center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--accent), #e5b1a7); color: #fffaf7; }
.button-secondary { background: rgba(255, 248, 241, 0.88); border-color: var(--line); }
.button-ghost { background: transparent; border-color: var(--line); }
.button-danger { background: linear-gradient(135deg, #b77470, #d28a85); color: white; }
.wide { width: 100%; }
.small-button { padding: 0.55rem 0.9rem; }

.hero-card {
  border-radius: var(--radius-xl);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: rgba(255, 250, 245, 0.58);
}
.hero-slider-full {
  border-radius: 36px;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(214, 159, 149, 0.26);
  z-index: 3;
  pointer-events: none;
}
.hero-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 1.4rem;
  display: grid;
  align-content: end;
}
.hero-card h2 { margin: 0.65rem 0 1rem; font-size: 2.2rem; line-height: 1; }
.hero-list, .side-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.55rem;
}
.hero-slider-track {
  position: relative;
  min-height: 620px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 5.5s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-picture,
.hero-picture img {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(0.96) brightness(0.94);
}
.hero-slide-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 2rem 2rem 4.2rem;
}
.hero-book-button {
  min-width: 210px;
  padding: 1rem 1.7rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 20px 50px rgba(96, 61, 50, 0.28);
  border: 1px solid rgba(255, 250, 245, 0.55);
}
.hero-book-button:hover {
  transform: translateY(-2px) scale(1.02);
}
.hero-slide-overlay {
  position: absolute;
  inset: auto 1.6rem 1.6rem 1.6rem;
  z-index: 2;
  padding: 1.2rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(94, 68, 58, 0.08), rgba(71, 50, 43, 0.76));
  color: #fffaf7;
  backdrop-filter: blur(8px);
}
.hero-slide-overlay .eyebrow {
  color: rgba(255, 241, 232, 0.84);
}
.hero-slide-overlay h2 {
  margin: 0.35rem 0 0;
  color: #fffaf7;
  max-width: 12ch;
}
.hero-slide-overlay-wide {
  inset: auto 1.8rem 1.8rem 1.8rem;
  max-width: 620px;
  padding: 1.35rem 1.4rem;
}
.hero-slide-overlay-wide h2 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.95;
}
.hero-slider-dots {
  position: absolute;
  left: 1.6rem;
  bottom: 2rem;
  z-index: 4;
  display: flex;
  gap: 0.6rem;
}
.hero-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 247, 239, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.hero-slider-dot.is-active {
  background: #fffaf7;
  transform: scale(1.15);
}
.section-spacing, .admin-section { padding: 2.25rem 0; }
.section-heading { margin-bottom: 1.35rem; }
.section-heading h2, .section-heading h1 {
  margin: 0.3rem 0 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}
.inline-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.service-grid, .stat-grid, .slot-admin-grid, .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slot-admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card, .booking-form-wrap, .booking-side-card, .panel, .login-card, .table-panel {
  border-radius: 24px;
  padding: 1.4rem;
}
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  isolation: isolate;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.18), rgba(255, 251, 247, 0.5) 52%, rgba(255, 251, 247, 0.84));
  z-index: 1;
}
.service-card-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  min-height: 220px;
}
.service-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  filter: saturate(1.02) brightness(0.98);
}
.service-card-foot .service-card-media img {
  object-position: center center;
}
.service-card-neck .service-card-media img {
  object-position: center center;
}
.service-card-body .service-card-media img {
  object-position: center center;
}
.service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
  text-shadow: 0 10px 24px rgba(255, 250, 245, 0.4);
}
.service-card p {
  margin: 0 0 1rem;
  color: #6f5a50;
  line-height: 1.7;
}
.service-card span {
  color: #b36f64;
  font-size: 0.95rem;
  font-weight: 600;
}

.booking-form, .login-form, .hours-form { display: grid; gap: 1rem; }
.field-grid, .toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field { display: grid; gap: 0.45rem; }
.field span, .helper-text, .contact-label { color: var(--muted); font-size: 0.92rem; }
.field input, .field select, .field textarea, .toolbar input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.96);
  color: var(--text);
}
.slot-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.slot-button {
  border: 1px solid rgba(188, 125, 115, 0.26);
  background: rgba(255, 249, 242, 0.95);
  color: var(--text);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  cursor: pointer;
}
.slot-button.is-selected { background: linear-gradient(135deg, var(--accent), #e7b7ad); color: white; }
.contact-box { margin-top: 1.35rem; padding: 1rem; border-radius: 18px; background: rgba(255, 247, 239, 0.9); }

.login-section {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
}
.login-card { width: min(460px, 100%); }
.login-card h1 { margin: 0.5rem 0 1.1rem; font-size: 2.8rem; line-height: 0.98; }
.login-note { color: var(--muted); margin-bottom: 0; }

.stat-card { border-radius: 20px; padding: 1.2rem; }
.stat-card span { color: var(--muted); display: block; }
.stat-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 2.3rem;
  font-family: "Cormorant Garamond", serif;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.panel-head h2 { margin: 0; font-size: 2rem; }
.hours-table, .mini-table, .detail-list { display: grid; gap: 0.85rem; }
.hours-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.hours-day { font-weight: 700; }
.compact-field span { font-size: 0.8rem; }
.toggle-field { display: inline-flex; gap: 0.55rem; align-items: center; color: var(--muted); }
.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.mini-row p, .data-table p, .detail-list dd { margin: 0.3rem 0 0; color: var(--muted); }
.text-link { color: var(--accent-strong); }

.toolbar {
  margin-bottom: 1rem;
  grid-template-columns: 180px 1fr auto auto;
}
.table-panel { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  text-transform: capitalize;
}
.badge-booked { background: rgba(214, 159, 149, 0.18); color: #9a625b; }
.badge-confirmed { background: rgba(111, 155, 130, 0.16); color: #426754; }
.badge-completed { background: rgba(87, 126, 111, 0.16); color: #3f5f52; }
.badge-no-show { background: rgba(154, 125, 100, 0.16); color: #7d614c; }
.badge-cancelled { background: rgba(173, 107, 104, 0.14); color: #8d5754; }
.empty-state, .empty-cell { color: var(--muted); }
.checkbox-row, .danger-zone { display: grid; gap: 0.85rem; }
.detail-list div { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 0.92rem; }
.detail-list dd { margin-left: 0; }

.slot-admin-card {
  border-radius: 22px;
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
}
.slot-admin-card.open { background: rgba(255, 250, 244, 0.95); }
.slot-admin-card.booked { background: rgba(240, 231, 223, 0.88); }
.slot-admin-card.blocked { background: rgba(226, 214, 207, 0.96); }
.slot-time { margin: 0; font-size: 1.2rem; font-weight: 700; }
.slot-state { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  background: rgba(255, 250, 245, 0.8);
}
.footer-title { margin: 0 0 0.65rem; font-weight: 700; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 120px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 241, 0.92);
  color: var(--accent-strong);
  transition: 0.2s ease;
}
.social-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent), #e5b1a7);
  color: #fffaf7;
}
.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .hero-grid, .booking-layout, .admin-grid, .edit-grid, .service-grid,
  .stat-grid, .slot-admin-grid, .footer-grid { grid-template-columns: 1fr; }
  .field-grid, .toolbar, .hours-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-row, .main-nav, .panel-head, .inline-heading {
    align-items: start;
    flex-direction: column;
  }
  .public-nav-row {
    align-items: center;
    gap: 0.9rem;
  }
  .public-desktop-nav {
    display: none;
  }
  .public-mobile-cta {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .public-mobile-book-button {
    min-width: 180px;
    box-shadow: 0 12px 28px rgba(96, 61, 50, 0.18);
  }
  .brand-mark {
    justify-items: center;
    text-align: center;
  }
  .toolbar { grid-template-columns: 1fr; }
  .hero-card,
  .hero-slider-track {
    min-height: 470px;
  }
  .hero-slide-center {
    display: none;
  }
  .hero-slide-center {
    padding: 1.25rem 1.25rem 3.8rem;
  }
  .hero-slide-overlay {
    inset: auto 1rem 1rem 1rem;
  }
  .hero-slide-overlay-wide h2 {
    font-size: 2.2rem;
    max-width: 12ch;
  }
  .hero-slider-dots {
    left: 1rem;
    bottom: 1rem;
  }
}
