/* Akademi Tenis Hijau — Tennis Grass Green Brand */
:root {
  --grass: #2e7d32;
  --grass-light: #43a047;
  --grass-dark: #1b5e20;
  --grass-pale: #e8f5e9;
  --grass-mid: #c8e6c9;
  --ball: #cddc39;
  --ball-dark: #afb42b;
  --court-line: #ffffff;
  --net: #795548;
  --text: #1a1a1a;
  --text-muted: #555;
  --white: #ffffff;
  --card-bg: #f9fdf9;
  --border: #a5d6a7;
  --shadow: rgba(46,125,50,0.15);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }

/* DEMO BAR */
.demo-bar {
  background: #1b5e20;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.demo-bar span { opacity: 0.9; }
.demo-bar a {
  color: var(--ball);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--ball);
  border-radius: 20px;
  padding: 2px 10px;
  transition: background 0.2s;
}
.demo-bar a:hover { background: var(--ball); color: var(--grass-dark); }

/* NAVIGATION */
header {
  background: var(--grass-dark);
  position: sticky;
  top: 40px;
  z-index: 900;
  box-shadow: 0 2px 8px var(--shadow);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--ball);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; }

/* Mobile menu checkbox hack */
#menu-toggle { display: none; }
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
#menu-toggle:checked ~ .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle:checked ~ .menu-btn span:nth-child(2) { opacity: 0; }
#menu-toggle:checked ~ .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  display: block;
}
nav a:hover, nav a.active { background: var(--grass); color: var(--ball); }

@media (max-width: 700px) {
  .menu-btn { display: flex; }
  nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--grass-dark);
    display: none;
    padding: 12px 0 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  #menu-toggle:checked ~ nav { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav a { padding: 12px 24px; border-radius: 0; font-size: 1rem; }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--grass-dark) 0%, var(--grass) 50%, var(--grass-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 60px);
}
.hero-badge {
  display: inline-block;
  background: var(--ball);
  color: var(--grass-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}
.hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 28px;
  position: relative;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.btn-primary { background: var(--ball); color: var(--grass-dark); border-color: var(--ball); }
.btn-primary:hover { background: var(--ball-dark); border-color: var(--ball-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-green { background: var(--grass); color: var(--white); border-color: var(--grass); }
.btn-green:hover { background: var(--grass-dark); }

/* SECTIONS */
section { padding: 60px 20px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--grass-light);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--grass-dark);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin-bottom: 40px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* CARDS GRID */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: 0 8px 28px var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--grass-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--grass-dark); margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.92rem; }

/* STATS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.stat-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--white);
}
.stat-num { font-size: 2rem; font-weight: 900; color: var(--ball); display: block; }
.stat-label { font-size: 0.82rem; opacity: 0.85; margin-top: 4px; }

/* PROGRAM CARDS */
.program-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.program-card:hover { box-shadow: 0 10px 32px var(--shadow); transform: translateY(-4px); }
.program-header {
  background: var(--grass);
  color: var(--white);
  padding: 20px 24px;
}
.program-header.featured { background: var(--grass-dark); }
.program-badge {
  background: var(--ball);
  color: var(--grass-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}
.program-header h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.program-header p { font-size: 0.88rem; opacity: 0.88; }
.program-body { padding: 20px 24px; }
.program-price { font-size: 1.6rem; font-weight: 900; color: var(--grass); margin-bottom: 16px; }
.program-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.program-list { list-style: none; margin-bottom: 20px; }
.program-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-bottom: 1px solid var(--grass-pale);
}
.program-list li:last-child { border-bottom: none; }
.program-list li::before { content: '✓'; color: var(--grass-light); font-weight: 700; flex-shrink: 0; }

/* COACH CARD */
.coach-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.coach-card:hover { box-shadow: 0 6px 24px var(--shadow); }
.coach-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grass), var(--grass-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}
.coach-info h3 { font-size: 1rem; font-weight: 700; color: var(--grass-dark); margin-bottom: 4px; }
.coach-info .coach-role { font-size: 0.8rem; color: var(--grass-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.coach-info p { font-size: 0.88rem; color: var(--text-muted); }
.coach-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  background: var(--grass-pale);
  color: var(--grass-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* TESTIMONIAL */
.testi-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.testi-stars { color: var(--ball-dark); font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.testi-text { font-size: 0.93rem; color: var(--text); margin-bottom: 16px; font-style: italic; }
.testi-author { font-weight: 700; font-size: 0.88rem; color: var(--grass-dark); }
.testi-sub { font-size: 0.78rem; color: var(--text-muted); }

/* SCHEDULE TABLE */
.schedule-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.schedule-table th {
  background: var(--grass-dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
}
.schedule-table th:first-child { border-radius: 8px 0 0 0; }
.schedule-table th:last-child { border-radius: 0 8px 0 0; }
.schedule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--grass-pale);
  font-size: 0.9rem;
  color: var(--text);
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: var(--grass-pale); }
.level-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.level-pemula { background: #e3f2fd; color: #1565c0; }
.level-menengah { background: #fff3e0; color: #e65100; }
.level-lanjut { background: #fce4ec; color: #c62828; }

/* CONTACT */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 700px) { .contact-wrapper { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 1.5rem; font-weight: 800; color: var(--grass-dark); margin-bottom: 12px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--grass-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 0.88rem; font-weight: 700; color: var(--grass-dark); margin-bottom: 2px; }
.contact-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* FORM */
.form-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}
.form-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--grass-dark); margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--grass-light);
  box-shadow: 0 0 0 3px rgba(67,160,71,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-btn {
  width: 100%;
  padding: 13px;
  background: var(--grass);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.form-btn:hover { background: var(--grass-dark); transform: translateY(-1px); }

/* PAGE HERO (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--grass-dark) 0%, var(--grass) 100%);
  color: var(--white);
  padding: 52px 20px 44px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; margin-bottom: 10px; }
.page-hero p { opacity: 0.9; font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* BREADCRUMB */
.breadcrumb {
  background: var(--grass-pale);
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--grass); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; }

/* ACCORDION */
.accordion { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 24px; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-toggle { display: none; }
.acc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--grass-dark);
  background: var(--white);
  transition: background 0.2s;
  user-select: none;
}
.acc-label:hover { background: var(--grass-pale); }
.acc-arrow {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grass-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.acc-toggle:checked ~ .acc-label .acc-arrow { transform: rotate(180deg); }
.acc-toggle:checked ~ .acc-label { background: var(--grass-pale); }
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--card-bg);
}
.acc-toggle:checked ~ .acc-content { max-height: 400px; }
.acc-content p { padding: 16px 20px; font-size: 0.92rem; color: var(--text-muted); }

/* BG VARIANTS */
.bg-grass { background: linear-gradient(135deg, var(--grass-dark), var(--grass)); color: var(--white); }
.bg-pale { background: var(--grass-pale); }
.bg-white { background: var(--white); }

/* HIGHLIGHT BOX */
.highlight-box {
  background: var(--grass);
  color: var(--white);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
}
.highlight-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.highlight-box p { opacity: 0.9; margin-bottom: 20px; font-size: 0.95rem; }

/* FOOTER */
footer {
  background: var(--grass-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 20px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer-brand h3 { color: var(--white); font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--ball); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* UTILITY */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-top { padding-top: 80px; }

/* COURT VISUAL */
.court-graphic {
  background: var(--grass);
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
.court-graphic::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 4px;
}
.court-graphic::after {
  content: '';
  position: absolute;
  top: 16px; bottom: 16px;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.5);
  transform: translateX(-50%);
}
