/* ============================================
   TURFBOOK - Main Stylesheet
   Theme: White + Green - Fresh Cricket Vibe
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --green-primary: #2E7D32;
  --green-light: #43A047;
  --green-bright: #66BB6A;
  --green-pale: #E8F5E9;
  --green-mid: #C8E6C9;
  --green-xlight: #F1F8F1;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-500: #9E9E9E;
  --gray-700: #616161;
  --gray-900: #212121;
  --text-dark: #1B2E1B;
  --text-mid: #3D5A3E;
  --text-light: #6B8F6C;
  --gradient-hero: linear-gradient(135deg, #2E7D32 0%, #388E3C 40%, #43A047 100%);
  --gradient-green: linear-gradient(135deg, #43A047, #2E7D32);
  --gradient-card: linear-gradient(145deg, #ffffff, #f8fdf8);
  --shadow-sm: 0 2px 8px rgba(46,125,50,0.1);
  --shadow-md: 0 4px 20px rgba(46,125,50,0.15);
  --shadow-lg: 0 8px 40px rgba(46,125,50,0.2);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--green-bright); border-radius: 3px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--green-mid);
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(46,125,50,0.1);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 20px rgba(46,125,50,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dark);
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.nav-logo span { color: var(--green-primary); }

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover { color: var(--green-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; gap: 0.8rem; align-items: center; }

.btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green-primary);
  color: var(--green-primary);
}

.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
}

.btn-primary {
  background: var(--gradient-green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Mobile Book Turf button in navbar ── */
.mob-book-btn {
  display: none;
  background: var(--green-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.4px;
  padding: 7px 14px;
  border-radius: 20px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(46,125,50,0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
  border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  padding: 100px 5% 60px;
  background: linear-gradient(160deg, #0d3d11 0%, #1a5c1e 40%, #2E7D32 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  border-radius: 0;
  clip-path: inset(0);
}

/* Mowed grass horizontal stripes */
.grass-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 48px,
    rgba(0,0,0,0.05) 48px, rgba(0,0,0,0.05) 96px
  );
}

/* Vertical stripes cross-pattern */
.grass-stripes-v {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 80px,
    transparent 80px, transparent 160px
  );
}

/* Field boundary circle */
.field-boundary {
  position: absolute;
  width: 900px; height: 900px;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* Center circle */
.field-circle {
  position: absolute;
  width: 320px; height: 320px;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* Dark overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.4) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.5s ease both;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: #69f0ae;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #69f0ae; }
  50% { opacity: 0.3; box-shadow: none; }
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--white);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .highlight {
  color: #a5d6a7;
}

.hero-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.6rem;
  letter-spacing: 0.3px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* ── BOOKING SEARCH BAR ── */
.hero-search-bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.40), 0 4px 16px rgba(0,0,0,0.12);
  padding: 8px;
  gap: 0;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.6s ease 0.3s both;
  position: relative;
  z-index: 100;
}

.search-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 10px 14px;
  min-width: 0;
  position: relative;
  border-radius: 12px;
  transition: background 0.2s;
  cursor: pointer;
}

.search-group:hover { background: #f4faf4; }

.search-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: #edf7ed;
  border-radius: 10px;
}

.search-input-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.search-input-wrap label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
  line-height: 1;
}

.search-field-input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  background: transparent;
  width: 100%;
  font-family: 'Inter', sans-serif;
  padding: 0;
  cursor: pointer;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom Sport Dropdown */
.search-group-sport { position: relative; }

.custom-select-val {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  user-select: none;
  gap: 6px;
  white-space: nowrap;
}

.drop-arrow { transition: transform 0.2s; flex-shrink: 0; }

.custom-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid #efefef;
  min-width: 200px;
}

.custom-dropdown.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.drop-arrow { transition: transform 0.2s; flex-shrink: 0; }

.drop-item {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}

.drop-item:hover { background: #f5faf5; color: #2E7D32; }

.drop-item.active {
  background: #f0f7f0;
  color: #2E7D32;
  font-weight: 700;
}

.drop-item.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.85rem;
  color: #2E7D32;
}

/* ── CUSTOM CALENDAR ── */
.custom-calendar {
  min-width: 300px;
  padding: 16px;
  overflow: visible;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-header span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
}

.cal-nav {
  background: #f4faf4;
  border: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 1.3rem;
  color: #2E7D32;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
  font-weight: 300;
}

.cal-nav:hover { background: #e0f0e0; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 6px;
}

.cal-weekdays span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #bbb;
  text-transform: uppercase;
  padding: 4px 0;
  letter-spacing: 0.5px;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: 'Inter', sans-serif;
}

