/*
Theme Name: Athletixx Child
Theme URI: https://athletix.com.au
Description: Child theme for Athletixx. Place customizations here so the parent theme can be updated without losing changes.
Author: Mazharul Islam
Author URI: https://athletix.com.au
Template: athletixx
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: athletixx-child
*/

/* ==== Classes page (child override) ==== */

.classes-intro {
  padding: 80px 0 40px;
  background: var(--bg);
}
.classes-intro h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.classes-intro p {
  color: var(--muted);
  max-width: 1040px;
  margin-bottom: 18px;
  line-height: 1.7;
}
.classes-intro .btn {
  margin-top: 14px;
}

/* ===== Youth Classes — intro (text + sticky video) ===== */
.youth-intro {
  padding: 90px 0 70px;
  background: var(--bg);
}
.youth-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.youth-intro-copy h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 26px;
  text-transform: uppercase;
}
.youth-intro-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}
.youth-intro-copy p strong { color: #fff; }
.youth-intro-copy .btn { margin-top: 20px; }
.youth-intro-sub {
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 28px 0 14px;
  color: #fff;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.youth-intro-image {
  position: sticky;
  top: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.youth-intro-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35));
  pointer-events: none;
}
.youth-intro-image img,
.youth-intro-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .youth-intro { padding: 60px 0 40px; }
  .youth-intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .youth-intro-image { position: static; aspect-ratio: 16 / 10; }
}

/* ===== Youth Contact Form (centered card) ===== */
.youth-form-section {
  padding: 60px 0 90px;
  background: var(--bg);
}
.youth-form-section > .container {
  max-width: 920px;
}
.youth-form-lead {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 26px;
  letter-spacing: .2px;
  text-align: center;
}
.youth-form-lead strong { color: var(--accent); font-weight: 700; }
.youth-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.youth-form-readmore {
  margin: 30px auto 0;
  display: table;
}
@media (max-width: 700px) {
  .youth-form-section { padding: 40px 0 70px; }
  .youth-form { padding: 26px 20px; }
}

.youth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.youth-form-field {
  position: relative;
}
.youth-form-field input,
.youth-form-field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  padding: 18px 16px 14px;
  border-radius: 4px;
  outline: none;
  transition: border-color .25s var(--ease);
  resize: vertical;
}
.youth-form-field textarea { min-height: 180px; }
.youth-form-field input:focus,
.youth-form-field textarea:focus { border-color: var(--accent); }
.youth-form-field label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: rgba(255,255,255,.55);
  font-size: .95rem;
  pointer-events: none;
  transition: transform .2s var(--ease), color .2s var(--ease), font-size .2s var(--ease);
  background: var(--bg-2);
  padding: 0 6px;
}
.youth-form-field input:focus + label,
.youth-form-field input:not(:placeholder-shown) + label,
.youth-form-field textarea:focus + label,
.youth-form-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-26px);
  color: var(--accent);
  font-size: .75rem;
}
.youth-form-field-full {
  margin-bottom: 22px;
}
.youth-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.youth-captcha {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f9f9f9;
  color: #222;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 12px 16px;
  min-width: 280px;
  font-size: .9rem;
}
.youth-captcha .yc-box {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 3px;
  background: #fff;
  display: inline-block;
}
.youth-captcha .yc-label { flex: 1; }
.youth-captcha .yc-logo {
  font-size: .7rem;
  color: #777;
  letter-spacing: .5px;
}
.youth-form-submit {
  background: transparent;
  border: 0;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: .95rem;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 10px 0;
  border-bottom: 1px solid #fff;
  transition: color .2s var(--ease), border-color .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.youth-form-submit:hover {
  color: var(--accent);
  border-color: var(--accent);
}
/* Adult page: 2-col card grid override */
.adult-card-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) {
  .adult-card-grid { grid-template-columns: 1fr; }
}

