/* ==========================================================================
   Padel.com.au — Design tokens
   Court-diagram driven identity: deep court teal, chalk white lines,
   fluoro ball chartreuse, sun-coral accent.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root{
  --ink:        #0E2321;   /* near-black pine — primary dark bg / text  */
  --court:      #0F5148;   /* deep court teal — dark section bg          */
  --court-2:    #146457;   /* lighter court teal — gradients / hovers    */
  --chalk:      #EEF0E6;   /* pale sage-white — light section bg         */
  --chalk-2:    #E2E6D8;   /* slightly deeper chalk for cards on chalk   */
  --line:       #FCFDF8;   /* court line white                            */
  --ball:       #D7FF3F;   /* fluoro chartreuse — the signature accent   */
  --coral:      #FF6B4A;   /* Australian-sun accent, used sparingly      */
  --text-dark:  #12201E;
  --text-light: #F2F3EC;
  --text-mute:  #9FB3AC;

  --display: 'Big Shoulders Display', sans-serif;
  --body:    'Inter', sans-serif;
  --mono:    'Space Mono', monospace;

  --container: 1180px;
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--text-dark);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ font-family: var(--display); font-weight: 800; line-height: 0.95; margin: 0; letter-spacing: 0.2px; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- eyebrow / mono labels (scoreboard feel) ---------- */
.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 1px;
  background: currentColor;
  display:inline-block;
}

/* ---------- court-line divider motif ----------
   A thin rule with a short perpendicular tick, echoing where a
   service line meets a sideline on a padel court. */
.court-rule{
  position: relative;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  margin: 0;
}
.court-rule::after{
  content:"";
  position:absolute;
  top:-5px; left: 6%;
  width:1px; height:11px;
  background: currentColor;
  opacity: 1;
}

/* ---------- header / nav ---------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(238,240,230,0.12);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo{
  font-family: var(--display);
  font-size: 26px;
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: 0.5px;
  display:flex;
  align-items:center;
  gap:10px;
}
.logo .dot{
  width:9px; height:9px;
  background: var(--ball);
  border-radius: 50%;
  display:inline-block;
}
.nav-links{
  display:flex;
  gap: 30px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a{
  color: var(--text-mute);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{
  color: var(--ball);
  border-color: var(--ball);
}
.nav-toggle{
  display:none;
  background:none;
  border: 1px solid rgba(238,240,230,0.3);
  color: var(--text-light);
  width: 38px; height: 34px;
  font-family: var(--mono);
}

@media (max-width: 780px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:absolute;
    top: 62px; left:0; right:0;
    z-index: 60;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(238,240,230,0.12);
    max-height: 0;
    overflow:hidden;
    transition: max-height .25s ease, box-shadow .25s ease;
  }
  .nav-links.open{
    max-height: 320px;
    box-shadow: 0 20px 32px -16px rgba(0,0,0,0.5);
  }
  .nav-links a{
    padding: 14px 28px;
    width:100%;
    border-bottom: 1px solid rgba(238,240,230,0.08);
  }
  /* The border-bottom here is a list divider, not an underline —
     so the active-page indicator shouldn't recolor it. A left
     accent bar signals "current page" instead, without touching
     the divider between rows. */
  .nav-links a[aria-current="page"]{
    border-color: rgba(238,240,230,0.08);
    background: rgba(215,255,63,0.06);
    box-shadow: inset 3px 0 0 var(--ball);
  }
}

/* Prevent the page scrolling behind the open mobile menu */
body.nav-open{ overflow: hidden; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid currentColor;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(15,81,72,0.4); }

/* ---------- accessible focus states ----------
   Focus outlines were relying on browser defaults, which are
   inconsistent and often invisible against the dark sections. */
a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--ball);
  outline-offset: 3px;
}
.btn-ball{
  background: var(--ball);
  color: var(--ink);
  border-color: var(--ball);
}
.btn-ball:hover{ background: var(--line); border-color: var(--line); }
.btn-ghost{
  color: var(--text-light);
  border-color: rgba(242,243,236,0.4);
}
.btn-ghost:hover{ color: var(--ink); background: var(--text-light); }
.btn-ghost-dark{
  color: var(--ink);
  border-color: rgba(18,32,30,0.4);
}
.btn-ghost-dark:hover{ background: var(--ink); color: var(--text-light); }

/* ---------- hero ---------- */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--text-light);
  overflow: hidden;
  padding: 78px 0 0;
}
.hero .wrap{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items:center;
}
.hero h1{
  font-size: clamp(46px, 6.2vw, 92px);
  text-transform: uppercase;
}
.hero h1 .accent{ color: var(--ball); }
.hero .lede{
  font-family: var(--body);
  font-size: 17px;
  color: var(--text-mute);
  max-width: 46ch;
  margin: 22px 0 32px;
  line-height: 1.6;
}
.hero .eyebrow{ color: var(--ball); margin-bottom: 22px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap: wrap; }

