/* Shared styles for the Elite Baseball team pages (9U, 10U). */
:root {
  --gold: #ae9866;
  --ink: #1b2a37;
  --black: #000;
  --white: #fff;
  --line: #1b2a37;
  --stripe: #f4f4f4;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.65 Poppins, system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: "Martel Sans", system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); }
h3 { font-size: 1.1rem; color: var(--gold); }
p { margin: 0 0 1em; }
.gold { color: var(--gold); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 64px; } }
section { padding: 72px 0; }
.dark { background: #1c1c1e; color: var(--white); }  /* soft charcoal, lighter than pure black */

.btn {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: .92rem;
  padding: 10px 16px;
  border-radius: 3px;
  text-decoration: none;
  transition: opacity .15s;
}
.btn:hover { opacity: .8; }
.btn.outline { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.btn.light { background: var(--white); color: var(--black); }  /* old-site style for buttons on black sections */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1fr 1fr; } }
.hero img { max-width: 150px; width: 100%; margin: 0 auto; }
/* On wide screens the logo is sized to the full height of the text beside it
   (top of the title to the bottom of the buttons), like the coach photo. */
@media (min-width: 820px) {
  .hero .wrap { align-items: stretch; }
  .hero .wrap > img { contain: size; width: 100%; max-width: none; height: 100%; min-height: 200px; object-fit: contain; }
}

/* Two-column split */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1.3fr 1fr; } }

/* Coach */
.coach h2 { margin-bottom: .1em; }
.coach .name { font-size: clamp(1.7rem, 3.8vw, 2.4rem); margin-bottom: 1em; }
.boxes { display: grid; gap: 16px; }
@media (min-width: 600px) { .boxes { grid-template-columns: 1fr 1fr; } .boxes .wide { grid-column: 1 / -1; } }
.box { border: 1px solid var(--line); padding: 16px 18px; text-align: center; font-size: .92rem; }
.box p { margin: 0; }
.coach .name { margin-bottom: .4em; }
.coach-tags { color: var(--gold); font-weight: 600; font-size: .92rem; margin-bottom: .4em; }
.coach-intro { margin-bottom: 1.2em; }
.reg-required img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 60%; border: 1px solid var(--gold); }
.reg-required { background: var(--white); color: var(--ink); }
@media (min-width: 820px) { .reg-required .split { grid-template-columns: 1fr 1.2fr; } }
/* Gold line separating sections (e.g. before "About Elite Baseball"). */
.about-break { border-top: 2px solid var(--gold); }

/* Phones: show the coach photo right after the name/intro, before the boxes. */
@media (max-width: 819px) {
  .coach .split { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .coach .split > div { display: contents; }
  .coach .split > div > * { order: 1; }
  .coach .split > .coach-photo { order: 2; margin: 4px 0 24px; }
  /* Phones: frame from Caleb's cap down to his and Justice's feet */
  .coach .split > .coach-photo { object-position: center 64%; }
  .coach .split > div > .boxes { order: 3; }
}

/* Coach photo: on wide screens it fills exactly the height of the text column
   (top of "Meet Our Coach" to the bottom of the last box), cropped to fit. */
.coach-photo { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center 35%; }
@media (min-width: 820px) {
  .coach .split { align-items: stretch; }
  .coach-photo { aspect-ratio: auto; height: 100%; contain: size; }
}

/* Roster */
.roster { background: #111 center / cover no-repeat; }
.roster .panel { background: var(--white); padding: 32px 24px; }
.players { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 24px; margin-top: 24px; }
.player { width: 130px; text-align: center; color: var(--gold); font-size: .95rem; }
.player img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }

/* Schedule table */
.table-scroll { overflow-x: auto; margin: 20px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
th, td { text-align: left; padding: 10px 14px; }
th { font-weight: 600; border-bottom: 1px solid #ddd; }
tbody tr:nth-child(odd) { background: var(--stripe); }

/* Shop */
.shop { padding: 0; }
.shop .split { gap: 0; }
@media (min-width: 820px) { .shop .split { grid-template-columns: 1fr 1.3fr; } }
.shop img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.shop .text { padding: 48px 16px; }
@media (min-width: 720px) { .shop .text { padding: 48px 64px; } }

/* Values */
.values { background: #e9e9e9 center / cover no-repeat; position: relative; }
.values::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.82); }
.values .wrap { position: relative; }
.value-grid { display: grid; gap: 40px 20px; margin-top: 40px; }
@media (min-width: 720px) { .value-grid { grid-template-columns: repeat(3, 1fr); } .value-grid .wide { grid-column: 1 / -1; } }
.value {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--black);
  padding: 34px 18px 18px;
  text-align: center;
  font-size: .92rem;
}
.value p { margin: 0; }
.value .icon {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: grid; place-items: center;
}
.value .icon svg { width: 20px; height: 20px; }

/* Partners */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 28px; margin: 32px 0; }
.logos img { height: 56px; width: auto; max-width: 150px; object-fit: contain; }
blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); font-size: .95rem; }

