:root {
  --bg:             #F5F7F2;
  --surface:        #FFFFFF;
  --surface-alt:    #EDF2E9;
  --border:         #DCE3D6;
  --text:           #10241A;
  --text-muted:     #5B6B60;
  --accent:         #2F9E44;
  --accent-hover:   #217A34;
  --accent-light:   #E3F6E8;
  --accent-2:       #FF6B35;
  --accent-2-hover: #E85A28;
  --danger:         #C0392B;
  --nav-h:          64px;
  --radius:         10px;
  --shadow:         0 2px 12px rgba(0,0,0,.08);
  --max-w:          1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.site-nav .wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
}

.site-nav .wordmark span { color: var(--accent); }

.site-nav .links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-alt); }

.btn-whatsapp { background: var(--accent-2); color: #fff; padding: 8px 16px; font-size: 12px; }
.btn-whatsapp:hover { background: var(--accent-2-hover); }

.btn-whatsapp.disabled { background: var(--border); color: var(--text-muted); pointer-events: none; }

/* Hero */
.hero {
  background: var(--surface-alt);
  padding: 64px 24px;
  text-align: center;
}

.hero .badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 15px;
}

.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Courts */
.courts-section {
  padding: 48px 24px;
}

.courts-section h2 {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 20px;
}

.courts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.court-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.court-card .thumb {
  height: 140px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 40px;
  overflow: hidden;
}

.court-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.court-card .body { padding: 16px; }

.court-card .name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.court-card .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

.court-card .price {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

/* Court detail */
.court-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 40px 24px;
  align-items: start;
}

.court-hero-thumb {
  height: 180px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  overflow: hidden;
}

.court-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.court-hero-info h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.court-hero-info .meta { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.court-hero-info .price { color: var(--accent); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.court-hero-info p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* Booking widget */
.booking-widget {
  padding: 0 24px 48px;
  max-width: 640px;
}

.booking-widget h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }

.date-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 16px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.slot-loading { color: var(--text-muted); font-size: 13px; }

.slot-btn {
  padding: 10px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.slot-btn:hover:not(:disabled) { border-color: var(--accent); }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot-btn.taken { background: var(--surface-alt); color: var(--text-muted); text-decoration: line-through; cursor: not-allowed; }

.booking-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.booking-form.hidden { display: none; }

.booking-form .selected-slot {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}

.booking-form input[type="text"],
.booking-form input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
}

.booking-status {
  color: var(--danger);
  font-size: 13px;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .site-nav .links { gap: 14px; font-size: 13px; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 48px 20px; }
  .courts-section { padding: 36px 20px; }
  .court-hero { grid-template-columns: 1fr; padding: 28px 20px; }
  .court-hero-thumb { height: 140px; }
}

@media (max-width: 480px) {
  .site-nav { padding: 0 16px; }
  .site-nav .links span:not(.btn-whatsapp) { display: none; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .courts-grid { grid-template-columns: 1fr; }
}