.cal-day:hover:not(.past):not(.empty) { background: #e8f5e9; color: #2E7D32; }

.cal-day.empty { pointer-events: none; }

.cal-day.past { color: #ccc; cursor: default; }

.cal-day.tod {
  border: 2px solid #2E7D32;
  color: #2E7D32;
  font-weight: 700;
}

.cal-day.sel {
  background: #2E7D32;
  color: #fff;
  font-weight: 700;
}

.search-sep {
  width: 1px;
  align-self: stretch;
  margin: 10px 2px;
  background: #e8e8e8;
  flex-shrink: 0;
}

.search-btn-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
}

.search-btn {
  background: linear-gradient(135deg, #2E7D32, #43A047);
  color: #fff;
  border: none;
  padding: 0 26px;
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(46,125,50,0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}

.search-btn:hover {
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(46,125,50,0.55);
}

/* Quick sport pills */
.hero-quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.quick-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.quick-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
}

.quick-pill:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.stat-item { text-align: center; padding: 0 1.4rem; }

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.stat-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #a5d6a7;
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-info { padding: 14px 16px; }

.card-info h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  color: var(--green-primary);
  font-weight: 700;
  font-size: 1rem;
}

.card-badge {
  background: var(--green-pale);
  color: var(--green-primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--green-mid);
}

/* Floating Tags */
.floating-tag {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  animation: float 3s ease-in-out infinite;
}

.floating-tag.tag-1 { top: -18px; right: -18px; animation-delay: 0s; }
.floating-tag.tag-2 { bottom: 30px; left: -30px; animation-delay: 1.5s; }
.tag-icon { font-size: 1.2rem; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section { padding: 65px 5%; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  background: var(--green-pale);
  border: 1px solid var(--green-mid);
  color: var(--green-primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.section-title span { color: var(--green-primary); }

.section-subtitle {
  font-size: 0.9rem;
  color: var(--gray-700);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

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

.step-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-green);
  transform: scaleX(0);
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--green-bright);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-card:hover::after { transform: scaleX(1); }

.step-number {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.step-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.6rem;
}

.step-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.step-card p {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ============================================
   SPORTS SECTION
   ============================================ */
.sports-section { background: var(--white); }

.sports-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sport-pill {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.sport-pill:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: var(--green-xlight);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.sport-pill .sport-icon { font-size: 1.5rem; }

/* ============================================
   FEATURED TURFS
   ============================================ */
.turfs-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

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

.turf-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.turf-card:hover {
  transform: translateY(-8px);
  border-color: var(--green-bright);
  box-shadow: var(--shadow-lg);
}

.turf-card-img {
  height: 155px;
  background: linear-gradient(135deg, #1B5E20, #2E7D32, #388E3C);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.turf-card-img .field-mini {
  width: 190px;
  height: 115px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  position: relative;
  background: repeating-linear-gradient(
    0deg,
    #2E7D32,
    #2E7D32 14px,
    #388E3C 14px,
    #388E3C 28px
  );
}

.turf-card-img .field-mini::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1.5px;
  background: rgba(255,255,255,0.5);
  transform: translateX(-50%);
}

.availability-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.available {
  background: rgba(165,214,167,0.9);
  color: #1B5E20;
}

.booked {
  background: rgba(255,205,210,0.9);
  color: #B71C1C;
}

.turf-card-body { padding: 0.9rem 1rem; }

.turf-card-body h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.turf-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gray-700);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.turf-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--gray-200);
}

.price-tag { font-weight: 700; font-size: 1.05rem; color: var(--text-dark); }
.price-tag span { color: var(--green-primary); }
.price-tag small { color: var(--gray-500); font-size: 0.75rem; font-weight: 400; }

.turf-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 0.7rem; }

/* ── Turf card link wrapper (homepage cards) ── */
.turf-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.turf-card-link:hover .turf-card {
  transform: translateY(-8px);
  border-color: var(--green-bright);
  box-shadow: var(--shadow-lg);
}

/* ── Sport badge overlay on card image ── */
.turf-sport-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--green-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tag {
  background: var(--green-pale);
  border: 1px solid var(--green-mid);
  color: var(--green-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.rating .star { color: #F9A825; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 5%;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 60px,
    transparent 60px,
    transparent 120px
  );
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.cta-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 60px 5% 30px;
}

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

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 250px;
}

.footer-social { display: flex; gap: 10px; margin-top: 1.5rem; }

.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
}

