/* dallaspickleballcoach.com
   Navy and white surfaces, optic-yellow accent kept to buttons and small marks. */

/* Arial Bold scaled to Barlow Condensed's width (measured: uppercase 800 is 0.70x
   Arial Bold), so headings wrap the same before and after the web font swaps in. */
@font-face {
  font-family: "Barlow Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 700 800;
  size-adjust: 70%;
}
:root {
  --ink: #0f2233;
  --ink-2: #26394b;
  --muted: #566778;
  --rule: #e2e8ee;
  --paper: #ffffff;
  --alt: #f4f7f2;
  --court: #1c4d72;
  --court-deep: #0f2233;
  --ball: #d9f24a;
  --ball-ink: #4d5d00;
  --radius: 14px;
  --display: "Barlow Condensed", "Barlow Fallback", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--court); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--court); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .book :focus-visible, .site-footer :focus-visible { outline-color: var(--ball); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ball); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 34, 51, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-ball { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-size: 21px; letter-spacing: .02em; text-transform: uppercase; }
.brand-text span { font-size: 12px; color: #b9c7d4; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: #dbe5ee; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .nav-cta { background: var(--ball); color: var(--ink); font-weight: 700; margin-left: 4px; }
.nav .nav-cta:hover { background: #e6fa72; color: var(--ink); }
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--court-deep);
  color: #fff;
  overflow: hidden;
  padding: 56px 0 64px;
}
.hero::before {
  /* Court lines: sideline, kitchen line and centerline, drawn faintly. */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent calc(62% - 1px), rgba(255,255,255,.07) calc(62% - 1px), rgba(255,255,255,.07) calc(62% + 1px), transparent calc(62% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(255,255,255,.06) calc(50% - 1px), rgba(255,255,255,.06) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(1200px 500px at 85% -10%, rgba(28,77,114,.9), transparent 60%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 48px; } }
.eyebrow { margin: 0 0 14px; color: var(--ball); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 800; text-transform: uppercase; }
.lead { margin: 20px 0 0; font-size: 19px; color: #d5e0ea; max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; line-height: 1.2;
}
.btn-ball { background: var(--ball); color: var(--ink); }
.btn-ball:hover { background: #e6fa72; color: var(--ink); }
.btn-ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.hero-note { margin: 16px 0 0; font-size: 15px; color: #b9c7d4; }

@media (max-width: 600px) {
  .hero { padding: 28px 0 44px; }
  .eyebrow { font-size: 12px; margin-bottom: 10px; }
  .lead { font-size: 17px; margin-top: 14px; }
  .cta-row { margin-top: 20px; }
}
.cred-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
}
.cred-title { margin: 0 0 6px; font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ball); }
.cred-list { margin: 0; padding: 0; }
.cred-list div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 15.5px; }
.cred-list div:first-child { border-top: 0; }
.cred-list dt { color: #9fb2c3; }
.cred-list dd { margin: 0; color: #fff; font-weight: 600; }
.cred-list a { color: #fff; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--alt); }
.kicker { margin: 0 0 8px; color: var(--court); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 24px; font-weight: 700; }
.section-lead { margin: 14px 0 0; font-size: 18px; color: var(--muted); max-width: 44em; }
.center .section-lead { margin-left: auto; margin-right: auto; }
p { margin: 14px 0 0; }

.cards { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.price { margin: 10px 0 0; font-size: 17px; color: var(--muted); }
.price strong { font-family: var(--display); font-size: 40px; color: var(--ink); font-weight: 800; letter-spacing: .01em; }
.price-sub { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; flex-grow: 1; }
.ticks li { position: relative; padding-left: 26px; margin-top: 10px; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ball); box-shadow: inset 0 0 0 2px #b9d12a;
}
.text-link { display: inline-block; margin-top: 16px; font-weight: 600; }
.callout {
  margin-top: 28px; border-left: 4px solid var(--ball); background: var(--alt);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout h3 { font-size: 22px; }
.callout ol { margin: 10px 0 0; padding-left: 1.3em; }
.callout li { margin-top: 6px; }

.table-wrap { margin-top: 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rates { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.rates caption { caption-side: bottom; text-align: left; padding-top: 10px; font-size: 14px; color: var(--muted); }
.rates th, .rates td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rates thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.rates tbody th { font-weight: 700; }
@media (max-width: 600px) {
  .rates { min-width: 0; font-size: 14px; }
  .rates th, .rates td { padding: 10px 6px; }
  .rates thead th { font-size: 11px; letter-spacing: .04em; }
}
.fine { font-size: 14px; color: var(--muted); }

.two-col { display: grid; gap: 36px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.step-n {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--court-deep); color: var(--ball);
  font-family: var(--display); font-weight: 800; font-size: 22px;
}

.tips { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 860px) { .tips { grid-template-columns: 1fr 1fr; } }
.tip { border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.tip p { color: var(--ink-2); }

.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0 0; }
@media (min-width: 860px) { .videos { grid-template-columns: repeat(4, 1fr); } }
.video { margin: 0; }
.yt, .video iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  border: 0; border-radius: var(--radius); overflow: hidden; background: #000; padding: 0; cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { cursor: auto; }
.play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: rgba(15,34,51,.82); box-shadow: 0 0 0 3px var(--ball);
}
.play::after {
  content: ""; position: absolute; left: 23px; top: 18px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ball);
}
.yt:hover .play { background: var(--court-deep); }
.video figcaption { margin-top: 8px; font-weight: 600; font-size: 15px; }
.more-links { color: var(--muted); }

.facts { margin: 0; display: grid; gap: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px 22px; }
.facts div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--rule); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; font-size: 16px; }
.addr { line-height: 1.55; }

.quotes { display: grid; gap: 18px; margin-top: 32px; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; background: var(--alt); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.quote p { margin: 0; font-size: 17px; color: var(--ink-2); }
.quote footer { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--muted); }

.faq { margin-top: 24px; }
.faq-item { border-top: 1px solid var(--rule); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h3 { font-family: var(--body); font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.faq-item p { margin: 8px 0 0; color: var(--ink-2); }

.book { background: var(--court-deep); color: #fff; }
.book h2 { color: #fff; }
.book .section-lead { color: #c6d3de; }
.kicker-ball { color: var(--ball); }
.book-alt { margin-top: 22px; color: #c6d3de; font-size: 16px; }
.book-alt a { color: #fff; }

.site-footer { background: #0a1825; color: #b9c7d4; padding: 36px 0 28px; font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot-name { margin: 0; color: #fff; font-weight: 700; }
.site-footer p { margin-top: 6px; }
.site-footer nav { display: flex; gap: 18px; align-items: flex-start; }
.site-footer a { color: #dbe5ee; }
.foot-small { margin-top: 24px; font-size: 13px; color: #8597a8; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
