/* Valronel Transportation — Obsidian Chauffeur & Executive Transit */

@layer base {
  html {
    scroll-behavior: smooth;
    background-color: #131315;
    color: #e5e1e4;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    margin: 0;
    padding: 0;
    overscroll-behavior-y: none;
    overflow-x: hidden;
  }
}

/* Utility classes */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.pt-safe {
  padding-top: env(safe-area-inset-top, 0px);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Obsidian Glassmorphism & Automotive Specular Rims */
.obsidian-card {
  position: relative;
  background: rgba(28, 27, 29, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.08);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.72), 0 0 1px 1px rgba(255, 255, 255, 0.04);
}

.obsidian-card-deep {
  position: relative;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.09);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

.specular-rim::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(226, 232, 240, 0.04) 0%,
    rgba(224, 194, 152, 0.45) 50%,
    rgba(226, 232, 240, 0.04) 100%
  );
  pointer-events: none;
  z-index: 10;
}

/* Executive Inputs */
.obsidian-input-box {
  background: rgba(14, 14, 16, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.obsidian-input-box:focus-within {
  border-color: #e0c298;
  background: rgba(28, 27, 29, 0.92);
  box-shadow: 0 0 0 3px rgba(224, 194, 152, 0.12);
}

/* Primary Platinum CTA */
.btn-platinum {
  background: linear-gradient(135deg, #ffffff 0%, #dfe3e7 100%);
  color: #131315;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 150ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.btn-platinum:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-platinum:active {
  transform: scale(0.985);
}

/* Champagne Outline Button */
.btn-concierge {
  background: rgba(42, 42, 44, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.14);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn-concierge:hover {
  border-color: rgba(224, 194, 152, 0.55);
  background: rgba(224, 194, 152, 0.08);
}

/* View Transition */
.app-view {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}

.app-view.active {
  display: block;
  animation: viewFadeIn 240ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal & Drawer Transitions */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  transform: translateY(20px) scale(0.98);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .modal-panel {
  transform: translateY(0) scale(1);
}

.drawer-panel {
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .drawer-panel {
  transform: translateX(0);
}

/* Custom Checkbox */
.luxury-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 14, 16, 0.9);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.luxury-checkbox::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 120ms ease;
  background-color: #131315;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.luxury-checkbox:checked {
  background-color: #e0c298;
  border-color: #e0c298;
}

.luxury-checkbox:checked::before {
  transform: scale(1);
}

/* Native date/time inputs in dark theme */
input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

/* Material icons alignment */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Toast notification */
#toast-container {
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  animation: toastIn 220ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* FAQ details styling */
details > summary::-webkit-details-marker {
  display: none;
}
