/* --- RACERY MINI THEME --- */
:root {
  --teal: #319eb3;
  --teallight: #319eb320;
  --blue: #177fa5;
  --dark: #4f555f;
  --txt: #333;
  --light: #f0f0f0;
  --white: #fff;
  --gold: #b56a00;
  --gold-light: #fef6e8;
  --orange: #cc4a00;
  --orange-light: #fff2e6;
  --purple: #6f2dbd;
  --purple-light: #f3f0ff;
  --navy: #0c3b6a;
  --navy-light: #eef3f9;
  --corp-blue: #005c99;
  --corp-light: #ecf8ff;
  --pink: #c2185b;
  --primary: #177fa5;
  --primary-light: #e6f3f7;
  --green: #22c55e;
  --orange: #f59e0b;
  --primary-sol: #177fa5;
  --primary-light-sol: #e6f3f7;
}
@font-face {
  font-family: CoHeadline;
  src: url(https://i.racery.com/static/font/CoHeadline_Rg.9cd00ac819db.ttf);
}
@font-face {
  font-family: SSP-Light;
  src: url(https://i.racery.com/static/font/SourceSansPro-Light.b2e90cc01cdd.ttf);
}
@font-face {
  font-family: SSP;
  src: url(https://i.racery.com/static/font/SourceSansPro-Regular.ba6cad25afe0.ttf);
}
body {
  margin: 0;
  font-family: SSP-Light, sans-serif;
  color: var(--txt);
  background: var(--white);
  line-height: 1.7;
}
h1,
h2,
h3,
h4,
strong,
b,
span {
  font-family: SSP, sans-serif;
}

p,
li,
ul,
a,
strong {
  font-size: 17px;
}

html {
  scroll-behavior: smooth;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue);
}
button,
.btn {
  background: var(--teal);
  color: #fff;
  border: 0;
  padding: 12px 24px;
  font-family: SSP;
  border-radius: 4px;
  cursor: pointer;
  font-size: 22px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
  margin: 16px auto;
}
button:hover,
.btn:hover {
  background: var(--teallight);
}
header,
footer {
  background: var(--dark);
  color: #fff;
  padding: 12px;
}
footer {
  text-align: center;
  padding: 30px 20px;
}
footer a {
  color: #fff;
  margin: 0 10px;
}
.panel {
  background: var(--light);
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
  border: 1px solid var(--teal);
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
}

.panel h3 {
  width: 20%;
}

.panel p {
  width: 80%;
}

.logo {
  max-width: 180px;
}

/* Floating back to top button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--teal);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 100;
}
.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top-btn:hover {
  background: var(--blue);
}

/* Page structure */
.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.page-container-pricing {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}
.hero {
  background: var(--dark);
  padding: 50px 20px;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--light);
  position: relative;
}
.hero p {
  font-size: 22px;
  max-width: 700px;
  margin: 0 auto 20px;
}

#header {
  overflow: visible;
}

/* TOC */
.toc {
  margin: 15px;
  padding: 5px 20px 0px;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  border-left: 1px solid var(--teallight);
  border-right: 1px solid var(--teallight);
  border-top: 0;
  border-bottom: 0;
}
.toc h3 {
  font-weight: 600;
}
.toc ul {
  list-style: none;
  padding: 2px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  padding-right: 5px;
}
.toc ul li {
  margin: 0;
  border: 1px solid var(--light);
  flex: 1 1 auto;
  box-shadow: -1px 0px 3.2px 0px #319eb3;
  border-radius: 5px 20px 0px;
}
.toc a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 15px;
  border-radius: 4px;
  transition: background 0.2s;
}
.toc li:hover {
  background: var(--teallight);
}

.toc ul li a {
  display: block;
  width: 100%;
}

.toc span {
  align-self: baseline;
  min-width: 150px;
  font-size: 1.17em;
  font-weight: 700;
  margin: 24px 0 12px;
}

