/* ─── REMIX Hairstyle – Global CSS ──────────────────────────────────────── */

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

:root {
  --bg:        #0D0D0D;
  --surface:   #161616;
  --surface2:  #1a1a1a;
  --border:    #2a2a2a;
  --gold:      #C9A84C;
  --gold-lt:   #E8CC80;
  --gold-dk:   #a88435;
  --cream:     #F5F0E8;
  --rose:      #D4887A;
  --muted:     #888888;
  --muted-lt:  #aaaaaa;
  --danger:    #e05555;
  --success:   #5cb85c;

  --radius:    8px;
  --radius-lg: 12px;
  --transition: 200ms ease;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--muted-lt); line-height: 1.7; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-lt); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--bg);
  border-color: transparent;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-lt);
  border-color: var(--gold-lt);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-lt);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface2);
  color: var(--cream);
  border-color: var(--muted);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: rgba(224, 85, 85, 0.1);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ─── Form Elements ──────────────────────────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-lt);
  letter-spacing: 0.3px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

input::placeholder, textarea::placeholder { color: var(--muted); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

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

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  flex-shrink: 0;
  padding: 0;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.checkbox-wrapper label {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted-lt);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}

.card:hover { border-color: #3a3a3a; }

.card-gold {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.1), 0 8px 32px rgba(201, 168, 76, 0.08);
}

/* ─── Badges ─────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-gold    { background: rgba(201,168,76,.15); color: var(--gold-lt); border: 1px solid rgba(201,168,76,.3); }
.badge-success { background: rgba(92,184,92,.15);  color: #7dd87d;        border: 1px solid rgba(92,184,92,.3); }
.badge-danger  { background: rgba(224,85,85,.15);  color: #ff8888;        border: 1px solid rgba(224,85,85,.3); }
.badge-muted   { background: rgba(136,136,136,.15); color: var(--muted);  border: 1px solid rgba(136,136,136,.3); }

/* ─── Loading / Spinner ──────────────────────────────────────────────────── */

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Utility ────────────────────────────────────────────────────────────── */

.text-gold  { color: var(--gold); }
.text-gold-lt { color: var(--gold-lt); }
.text-muted { color: var(--muted); }
.text-cream { color: var(--cream); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ─── Selection ──────────────────────────────────────────────────────────── */

::selection { background: rgba(201,168,76,.3); color: var(--cream); }

/* ─── Responsive container ───────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
}