.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.5);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--green-bright);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom span { color: var(--green-bright); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateY(-50%) translateX(40px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mobile-menu.open { display: block; }

.mob-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}

.mob-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.2);
  animation: slideInRight 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mob-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid #e5e7eb;
}

.mob-close {
  background: #f3f4f6;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
}

.mob-close svg { width: 16px; height: 16px; }

.mob-nav-list {
  list-style: none;
  padding: 0.8rem 0;
  flex: 1;
}

.mob-nav-list li a {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}

.mob-nav-list li a:hover,
.mob-nav-list li a:active {
  background: #f0f7f0;
  color: var(--green-primary);
  padding-left: 1.7rem;
}

.mob-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid #e5e7eb;
}

.mob-nav-cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 0.95rem;
}

.mob-nav-footer {
  padding: 1rem 1.4rem;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

/* Hamburger Active State */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   RESPONSIVE
   ============================================ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile & Tablet ── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mob-book-btn { display: inline-block; }

  /* Sections */
  .section { padding: 44px 4.5%; }

  /* Hero */
  .hero { padding: 76px 4.5% 44px; }

  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 0.5rem; }
  .hero-sub { font-size: 0.82rem; margin-bottom: 1.2rem; }
  .hero-badge { font-size: 0.65rem; padding: 4px 12px; margin-bottom: 0.8rem; }

  /* Hero Search Bar → stack vertically */
  .hero-search-bar {
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    border-radius: 16px;
    margin-bottom: 1rem;
  }

  .search-sep { display: none; }

  .search-group {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8f8f8;
    border: 1px solid #eee;
  }

  .search-group:hover { background: #f0f7f0; }

  .search-btn-wrap { width: 100%; }

  .search-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    min-height: 48px;
  }

  /* Quick pills scroll */
  .hero-quick-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    gap: 8px;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-quick-links::-webkit-scrollbar { display: none; }
  .quick-label { flex-shrink: 0; }
  .quick-pill { flex-shrink: 0; }

  /* Stats */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
  }

  .stat-divider { display: none; }
  .stat-item { padding: 0 0.6rem; }
  .stat-number { font-size: 1.3rem; }
  .stat-label { font-size: 0.6rem; }

  /* How It Works */
  .steps-container { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  /* Sports pills */
  .sports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .sport-pill { padding: 10px 14px; font-size: 0.88rem; }

  /* Featured Turfs — horizontal swipe carousel on mobile */
  .turfs-grid.turf-scroll-wrap {
    display: flex;
    flex-direction: row;
    grid-template-columns: unset;
    overflow-x: auto;
    gap: 1rem;
    padding: 0 4.5% 14px;
    margin: 0 -4.5%;
    max-width: unset;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  .turfs-grid.turf-scroll-wrap::-webkit-scrollbar { display: none; }

  .turfs-grid.turf-scroll-wrap .turf-card-link {
    flex: 0 0 76vw;
    max-width: 300px;
    scroll-snap-align: start;
  }

  .turfs-grid.turf-scroll-wrap .turf-card {
    width: 100%;
    transform: none;
  }

  .turfs-grid.turf-scroll-wrap .turf-card:hover {
    transform: none;
  }

  /* CTA */
  .cta-section { padding: 60px 5%; }
  .cta-content h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { text-align: center; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  footer { padding: 40px 5% 24px; }
}

/* ── Small Mobile ── */
@media (max-width: 480px) {
  .hero { padding: 70px 4% 38px; }
  .hero h1 { font-size: clamp(1.4rem, 6.5vw, 1.9rem); }
  .hero-sub { font-size: 0.78rem; }
  .hero-search-bar { padding: 8px; gap: 3px; }
  .section { padding: 36px 4%; }
  .section-title { font-size: 1.35rem; }
  .section-subtitle { font-size: 0.82rem; }

  .stat-item { padding: 0 0.4rem; }
  .stat-number { font-size: 1.15rem; }
  .stat-label { font-size: 0.58rem; }

  .sports-grid { grid-template-columns: 1fr 1fr; }
  .sport-pill { font-size: 0.82rem; padding: 9px 10px; gap: 7px; }
  .sport-pill .sport-icon { font-size: 1.2rem; }

  /* Turf cards carousel */
  .turfs-grid.turf-scroll-wrap { padding: 0 4% 14px; margin: 0 -4%; }
  .turfs-grid.turf-scroll-wrap .turf-card-link { flex: 0 0 82vw; max-width: 280px; }
  .turf-card-img { height: 145px; }

  /* Buttons */
  .btn { padding: 10px 18px; font-size: 0.85rem; }
}
