/* --------------------------------------------------------------------------
   Rewire Health & Performance — static rebuild
   Fonts: Anton (display) + DM Sans (body), self-hosted in /fonts/
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Dark enough for text on light sections and for white button labels. */
  --red: #b00000;
  --dark: #030403;
  --ink: #141413;
  --navy: #1e293b;
  --body: #69727d;
  --light: #f7f3f3;
  --light-blue: #f4f6f8;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(3, 4, 3, 0.08);
  --display: "Anton", "Arial Narrow", sans-serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
}

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

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.5px; color: var(--navy); line-height: 1.15; }

h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: clamp(21px, 2.5vw, 26px); }

.accent { color: var(--red); }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  color: var(--red);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--white);
  background: var(--red);
  padding: 14px 30px;
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #8f0000; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(176, 0, 0, 0.3); }
.mobile-cta { display: none; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.topbar { background: var(--dark); color: var(--white); font-size: 15px; }
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.topbar-contact { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.topbar-contact a, .topbar-contact span { display: flex; align-items: center; gap: 8px; }
.topbar-contact svg { width: 16px; height: 16px; fill: var(--red); flex-shrink: 0; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  width: 32px; height: 32px; border-radius: 50%; background: #1c1c1c;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s ease;
}
.topbar-social a:hover { background: var(--red); }
.topbar-social svg { width: 15px; height: 15px; fill: var(--white); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo img { width: 205px; height: auto; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: #151515;
  color: var(--white);
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3, 4, 3, 0.82) 0%, rgba(3, 4, 3, 0.55) 45%, rgba(3, 4, 3, 0.15) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 110px 24px 120px; }
.hero-kicker { font-weight: 700; font-size: clamp(19px, 2.2vw, 26px); color: var(--white); margin-bottom: 14px; line-height: 1.35; }
.hero h1 {
  font-size: clamp(46px, 7vw, 84px);
  color: var(--white);
  text-transform: none;
  margin-bottom: 24px;
}
.hero p { max-width: 560px; font-size: 17px; color: #eaeaea; margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   Proven Way section (dark)
   -------------------------------------------------------------------------- */
.proven {
  position: relative;
  background: url("../assets/section-proven-bg.png") center/cover no-repeat, var(--dark);
  color: var(--white);
}
.proven::before { content: ""; position: absolute; inset: 0; background: rgba(3, 4, 3, 0.78); }
.proven .container { position: relative; padding-top: 90px; padding-bottom: 90px; }
.proven h2 { color: var(--white); margin-bottom: 18px; }
.proven-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.proven-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.proven-photos img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.proven-copy p { color: #d6d6d6; margin-bottom: 22px; }
.proven-copy h3 { color: var(--white); margin-bottom: 18px; font-family: var(--sans); font-weight: 700; font-size: 20px; }

.audience-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.audience-card { background: var(--white); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.audience-card h3 { color: var(--navy); margin-bottom: 10px; }
.audience-card p { color: var(--body); }

/* --------------------------------------------------------------------------
   Services (dark)
   -------------------------------------------------------------------------- */
.services {
  position: relative;
  background: url("../assets/section-services-bg.png") center/cover no-repeat, #1a1a1c;
  color: var(--white);
}
.services::before { content: ""; position: absolute; inset: 0; background: rgba(3, 4, 3, 0.8); }
.services .container { position: relative; padding-top: 90px; padding-bottom: 90px; text-align: center; }
.services h2 { color: var(--white); margin-bottom: 14px; }
.services > .container > p { max-width: 640px; margin: 0 auto 48px; color: #d6d6d6; }
.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 38px 30px;
}
.service-card h3 { color: var(--white); margin-bottom: 10px; }
.service-card p { color: #cfcfcf; }

/* --------------------------------------------------------------------------
   Program sections (athletes / adults)
   -------------------------------------------------------------------------- */
.programs { padding: 90px 0; }
.programs.athletes { background: var(--light); }
.programs.adults { background: var(--light-blue); }
.programs .section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.program-card img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.program-card .card-body { padding: 26px 24px 30px; }
.program-card h3 { margin-bottom: 8px; }
.program-card p { font-size: 16px; }

/* Adults: horizontal feature rows */
.feature-rows { display: grid; gap: 28px; }
.feature-row {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 460px 1fr; gap: 40px; align-items: center;
  padding: 24px; overflow: hidden;
}
.feature-row img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-row h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.feature-row:nth-child(even) { grid-template-columns: 1fr 460px; }
.feature-row:nth-child(even) img { order: 2; }

/* --------------------------------------------------------------------------
   Coach bio
   -------------------------------------------------------------------------- */
.coach { padding: 90px 0; }
.coach-grid { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: start; }
.coach-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.coach h2 { margin-bottom: 4px; }
.coach .credential { font-weight: 700; color: var(--red); margin-bottom: 20px; }
.coach p { margin-bottom: 18px; }
.coach-audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.coach-audiences h3 { margin-bottom: 8px; }
.coach-audiences p { font-size: 16px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials { padding: 80px 0; background: var(--light); text-align: center; scroll-margin-top: 96px; }
.testimonials h2 { margin-bottom: 14px; }
.stars { color: #8a5a00; letter-spacing: 2px; }
.reviews-summary { font-weight: 700; color: var(--navy); margin-bottom: 36px; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px; text-align: left; margin-bottom: 36px;
}
.review-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
}
.review-card .review-text { font-size: 16px; flex: 1; }
.review-card .review-author { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.review-card .review-author span { font-weight: 700; color: var(--navy); }
.review-card time { font-size: 13px; color: #5b6570; }

/* --------------------------------------------------------------------------
   Why choose
   -------------------------------------------------------------------------- */
.why { padding: 90px 0; }
.why .section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-item { text-align: center; }
.why-item img { width: 88px; margin: 0 auto 18px; }
.why-item h3 { font-size: 20px; margin-bottom: 8px; }
.why-item p { font-size: 16px; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final-cta { background: var(--dark); color: var(--white); text-align: center; padding: 90px 24px; }
.final-cta h2 { color: var(--white); font-size: clamp(30px, 4.5vw, 48px); max-width: 820px; margin: 0 auto 32px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9a9a9a; font-size: 15px; }
.site-footer a { color: #c9c9c9; }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-top: 56px; padding-bottom: 44px;
}
.footer-brand img { width: 72px; margin-bottom: 14px; }
.footer-name { font-family: var(--display); font-size: 19px; letter-spacing: 0.5px; color: var(--white); margin-bottom: 8px; }
.footer-brand p:last-child { max-width: 300px; }
.footer-col h3 {
  font-family: var(--display); font-weight: 400; font-size: 16px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); margin-bottom: 12px;
}
.footer-col p { margin-bottom: 8px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid #2a2a2a; text-align: center; padding: 18px 24px; font-size: 14px; }
.footer-credit { margin-top: 8px; }
.privacy-content { padding: 72px 24px 90px; }
.privacy-copy { max-width: 780px; margin: 0 auto; }
.privacy-copy h2 { margin: 34px 0 12px; }
.privacy-copy h2:first-child { margin-top: 0; }
.privacy-copy p, .privacy-copy li { line-height: 1.75; }
.privacy-copy ul { margin: 0 0 18px 22px; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.page-hero { background: var(--dark); color: var(--white); text-align: center; padding: 48px 24px 52px; }
.page-hero h1 { color: var(--white); font-size: clamp(38px, 5.5vw, 56px); margin-bottom: 10px; }
.page-hero p { max-width: 620px; margin: 0 auto; color: #d6d6d6; }

.contact-section { display: flow-root; padding: 0 0 90px; }
.contact-info-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 920px; margin: 32px auto 0;
}
.info-card { background: var(--light); border-radius: var(--radius); padding: 26px 24px; text-align: center; }
.info-card h2 { font-size: 18px; margin-bottom: 6px; }
.info-card a:hover { color: var(--red); }
.booking-widget {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; min-height: 1000px; max-width: 920px; margin: -34px auto 0;
  position: relative; z-index: 1; overflow: hidden;
}
.booking-widget .wl-widget { min-height: 950px; transition: opacity 0.2s ease; }
.booking-widget.is-loading .wl-widget { opacity: 0; }
.booking-widget iframe {
  display: block; width: 100% !important; min-height: 950px !important; border: 0;
}
.booking-loading {
  position: absolute; inset: 18px; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; color: var(--body);
  background: linear-gradient(135deg, #ffffff 0%, #f7f3f3 100%);
  transition: opacity 0.2s ease;
}
.booking-loading-spinner {
  width: 34px; height: 34px; border: 3px solid #e3e7eb; border-top-color: var(--red);
  border-radius: 50%; animation: booking-spin 0.8s linear infinite;
}
.booking-widget:not(.is-loading) .booking-loading {
  opacity: 0; pointer-events: none;
}
@keyframes booking-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .proven-grid, .coach-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row:nth-child(even) { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) img { order: 0; }
  .coach-photo { max-width: 420px; }
}

@media (max-width: 640px) {
  .audience-cards, .service-cards, .card-grid, .why-grid, .coach-audiences, .contact-info-row { grid-template-columns: 1fr; }
  .desktop-cta { display: none; }
  .mobile-cta { display: inline; }

  .topbar { font-size: 14px; }
  .topbar-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: 8px 12px; padding: 10px 18px 12px;
  }
  .topbar-contact { display: contents; }
  .topbar-contact a { grid-column: 1; grid-row: 1; }
  .topbar-contact span { grid-column: 1 / -1; grid-row: 2; font-size: 13px; line-height: 1.35; }
  .topbar-contact svg { width: 15px; height: 15px; }
  .topbar-social { grid-column: 2; grid-row: 1; gap: 6px; }
  .topbar-social a { width: 28px; height: 28px; }
  .topbar-social svg { width: 13px; height: 13px; }

  .header-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
    padding: 12px 18px;
  }
  .logo img { width: 148px; }
  .site-header .btn { font-size: 16px; padding: 12px 14px; white-space: nowrap; }

  .hero::before { background: linear-gradient(90deg, rgba(3, 4, 3, 0.82) 0%, rgba(3, 4, 3, 0.62) 70%, rgba(3, 4, 3, 0.34) 100%); }
  .hero-inner { padding: 32px 22px 72px; }
  .hero-kicker { font-size: 17px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(44px, 12vw, 52px); line-height: 1.06; margin-bottom: 16px; }
  .hero p { max-width: 340px; font-size: 16px; margin-bottom: 24px; }
  .hero .btn { font-size: 18px; padding: 13px 20px; }

  .page-hero { padding: 38px 20px 44px; }
  .contact-section { padding-bottom: 60px; }
  .booking-widget { margin-top: -24px; min-height: 1000px; padding: 12px; }
  .booking-loading { inset: 12px; }
}
