/*
Theme Name: Irfan Sait - World Level Cricket Coach
Theme URI: https://kioc.net
Author: CPIN Infotech & Irfan Sait Team
Author URI: https://kioc.net
Description: High-performance Cricket Coaching Portfolio WordPress theme for Irfan Sait, Founder & Director of KIOC Bangalore. Features full responsive bento layout, interactive cricket pitch visualizer, international protégés gallery with category filters, KSCA club registries, triple-board certification credentials, coaching philosophy pillars, floating inquiry chat, and native WordPress Theme Customizer integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: irfan-sait-coach
Tags: sports, portfolio, cricket, coaching, responsive-layout, custom-menu, featured-images, theme-options, translation-ready, custom-post-types
*/

:root {
  --primary-gold: #f59e0b;
  --primary-gold-hover: #d97706;
  --pitch-green: #0b1f10;
  --pitch-grass: #164e23;
  --emerald-accent: #10b981;
  --bg-dark: #050d07;
  --card-bg: rgba(15, 30, 18, 0.9);
  --card-border: rgba(245, 158, 11, 0.25);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fbbf24;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 7, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 0;
  transition: background 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  letter-spacing: 0.05em;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.725rem;
  color: var(--primary-gold);
  display: block;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.main-nav a {
  color: #cbd5e1;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--primary-gold);
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #061108;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .main-nav.active {
    display: flex;
  }
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.12), transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.08), transparent 45%),
              var(--bg-dark);
  position: relative;
}

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

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.meta-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--primary-gold);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-content h1 span {
  color: var(--primary-gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-bio {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 680px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.65rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-gold);
  color: var(--primary-gold) !important;
}

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero-photo-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  background: #0b1a0e;
  overflow: hidden;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-meta {
  padding: 1.5rem;
}

/* Stats Ribbon */
.stats-section {
  background: #09170c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  background: rgba(15, 30, 18, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Stars / Protégés Section */
.stars-section {
  padding: 4.5rem 0;
  background: var(--bg-dark);
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
}

.stars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.star-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.star-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-gold);
}

.star-avatar-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0f2b18, #050d07);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.star-initials {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-gold);
  letter-spacing: 0.05em;
}

.star-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.star-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-gold);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.star-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.star-role {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.star-note {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-top: auto;
}

/* 3D Turf Section */
.ground-section {
  padding: 4.5rem 0;
  background: #07150a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pitch-diagram-wrap {
  background: #0b2210;
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pitch-diagram-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.ground-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.ground-player-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ground-player-item:hover {
  transform: translateY(-3px);
  border-color: #34d399;
}

.ground-player-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.ground-player-meta {
  padding: 1rem;
}

.ground-player-meta h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0.25rem 0;
}

.ground-player-meta p {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.ground-player-pos {
  font-size: 0.7rem;
  font-family: monospace;
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* Split Section (Experience & Certifications) */
.split-section {
  padding: 4.5rem 0;
  background: var(--bg-dark);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--primary-gold);
  border-radius: 14px;
  padding: 1.25rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.timeline-entity {
  font-size: 0.8rem;
  color: var(--primary-gold);
  font-weight: 700;
}

.timeline-date {
  font-size: 0.7rem;
  color: #94a3b8;
  margin: 0.25rem 0 0.5rem;
  font-family: monospace;
}

.timeline-desc {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* KSCA Clubs Grid */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.club-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem;
}

.club-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.club-role {
  font-size: 0.8rem;
  color: var(--primary-gold);
}

/* Philosophy Section */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.philosophy-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.philosophy-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 0.5rem;
}

.philosophy-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-caption {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Footer */
.site-footer {
  background: #030804;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3.5rem 0 2rem;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  font-size: 0.825rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating Inquiry Button & Popup */
.floating-inquiry-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  border-radius: 9999px;
  padding: 0.85rem 1.35rem;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s ease;
}

.floating-inquiry-btn:hover {
  transform: scale(1.05);
}

.floating-chat-box {
  display: none;
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: min(380px, calc(100vw - 2rem));
  background: #07150a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.floating-chat-box.active {
  display: block;
}

.chat-box-header {
  background: #0e2712;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-box-body {
  padding: 1.25rem;
}

/* WordPress Standard Support Classes */
.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
