/* ============================================================
   STYLES.CSS — Spēka Pasaule Cēsis
   Dark strength gym. No noise. Everything earned.
   ============================================================ */

/* --- Tokens --- */
:root {
  --color-bg: #0D0D0D;
  --color-bg-alt: #171717;
  --color-text: #F0EDEA;
  --color-muted: #888880;
  --color-accent: #C8922A;
  --color-card: #1E1E1E;
  --color-border: #2A2A2A;
  --font-display: 'Oswald', Arial Narrow, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Fluid type scale */
  --fs-12: clamp(0.72rem, 0.66rem + 0.27vw, 0.85rem);
  --fs-14: clamp(0.84rem, 0.78rem + 0.27vw, 0.97rem);
  --fs-16: clamp(0.96rem, 0.90rem + 0.27vw, 1.10rem);
  --fs-18: clamp(1.08rem, 1.00rem + 0.36vw, 1.25rem);
  --fs-22: clamp(1.32rem, 1.20rem + 0.55vw, 1.60rem);
  --fs-28: clamp(1.68rem, 1.45rem + 0.95vw, 2.20rem);
  --fs-36: clamp(2.16rem, 1.80rem + 1.50vw, 3.00rem);
  --fs-48: clamp(2.88rem, 2.30rem + 2.40vw, 4.20rem);
  --fs-64: clamp(3.84rem, 2.80rem + 4.30vw, 6.00rem);
  --fs-96: clamp(5.76rem, 3.60rem + 9.00vw, 11.00rem);

  /* Spacing */
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: clamp(2rem, 1.5rem + 2vw, 4rem);
  --s-16: clamp(3rem, 2rem + 4vw, 6rem);
  --s-24: clamp(4rem, 3rem + 6vw, 9rem);

  /* Layout */
  --max-w: 1280px;
  --max-w-narrow: 720px;
  --line: 1px solid var(--color-border);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--line);
  transition: background 0.2s ease;
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  line-height: 1;
}

.nav__logo-mark {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--fs-14);
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__cta {
  background: var(--color-accent);
  color: #0D0D0D !important;
  font-weight: 500;
  padding: 0.5em 1.25em;
  border-radius: 2px;
  transition: background 0.15s ease !important;
}

.nav__cta:hover {
  background: #dba030 !important;
  color: #0D0D0D !important;
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s-6);
    gap: var(--s-4);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__links .nav__cta {
    align-self: flex-start;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 64px; /* nav height */
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 13, 13, 0.97) 0%,
    rgba(13, 13, 13, 0.90) 45%,
    rgba(13, 13, 13, 0.50) 100%
  );
}

/* Extra vertical gradient so copy at bottom is always readable */
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 13, 13, 0.95) 0%,
    transparent 40%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
  padding-bottom: var(--s-16);
  width: 100%;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--s-6);
  overflow: hidden;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-96);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--s-8);
  overflow: hidden;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title .word {
  display: inline-block;
}

