/*
Theme Name: TC De Zavel
Theme URI: https://tc-dezavel.be
Author: TC De Zavel
Description: Eigen, licht thema voor Tennisclub De Zavel (Wezembeek-Oppem).
Version: 1.0
Requires PHP: 7.4
Text Domain: tc-de-zavel
*/

:root {
  /* Blue: lifted straight from the club's own logo (#336699) */
  --blue-dark: #1f3f59;
  --blue: #336699;
  --blue-soft: #e7eef6;
  /* Tennis-ball lime: the vibrant counterpart, so blue-on-gray doesn't go flat */
  --ball: #6f8a1c;
  --ball-dark: #55690f;
  --ball-bright: #d7e733;
  --ball-light: #f2f6d1;
  /* Semantic, kept independent of the brand palette on purpose */
  --success: #2f7d4f;
  --success-soft: #e5f3ea;
  --error: #b3413a;
  --error-soft: #fbe4e1;
  --cream: #faf7f1;
  --ink: #1c2630;
  --ink-soft: #55626d;
  --white: #ffffff;
  --border: #dfe3e6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 63, 89, 0.14);
  --max-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--blue-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--blue-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.brand:hover { color: inherit; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand .brand-sub {
  display: block;
  font-family: -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .brand-logo { height: 24px; }
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.primary-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 12px 8px; border-radius: 8px; }
  .site-header .container { flex-wrap: wrap; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--blue-dark); color: var(--white); }
.btn-primary:hover { background: var(--blue); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--blue-dark); color: var(--blue-dark); }
.btn-outline:hover { background: var(--blue-dark); color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--cream) 100%);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 56px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--ball-light);
  color: var(--ball-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-art { width: 100%; height: auto; }

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { max-width: 320px; margin: 0 auto; }
}

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--ink-soft); }

/* Cards / grids */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

.callout {
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.callout h3 { color: var(--white); margin-bottom: 6px; }
.callout p { color: #cfe0ec; margin: 0; }
.callout .btn-primary { background: var(--white); color: var(--blue-dark); }
.callout .btn-primary:hover { background: var(--blue-soft); }

/* Fee table */
.fee-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fee-table th, .fee-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.fee-table th { background: var(--blue-soft); color: var(--blue-dark); font-family: "Poppins", sans-serif; }
.fee-table tr:last-child td { border-bottom: none; }
.fee-table td.amount { font-weight: 700; color: var(--blue-dark); font-size: 1.1rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  min-height: 36px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-card:last-child { border-bottom: none; }
.contact-card .icon { flex-shrink: 0; }
.contact-card h4 { margin: 0 0 2px; font-family: "Poppins", sans-serif; color: var(--blue-dark); }
.contact-card p { margin: 0; color: var(--ink-soft); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--blue); }
.form-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.form-notice.success { background: var(--success-soft); color: var(--success); }
.form-notice.error { background: var(--error-soft); color: var(--error); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid a { border-radius: 10px; overflow: hidden; display: block; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* Page hero (non-home) */
.page-hero { background: var(--blue-dark); color: var(--white); padding: 52px 0; }
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: #cfe0ec; margin: 0; max-width: 60ch; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.4em; }
.heritage-doodle { max-width: 320px; margin: 28px 0 4px; opacity: 0.75; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #cfe0ec; padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-family: "Poppins", sans-serif; font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #cfe0ec; }
.site-footer a:hover { color: #bcd4e8; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { margin-bottom: 14px; }
.footer-brand img { height: 27px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 0.85rem;
  color: #9db2c2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.badge svg { width: 15px; height: 15px; color: var(--blue); }