.court-diagram{ width: 100%; height: auto; }
.hero-visual{ position:relative; padding-bottom: 12px; max-width: 320px; margin-left: auto; }

.court-legend{
  display:flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(242,243,236,0.14);
}
.court-legend li{
  display:flex;
  align-items:center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.court-legend .swatch{
  width: 14px; height: 14px;
  flex: none;
  border-radius: 1px;
}
.sw-glass{ background: rgba(191,232,224,0.28); border: 1px solid rgba(191,232,224,0.8); }
.sw-line{ background: var(--line); }
.sw-service{ background: transparent; border: 1px dashed var(--text-mute); }
.sw-ball{ background: var(--ball); border-radius: 50%; }

/* animated ball trace along the serve diagonal */
.ball-trace{
  stroke-dasharray: 6 10;
  animation: dash 2.6s linear infinite;
}
@keyframes dash{ to{ stroke-dashoffset: -160; } }
.ball-dot{
  animation: serve 2.6s ease-in-out infinite;
}
@keyframes serve{
  0%{ offset-distance: 0%; opacity: 0; }
  6%{ opacity: 1; }
  92%{ opacity: 1; }
  100%{ offset-distance: 100%; opacity: 0; }
}

.stat-strip{
  border-top: 1px solid rgba(242,243,236,0.14);
  background: var(--court);
  margin-top: 56px;
}
.stat-strip .wrap{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat{
  padding: 26px 24px;
  border-right: 1px solid rgba(242,243,236,0.14);
}
.stat:last-child{ border-right: none; }
.stat .n{
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 34px);
  color: var(--ball);
  font-weight: 700;
}
.stat .l{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-visual{ max-width: 280px; margin: 0 auto; }
  .stat-strip .wrap{ grid-template-columns: repeat(2,1fr); }
  .stat{ border-bottom: 1px solid rgba(242,243,236,0.14); }
}
@media (max-width: 600px){
  .hero{ padding-top: 48px; }
  .hero-visual{ max-width: 230px; }
  .stat-strip{ margin-top: 36px; }
}

/* ---------- generic sections ---------- */
section{ padding: 72px 0; }
.section-head{ max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow{ color: var(--court); margin-bottom: 14px; }
.section-head h2{
  font-size: clamp(30px, 4vw, 48px);
  text-transform: uppercase;
  color: var(--ink);
}
.section-head p{
  font-family: var(--body);
  color: #435651;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
}
.on-dark .section-head h2{ color: var(--text-light); }
.on-dark .section-head p{ color: var(--text-mute); }
.on-dark{ background: var(--ink); color: var(--text-light); }

/* Elements originally styled for light backgrounds need explicit
   overrides when they're reused inside an on-dark section, since
   .on-dark sets a page-wide light text color that otherwise clashes
   with (or gets clashed against by) their own dark/light colors. */
.on-dark .rule-item{ border-top-color: rgba(242,243,236,0.14); }
.on-dark .rule-item:last-child{ border-bottom-color: rgba(242,243,236,0.14); }
.on-dark .rule-item h3{ color: var(--text-light); }
.on-dark .rule-item p{ color: var(--text-mute); }
.on-dark .rule-item .num{ border: 1px solid rgba(215,255,63,0.4); }

.on-dark .spec-table{ color: var(--text-dark); }
.on-dark .spec-table th{ color: var(--court); background: rgba(15,81,72,0.08); }
.on-dark .spec-table td{ color: var(--text-dark); }
.on-dark .spec-table tr:hover td{ background: rgba(15,81,72,0.06); }

/* ---------- cards ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(18,32,30,0.08); }
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: rgba(18,32,30,0.08); }
.card{
  background: var(--chalk);
  padding: 34px 28px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover{
  background: var(--chalk-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -18px rgba(15,81,72,0.45);
}
.on-dark .card:hover{ box-shadow: 0 16px 28px -18px rgba(0,0,0,0.5); }

/* ---------- external link cards ----------
   A distinct component from .card so it reads unambiguously as
   "click through to another site" rather than as inline content:
   a badge, a domain line, and an arrow that animates outward. */
.link-grid{
  display: grid;
  gap: 14px;
}
.link-card{
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--chalk);
  padding: 22px 26px;
  border: 1px solid rgba(18,32,30,0.1);
  text-decoration: none;
  color: inherit;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.link-card:hover{
  background: var(--chalk-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -18px rgba(15,81,72,0.45);
}
.link-card .badge{
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--ball);
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
}
.link-card .badge svg{ width: 26px; height: 26px; fill: currentColor; }
.link-card .info{ flex: 1; min-width: 0; }
.link-card .info .kicker{
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--court);
  margin-bottom: 4px;
}
.link-card .info h3{
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 3px;
}
.link-card .info .domain{
  font-family: var(--mono);
  font-size: 12px;
  color: #7c8f89;
}
.link-card .go{
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--court);
  transition: transform .2s ease;
}
.link-card:hover .go{ transform: translate(3px,-3px); }
@media (max-width: 560px){
  .link-card{ padding: 18px 20px; gap: 16px; }
  .link-card .badge{ width: 46px; height: 46px; font-size: 15px; }
  .link-card .badge svg{ width: 22px; height: 22px; }
}
.card .idx{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--court);
  margin-bottom: 18px;
  display:block;
}
.card h3{
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--ink);
}
.card p{
  font-family: var(--body);
  font-size: 14.5px;
  color: #445753;
  line-height: 1.6;
}
.tag-row{
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
}

