/* ==========================================================================
   KKIS Basketball Training - Professional Academy Stylesheet
   Mobile-Optimized, Basketball Court Hero & Unboxed Clean Typography
   ========================================================================== */

:root {
  /* Brand Colors */
  --navy-dark: #0a192f;
  --navy: #0f2042;
  --navy-light: #1e3a8a;
  
  --orange: #ea580c;
  --orange-bright: #ff681a;
  --orange-dark: #c2410c;
  --orange-subtle: #fff7ed;
  
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --border: #e2e8f0;
  --border-focus: #cbd5e1;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
  --shadow-court: 0 10px 30px rgba(0, 0, 0, 0.35);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.15s ease-in-out;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile sticky call bar */
}

@media (min-width: 800px) {
  body {
    padding-bottom: 0;
  }
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Header & Mobile Phone Placement
   -------------------------------------------------------------------------- */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__logo {
  width: 44px;
  height: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand__tagline {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--navy-dark);
}

.header__phone {
  display: inline-flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.phone-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.phone-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-dark);
  transition: color var(--transition);
}

.header__phone:hover .phone-number {
  color: var(--orange);
}

/* Hide the top white bar completely on mobile devices */
@media (max-width: 799px) {
  .header {
    display: none !important;
  }
  .hero {
    padding-top: max(2.5rem, calc(1.75rem + env(safe-area-inset-top, 0px)));
  }
}

/* --------------------------------------------------------------------------
   Hero Section (Authentic Hardwood Basketball Court with Clear Markings)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* Authentic Hardwood Court with Stadium Contrast Tint */
  background: 
    linear-gradient(rgba(10, 25, 47, 0.68) 0%, rgba(10, 25, 47, 0.78) 100%),
    url('images/basketball-court-bg.svg') center center / cover no-repeat;
  color: #ffffff;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-bottom: 4px solid var(--orange);
  box-shadow: inset 0 -15px 30px rgba(0,0,0,0.4);
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 861px) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
}

/* On Mobile: Logo appears at the VERY TOP of the hero section! */
@media (max-width: 860px) {
  .hero__grid {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .hero__visual {
    order: -1; /* Pushes the logo to the top of hero on mobile */
    margin-bottom: 0.5rem;
  }

  .hero__transparent-logo {
    max-width: 200px !important;
    margin: 0 auto;
  }

  .hero .location-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-md);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75rem;
  }

  .hero .badge-sep {
    display: none;
  }

  .hero .badge-line {
    display: block;
    line-height: 1.35;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
  }
}

/* Desktop: Logo on Right Side */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 861px) {
  .hero__visual {
    order: 2;
  }
  .hero__content {
    order: 1;
  }
}

.logo-transparent-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__transparent-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  transition: transform var(--transition);
}

.hero__transparent-logo:hover {
  transform: scale(1.02);
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(234, 88, 12, 0.25);
  color: #ffb188;
  border: 1px solid rgba(234, 88, 12, 0.6);
  font-size: 0.8125rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-sep {
  display: inline;
}

.badge-line {
  display: inline;
}

.hero__title {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero__slogan {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--orange-bright);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero__desc {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 1.35rem;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero__desc strong {
  color: #ffffff;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.75rem;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #ffffff;
  border: 1px solid var(--orange-dark);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.btn-block {
  width: 100%;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #f1f5f9;
}

.trust-check {
  color: var(--orange-bright);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Shared Section Typography
   -------------------------------------------------------------------------- */
.section {
  padding: 4rem 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
}

.heading-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   The KKIS Philosophy (Our Mission - Clean, Open & Unboxed)
   -------------------------------------------------------------------------- */
.philosophy {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.philosophy__body {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.lead-paragraph {
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--navy-dark);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.follow-paragraph {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Curriculum / What Your Athlete Will Learn
   -------------------------------------------------------------------------- */
.curriculum {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}

.curriculum__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 680px) {
  .curriculum__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.curriculum-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}

.curriculum-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-icon {
  color: var(--orange);
  font-size: 1.5rem;
  line-height: 1;
}

.card-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.3;
}

.curriculum-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Upcoming Training Camps & Clinics
   -------------------------------------------------------------------------- */
.camps {
  background: var(--bg-white);
}

.camps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

@media (min-width: 680px) {
  .camps__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.camp-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.camp-card__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--orange-subtle);
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.camp-card__title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 1.15rem;
}

.camp-card__specs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.spec-value {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Attention Parents (Unboxed, Clean & Direct Callout)
   -------------------------------------------------------------------------- */
.parents-notice {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  border-top: 2px solid var(--border);
  padding-top: 2.5rem;
}

.parents-notice__heading {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--orange-dark);
  margin-bottom: 0.6rem;
}

.parents-notice__lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 2.25rem 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__name {
  display: block;
  font-weight: 800;
  color: #ffffff;
  font-size: 1rem;
}

.footer__slogan {
  display: block;
  color: #94a3b8;
  font-size: 0.8125rem;
}

.footer__meta span {
  display: block;
  color: #94a3b8;
}

.footer__phone {
  font-weight: 800;
  color: #ffffff;
}

.footer__phone:hover {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Mobile Sticky Call Bar
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) 1rem;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.mobile-bar__btn {
  display: block;
  text-align: center;
  background: var(--orange);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  min-height: 48px;
  line-height: 1.3;
}

.mobile-bar__btn strong {
  font-weight: 900;
}

@media (min-width: 800px) {
  .mobile-bar {
    display: none;
  }
}
