/* public/css/style.css — GS Motors design system */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
  --bg:       #0E0D06;
  --bg-2:     #15140c;
  --surface:  rgba(27,27,27,0.70);
  --border:   rgba(226,226,226,0.10);
  --border-2: rgba(226,226,226,0.20);
  --gold:     #DCA54A;
  --gold-dim: rgba(220,165,74,0.15);
  --blue:     #4A90E2;
  --silver:   #E2E2E2;
  --text:     #E2E2E2;
  --muted:    rgba(226,226,226,0.55);
  --muted-2:  rgba(226,226,226,0.35);
  --mono:     'JetBrains Mono', monospace;
  --nav-h:    68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { line-height: 1.7; color: var(--muted); max-width: 65ch; }

/* ── Glass card ── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 44px;
}
.btn-primary {
  background: var(--gold);
  color: #0E0D06;
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: #e8b55a; border-color: #e8b55a; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: var(--gold-dim); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--silver);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(14,13,6,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 5vw, 48px);
  gap: 32px;
}
.nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 16px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--silver);
  padding: 8px;
  margin-left: auto;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin: 8px 0 0; width: 100%; }
  .nav-toggle { display: flex; }
}

/* ── Page offset ── */
.page-content { padding-top: var(--nav-h); }

/* ── Section ── */
.section { padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 48px); max-width: 1280px; margin: 0 auto; }
.section-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section-title { margin-bottom: 16px; }
.section-sub   { margin-bottom: 48px; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) clamp(16px,5vw,80px) 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(220,165,74,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 40% 60% at 20% 80%, rgba(74,144,226,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-label   { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.hero-title   { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; margin-bottom: 24px; max-width: 12ch; }
.hero-title span { color: var(--gold); }
.hero-sub     { font-size: 1.1rem; color: var(--muted); margin-bottom: 40px; max-width: 50ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-3,.grid-2 { grid-template-columns: 1fr; } }

/* ── Service card ── */
.service-card {
  background: var(--surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.service-card:hover {
  border-color: rgba(220,165,74,0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(220,165,74,0.15);
}
.service-card .price {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 4px;
}
.service-card .duration {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p  { font-size: 0.875rem; color: var(--muted); }

/* ── Service option (boka steg 1) ── */
.service-option { position: relative; color: #fff; transition: border-color .2s, transform .2s, box-shadow .2s, background .2s; }
.service-option strong,
.service-option .price,
.service-option .duration,
.service-option p { color: #fff; }
.service-option:hover { border-color: rgba(220,165,74,.35); transform: translateY(-2px); }
.service-option.selected {
  border-color: var(--gold);
  background: rgba(220,165,74,0.10);
  box-shadow: 0 0 0 2px rgba(220,165,74,0.45), 0 10px 28px rgba(220,165,74,0.18);
  transform: translateY(-2px);
}
.service-option.selected::after {
  content: '✓';
  position: absolute; top: 14px; right: 16px;
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--gold); color: #0E0D06;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.service-option .price-old { font-family: var(--mono); font-size: .72rem; color: rgba(255,255,255,.45); text-decoration: line-through; margin-bottom: 2px; }

/* ── Booking wizard ── */
.wizard { max-width: 800px; margin: 0 auto; }
.wizard-steps { display: flex; gap: 0; margin-bottom: 40px; }
.wizard-step {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 2px solid var(--border);
  transition: all 0.2s;
}
.wizard-step.active { color: var(--gold); border-color: var(--gold); }
.wizard-step.done   { color: var(--muted); border-color: rgba(220,165,74,0.4); }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

/* ── Week calendar ── */
.week-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.week-nav h3 { flex: 1; text-align: center; font-size: 0.95rem; font-weight: 600; font-family: var(--mono); }
.week-nav .btn-icon { min-width: 44px; min-height: 44px; display:flex; align-items:center; justify-content:center; background: var(--surface); border: 1px solid var(--border); color: var(--silver); transition: border-color .15s; }
.week-nav .btn-icon:hover { border-color: var(--gold); color: var(--gold); }

.day-col { }
.day-header { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-align: center; padding: 8px 0 12px; }
.slot-btn {
  position: relative;
  display: block; width: 100%; margin-bottom: 6px;
  padding: 10px 8px; font-family: var(--mono); font-size: 0.82rem;
  background: transparent; border: 1px solid var(--border); color: var(--blue);
  transition: all .15s; cursor: pointer; min-height: 44px;
}
.slot-btn:hover   { background: rgba(74,144,226,0.12); border-color: var(--blue); transform: translateY(-1px); }
.slot-btn.selected {
  background: var(--gold); color: #0E0D06; border-color: var(--gold);
  font-weight: 700;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 0 2px rgba(220,165,74,0.45), 0 8px 22px rgba(220,165,74,0.40);
  z-index: 1;
}
.slot-btn.selected:hover { background: var(--gold); border-color: var(--gold); }
.slot-btn.selected::after {
  content: '✓';
  position: absolute; top: 3px; right: 5px;
  font-size: 0.62rem; font-weight: 700; line-height: 1;
}
.slot-btn:disabled { opacity: .35; cursor: default; transform: none; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-input {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  color: var(--text); font-family: inherit; font-size: 0.9rem;
  border-radius: 0;
  transition: border-color .15s;
  outline: none;
  min-height: 44px;
}
.form-input:focus  { border-color: var(--gold); background: rgba(220,165,74,0.04); }
.form-input::placeholder { color: var(--muted-2); }
.form-input.error  { border-color: #dc2626; }
.field-error { font-size: 0.75rem; color: #f87171; margin-top: 4px; }

/* ── Kundtyp toggle ── */
.kundtyp-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kundtyp-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 12px; min-height: 44px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  color: var(--muted);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s;
}
.kundtyp-btn:hover { border-color: var(--gold); color: var(--silver); }
.kundtyp-btn.selected { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px clamp(16px,5vw,48px) 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1280px; margin: 0 auto 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.footer-copy  { text-align: center; color: var(--muted-2); font-size: 0.78rem; border-top: 1px solid var(--border); max-width: 1280px; margin: 0 auto; padding-top: 20px; }

/* ── Alert ── */
.alert { padding: 14px 18px; border: 1px solid var(--border); margin-bottom: 16px; font-size: 0.875rem; }
.alert-success { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.08); color: #4ade80; }
.alert-error   { border-color: rgba(220,38,38,0.3); background: rgba(220,38,38,0.08); color: #f87171; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* ── Accordion (FAQ) ── */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 0.95rem; color: var(--text); cursor: pointer; background: transparent;
  text-align: left; gap: 12px; min-height: 44px;
}
.accordion-trigger svg { flex-shrink: 0; transition: transform .2s; }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-body { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.accordion-body p { padding: 0 0 18px; color: var(--muted); }

/* ── Utility ── */
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
