@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  font-family: 'Manrope', sans-serif;
  --bg: #120e0c;
  --panel: rgba(33, 24, 20, 0.82);
  --panel-strong: rgba(51, 34, 27, 0.92);
  --panel-lite: rgba(255, 244, 230, 0.05);
  --line: rgba(245, 220, 191, 0.14);
  --line-strong: rgba(245, 220, 191, 0.28);
  --text: #f9eedf;
  --muted: #ccbba8;
  --gold: #e7c391;
  --sand: #d9c2a2;
  --clay: #c58164;
  --sage: #7da18d;
  --danger: #ec8b7f;
  --success: #89c5a1;
  --info: #a5c8dd;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(197, 129, 100, 0.16), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(230, 193, 142, 0.18), transparent 28%),
    linear-gradient(180deg, #19120e 0%, #0f0d0b 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 88%);
  opacity: 0.35;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 0.8rem),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.025), transparent 1rem);
  background-size: 9rem 9rem, 12rem 12rem;
  mix-blend-mode: soft-light;
  opacity: 0.35;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button,
.button {
  border: 0;
  border-radius: 999px;
  padding: 0.86rem 1.15rem;
  background: linear-gradient(135deg, var(--gold), #f1d7b3);
  color: #1a130e;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease;
  box-shadow: 0 10px 30px rgba(230, 193, 142, 0.18);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

button.secondary,
.button.secondary {
  background: rgba(255, 244, 230, 0.08);
  color: var(--text);
  box-shadow: none;
}

button.tile-button {
  width: 100%;
  background: transparent;
  color: inherit;
  box-shadow: none;
  border-radius: 24px;
  text-align: left;
  padding: 0;
}

.ghost-upload {
  position: relative;
  overflow: hidden;
}

.ghost-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
  display: grid;
  gap: 1rem;
}

.card,
.card-lite {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 1.45rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.card-lite {
  background: var(--panel-lite);
  box-shadow: none;
}

.warm-card {
  background: linear-gradient(135deg, rgba(94, 63, 40, 0.62), rgba(32, 22, 16, 0.9));
}

.topbar,
.hero-grid,
.auth-box,
.section-head,
.service-head,
.appointment-row,
.reminder-row,
.card-label-row,
.notification-row,
.booking-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.topbar {
  padding: 0.65rem 0.4rem 0;
}

.topbar-stats,
.hero-actions,
.hero-meta,
.tile-meta,
.booking-facts,
.inline-fields,
.button-row,
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-stats span,
.hero-meta span,
.tile-meta span,
.booking-facts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  background: rgba(255, 244, 230, 0.04);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(231, 195, 145, 0.08), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(125, 161, 141, 0.18), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(197, 129, 100, 0.2), transparent 28%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  align-items: stretch;
}

.hero-copy,
.hero-aside,
.feature-column,
.gate-copy {
  display: grid;
  gap: 1rem;
}

.hero-copy {
  flex: 1.2;
}

.hero-aside {
  flex: 0.92;
}

.hero-orbit {
  border-radius: 28px;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 244, 230, 0.09), rgba(255, 244, 230, 0.02));
}

.feature-service,
.service-tile,
.service-panel,
.quote-card,
.contact-strip,
.inline-status,
.service-check {
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 1.1rem;
  background: rgba(255, 248, 238, 0.03);
}

.feature-service h3,
.service-tile h3,
.hero-orbit h3,
.quote-card p,
.notification-row strong,
.contact-strip strong {
  font-family: 'Fraunces', serif;
}

.feature-service p:last-child,
.quote-card strong,
.inline-status p {
  margin-bottom: 0;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quiet-link {
  padding: 0.86rem 0.2rem;
  color: var(--muted);
}

.hero h1,
.section-head h2,
.auth-box h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.9;
  margin-bottom: 0.8rem;
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.1;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
  max-width: 34rem;
}

.intro-copy {
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-size: 0.72rem;
}

.muted {
  color: var(--muted);
}

.stats,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.summary-grid.wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stats div,
.summary-grid div {
  border-radius: 22px;
  padding: 0.95rem;
  background: rgba(255, 244, 230, 0.05);
  display: grid;
  gap: 0.2rem;
  min-height: 5.3rem;
}

