/* =========================================================
   KH Cricket Coaching — style.css (built from scratch)
   Premium athletic aesthetic · dark · glassmorphism
   ========================================================= */

:root {
  /* Colour tokens */
  --bg:        #0b0f14;
  --bg-2:      #0f151c;
  --bg-3:      #131b24;
  --surface:   rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border:    rgba(255, 255, 255, 0.10);
  --border-2:  rgba(255, 255, 255, 0.16);

  --text:      #f2f5f8;
  --muted:     #9aa7b4;
  --muted-2:   #6b7884;

  --accent:    #e8413a;            /* cricket-ball red */
  --accent-2:  #ff6a4d;            /* warm seam highlight */
  --accent-grad: linear-gradient(120deg, #e8413a 0%, #ff6a4d 100%);
  --gold:      #f4c14b;

  /* Type scale */
  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius:    18px;
  --radius-sm: 12px;
  --header-h:  72px;

  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); text-transform: none; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.accent { color: var(--accent); background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.eyebrow {
  display: inline-block; font-family: var(--f-body); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  min-height: 46px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  touch-action: manipulation;
}
.btn-lg { padding: 16px 30px; font-size: 1.02rem; min-height: 54px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 28px -10px rgba(232, 65, 58, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(232, 65, 58, 0.8); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0b0f14; }
.btn-light:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.link-arrow { color: var(--accent-2); font-weight: 600; transition: gap .2s var(--ease); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Glassmorphism ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(11, 15, 20, 0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: rgba(11, 15, 20, 0.85); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--f-display); }
.brand-logo {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 8px 24px -8px rgba(232, 65, 58, 0.55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.07); box-shadow: 0 12px 28px -6px rgba(232, 65, 58, 0.7); }
.brand-text { font-weight: 800; font-size: 1.05rem; line-height: 1; letter-spacing: -0.01em; }
.brand-text span { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-desktop { display: flex; gap: 30px; margin-left: auto; }
.nav-desktop a { font-weight: 500; color: var(--muted); font-size: 0.95rem; position: relative; transition: color .2s var(--ease); }
.nav-desktop a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent-grad); transition: width .25s var(--ease); }
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.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); }

