/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #FAFAF8;
  --bg-alt:      #F2F2EE;
  --surface:     #FFFFFF;
  --border:      #E5E5DF;
  --text:        #1A1A1A;
  --text-muted:  #6B6B67;
  --accent:      #2D4A3E;
  --accent-light:#E8F0EC;
  --accent-hover:#1F3329;
  --warn:        #C0392B;
  --success:     #27AE60;

  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
  --shadow-lg:   0 4px 6px rgba(0,0,0,.05), 0 16px 32px rgba(0,0,0,.08);

  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:   'SF Mono', 'Fira Code', Consolas, monospace;

  --max-w:       1120px;
  --nav-h:       64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { max-width: 68ch; }

.label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

section { padding-block: clamp(3rem, 7vw, 6rem); }

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav__logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: .9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.active { color: var(--text); font-weight: 500; }

@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  font-family: var(--font);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-light); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); text-decoration: none; }

.btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }

/* ─── Forms ─────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }

label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
}

.form-hint {
  font-size: .8rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

input.error, select.error, textarea.error {
  border-color: var(--warn);
}

textarea { resize: vertical; min-height: 100px; }

.field-error {
  font-size: .8rem;
  color: var(--warn);
  display: none;
}
.field-error.visible { display: block; }

/* ─── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

/* ─── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.badge-available  { background: #D1FAE5; color: #065F46; }
.badge-occupied   { background: #FEE2E2; color: #991B1B; }
.badge-small      { background: #EDE9FE; color: #5B21B6; }
.badge-medium     { background: #DBEAFE; color: #1E40AF; }
.badge-large      { background: #FEF3C7; color: #92400E; }

/* ─── Alert / Flash ─────────────────────────────────────────────────────────── */
.flash {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.flash-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.flash-info    { background: var(--accent-light); color: var(--accent); border: 1px solid #C6DDD5; }

/* ─── Grid helpers ──────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }

/* ─── Divider ───────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin-block: 2rem; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  background: var(--bg-alt);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__brand p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: .5rem;
  max-width: 28ch;
}

.footer__links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer__col { display: flex; flex-direction: column; gap: .5rem; }
.footer__col h5 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.footer__col a  { font-size: .875rem; color: var(--text-muted); }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ─── Page hero ─────────────────────────────────────────────────────────────── */
.page-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.page-hero .label { margin-bottom: .75rem; }
.page-hero h1    { margin-bottom: .75rem; }
.page-hero p     { color: var(--text-muted); font-size: 1.1rem; }

/* ─── Pricing table ─────────────────────────────────────────────────────────── */
.pricing-pill {
  display: inline-flex;
  align-items: center;
  background: var(--accent-light);
  border: 1px solid #C6DDD5;
  border-radius: 100px;
  padding: .2rem .5rem;
  gap: .4rem;
}
.pricing-pill .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.pricing-pill .per {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ─── Step indicator ────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow-x: auto;
}

.step {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.step__num {
  width: 28px;
  height: 28px;
  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(--surface);
  flex-shrink: 0;
}

.step__label { font-size: .85rem; color: var(--text-muted); white-space: nowrap; }

.step.active .step__num  { border-color: var(--accent); background: var(--accent); color: #fff; }
.step.active .step__label { color: var(--text); font-weight: 500; }
.step.done .step__num    { border-color: var(--success); background: var(--success); color: #fff; }

.step__connector {
  flex: 1;
  height: 1px;
  min-width: 1.5rem;
  background: var(--border);
  margin-inline: .25rem;
}

/* ─── Spinner ───────────────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: none;
}
.btn.loading .spinner  { display: block; }
.btn.loading .btn-text { opacity: .6; }
