/* ===========================================================================
   Julius & Lion booking site — global styles.
   The view markup uses the exact inline styles from the original design;
   this file holds the resets, fonts, animations and the responsive overrides
   that make the whole thing work on phones.
   =========================================================================== */

:root {
  --bg: #0A0B0E;
  --card: #15171C;
  --card-2: #14161B;
  --text: #F2F4F7;
  --muted: #C7CDD6;
  --dim: #9AA1AC;
  --dimmer: #6b727c;
  --orange: #FF5A1F;
  --orange-2: #FF8A3D;
  --blue: #2E9BFF;
  --green: #1FBF75;
  --line: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
::placeholder { color: #5b616b; }
a { color: inherit; }

/* inputs get a visible focus ring for accessibility */
input:focus, textarea:focus, select:focus, button:focus-visible {
  outline: 2px solid rgba(255, 90, 31, 0.6);
  outline-offset: 1px;
}

/* hide scrollbars on the horizontal date strips, keep them swipeable */
.jl-scroll-x { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.jl-scroll-x::-webkit-scrollbar { display: none; }

/* ---- animations (from the design) ---------------------------------------- */
@keyframes tunnel   { 0% { transform: scale(1.05) rotate(0deg); } 50% { transform: scale(1.18) rotate(3deg); } 100% { transform: scale(1.05) rotate(0deg); } }
@keyframes drift    { 0% { background-position: 0% 50%; } 100% { background-position: 120% 50%; } }
@keyframes floaty   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes pulseRing{ 0% { opacity: .6; transform: scale(.85); } 70% { opacity: 0; transform: scale(1.4); } 100% { opacity: 0; } }
@keyframes rise     { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes jlspin   { to { transform: rotate(360deg); } }

.jl-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: var(--orange);
  animation: jlspin .8s linear infinite;
}

/* small toast */
.jl-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: #15171C; border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text); padding: 13px 20px; border-radius: 12px;
  font-size: 14px; z-index: 200; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  max-width: 90vw; animation: rise .25s ease both;
}
.jl-toast.err { border-color: rgba(255, 77, 77, 0.4); color: #ffb4b4; }

/* clickable helpers */
[data-action] { cursor: pointer; }
.jl-hover:hover { filter: brightness(1.08); }

/* mobile menu is hidden on desktop */
.jl-menu-btn { display: none; }
.jl-mobile-menu { display: none; }

/* =========================================================================
   RESPONSIVE  —  phones & small tablets
   ========================================================================= */
@media (max-width: 820px) {
  .jl-nav { display: none !important; }          /* hide desktop links */
  .jl-menu-btn { display: inline-flex !important; }
  .jl-header { padding: 12px 16px !important; }
  .jl-header-cta { display: none !important; }    /* Book button lives in the menu on mobile */

  .jl-mobile-menu.open { display: block !important; }

  .jl-stats { grid-template-columns: 1fr 1fr !important; }
  .jl-grid-3 { grid-template-columns: 1fr !important; }
  .jl-coach-card { grid-template-columns: 1fr !important; }
  .jl-coach-photo { min-height: 230px !important; }
  .jl-form-grid { grid-template-columns: 1fr !important; }
  .jl-slot-grid { grid-template-columns: 1fr !important; }
  .jl-rs-slots { grid-template-columns: 1fr 1fr !important; }

  .jl-appt-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .jl-appt-actions { justify-content: flex-start !important; }

  .jl-hero { height: auto !important; min-height: 0 !important; padding: 96px 18px 72px !important; }
  .jl-section { padding-left: 18px !important; padding-right: 18px !important; }
}

@media (max-width: 420px) {
  .jl-stats { grid-template-columns: 1fr 1fr !important; }
  .jl-rs-slots { grid-template-columns: 1fr 1fr !important; }
  .jl-day-pill { width: 58px !important; }
}

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  .jl-hero-video { display: none !important; } /* show the static gradient instead */
}
