/* ===========================================================
   Dave Schwarz Tennis — shared styles
   =========================================================== */

:root {
  --navy: #12233F;
  --navy-deep: #0B1729;
  --cream: #FAF8F2;
  --white: #FFFFFF;
  --ink: #1C2430;
  --ink-soft: #4B5563;
  --line: #E3DFD4;
  --court: #2F6D4F;
  --ball: #D7E86B;
  --clay: #C1592F;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 23, 41, 0.10);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Oswald", "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; }

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

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--ball);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
}

.brand strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand span {
  font-size: 0.72rem;
  color: var(--ball);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--white);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--ball);
  color: var(--navy-deep);
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(215, 232, 107, 0.16), transparent 45%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 65%);
  color: var(--white);
  padding: 84px 0 96px;
}

.hero .wrap { max-width: 900px; }

.eyebrow {
  display: inline-block;
  color: var(--ball);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 22px;
}

.hero p.lede {
  color: #D8DEE9;
  font-size: 1.1rem;
  max-width: 620px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 34px;
}

.chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ball);
  color: var(--navy-deep);
  box-shadow: 0 8px 22px rgba(215, 232, 107, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}

.btn-clay {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(193, 89, 47, 0.3);
}

/* ---------- Sections ---------- */

section.block { padding: 72px 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--court); }
.section-head.on-dark .eyebrow { color: var(--ball); }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--navy-deep); }

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.05rem;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}

.stat .num {
  font-family: "Oswald", sans-serif;
  font-size: 2.1rem;
  color: var(--court);
  display: block;
}

.stat .label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline {
  border-left: 3px solid var(--ball);
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.timeline .entry .years {
  font-family: "Oswald", sans-serif;
  color: var(--court);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline .entry h4 { margin: 4px 0 6px; font-size: 1.05rem; }

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-clean li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ball);
  border: 2px solid var(--court);
}

.callout {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
}

.callout h3 { color: var(--white); }
.callout p { color: #D8DEE9; }

table.details {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.details th, table.details td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

table.details th {
  width: 200px;
  color: var(--navy-deep);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  background: var(--cream);
}

table.details tr:last-child th,
table.details tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */

form.contact-form, form.camp-form {
  display: grid;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-deep);
  margin-bottom: 6px;
  font-family: "Oswald", sans-serif;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--court);
  background: var(--white);
}

textarea { min-height: 130px; resize: vertical; }

.hp-field { position: absolute; left: -9999px; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Contact strip ---------- */

.bio-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 12px;
}

.headshot {
  width: 220px;
  height: 330px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 3px solid var(--ball);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .bio-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-strip .card { text-align: left; }
.contact-strip .card .k {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--court);
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.contact-strip .card .v { color: var(--navy-deep); font-size: 1.02rem; font-weight: 600; }

/* ---------- Photo banners & galleries ---------- */

.photo-wrap { margin: 0 0 12px; }

.photo-banner {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--ball);
}

.photo-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

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

.img-grid figure { margin: 0; }

.img-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--ball);
}

@media (max-width: 860px) {
  .img-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy-deep);
  color: #AEB6C4;
  padding: 40px 0 30px;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site-footer .fbrand {
  color: var(--white);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

footer.site-footer a {
  color: #AEB6C4;
  text-decoration: none;
}

footer.site-footer a:hover { color: var(--ball); }

footer .foot-links { display: flex; gap: 22px; font-size: 0.88rem; }

.small { font-size: 0.85rem; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid-3, .grid-2, .stat-row, .form-row, .contact-strip { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 3px solid var(--ball);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding: 10px 24px 20px;
  }

  .main-nav a { display: block; padding: 12px 4px; }

  footer.site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
