/* ===========================================================
   PIXCLARIX STUDIO — Global Design System
   Cinematic wedding studio. Warm, quiet, editorial.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Color */
  --ink: #17140F;
  --ink-soft: #2A241C;
  --paper: #FAF6EF;
  --paper-dim: #F1EAD9;
  --card: #FFFDF9;
  --gold: #A97C3C;
  --gold-soft: #D9B98A;
  --rose: #B98A78;
  --line: rgba(23, 20, 15, 0.12);
  --line-soft: rgba(23, 20, 15, 0.07);
  --success: #5B7A5B;
  --danger: #A24B3F;

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Scale */
  --step-sm: 0.875rem;
  --step-base: 1rem;
  --step-lg: 1.25rem;
  --step-xl: 1.75rem;
  --step-2xl: 2.5rem;
  --step-3xl: 3.5rem;

  /* Radius / shadow */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-card: 0 1px 2px rgba(23,20,15,0.04), 0 8px 24px rgba(23,20,15,0.06);
  --shadow-lift: 0 4px 10px rgba(23,20,15,0.06), 0 16px 40px rgba(23,20,15,0.10);

  --maxw: 1120px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--step-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-3xl); font-weight: 400; }
h2 { font-size: var(--step-2xl); }
h3 { font-size: var(--step-xl); }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-xs { gap: 8px; } .gap-sm { gap: 12px; } .gap-md { gap: 20px; } .gap-lg { gap: 32px; }
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-auto { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  min-height: 46px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #93692F; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: 10px 14px; }
.btn-ghost:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; min-height: 36px; font-size: 0.85rem; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Forms */
label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 96px; }
.field { margin-bottom: 20px; }
.field-error { color: var(--danger); font-size: 0.82rem; margin-top: 6px; }
.checkbox-row, .radio-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.checkbox-row input, .radio-row input { width: auto; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 20px; }
@media (max-width: 600px) { .check-grid { grid-template-columns: 1fr; } }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.card-pad-sm { padding: 18px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.01em; }
.brand span { color: var(--gold); }

/* Progress */
.progress-track { background: var(--line-soft); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-fill { background: var(--gold); height: 100%; border-radius: 999px; transition: width 0.4s ease; }

/* Status pill */
.pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; background: var(--paper-dim); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.pill-gold { background: rgba(169,124,60,0.12); color: var(--gold); border-color: rgba(169,124,60,0.3); }
.pill-success { background: rgba(91,122,91,0.12); color: var(--success); border-color: rgba(91,122,91,0.3); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 0.92rem; color: var(--ink-soft); }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
.timeline li.done .dot { background: var(--gold); border-color: var(--gold); }
.timeline li.active .dot { background: var(--ink); border-color: var(--ink); }
.timeline li.done, .timeline li.active { color: var(--ink); font-weight: 500; }

/* Toast / banner */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 14px 22px; border-radius: var(--r-md);
  font-size: 0.9rem; box-shadow: var(--shadow-lift); z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.toast.error { background: var(--danger); }

.helper-text { font-size: 0.85rem; color: var(--ink-soft); opacity: 0.75; }
.divider { height: 1px; background: var(--line-soft); margin: 28px 0; border: none; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-soft); }
.empty-state .btn { margin-top: 16px; }

.skeleton { background: linear-gradient(90deg, var(--paper-dim) 25%, var(--line-soft) 50%, var(--paper-dim) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

.sticky-cta {
  position: sticky; bottom: 0; background: linear-gradient(to top, var(--paper) 60%, transparent);
  padding: 20px 0 16px; margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