/* Adult form: radio pills (Youth / Adult / Family) */
.adult-radio-group {
  border: 0;
  margin: 6px 0 24px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.adult-radio-group legend {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-right: 10px;
  padding: 0;
}
.radio-pill {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-pill span {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.radio-pill:hover span { border-color: var(--accent); color: #fff; }
.radio-pill input:checked + span {
  border-color: var(--accent);
  background: rgba(0,184,239,.12);
  color: var(--accent);
}
.youth-form-field .req { color: var(--accent); margin-left: 2px; }

/* ===== About page ===== */
.about-narrow {
  max-width: 920px;
  margin: 0 auto;
}
.about-why {
  padding: 70px 0 40px;
  background: var(--bg);
}
.about-h2-center {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}
.about-h2-center::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 14px auto 0;
}
.about-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.about-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-body {
  padding: 30px 0 70px;
  background: var(--bg);
}
.about-h3 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 36px 0 14px;
}
.about-h3:first-child { margin-top: 0; }
.about-body p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.about-body p strong { color: #fff; }
.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.about-list li {
  color: var(--muted);
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.65;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.about-list li strong { color: #fff; }
.about-podcast {
  margin: 18px 0 8px;
}

.about-team-photo {
  padding: 60px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-team-lede {
  color: var(--muted);
  text-align: center;
  line-height: 1.75;
  max-width: 820px;
  margin: 0 auto 36px;
}
.about-team-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-team-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Contact Us page ===== */
.contact-section {
  padding: 90px 0 110px;
  background: var(--bg);
}
.contact-h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.contact-h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin: 16px auto 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 60px;
  align-items: start;
}
.contact-info {
  color: var(--muted);
}
.contact-intro {
  line-height: 1.75;
  margin-bottom: 26px;
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.contact-info-list li a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.contact-info-list li a:hover { color: var(--accent); }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-hours-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 10px;
}
.contact-hours-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
}
.contact-hours {
  list-style: none;
  margin: 0;
  padding: 24px 28px;
  background: rgba(0, 184, 239, 0.08);
  border: 1px solid rgba(0, 184, 239, 0.18);
  border-radius: var(--radius);
}
.contact-hours li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 0;
  color: #e6e6e6;
  font-size: .95rem;
}
.contact-hours .day {
  font-family: 'Anton', sans-serif;
  letter-spacing: 1.5px;
  color: #fff;
  min-width: 56px;
  font-size: .95rem;
}
.contact-hours .time { color: var(--muted); }

.contact-form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}

@media (max-width: 900px) {
  .contact-section { padding: 60px 0 80px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-card { padding: 28px 22px; }
}

/* Header dropdown — prevent menu items wrapping to 2 lines */
.dropdown-content a {
  white-space: nowrap;
}

/* ===== Athletes Program: inline form spacing ===== */
.athlete-inline-form {
  padding: 28px 26px;
  margin-top: 6px;
}

/* Athlete intro image — zoom out so the full athlete is visible */
.athlete-intro-image {
  background: #0a0a0a;
}
.athlete-intro-image img {
  object-fit: contain !important;
  object-position: center;
}

/* ===== Coaches ===== */
.coaches {
  padding: 90px 0;
  background: var(--bg-2);
}
.coaches-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.coaches-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 14px auto 0;
}
.coaches .coach-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 30px;
  overflow: hidden;
}
.coaches .coach-photo {
  position: relative;
  background: #111;
  aspect-ratio: 1;
}
.coaches .coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.15);
}
.coach-name-vert {
  position: absolute;
  right: 0;
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right center;
  background: var(--accent);
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  padding: 8px 18px;
  white-space: nowrap;
  text-transform: uppercase;
}
.coach-body {
  padding: 32px 32px 26px;
}
.coach-body p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: .95rem;
}
.coach-sub {
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 18px 0 12px;
}
.coach-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}
.coach-list li {
  color: var(--muted);
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: .92rem;
  line-height: 1.55;
}
.coach-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 800px) {
  .coaches .coach-card { grid-template-columns: 1fr; }
  .coaches .coach-photo { aspect-ratio: 16 / 10; }
  .coach-name-vert {
    transform: none;
    right: 16px;
    top: 16px;
    font-size: .85rem;
    padding: 6px 14px;
  }
  .coach-body { padding: 26px 22px; }
}