.stats span,
.summary-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.stats strong,
.summary-grid strong {
  font-size: 1.65rem;
}

.grid,
.stack-form,
.stack-list,
.field-grid,
.service-showcase,
.slot-grid,
.stepper,
.quote-grid,
.editorial-blocks,
.feature-column {
  display: grid;
  gap: 1rem;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.two-up,
.two-up.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-form,
.compact-gap {
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.42rem;
}

label span,
legend {
  color: var(--muted);
  font-size: 0.88rem;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.88rem 0.95rem;
  background: rgba(16, 12, 9, 0.84);
  color: var(--text);
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid rgba(230, 193, 142, 0.42);
  border-color: rgba(230, 193, 142, 0.42);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkbox-field input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  padding: 0;
}

.hours-row {
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: end;
}

.inline-filter-bar {
  align-items: end;
}

.accent-sand {
  background: linear-gradient(180deg, rgba(217, 194, 162, 0.1), rgba(255, 248, 238, 0.03));
}

.accent-clay {
  background: linear-gradient(180deg, rgba(197, 129, 100, 0.12), rgba(255, 248, 238, 0.03));
}

.accent-sage {
  background: linear-gradient(180deg, rgba(125, 161, 141, 0.12), rgba(255, 248, 238, 0.03));
}

.service-tile.is-current,
.is-pill-active {
  outline: 1px solid rgba(230, 193, 142, 0.35);
  transform: translateY(-1px);
}

.stepper {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-chip {
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 244, 230, 0.04);
  display: grid;
  gap: 0.3rem;
}

.step-chip span {
  font-size: 0.78rem;
  color: var(--gold);
}

.step-chip.is-active,
.step-chip.is-complete,
.slot-button.is-selected {
  background: rgba(230, 193, 142, 0.12);
  border-color: rgba(230, 193, 142, 0.28);
}

.slot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slot-button {
  display: grid;
  gap: 0.2rem;
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 244, 230, 0.05);
  color: var(--text);
  box-shadow: none;
}

.selected-slot,
.confirmation-panel {
  display: grid;
  gap: 0.45rem;
}

.message {
  border-radius: 18px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
}

.message.success {
  color: var(--success);
  background: rgba(137, 197, 161, 0.08);
}

.message.error {
  color: var(--danger);
  background: rgba(236, 139, 127, 0.08);
}

.badge {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.badge-pending,
.badge-due,
.badge-new {
  color: var(--gold);
  background: rgba(230, 193, 142, 0.1);
  border-color: rgba(230, 193, 142, 0.22);
}

.badge-confirmed,
.badge-completed,
.badge-active,
.badge-sent,
.badge-read {
  color: var(--success);
  background: rgba(137, 197, 161, 0.1);
  border-color: rgba(137, 197, 161, 0.2);
}

.badge-cancelled,
.badge-no_show,
.badge-failed,
.badge-paused,
.badge-skipped {
  color: var(--danger);
  background: rgba(236, 139, 127, 0.1);
  border-color: rgba(236, 139, 127, 0.2);
}

.notification-row,
.reminder-row,
.appointment-row,
.auth-box {
  align-items: flex-start;
}

.notification-row.is-unread {
  border-color: var(--line-strong);
}

.feature-picklist {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
  margin: 0;
}

.service-check {
  gap: 0.75rem;
}

.backoffice-topbar {
  align-items: center;
}

.backoffice-gate {
  min-height: 22rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
}

.contact-strip,
.inline-status {
  display: grid;
  gap: 0.35rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .backoffice-gate,
  .two-up,
  .field-grid.two-up,
  .two-up.field-grid,
  .three-up,
  .four-up,
  .summary-grid.wide,
  .quote-grid,
  .service-showcase,
  .slot-grid,
  .stepper,
  .hours-row {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-head,
  .booking-head,
  .service-head,
  .appointment-row,
  .notification-row,
  .reminder-row,
  .auth-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .shell {
    width: min(100%, calc(100% - 1rem));
  }

  .hero-panel {
    padding: 1.35rem;
  }
}