/* Sections */
.section {
  margin: 100px 0;
  padding: 0 20px;
  scroll-margin-top: 120px;
}
.group .section h2 {
  font-size: 28px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 8px;
}
/* Solutions */
  /* Solution cards */
            .solutions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 40px;
            margin: 50px 0;
            }
            .solution-card {
            background: #fff;
            border: 2px solid #ddd;
            border-radius: 8px;
            padding: 40px;
            text-align: center;
            transition: border-color 0.2s;
            }
            .solution-card:hover {
            border-color: var(--primary);
            }
            .solution-card h3 {
            font-size: 24px;
            margin: 0 0 16px;
            color: var(--primary);
            }
            .solution-card p {
            font-size: 16px;
            text-align: left;
            margin: 12px 0;
            }
            .solution-card ul {
            text-align: left;
            margin: 16px 0;
            padding-left: 20px;
            }
            .solution-card li {
            margin: 8px 0;
            }

            /* Stats */
            .stats {
            background: var(--light);
            padding: 50px 20px;
            text-align: center;
            }
            .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            max-width: 1000px;
            margin: 0 auto;
            }
            .stat {
            padding: 20px;
            }
            .stat h3 {
            font-size: 36px;
            margin: 0 0 8px;
            color: var(--primary);
            }
            .stat p {
            font-size: 14px;
            margin: 0;
            color: var(--dark);
            }


/* Page-specific section h2 borders - moved to page theme sections below */

.section h3 {
  font-size: 20px;
  margin: 24px 0 12px;
}
.section p {
  margin: 15px;
  max-width: 700px;
}
.section ul {
  margin: 12px 0;
  padding-left: 24px;
}
.section li {
  margin: 8px 0;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 6px;
}
.card h3 {
  margin-top: 0;
  font-size: 18px;
}
.card p {
  margin: 8px 0 0;
  font-size: 17px;
}

/* Social proof */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 24px auto;
  max-width: fit-content;
}
.logo-strip img {
  height: 140px;
  opacity: 0.85;
  border: solid 0.01rem var(--teal);
}

/* Case study highlight */
.highlight {
  background: var(--light);
  padding: 30px 80px 30px 80px;
  border-radius: 6px;
  border: 1px solid var(--teal);
}
.highlight h2 {
  border: none;
}
.highlight ul {
  margin: 16px 0;
}
.highlight li {
  margin: 8px 0;
}

/* Back to top */
.back-to-top {
  text-align: center;
  margin: 30px 0;
}
.back-to-top a {
  font-size: 14px;
}

.solutions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
}

.solution-links span {
  margin-right: 0px;
  color: var(--dark);
  line-height: 12px;
  padding: 8px;
}

.solution-links a {
  margin-right: 0px;
  color: var(--teal);
  line-height: 12px;
  padding: 8px;
}

/* Heritage section */

.solution-section {
  padding: 0 20px;
  margin: 100px 15px 100px 15px;
}
.solution-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 8px;
}
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 0px;
}

