:root {
  --bg: #fff8ef;
  --bg-soft: #fffefb;
  --surface: #ffffff;
  --surface-tint: #f5fbff;
  --ink: #111827;
  --text: #263244;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.1);
  --primary: #ff3b6b;
  --secondary: #009cff;
  --accent: #ffb000;
  --green: #16b36b;
  --purple: #7c3aed;
  --shadow: 0 12px 36px rgba(18, 36, 62, 0.06);
  --radius: 12px;
  --container: 1180px;
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100vh;
  background: #fff;
  color: var(--text);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.75;
}

/* Home page gets the gradient background */
body[data-page="home"] {
  background:
    linear-gradient(180deg, rgba(255, 176, 0, 0.08), transparent 300px),
    #fff;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

button {
  border: 0;
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 38px 0;
}

.section--surface {
  background: #f6fbff;
  border-block: 1px solid var(--line);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 14px;
  background: rgba(0, 156, 255, 0.12);
  color: #0067b8;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 1000;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2,
.cta h2,
.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 1000;
  line-height: 1.18;
}

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(5, 6, 15, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  transition: background 300ms ease, border-color 300ms ease;
}

.site-header.is-light {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 1000;
  white-space: nowrap;
  font-size: 1.15rem;
}

.brand__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(255, 59, 107, 0.28);
  flex-shrink: 0;
}

.brand__text {
  letter-spacing: 0;
}
.brand__text em {
  font-style: normal;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius);
  font-weight: 900;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-link:hover {
  transform: translateY(-2px);
}

/* Light header override */
.site-header.is-light .nav-link {
  color: #435166;
}
.site-header.is-light .nav-link:hover,
.site-header.is-light .nav-link.is-active {
  color: var(--ink);
  background: rgba(255, 176, 0, 0.18);
}
.site-header.is-light .brand {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle:hover {
  background: rgba(255,255,255,0.18);
}

/* Light header – dark toggle */
.site-header.is-light .nav-toggle {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(340px, 1.06fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  max-width: 780px;
  color: var(--ink);
  font-size: clamp(2.7rem, 6vw, 5.65rem);
  font-weight: 1000;
  line-height: 1.08;
}

.hero__description {
  max-width: 640px;
  margin-top: 22px;
  color: #526071;
  font-size: 1.2rem;
  font-weight: 800;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), background 250ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff527b 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 59, 107, 0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn--primary:hover {
  box-shadow: 0 16px 36px rgba(255, 59, 107, 0.3);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18, 36, 62, 0.04);
}
.btn--ghost:hover {
  background: #f8fafc;
  box-shadow: 0 12px 32px rgba(18, 36, 62, 0.08);
}

.hero-card {
  position: relative;
  min-height: 560px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  background: linear-gradient(180deg, transparent 44%, rgba(17, 24, 39, 0.72));
  border-radius: var(--radius);
  pointer-events: none;
}

.hero-card__image {
  width: 100%;
  height: 100%;
  min-height: 532px;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-card__footer {
  position: absolute;
  z-index: 2;
  inset-inline: 34px;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  color: #536173;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.2);
}

.hero-card__footer strong {
  color: var(--ink);
}

.stats__grid,
.cards-grid,
.trainers-page-grid,
.pricing-grid,
.testimonials-grid {
  display: grid;
  gap: 22px;
}

.stats__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.trainer-card,
.plan-card,
.quote-card,
.cta__box,
.pricing-card,
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(18, 36, 62, 0.08);
}

.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--primary);
  font-size: 2.25rem;
  font-weight: 1000;
  line-height: 1.1;
}

.stat-card:nth-child(2) strong {
  color: var(--secondary);
}

.stat-card:nth-child(3) strong {
  color: var(--green);
}

.stat-card:nth-child(4) strong {
  color: var(--purple);
}

.stat-card span {
  color: #56657a;
  font-weight: 900;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trainer-card {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.trainer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 58px rgba(0, 156, 255, 0.16);
}

.trainer-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-tint);
  transition: transform 260ms ease, filter 260ms ease;
}

.trainer-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.trainer-card__body {
  padding: 22px;
}

.trainer-card h2,
.trainer-card h3 {
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 1000;
  line-height: 1.3;
}

.trainer-card p,
.plan-card p,
.quote-card p,
.cta p,
.page-hero p,
.site-footer p {
  color: var(--muted);
  font-weight: 800;
}

.trainer-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  margin-bottom: 12px;
  background: rgba(255, 59, 107, 0.1);
  color: #d91f52;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 1000;
}

.plan-card,
.quote-card {
  padding: 28px;
}

.plan-card i,
.quote-card i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--green));
  border-radius: var(--radius);
  font-size: 1.25rem;
}

.plan-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 1000;
}

.plan-card--featured {
  background: linear-gradient(145deg, #fff, #fff4dc);
  border-color: rgba(255, 176, 0, 0.38);
}

.quote-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 1000;
}

.cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px;
  background: linear-gradient(135deg, #ffffff 0%, #fff2db 50%, #e8f8ff 100%);
}

.cta__box p {
  max-width: 680px;
}

.page-hero {
  padding-top: 120px;
  padding-bottom: 74px;
  background: linear-gradient(135deg, #fff2db 0%, #f1fbff 72%, #fff 100%);
}

.page-hero__content {
  max-width: 780px;
}

.trainers-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trainer-card--large img {
  aspect-ratio: 1 / 1;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
  background: var(--secondary);
}

.pricing-card:nth-child(2)::before {
  background: var(--accent);
}

.pricing-card:nth-child(3)::before {
  background: var(--primary);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 58px rgba(255, 59, 107, 0.14);
}

.pricing-card--featured {
  background: linear-gradient(145deg, #ffffff, #fff4dc);
  border-color: rgba(255, 176, 0, 0.42);
  transform: translateY(-10px);
}

.pricing-card--featured:hover {
  transform: translateY(-16px);
}

.pricing-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  font-size: 1.35rem;
}

.pricing-card h2 {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 1000;
}

.pricing-card__price {
  margin: 12px 0 22px;
  color: var(--ink);
  font-size: 2.35rem;
  font-weight: 1000;
  line-height: 1.15;
}

.pricing-card__price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
}

.features-list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4b5a6e;
  font-weight: 900;
}

.features-list i {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  margin-top: 4px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 0.75rem;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.review-card::before {
  content: "\f10d";
  position: absolute;
  top: 20px;
  left: 24px;
  color: rgba(0, 156, 255, 0.1);
  font-family: "Font Awesome 6 Free";
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 58px rgba(0, 156, 255, 0.14);
}

.review-card__stars {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 1.1rem;
}

.review-card p {
  position: relative;
  z-index: 1;
  min-height: 86px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 1000;
  line-height: 1.55;
}

.review-card h2 {
  margin-top: 22px;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 1000;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #101827;
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: center;
  gap: 26px;
}

.site-footer .brand,
.site-footer p {
  color: #fff;
}

.footer__links,
.footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  transition: color 180ms ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #fff;
  transition: transform 180ms ease, background 180ms ease;
}

.footer__social a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}