/* ---------- region / list rows (where to play) ---------- */
.region-row{
  display:grid;
  grid-template-columns: 200px 1fr 140px;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid rgba(18,32,30,0.14);
}
.region-row:last-child{ border-bottom: 1px solid rgba(18,32,30,0.14); }
.region-row .name{
  font-family: var(--display);
  font-size: 28px;
  text-transform: uppercase;
  color: var(--ink);
}
.region-row .desc{
  font-family: var(--body);
  font-size: 15px;
  color: #435651;
  line-height: 1.6;
}
.region-row .status{
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--court);
  text-align: right;
}
@media (max-width: 720px){
  .region-row{ grid-template-columns: 1fr; gap: 8px; }
  .region-row .status{ text-align:left; }
}

/* ---------- gear tables / specs ---------- */
.table-scroll{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.spec-table{ width:100%; min-width: 560px; border-collapse: collapse; font-family: var(--body); font-size: 14.5px; }
.spec-table th, .spec-table td{
  text-align:left;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(18,32,30,0.12);
}
.spec-table th{
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--court);
  background: rgba(15,81,72,0.06);
}
.spec-table tr:hover td{ background: rgba(15,81,72,0.04); }

.tag{
  display:inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border: 1px solid currentColor;
  color: var(--court);
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ---------- rule diagram callouts (learn the game) ---------- */
.rule-list{ counter-reset: rule; }
.rule-item{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid rgba(18,32,30,0.14);
}
.rule-item:last-child{ border-bottom: 1px solid rgba(18,32,30,0.14); }
.rule-item .num{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ball);
  background: var(--ink);
  width: 44px; height: 44px;
  display:flex; align-items:center; justify-content:center;
}
.rule-item h3{
  font-size: 20px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.rule-item p{
  font-family: var(--body);
  font-size: 15px;
  color: #435651;
  line-height: 1.6;
}

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--court);
  color: var(--text-light);
  text-align:center;
  padding: 72px 0;
}
.cta-band h2{
  font-size: clamp(30px, 4.6vw, 56px);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cta-band .lede{
  font-family: var(--body);
  color: rgba(242,243,236,0.75);
  max-width: 52ch;
  margin: 0 auto 34px;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- footer ---------- */
footer{
  background: var(--ink);
  color: var(--text-mute);
  padding: 54px 0 30px;
}
footer .wrap{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}
footer h4{
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 16px;
}
footer ul li{ margin-bottom: 10px; font-size: 14px; }
footer a:hover{ color: var(--ball); }
.footer-bottom{
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(242,243,236,0.12);
  font-family: var(--mono);
  font-size: 11px;
  display:flex;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 780px){
  footer .wrap{ grid-template-columns: 1fr 1fr; }
}

/* ---------- top announcement banner ---------- */
.announce-bar{
  background: var(--ball);
  color: var(--ink);
  text-align: center;
  padding: 9px 20px;
}
.announce-bar p{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- page intro (non-home pages) ---------- */
.page-intro{
  background: var(--ink);
  color: var(--text-light);
  padding: 70px 0 56px;
}
.page-intro .eyebrow{ color: var(--ball); margin-bottom: 18px; }
.page-intro h1{
  font-size: clamp(38px, 5.6vw, 68px);
  text-transform: uppercase;
}
.page-intro .lede{
  font-family: var(--body);
  color: var(--text-mute);
  max-width: 56ch;
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.6;
}

.note-box{
  border: 1px solid rgba(18,32,30,0.18);
  border-left: 3px solid var(--court);
  padding: 20px 24px;
  font-family: var(--body);
  font-size: 14px;
  color: #445753;
  line-height: 1.6;
  background: rgba(15,81,72,0.04);
}

/* A quiet data-source footnote — no border or box, just sits
   naturally under a list without reading as a callout. */
.fine-print{
  font-family: var(--body);
  font-size: 13px;
  color: #7c8f89;
  line-height: 1.6;
  margin-top: 24px;
}

/* ---------- tighter rhythm on smaller screens ----------
   Generous desktop padding compounds into large dead gaps once
   sections stack full-width on a phone, so scale it down here
   rather than carrying the same spacing across every viewport. */
@media (max-width: 780px){
  section{ padding: 56px 0; }
  .section-head{ margin-bottom: 32px; }
  .card{ padding: 26px 22px; }
  .cta-band{ padding: 64px 0; }
  .page-intro{ padding: 48px 0 40px; }
}
@media (max-width: 480px){
  section{ padding: 44px 0; }
  .cta-band{ padding: 52px 0; }
}