.heritage-btn strong {
  color: var(--blue, #177fa5);
}

.heritage-btn {
  background: white;
  border: 2px solid var(--teal);
  /* border-left: 4px solid #ddd; */
  border-radius: 4px;
  padding: 16px;
  text-decoration: none;
  color: var(--txt, #333);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.heritage-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
  color: var(--txt, #333);
  text-decoration: none;
}

.heritage-btn span {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Color themes */
.heritage-btn.women {
  --accent: #c2185b;
  --accent-light: #fce4ec;
}
.heritage-btn.women:hover {
  border-left-color: #c2185b;
}

.heritage-btn.pride {
  --accent: #6f2dbd;
  --accent-light: #f3e5f5;
}
.heritage-btn.pride:hover {
  border-left-color: #6f2dbd;
}

.heritage-btn.bhm {
  --accent: #b56a00;
  --accent-light: #fff3e0;
}
.heritage-btn.bhm:hover {
  border-left-color: #b56a00;
}

.heritage-btn.veterans {
  --accent: #0c3b6a;
  --accent-light: #e3f2fd;
}
.heritage-btn.veterans:hover {
  border-left-color: #0c3b6a;
}

/* Related solutions */
.related-solutions {
  margin: 20px 0 30px;
  padding: 20px;
  background: var(--light, #f8f8f8);
  border-radius: 6px;
  text-align: center;
}

.related-solutions::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #ddd;
  margin: 0 auto 15px;
}

.related-solutions h3 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: normal;
  color: var(--dark, #4f555f);
}

.solution-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: end;
  align-items: end;
  border-bottom: 2px solid #f9f9f9;
}

.solution-link {
  background: white;
  text-decoration: none;
  color: var(--blue, #177fa5);
  transition: all 0.2s;
  font-family: SSP, sans-serif;
}

.solution-link:hover {
  border-color: var(--blue, #177fa5);
  background: var(--primary-light, #e6f3f7);
}

/* Pricing tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 50px 0;
}
.tier {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.tier:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}
.tier.popular {
  border-color: var(--primary);
  position: relative;
}
.tier.popular::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 6px 20px;
  font-size: 14px;
  border-radius: 20px;
  font-family: SSP;
}
.tier h3 {
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--primary);
}
.tier .price {
  font-size: 32px;
  font-weight: bold;
  color: var(--dark);
  margin: 10px 0;
}
.tier .price-note {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}
.tier p {
  margin: 16px 0 24px;
  font-size: 16px;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  text-align: left;
}
.tier li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 20px;
}
.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

/* Per-racer pricing */
.per-racer {
  background: var(--light);
  padding: 50px 20px;
}
.per-racer h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.pricing-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.pricing-card h3 {
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--primary);
  text-align: center;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table th,
.pricing-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.pricing-table th {
  background: var(--primary-light);
  font-weight: bold;
  font-family: SSP;
}
.pricing-table .price {
  font-weight: bold;
  color: var(--primary);
}

/* Sections */
.section {
  margin: 60px 0;
  padding: 0 20px;
}
.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--dark);
}
.section p {
  margin: 16px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 18px;
}

/* FAQ */
.faq-item {
  margin: 30px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
}
.faq-item p {
  text-align: left;
  font-size: 16px;
}

/* CTA */
.cta {
  background: var(--primary);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.cta h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 16px;
}
.cta p {
  font-size: 18px;
  margin-bottom: 30px;
}
.cta .btn {
  background: #fff;
  color: var(--primary);
  font-size: 18px;
  padding: 15px 30px;
}
.cta .btn:hover {
  background: var(--light);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 18px;
  }
  .tiers {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .tier {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 16px;
  }
  .section h2 {
    font-size: 24px;
  }
  .toc {
    flex-direction: column;
  }
  .toc ul {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 4px;
  }
  .toc a {
    display: block;
  }
  .toc ul li {
    flex: 0 0 100%;
  }
  .heritage-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
    margin-bottom: 15px;
  }
  .heritage-btn {
    padding: 12px;
  }
  .solution-links {
    display: block;
  }

  .solution-link {
    width: 200px;
    text-align: center;
  }

  .highlight {
    padding: 20px;
  }

  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/*
@media (max-width:900px) {
  #login_logout{
    position:absolute !important;
    top: 1rem !important;
    right: 2rem !important;
    height: auto !important;
  }
}
*/

/* ===========================================
   PAGE-SPECIFIC THEMES
   =========================================== */

/* Veterans page theming */
.veteran-page .hero {
  background: linear-gradient(135deg, var(--navy-light) 0%, #dae7f3 100%);
}
.veteran-page .hero h1 {
  color: var(--navy);
}
.veteran-page .hero p {
  color: var(--txt);
}
.veteran-page .btn {
  background: var(--navy);
}
.veteran-page .btn:hover {
  background: #082a4d;
}
.veteran-page .back-to-top-btn {
  background: var(--navy);
}
.veteran-page .back-to-top-btn:hover {
  background: #082a4d;
}
.veteran-page .highlight {
  background: var(--navy-light);
  border: none;
  border-left: 4px solid var(--navy);
}
.veteran-page .section h2 {
  border-bottom: 2px solid var(--navy);
}
.veteran-page .toc ul li {
  box-shadow: -1px 0px 3.2px 0px var(--navy);
}
.veteran-page .toc li:hover {
  background: var(--navy-light);
}

/* Women page theming */
.women-page .hero {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
}
.women-page .hero h1 {
  color: var(--pink);
}
.women-page .hero p {
  color: var(--txt);
}
.women-page .btn {
  background: var(--pink);
}
.women-page .btn:hover {
  background: #a1134a;
}
.women-page .back-to-top-btn {
  background: var(--pink);
}
.women-page .back-to-top-btn:hover {
  background: #a1134a;
}
.women-page .highlight {
  background: #fce4ec;
  border: none;
  border-left: 4px solid var(--pink);
}
.women-page .section h2 {
  border-bottom: 2px solid var(--pink);
}
.women-page .toc ul li {
  box-shadow: -1px 0px 3.2px 0px var(--pink);
}
.women-page .toc li:hover {
  background: #fce4ec;
}

/* Pride page theming */
.pride-page .hero {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}
.pride-page .hero h1 {
  color: var(--purple);
}
.pride-page .hero p {
  color: var(--txt);
}
.pride-page .btn {
  background: var(--purple);
}
.pride-page .btn:hover {
  background: #5a2499;
}
.pride-page .back-to-top-btn {
  background: var(--purple);
}
.pride-page .back-to-top-btn:hover {
  background: #5a2499;
}
.pride-page .highlight {
  background: var(--purple-light);
  border: none;
  border-left: 4px solid var(--purple);
}
.pride-page .section h2 {
  border-bottom: 2px solid var(--purple);
}
.pride-page .toc ul li {
  box-shadow: -1px 0px 3.2px 0px var(--purple);
}
.pride-page .toc li:hover {
  background: var(--purple-light);
}

/* BHM page theming */
.bhm-page .hero {
  background: linear-gradient(135deg, var(--gold-light) 0%, #ffe0b2 100%);
}
.bhm-page .hero h1 {
  color: var(--gold);
}
.bhm-page .hero p {
  color: var(--txt);
}
.bhm-page .btn {
  background: var(--gold);
}
.bhm-page .btn:hover {
  background: #8f5400;
}
.bhm-page .back-to-top-btn {
  background: var(--gold);
}
.bhm-page .back-to-top-btn:hover {
  background: #8f5400;
}
.bhm-page .highlight {
  background: var(--gold-light);
  border: none;
  border-left: 4px solid var(--gold);
}
.bhm-page .section h2 {
  border-bottom: 2px solid var(--gold);
}
.bhm-page .toc ul li {
  box-shadow: -1px 0px 3.2px 0px var(--gold);
}
.bhm-page .toc li:hover {
  background: var(--gold-light);
}

/* Wellness page theming */
.wellness-page .hero {
  background: linear-gradient(135deg, var(--corp-light) 0%, #b3e5fc 100%);
}
.wellness-page .hero h1 {
  color: var(--corp-blue);
}
.wellness-page .hero p {
  color: var(--txt);
}
.wellness-page .btn {
  background: var(--corp-blue);
}
.wellness-page .btn:hover {
  background: #004a7a;
}
.wellness-page .back-to-top-btn {
  background: var(--corp-blue);
}
.wellness-page .back-to-top-btn:hover {
  background: #004a7a;
}
.wellness-page .highlight {
  background: var(--corp-light);
  border: none;
  border-left: 4px solid var(--corp-blue);
}
.wellness-page .section h2 {
  border-bottom: 2px solid var(--corp-blue);
}
.wellness-page .toc ul li {
  box-shadow: -1px 0px 3.2px 0px var(--corp-blue);
}
.wellness-page .toc li:hover {
  background: var(--corp-light);
}

/* Engage page theming */
.engage-page .hero {
  background: linear-gradient(135deg, var(--orange-light) 0%, #ffcc80 100%);
}
.engage-page .hero h1 {
  color: var(--orange);
}
.engage-page .hero p {
  color: var(--txt);
}
.engage-page .btn {
  background: var(--orange);
}
.engage-page .btn:hover {
  background: #a33a00;
}
.engage-page .back-to-top-btn {
  background: var(--orange);
}
.engage-page .back-to-top-btn:hover {
  background: #a33a00;
}
.engage-page .highlight {
  background: var(--orange-light);
  border: none;
  border-left: 4px solid var(--orange);
}
.engage-page .section h2 {
  border-bottom: 2px solid var(--orange);
}
.engage-page .toc ul li {
  box-shadow: -1px 0px 3.2px 0px var(--orange);
}
.engage-page .toc li:hover {
  background: var(--orange-light);
}

/* Group page theming */
.group-page .hero {
  background: linear-gradient(135deg, var(--teallight) 0%, #b2ebf2 100%);
}
.group-page .hero h1 {
  color: var(--teal);
}
.group-page .hero p {
  color: var(--txt);
}

/* Solutions page theming */
.solutions-page .hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #b3e5fc 100%);
}
.solutions-page .hero h1 {
  color: var(--primary);
}
.solutions-page .hero p {
  color: var(--txt);
}
.solutions-page .btn {
  background: var(--primary);
}
.solutions-page .btn:hover {
  background: #0d5a7a;
}
