/* Fliesenkonzept Rhein-Main — shared custom styles
   Tailwind handles utilities via CDN; this file holds design tokens,
   the Apple-style aesthetic, and interactions Tailwind can't express. */

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-2: #27272a;
  --border: #27272a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #d97706; /* warm artisan bronze/amber */
  --accent-soft: rgba(217, 119, 6, 0.14);
  --emerald: #34d399;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background-color: var(--bg);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, .font-display {
  letter-spacing: -0.03em;
}

/* Glassmorphism */
.glass {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(63, 63, 70, 0.6);
}

/* Amber glow CTA */
.glow-cta {
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.4), 0 8px 30px -8px rgba(217, 119, 6, 0.55);
}
.glow-cta:hover {
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.6), 0 10px 40px -6px rgba(217, 119, 6, 0.7);
}

/* Subtle grid / radial backdrop */
.hero-backdrop {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(217, 119, 6, 0.12) 0%, transparent 70%),
    radial-gradient(40% 40% at 80% 20%, rgba(63, 63, 70, 0.25) 0%, transparent 70%);
}

/* Before / After comparison slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}
.ba-after img {
  position: absolute;
  inset: 0;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(244, 244, 245, 0.9);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(244, 244, 245, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Wizard step transition */
.step,
.fstep {
  display: none;
  animation: stepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.step.active,
.fstep.active {
  display: block;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Selectable option cards */
.option-card {
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.15s ease;
  cursor: pointer;
}
.option-card:hover { transform: translateY(-2px); }
.option-card.selected {
  border-color: var(--accent) !important;
  background-color: var(--accent-soft);
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 9999px;
  background: var(--surface-2);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--accent);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px -2px rgba(217, 119, 6, 0.6);
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--accent);
  border: 3px solid #fff;
  cursor: pointer;
}

/* Mobile drawer */
.drawer {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.open { transform: translateX(0); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }

.no-scroll { overflow: hidden; }

/* Project filter buttons */
.filter-btn {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.filter-btn.filter-active {
  background-color: var(--accent);
  color: #000;
  border-color: var(--accent);
}
