/* ============================================================
   Knight Sports Therapy — stylesheet
   Palette pulled from the logo: magenta → purple on near-black
   ============================================================ */

:root {
  --bg:        #0a0a0f;
  --bg-alt:    #101019;
  --surface:   #16161f;
  --surface-2: #1c1c28;
  --line:      rgba(255, 255, 255, 0.08);
  --text:      #f4f4f7;
  --muted:     #a2a2b0;

  --pink:   #ff2e97;
  --magenta:#e0219b;
  --purple: #8a2be2;
  --violet: #6a1bd0;

  --grad:      linear-gradient(120deg, #ff2e97 0%, #c02ac8 50%, #7b2ff7 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,46,151,.18), rgba(123,47,247,.18));

  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 20px 50px -20px rgba(0,0,0,.7);
  --shadow-pink: 0 16px 40px -14px rgba(224,33,155,.55);

  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.02em; }
section { position: relative; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 15px 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { box-shadow: 0 22px 48px -12px rgba(224,33,155,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pink); color: #fff; }
.btn-whatsapp { background: #25D366; color: #06331b; box-shadow: 0 16px 40px -14px rgba(37,211,102,.5); }
.btn-email    { background: #fff; color: #12121a; }
.btn-ico { font-size: 1.15rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,15,.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-logo { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--muted);
  position: relative; transition: color .2s;
}
.nav a:hover { color: #fff; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .25s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--grad); color: #fff !important; padding: 10px 22px; border-radius: 999px;
  box-shadow: var(--shadow-pink);
}
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 172px 0 110px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; right: -120px; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(224,33,155,.28), transparent 62%);
  filter: blur(20px); pointer-events: none; z-index: 0;
}
.hero-glow::after {
  content:""; position:absolute; left:-320px; top:220px; width:560px; height:560px;
  background: radial-gradient(circle, rgba(123,47,247,.25), transparent 62%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 900; margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 620px; margin-bottom: 38px; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 48px; }
.hero-stats li { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; }
.stat-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- trust bar ---------- */
.trustbar { background: var(--bg-alt); border-block: 1px solid var(--line); }
.trustbar-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px;
  padding: 20px 24px; color: var(--muted); font-size: .95rem; font-weight: 500;
}
.trustbar-inner span { white-space: nowrap; }

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; margin-bottom: 18px; }
.section-lead { color: var(--muted); font-size: 1.12rem; }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity:0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.7rem;
  border-radius: 14px; background: var(--grad-soft); margin-bottom: 22px;
}
.card h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--muted); }

/* ---------- about ---------- */
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #000; box-shadow: var(--shadow); position: relative;
}
.about-photo::after {
  content:""; position:absolute; inset:0; background: var(--grad-soft); mix-blend-mode: screen; pointer-events:none;
}
.about-photo img { width: 100%; }
.about-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 20px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy p strong { color: var(--text); }
.tick-list { list-style: none; margin: 8px 0 30px; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 32px; color: var(--text); }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 50%; background: var(--grad);
  color: #fff; font-size: .72rem; font-weight: 700;
}

/* ---------- feature (Runner's MOT) ---------- */
.feature-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.feature-copy h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 18px; }
.feature-copy > p { color: var(--muted); margin-bottom: 30px; }
.feature-points { display: grid; gap: 18px; margin-bottom: 34px; }
.feature-points div { display: flex; align-items: center; gap: 18px; }
.fp-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff;
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.feature-points p { font-weight: 600; }
.feature-panel { display: grid; place-items: center; }
.feature-badge {
  width: min(340px, 80vw); aspect-ratio: 1; border-radius: 28px;
  background: var(--grad); display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow-pink); padding: 30px; position: relative; overflow: hidden;
}
.feature-badge::after {
  content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 55%);
}
.feature-badge .grad-text {
  font-family: var(--font-head); font-weight: 900; font-size: 5.2rem; line-height: 1;
  color: #fff; -webkit-text-fill-color: #fff; background: none; position: relative;
}
.feature-badge p { color: rgba(255,255,255,.92); font-weight: 600; margin-top: 12px; position: relative; }

/* ---------- location ---------- */
.location-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  grid-template-areas: "addr map" "hours map";
}
.location-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.location-card:nth-of-type(1) { grid-area: addr; }
.location-card:nth-of-type(2) { grid-area: hours; }
.location-map { grid-area: map; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; position: relative; }
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); background: transparent; }
.map-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; text-align: center;
  padding: 24px; background: var(--grad-soft); color: var(--text);
}
.map-fallback .map-pin { font-size: 2.4rem; }
.map-fallback p { color: var(--muted); }
.location-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.location-card p { color: var(--muted); margin-bottom: 10px; }
.hours { list-style: none; display: grid; gap: 10px; margin-bottom: 14px; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.hours span:last-child { color: var(--text); font-weight: 600; }

/* ---------- contact ---------- */
.contact { padding: 118px 0; text-align: center; overflow: hidden; background: var(--bg-alt); }
.contact-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,46,151,.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(123,47,247,.18), transparent 45%);
}
.contact-inner { position: relative; z-index: 1; max-width: 680px; }
.contact-inner h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 36px 0 26px; }
.contact-actions .btn { padding: 17px 34px; font-size: 1.05rem; }
.contact-direct { color: var(--muted); font-size: 1.02rem; }
.contact-direct a { color: var(--text); font-weight: 600; }
.contact-direct a:hover { color: var(--pink); }
.contact-direct .dot { margin: 0 12px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 64px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 320px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-contact a { color: var(--muted); transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--pink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; color: var(--muted); font-size: .88rem; }
.footer-legal { padding-top: 10px; }
.footer-legal p { font-size: .8rem; line-height: 1.6; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: 0 12px 30px -6px rgba(37,211,102,.6); transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 420px; }
  .feature-panel { order: -1; }
  .location-grid { grid-template-columns: 1fr; grid-template-areas: "addr" "hours" "map"; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 4px;
    background: rgba(10,10,15,.97); backdrop-filter: blur(14px);
    padding: 20px 24px 30px; border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .35s var(--ease); align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 0; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .hero { padding: 140px 0 80px; }
  .hero-stats { gap: 28px; }
  .section { padding: 72px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .wa-float:hover { transform: none; }
}
