/* =========================================
   TOI Baseball Training — shared stylesheet
   Palette pulled from the logo:
     teal  #1FBFC4
     pink  #EC2C8A
     black #0A0A0A
     off-white #F5F7F8
   ========================================= */

:root {
  --teal: #1FBFC4;
  --teal-dark: #149299;
  --pink: #EC2C8A;
  --pink-dark: #C41A6B;
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --bg: #FFFFFF;
  --bg-alt: #F5F7F8;
  --bg-dark: #0E0E10;
  --line: #E4E7EA;
  --muted: #5B6770;
  --shadow-md: 0 10px 30px -10px rgba(10,10,10,0.18);
  --shadow-lg: 0 25px 50px -12px rgba(10,10,10,0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--teal-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--pink-dark); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow Bold', sans-serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.8vw, 1.55rem); }
p  { margin: 0 0 1em; }

.eyebrow {
  font-family: 'Anton', sans-serif;
  font-size: .85rem;
  letter-spacing: 4px;
  color: var(--pink);
  text-transform: uppercase;
  margin: 0 0 .8em;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

section { padding: 70px 0; }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--bg-dark); color: #E9ECEE; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark .eyebrow { color: var(--teal); }

.grid { display: grid; gap: 22px; }
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: var(--ink);
  text-transform: uppercase;
}
.nav-brand img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  box-shadow: 0 4px 12px -4px rgba(10,10,10,0.4);
}
.nav-brand span small {
  display: block;
  font-size: .65rem;
  letter-spacing: 3px;
  color: var(--pink);
  font-family: 'Anton', sans-serif;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  font-family: 'Anton', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: .95rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--ink);
  color: #fff;
}
.nav-links a.cta {
  background: var(--pink);
  color: #fff;
  margin-left: 8px;
}
.nav-links a.cta:hover { background: var(--pink-dark); }

.nav-toggle {
  display: none;
  background: var(--ink);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, transform .15s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 14px 16px; }
  .nav-links a.cta { margin-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Anton', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); color: #fff; }
.btn-secondary { background: var(--teal); color: #fff; }
.btn-secondary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
section.dark .btn-ghost { color: #fff; border-color: #fff; }
section.dark .btn-ghost:hover { background: #fff; color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  padding: 70px 0 90px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 90% 20%, rgba(236,44,138,0.25), transparent 70%),
    radial-gradient(800px 500px at 10% 90%, rgba(31,191,196,0.25), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--teal); }
.hero h1 .accent-pink { color: var(--pink); }
.hero p.lead {
  font-size: 1.15rem;
  color: #C9D1D6;
  max-width: 540px;
}
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.hero-logo img {
  max-width: 480px;
  width: 100%;
  filter: drop-shadow(0 25px 60px rgba(0,0,0,0.45));
}

/* hero "stat strip" */
.stat-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-strip .stat .num {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: var(--teal);
  line-height: 1;
}
.stat-strip .stat .num.pink { color: var(--pink); }
.stat-strip .stat .label {
  font-size: .8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #C9D1D6;
  margin-top: 6px;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.card h3 { color: var(--ink); margin-bottom: .35em; }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--pink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}
.card .icon svg { width: 26px; height: 26px; }
.card.pink .icon { background: var(--pink); }
.card.teal .icon { background: var(--teal); }
.card p { color: var(--muted); margin: 0; }

/* feature row (image + text) */
.feature {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.reverse > :first-child { order: 2; }
}
.feature .visual {
  background: linear-gradient(135deg, var(--teal) 0%, var(--pink) 100%);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.feature .visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.25), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(0,0,0,0.25), transparent 60%);
}
.feature .visual .badge {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  font-family: 'Anton', sans-serif;
  font-size: .85rem;
  letter-spacing: 2px;
  border-radius: 999px;
}
.feature .visual .big-mark {
  position: absolute;
  bottom: 10px; right: 10px;
  font-family: 'Anton', sans-serif;
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 1;
  color: rgba(255,255,255,0.85);
  letter-spacing: -3px;
  pointer-events: none;
}

/* ---------- Lists ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.check-list li {
  position: relative;
  padding: 8px 0 8px 34px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--teal);
}
.check-list li.pink::before { background: var(--pink); box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--pink); }

/* ---------- Pricing table ---------- */
.price-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card .ribbon {
  position: absolute;
  top: -10px; right: 18px;
  background: var(--pink);
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: .75rem;
  letter-spacing: 2px;
  padding: 6px 12px;
  border-radius: 999px;
}
.price-card h3 { margin-bottom: 4px; }
.price-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.price-card .price {
  font-family: 'Anton', sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 4px;
}
.price-card .price small {
  font-size: .85rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  color: var(--muted);
  margin-left: 4px;
}
.price-card.featured {
  border-color: var(--pink);
  box-shadow: 0 20px 50px -15px rgba(236,44,138,0.4);
}
.price-card.featured .price { color: var(--pink); }

/* tier table */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tier-table th, .tier-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.tier-table th {
  background: var(--ink);
  color: #fff;
  font-family: 'Anton', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: .85rem;
}
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table tr:nth-child(even) td { background: var(--bg-alt); }

/* ---------- Form ---------- */
.contact-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.contact-info .info-block {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.contact-info .info-block:last-child { border-bottom: 0; }
.contact-info .label {
  font-family: 'Anton', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--pink);
  margin-bottom: 6px;
}
.contact-info address { font-style: normal; line-height: 1.6; }
.map-embed {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}
.map-embed iframe {
  width: 100%; height: 100%; border: 0;
}

form.contact-form {
  display: grid;
  gap: 14px;
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
form.contact-form label {
  display: block;
  font-family: 'Anton', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 6px;
  color: var(--ink);
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,191,196,0.2);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
.form-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-msg {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #E8FBFC;
  border: 1px solid var(--teal);
  color: var(--teal-dark);
}
.form-msg.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #BFC7CC;
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.footer-brand img {
  width: 64px;
  border-radius: 12px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.6);
}
.footer-brand h4 {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.footer-brand small {
  display: block;
  color: var(--teal);
  letter-spacing: 3px;
  font-family: 'Anton', sans-serif;
  font-size: .7rem;
  margin-top: 4px;
}
.site-footer h5 {
  color: #fff;
  font-family: 'Anton', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 1rem;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #BFC7CC; }
.site-footer a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: .85rem;
}

/* ---------- Page header (sub pages) ---------- */
.page-head {
  background: var(--bg-dark);
  color: #fff;
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 90% 0%, rgba(31,191,196,0.35), transparent 70%),
    radial-gradient(600px 320px at 0% 100%, rgba(236,44,138,0.30), transparent 70%);
  pointer-events: none;
}
.page-head h1 { color: #fff; margin-bottom: 8px; }
.page-head p { color: #C9D1D6; max-width: 680px; margin: 0; font-size: 1.05rem; }
.page-head .eyebrow { color: var(--teal); }
.page-head .container { position: relative; }

/* ---------- Misc ---------- */
.tag {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  letter-spacing: 1.5px;
  font-size: .75rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31,191,196,0.15);
  color: var(--teal-dark);
  margin-right: 6px;
}
.tag.pink { background: rgba(236,44,138,0.15); color: var(--pink-dark); }

.divider {
  height: 4px;
  width: 70px;
  background: var(--pink);
  margin: 6px 0 22px;
  border-radius: 4px;
}

.center { text-align: center; }
.muted { color: var(--muted); }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
