/* Shared vertical-page layout (Fitness / EDvantage) */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--head);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(20, 22, 26, 0.07);
}

.mast-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left brand right";
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  gap: 16px;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.mobile-menu-panel { display: contents; }
.nav-left { grid-area: left; }
.nav-right { grid-area: right; }

.nav-left,
.nav-right {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-left a,
.nav-right a {
  position: relative;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.nav-left a:hover,
.nav-right a:hover,
.nav-left a.is-active,
.nav-right a.is-active { color: var(--orange); }

@media (min-width: 901px) {
  .nav-left a::after,
  .nav-right a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 1.5px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.38s var(--ease);
  }

  .nav-left a:hover::after,
  .nav-right a:hover::after,
  .nav-left a.is-active::after,
  .nav-right a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-right a.nav-cta {
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }

  .nav-right a.nav-cta::after { display: none; }

  .nav-right a.nav-cta:hover,
  .nav-right a.nav-cta.is-active {
    background: var(--orange-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -6px var(--orange-glow);
  }
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.32s ease, opacity 0.2s ease;
  transform-origin: center;
}

.site-head.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-head.is-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-head.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

body.menu-open { overflow: hidden; }

.hero {
  padding: calc(var(--head) + 66px) 0 var(--section);
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 span { color: var(--orange); }

.hero .tagline {
  margin-top: 16px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 600;
}

.hero p.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
  max-width: 46ch;
}

.accent-rule {
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-rule, var(--orange));
  margin: 22px 0;
}

.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.build-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  margin: 0 auto 36px;
  max-width: 920px;
  background: var(--fog);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.build-switch button {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 11px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.build-switch button:hover { color: var(--ink); }

.build-switch button.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px -8px var(--accent-glow);
}

.build-panel { display: none; }
.build-panel.is-active { display: block; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { aspect-ratio: 16 / 11; }
}

@media (max-width: 900px) {
  .mast-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: min(var(--max), calc(100% - 32px));
  }

  .brand { flex: 0 1 auto; }

  .nav-toggle {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .mobile-menu-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--head);
    left: 0;
    right: 0;
    z-index: 61;
    height: 0;
    opacity: 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    padding: 0;
  }

  .site-head.is-open .mobile-menu-panel {
    visibility: visible;
    pointer-events: auto;
    height: auto;
    opacity: 1;
    padding: 12px 0 16px;
    overflow: visible;
    min-height: 196px;
  }

  .nav-left,
  .nav-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .nav-left a,
  .nav-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    padding: 0 16px;
    font-size: 0.8rem;
  }

  .nav-right a.nav-cta {
    margin: 8px 24px 0;
    width: calc(100% - 48px);
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
  }

  .hero { padding-top: calc(var(--head) + 40px); }

  .build-switch { border-radius: 18px; gap: 4px; }

  .build-switch button {
    min-width: 0;
    flex: 1 1 calc(33% - 6px);
    padding: 10px 8px;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 640px) {
  .build-switch button { flex: 1 1 100%; }
}