.nav-mobile {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 999;
  display: flex; flex-direction: column; gap: 4px; padding: 18px 22px 26px;
  background: rgba(11, 15, 20, 0.97); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: translateY(-120%); transition: transform .35s var(--ease); visibility: hidden;
}
.nav-mobile.open { transform: translateY(0); visibility: visible; }
.nav-mobile a { padding: 14px 6px; font-weight: 600; border-bottom: 1px solid var(--border); }
.nav-mobile a.btn { border-bottom: none; margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; padding-top: var(--header-h); background: radial-gradient(1200px 700px at 75% 20%, rgba(232,65,58,0.18), transparent 60%), var(--bg); }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 400px at 15% 90%, rgba(255,106,77,0.12), transparent 70%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-grid { position: relative; z-index: 2; }
.hero-copy { max-width: 660px; }
.hero-lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); margin: 22px 0 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; color: var(--text); }
.hero-stats span { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll span { width: 1px; height: 34px; background: linear-gradient(var(--accent-2), transparent); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.light h2, .section-head.light .section-sub { color: #fff; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* ---------- Notice band ---------- */
.notice-band { background: var(--accent-grad); color: #fff; }
.notice-inner { display: flex; align-items: center; gap: 22px; padding: 26px 0; flex-wrap: wrap; }
.notice-inner p { flex: 1; min-width: 260px; font-size: 1rem; }
.pill { background: rgba(0,0,0,0.22); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--f-display); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 54px; align-items: center; }
.about-copy p { color: var(--muted); margin-bottom: 18px; max-width: 56ch; }
.about-card { padding: 32px; }
.about-card h3 { margin-bottom: 20px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--text); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 0 4px rgba(232,65,58,0.15); }
.about-card .btn { margin-top: 14px; }

/* ---------- Cards grid (services) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { padding: 30px; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.service-card:hover { transform: translateY(-6px); border-color: var(--border-2); background: var(--surface-2); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.96rem; }
.service-video {
  margin-top: 18px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  min-height: 120px; display: flex; align-items: center; justify-content: center;
}
.service-video .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border: none !important; box-shadow: none !important; background: transparent !important; }
.service-video iframe { border-radius: var(--radius-sm); }
.reel-fallback { color: var(--accent-2); font-size: 0.85rem; font-weight: 600; padding: 28px 16px; text-decoration: none; }
.reel-fallback:hover { text-decoration: underline; }
.service-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.price { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; color: var(--text); }
.price small { font-size: 0.72rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.coaches { font-size: 0.78rem; color: var(--accent-2); font-weight: 600; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.team-card:hover { transform: translateY(-5px); }
.team-photo { aspect-ratio: 16 / 11; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); filter: saturate(1.05); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-body { padding: 26px 28px 30px; }
.team-body h3 { font-size: 1.45rem; }
.role { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); margin: 8px 0 14px; }
.team-body p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Testimonial ---------- */
.section-quote { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-quote blockquote { max-width: 880px; margin-inline: auto; text-align: center; }
.section-quote p { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35; letter-spacing: -0.01em; }
.section-quote footer { color: var(--accent-2); font-weight: 600; margin-top: 24px; letter-spacing: 0.04em; }

/* ---------- Locations (parallax) ---------- */
.locations { overflow: hidden; }
.locations .parallax-bg { position: absolute; inset: -15% 0; z-index: 0; background: radial-gradient(900px 500px at 70% 30%, rgba(232,65,58,0.20), transparent 60%), linear-gradient(160deg, #11202b, #0b0f14); background-size: cover; will-change: transform; }
.locations-inner { position: relative; z-index: 1; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.loc-card { padding: 32px; }
.loc-card h3 { color: var(--accent-2); margin-bottom: 14px; }
.loc-card ul li { padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.loc-card ul li:last-child { border-bottom: none; }
.loc-card ul li strong { color: var(--text); }
.loc-card p { color: var(--muted); }

/* ---------- Sponsor ---------- */
.sponsor-inner { text-align: center; max-width: 680px; margin-inline: auto; }
.sponsor-inner p { color: var(--muted); margin: 16px 0 26px; font-size: 1.08rem; }
.code { font-family: var(--f-display); font-weight: 800; color: var(--gold); border: 1px dashed rgba(244,193,75,0.5); padding: 2px 10px; border-radius: 8px; letter-spacing: 0.05em; }

/* ---------- Booking ---------- */
.section-book { background: radial-gradient(800px 400px at 50% 0%, rgba(232,65,58,0.10), transparent 60%), var(--bg); }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.book-subhead { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; margin: 8px 0 18px; }
.book-subhead span { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.coach-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.coach-card .coach-venue { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-2); background: rgba(232,65,58,0.10); border: 1px solid rgba(232,65,58,0.22); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.book-card { padding: 32px 28px; text-align: center; position: relative; transition: transform .3s var(--ease); }
.book-card:hover { transform: translateY(-5px); }
.book-card.featured { border-color: rgba(232,65,58,0.5); box-shadow: 0 0 0 1px rgba(232,65,58,0.3), var(--shadow); }
.book-card .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-grad); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.book-dur { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.book-price { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; margin: 14px 0 22px; }
.booking-widget { padding: 14px; }
.booking-widget-inner { padding: 46px 26px; text-align: center; border: 1px dashed var(--border-2); border-radius: var(--radius-sm); }
.bw-title { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; }
.bw-text { color: var(--muted); margin: 10px auto 22px; max-width: 440px; }
.bw-fallback { color: var(--muted-2); font-size: 0.88rem; margin-top: 18px; }
.bw-fallback a { color: var(--accent-2); }

/* ---------- Payment note ---------- */
.payment-note {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(244, 193, 75, 0.08); border: 1px solid rgba(244, 193, 75, 0.25);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 32px;
}
.payment-note .pay-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.payment-note p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.payment-note strong { color: var(--gold); }

/* ---------- Cal.com embed ---------- */
.cal-embed-wrap {
  margin-top: 40px; overflow: hidden; padding: 0;
  border: 1px solid var(--border);
}
.cal-embed-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.cal-embed-label { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.cal-embed-sub { font-size: 0.78rem; color: var(--muted-2); letter-spacing: 0.04em; }
#cal-inline iframe { border: none !important; }

/* Active book card highlight */
.book-card.active {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent), var(--shadow) !important;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: start; }
.contact-copy p { color: var(--muted); margin-bottom: 26px; max-width: 46ch; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-list span { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.contact-list a { color: var(--accent-2); font-weight: 600; }
.contact-form { padding: 34px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--text); background: rgba(0,0,0,0.25);
  border: 1px solid var(--border); border-radius: 11px; padding: 13px 15px;
  min-height: 48px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,65,58,0.18); }
.field input:invalid:not(:placeholder-shown) { border-color: #e8413a; }
.form-note { margin-top: 14px; font-size: 0.9rem; color: var(--accent-2); min-height: 1.2em; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 38ch; font-size: 0.95rem; }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-legal a { color: var(--muted); font-size: 0.95rem; transition: color .2s var(--ease); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.88rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--accent-2); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
  display: none; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; min-height: 56px; border-radius: 16px;
  background: var(--accent-grad); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 14px 34px -8px rgba(232,65,58,0.7);
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.sticky-cta .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); } 50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards-grid, .book-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav-desktop, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .team-grid, .loc-grid, .cards-grid, .book-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 92px; }
  .hero-stats { gap: 26px; }
  .hero { min-height: 92vh; min-height: 92dvh; }
  .notice-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .book-price { font-size: 2.2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