.hero__lede {
  font-size: var(--fs-18);
  color: var(--color-muted);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: var(--s-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   STATS STRIP
   ============================================================ */

.stats {
  background: var(--color-bg-alt);
  border-bottom: var(--line);
  border-top: var(--line);
  padding-block: var(--s-12);
}

.stats__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  align-items: center;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-inline: var(--s-6);
  border-right: var(--line);
}

.stats__item:first-child {
  padding-left: 0;
}

.stats__item:last-child {
  border-right: none;
}

.stats__number {
  font-family: var(--font-display);
  font-size: var(--fs-64);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats__label {
  font-size: var(--fs-12);
  color: var(--color-muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .stats__inner {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }

  .stats__item {
    border-right: none;
    border-bottom: var(--line);
    padding-inline: 0;
    padding-bottom: var(--s-8);
  }

  .stats__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ============================================================
   MANIFESTO / QUOTE
   ============================================================ */

.manifesto {
  padding-block: var(--s-24);
  border-bottom: var(--line);
  background: var(--color-bg);
}

.manifesto__inner {
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.manifesto__quote {
  font-family: var(--font-display);
  font-size: var(--fs-36);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: 0.01em;
  position: relative;
}

.manifesto__quote::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: var(--s-8);
}

/* ============================================================
   CLASSES / SERVICES
   ============================================================ */

.classes {
  padding-block: var(--s-24);
  background: var(--color-bg-alt);
  border-bottom: var(--line);
}

.classes__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.classes__header {
  margin-bottom: var(--s-12);
}

.classes__heading {
  font-family: var(--font-display);
  font-size: var(--fs-48);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  max-width: 480px;
}

.classes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: var(--line);
}

.class-card {
  background: var(--color-card);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: background 0.15s ease;
}

.class-card:hover {
  background: #252525;
}

.class-card__number {
  font-family: var(--font-display);
  font-size: var(--fs-48);
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  user-select: none;
  transition: color 0.2s ease;
}

.class-card:hover .class-card__number {
  color: var(--color-accent);
}

.class-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-22);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
  line-height: 1.1;
}

.class-card__desc {
  font-size: var(--fs-16);
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
}

.class-card__tag {
  display: inline-block;
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(200, 146, 42, 0.3);
  padding: 0.25em 0.75em;
  border-radius: 2px;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .classes__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FREE TRIAL / MEMBERSHIP CTA
   ============================================================ */

.trial {
  padding-block: var(--s-24);
  background: var(--color-bg);
  border-bottom: var(--line);
}

.trial__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.trial__card {
  background: var(--color-bg-alt);
  border: var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.trial__content {
  padding: var(--s-12);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  justify-content: center;
}

.trial__heading {
  font-family: var(--font-display);
  font-size: var(--fs-48);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 0.01em;
}

.trial__price {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.trial__price-value {
  font-family: var(--font-display);
  font-size: var(--fs-64);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.trial__price-note {
  font-size: var(--fs-14);
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trial__body {
  font-size: var(--fs-18);
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 400px;
}

.trial__visual {
  background: var(--color-bg);
  border-left: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-12);
  position: relative;
  overflow: hidden;
}

.trial__visual-text {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(200, 146, 42, 0.06);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
  white-space: nowrap;
}

.trial__visual-days {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}

.trial__visual-num {
  font-family: var(--font-display);
  font-size: var(--fs-96);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.trial__visual-unit {
  font-size: var(--fs-14);
  color: var(--color-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .trial__card {
    grid-template-columns: 1fr;
  }

  .trial__visual {
    border-left: none;
    border-top: var(--line);
    min-height: 200px;
  }
}

/* ============================================================
   WHY / SIGNATURE BLOCK
   ============================================================ */

.why {
  padding-block: var(--s-24);
  background: var(--color-bg-alt);
  border-bottom: var(--line);
}

.why__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.why__header {
  margin-bottom: var(--s-12);
  max-width: 640px;
}

.why__heading {
  font-family: var(--font-display);
  font-size: var(--fs-48);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: var(--line);
}

.why-card {
  background: var(--color-bg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.why-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(200, 146, 42, 0.12);
  border: 1px solid rgba(200, 146, 42, 0.25);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
}

.why-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-22);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
  line-height: 1.1;
}

.why-card__body {
  font-size: var(--fs-16);
  color: var(--color-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CONTACT / VISIT
   ============================================================ */

.contact {
  padding-block: var(--s-24);
  background: var(--color-bg);
  border-bottom: var(--line);
}

.contact__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}

.contact__content {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.contact__heading {
  font-family: var(--font-display);
  font-size: var(--fs-48);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 0.01em;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.contact__line {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-18);
  color: var(--color-muted);
}

.contact__line svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.contact__map {
  background: var(--color-card);
  border: var(--line);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact__map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  text-align: center;
}

.contact__map-placeholder p {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

.contact__map-placeholder span {
  font-size: var(--fs-14);
  color: var(--color-border);
  letter-spacing: 0.06em;
}

.map-pin {
  width: 48px;
  height: 48px;
  background: rgba(200, 146, 42, 0.15);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .contact__inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-bg-alt);
  border-top: var(--line);
  padding-block: var(--s-8);
}

.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--fs-16);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.footer__logo span {
  color: var(--color-accent);
}

.footer__copy {
  font-size: var(--fs-12);
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.footer__legal {
  font-size: var(--fs-12);
  color: var(--color-border);
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */

.scroll-top {
  position: fixed;
  bottom: var(--s-6);
  right: var(--s-6);
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  border: var(--line);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.15s ease;
  z-index: 50;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--color-card);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   ANIMATIONS (GSAP handles JS side — CSS stubs only)
   ============================================================ */

/* Hero text words start invisible; GSAP reveals them */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(105%);
  will-change: transform, opacity;
}

/* Section reveals */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}
