/* Northline v3 — brand-aligned typography, imagery and responsive polish. */
@font-face {
  font-family: "Northline Display";
  src: url("../fonts/archivo-expanded-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-stretch: 125%;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f4f4f0;
  --soft: #e8e9e6;
  --green: #a8ff00;
  --blue: #18bdf2;
  --max: 1280px;
  --display: "Northline Display", "Arial Black", sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
}

html {
  overflow-x: clip;
}

body {
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0;
  overflow-x: clip;
}

img {
  max-width: 100%;
}

.display,
.program-card__copy h3,
.value-item b,
.price,
.price-card h3,
.footer-grid h2,
.editorial-item span,
.editorial-item h3,
.program-detail__copy h2,
.roster-item__copy h2,
.page-hero__number,
.class-row time,
.full-schedule td time {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
}

.display {
  font-size: clamp(3rem, 7.4vw, 7.2rem);
  line-height: .92;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.display--mid {
  font-size: clamp(2.7rem, 5.2vw, 5.2rem);
}

.display--small {
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.brand-copy strong {
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: .075em;
}

.lede {
  max-width: 39rem;
  line-height: 1.65;
}

.eyebrow {
  font-size: .7rem;
  letter-spacing: .13em;
}

.btn {
  min-height: 50px;
  padding: .85rem 1.35rem;
  border-radius: 8px;
  letter-spacing: .095em;
}

.btn::after {
  content: none;
  display: none;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Home hero */
.hero.hero-v2 {
  min-height: auto;
  padding: 9.25rem 0 4.75rem;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(168, 255, 0, .09), transparent 30%),
    linear-gradient(180deg, #080808 0%, #0b0b0b 100%);
}

.hero.hero-v2::after {
  display: none;
}

.hero-v2__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  grid-template-rows: auto auto;
  gap: 2rem clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

.hero-v2__copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  max-width: 650px;
  padding-top: 1rem;
}

.hero .display.display--hero {
  max-width: 8ch;
  margin: .9rem 0 1.4rem;
  font-size: clamp(4rem, 7.5vw, 7.25rem);
}

.hero-v2__media {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  position: relative;
}

.hero-v2__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px 22px 22px -18px;
  border: 1px solid rgba(168, 255, 0, .48);
}

.hero-v2__media img {
  width: 100%;
  height: 100%;
  min-height: 660px;
  max-height: 790px;
  object-fit: cover;
  object-position: 54% center;
  background: #111;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.hero-v2__media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .85rem;
  color: rgba(255, 255, 255, .58);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.hero-v2__media figcaption span {
  color: var(--green);
  font-weight: 900;
}

.hero-proof {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.hero-proof > div {
  padding: 1.1rem 1rem 0 0;
}

.hero-proof strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -.03em;
}

.hero-proof span {
  display: block;
  margin-top: .25rem;
  color: rgba(255, 255, 255, .54);
  font-size: .64rem;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.concept-notice .container {
  min-height: 46px;
  font-size: .69rem;
  line-height: 1.5;
  letter-spacing: .07em;
  text-transform: none;
}

/* Image-led content */
.program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 1rem;
  margin-top: 3rem;
}

.program-card,
.program-card:first-child,
.program-card:last-child {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
}

.program-card img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.95) contrast(1.04);
}

.program-card::before {
  display: none;
}

.program-card__copy {
  position: relative;
  inset: auto;
  min-height: 132px;
  padding: 1.15rem;
  align-items: flex-start;
  background: #111;
}

.program-card__copy h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.program-card__copy p {
  font-size: .78rem;
  line-height: 1.5;
}

.program-card__arrow {
  width: 36px;
}

.split-feature {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: 640px;
}

.facility-photo {
  min-height: 560px;
  margin: clamp(2rem, 4vw, 4rem) 0 clamp(2rem, 4vw, 4rem) var(--pad);
}

.facility-photo img {
  object-position: center;
}

.facility-photo::after {
  background: linear-gradient(0deg, rgba(8, 8, 8, .75), transparent 48%);
}

.facility-photo figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 1.25rem 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.community-collage {
  min-height: 540px;
}

.community-collage img,
.coach-card img,
.roster-item__media img,
.program-detail__media img {
  filter: saturate(.94) contrast(1.03);
}

.coach-card img {
  aspect-ratio: 4 / 4.8;
  object-position: center 18%;
}

.coach-card__info h3 {
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.coach-card__bio {
  line-height: 1.55;
}

.roster-item {
  min-height: 540px;
}

.roster-item__media img {
  object-position: center 18%;
}

.program-detail {
  min-height: 520px;
}

.program-detail__copy h2,
.roster-item__copy h2 {
  letter-spacing: -.055em;
}

.final-cta {
  min-height: 620px;
  background: #080808 url("../img/final-cta.webp") 66% center / cover no-repeat;
}

.final-cta::before {
  background: linear-gradient(90deg, rgba(8, 8, 8, .98) 0%, rgba(8, 8, 8, .88) 43%, rgba(8, 8, 8, .18) 100%);
  opacity: 1;
}

/* Internal pages */
.page-hero {
  min-height: 610px;
  padding: 10rem 0 5rem;
  background:
    radial-gradient(circle at 78% 34%, rgba(24, 189, 242, .11), transparent 25%),
    linear-gradient(135deg, #111, #080808);
}

.page-hero .display {
  max-width: 12ch;
}

.page-hero--image {
  background-image:
    linear-gradient(90deg, #080808 0%, #080808 36%, rgba(8, 8, 8, .78) 61%, rgba(8, 8, 8, .22) 100%),
    url("../img/about-hero.webp");
  background-size: cover;
  background-position: center;
}

.form-media {
  min-height: 640px;
  background: #111 url("../img/consultation.webp") center / cover no-repeat;
}

.form-media::before {
  content: "از / همین‌جا / شروع / کن";
  position: absolute;
  z-index: 2;
  inset: auto 10% 10%;
  max-width: 8ch;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(3rem, 5.8vw, 6rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.06em;
}

.form-media::after {
  background: linear-gradient(0deg, rgba(8, 8, 8, .9), rgba(8, 8, 8, .02) 68%);
}

.price-card {
  min-height: 420px;
}

.price-card h3 {
  font-size: 1.75rem;
}

.price {
  font-size: 4rem;
}

.reveal {
  transform: translateY(14px);
  transition-duration: .52s;
}

.reveal--left {
  transform: translateX(-16px);
}

.reveal--right {
  transform: translateX(16px);
}

.program-card img,
.coach-card img {
  transition-duration: .45s;
}

.program-card:hover img,
.coach-card:hover img {
  transform: scale(1.018);
}

@media (max-width: 1080px) {
  .hero-v2__grid {
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 2rem 2.5rem;
  }

  .hero .display.display--hero {
    font-size: clamp(3.8rem, 7.2vw, 6.2rem);
  }

  .program-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .nav {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .nav a {
    font-family: var(--display);
    font-stretch: 125%;
  }

  .nav a:not(.btn) {
    font-size: clamp(2.1rem, 7vw, 4.2rem);
    line-height: .98;
    letter-spacing: -.035em;
  }
}

@media (max-width: 820px) {
  .intro-grid,
  .community-grid,
  .testimonial-wrap,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .hero.hero-v2 {
    padding-top: 8.25rem;
  }

  .hero-v2__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }

  .hero-v2__copy,
  .hero-v2__media,
  .hero-proof {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-v2__copy {
    max-width: 680px;
  }

  .hero-v2__media {
    width: min(100%, 720px);
  }

  .hero-v2__media img {
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
    object-position: 50% 42%;
  }

  .hero-proof {
    max-width: 720px;
  }

  .split-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .facility-photo {
    min-height: 460px;
    margin: 0;
  }

  .program-detail,
  .roster-item,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .program-detail:nth-child(even) .program-detail__media,
  .roster-item:nth-child(even) .roster-item__media {
    order: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --pad: 1rem;
  }

  html,
  body {
    width: 100%;
    overflow-x: clip;
  }

  .site-header {
    height: 68px;
  }

  .site-header:not(.scrolled) {
    background: linear-gradient(180deg, rgba(8, 8, 8, .82), transparent);
  }

  .section {
    padding: 4.25rem 0;
  }

  .display {
    font-size: clamp(3.05rem, 15vw, 4.75rem);
    letter-spacing: -.055em;
  }

  .display--mid {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .hero.hero-v2 {
    padding: 6.6rem 0 3rem;
  }

  .hero-v2__grid {
    gap: 1.7rem;
  }

  .hero .display.display--hero {
    max-width: 100%;
    font-size: clamp(3.2rem, 15vw, 4.7rem);
  }

  .hero-v2__copy {
    padding-top: 0;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: .7rem;
    font-size: .62rem;
  }

  .hero-v2__media::before {
    inset: -9px 11px 11px -9px;
  }

  .hero-v2__media img {
    aspect-ratio: 4 / 4.7;
    object-position: 51% center;
  }

  .hero-v2__media figcaption {
    line-height: 1.45;
  }

  .hero-proof {
    grid-template-columns: repeat(3, 1fr);
    margin-top: .25rem;
  }

  .hero-proof > div {
    padding: .8rem .5rem 0 0;
  }

  .hero-proof strong {
    font-size: 1.2rem;
  }

  .hero-proof span {
    font-size: .52rem;
    letter-spacing: .055em;
  }

  .concept-notice .container {
    padding-block: .75rem;
    font-size: .58rem;
  }

  .program-grid {
    display: flex;
    grid-template-columns: none;
    gap: .8rem;
    margin-right: calc(var(--pad) * -1);
    padding-right: var(--pad);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .program-grid::-webkit-scrollbar,
  .coach-track::-webkit-scrollbar {
    display: none;
  }

  .program-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .program-card__copy {
    min-height: 116px;
  }

  .facility-photo {
    min-height: 390px;
  }

  .facility-photo figcaption {
    inset-inline: 1rem;
    font-size: .58rem;
  }

  .community-collage {
    min-height: 440px;
  }

  .coach-track {
    display: flex;
    gap: .8rem;
    margin-right: calc(var(--pad) * -1);
    padding-right: var(--pad);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .coach-card {
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }

  .coach-card__bio {
    max-height: 6rem;
    margin-top: .75rem;
  }

  .page-hero {
    min-height: 600px;
    padding: 8.5rem 0 4rem;
  }

  .page-hero .display {
    max-width: 100%;
  }

  .page-hero--image {
    background-image:
      linear-gradient(0deg, rgba(8, 8, 8, .98) 0%, rgba(8, 8, 8, .72) 58%, rgba(8, 8, 8, .3) 100%),
      url("../img/about-hero.webp");
    background-position: 57% center;
  }

  .program-detail__media,
  .roster-item__media {
    min-height: 420px;
  }

  .program-detail__copy h2,
  .roster-item__copy h2 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .form-media {
    min-height: 480px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .full-schedule {
    margin-inline: calc(var(--pad) * -1);
    border-inline: 0;
  }

  .final-cta {
    min-height: 680px;
    align-items: flex-end;
    padding-bottom: 4rem;
    background-position: 62% center;
  }

  .final-cta::before {
    background: linear-gradient(0deg, rgba(8, 8, 8, .98) 0%, rgba(8, 8, 8, .86) 50%, rgba(8, 8, 8, .15) 100%);
  }

  .mobile-book {
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .program-grid,
  .coach-track {
    scroll-behavior: auto;
  }
}

.program-card__arrow { display:none; }