/* Get involved */
.cards { display: grid; gap: 16px; margin: 24px 0; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid #ccc; padding: 18px; font-size: .92rem; }
.card p { margin: 0; }

/* Tryouts */
/* Same toned-down look as the camp page's "Train With the Pros" band: a darkened photo, not flat black. */
.tryouts { background: linear-gradient(90deg, rgba(20,20,22,.78) 0%, rgba(20,20,22,.5) 100%), url(/tryouts/images/team-huddle-clean.jpg) center 65% / cover no-repeat; color: var(--white); }
.tryouts h2 { color: var(--white); }
/* Desktop only (phones keep the default framing): show the team in the top band,
   and just the jersey backs in the short "Ready to Try Out?" band. */
@media (min-width: 720px) {
  .tryouts { background-position: 0 0, center 85%; }
  .tryouts.jerseys { background-position: 0 0, center 76%; }
}
.tryouts .kicker { color: var(--gold); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; margin-bottom: .4em; }
.tryout-dates { display: grid; gap: 16px; margin: 24px 0; }
@media (min-width: 600px) { .tryout-dates { grid-template-columns: 1fr 1fr; max-width: 640px; } }
.tryout-date { border: 1px solid var(--gold); padding: 16px 18px; text-align: center; }
.tryout-date .dow { color: var(--gold); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.tryout-date .day { font-family: "Martel Sans", system-ui, sans-serif; font-size: 2rem; text-transform: uppercase; line-height: 1.2; }
.tryout-date .time { font-weight: 600; }
.tryouts .note { color: #cfcfcf; font-size: .92rem; }
.btn.gold { background: var(--gold); color: var(--black); }

footer { padding: 32px 0; text-align: center; font-size: .85rem; color: #8a8a8a; }
.tryouts .team-card { background: rgba(20,20,22,.6); }

/* ===== Match the Elite Camp page look (Tryouts, 9U, 10U) ===== */
.hero { padding: 56px 0 48px; }
.hero h1 { color: var(--gold); }
.dark { background: linear-gradient(180deg, #111 0%, #2a2a2a 100%); }
footer { color: var(--gold); }
/* Thick black divider between white sections, like the camp page */
section.ruled { padding-top: 0; }
section.ruled .wrap::before { content: ""; display: block; height: 4px; background: var(--black); margin-bottom: 40px; }
/* Phones: logo centered on top, centered title, tighter header (same as camp) */
@media (max-width: 719px) {
  .hero { padding: 28px 0 32px; }
  .hero .wrap { text-align: center; gap: 10px; }
  .hero .wrap > img { order: -1; width: 160px; max-width: 160px; justify-self: center; }
  .hero h1 { font-size: 1.6rem; margin-bottom: .4em; }
  .hero p { margin-bottom: 1em; }
  .hero .btns { justify-content: center; }
}