/* Adult FAQ */
.adult-faq {
  padding: 90px 0;
  background: var(--bg);
}
.adult-faq-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.adult-faq-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 14px auto 0;
}
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
  margin-bottom: 4px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}
.faq-item summary:hover { color: var(--accent); }
.faq-body {
  padding: 0 28px 24px;
  border-top: 1px solid var(--line);
}
.faq-body p {
  color: var(--muted);
  line-height: 1.75;
  margin: 16px 0 0;
}
.faq-list {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}
.faq-list li {
  margin-bottom: 10px;
}
.faq-list-numbered {
  list-style: decimal;
  padding-left: 28px;
}
.faq-list-numbered li::marker {
  color: var(--accent);
  font-weight: 700;
}
.faq-list-numbered li {
  margin-bottom: 14px;
}
.faq-list-numbered li strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.faq-list-numbered li p {
  margin: 4px 0 0;
}
@media (max-width: 700px) {
  .faq-item summary { padding: 18px 20px; font-size: .95rem; }
  .faq-body { padding: 0 20px 20px; }
}

@media (max-width: 700px) {
  .youth-form-row { grid-template-columns: 1fr; }
  .youth-form-actions { justify-content: flex-start; }
}

.classes-cards {
  padding: 40px 0 96px;
  background: var(--bg);
}
.class-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.class-tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .3s var(--ease);
}
.class-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.class-tile .tile-type {
  font-family: 'Anton', sans-serif;
  font-size: .85rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.class-tile .tile-type span {
  color: var(--accent);
  margin-left: 4px;
}
.class-tile h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.class-tile p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}
.class-tile .arrow-link {
  align-self: flex-start;
}

@media (max-width: 1000px) {
  .class-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .class-card-grid { grid-template-columns: 1fr; }
}

/* Long-form SEO content */
.classes-longform {
  padding: 90px 0 110px;
  background: var(--bg);
}
.classes-longform h3 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 36px 0 16px;
  color: #fff;
}
.classes-longform h3:first-child { margin-top: 0; }
.classes-longform p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 980px;
}
.classes-longform p strong { color: #fff; }

/* ===== Header logo size bump ===== */
.logo img { height: 72px; }
@media (max-width: 720px) {
  .logo img { height: 56px; }
}

/* ===== Header CTA button: tighter vertical padding ===== */
.header-cta .btn { padding: 8px 24px; }

/* ===== Announce strip: cyan bar with spark + CTA button ===== */
.announce {
  background: #00d4f0 !important;
  color: #07090b !important;
  text-align: center !important;
  padding: 11px 18px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  line-height: 1.2;
}
.announce .announce-spark {
  font-size: 16px;
  line-height: 1;
}
.announce .announce-text {
  color: #07090b;
}
.announce .announce-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #07090b;
  color: #00d4f0 !important;
  padding: 7px 16px;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 800;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.announce .announce-cta:hover {
  background: #fff;
  color: #07090b !important;
}
@media (max-width: 560px) {
  .announce {
    font-size: 12px !important;
    letter-spacing: 1px !important;
    gap: 10px;
    padding: 10px 14px !important;
  }
  .announce .announce-cta {
    font-size: 11px;
    padding: 6px 12px;
    letter-spacing: 1px;
  }
}

/* ===== Mobile: keep only main-nav hamburger, hide the side-panel hamburger ===== */
@media (max-width: 720px) {
  .side-toggle { display: none !important; }

  /* Mobile nav: force a proper full-width overlay relative to the viewport
     (works even though .site-header has backdrop-filter which can become the
     containing block for fixed-positioned descendants). */
  .nav {
    position: fixed !important;
    top: 78px !important;
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: translateX(100vw) !important;
    transition: transform .4s var(--ease) !important;
    z-index: 1000 !important;
  }
  .nav.open { transform: translateX(0) !important; }

  /* Prevent any horizontal scroll/body shift when nav opens */
  html, body { overflow-x: hidden; }
}
