/* ============================================================
   MAREK TRENING — style.css
   Trener personalny | Bold, dark, energetic
   Palette: black #0A0A0A · off-white #F0EDE8 · yellow #D4E830
   Type: Bebas Neue (headings uppercase) · Inter (body)
   ============================================================ */

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

:root {
  --black:    #0A0A0A;
  --black-2:  #141412;
  --black-3:  #1E1E1A;
  --white:    #F5F5F0;
  --off-white:#F0EDE8;
  --yellow:   #D4E830;
  --gray:     #8A8A82;
  --gray-lt:  #4A4A45;
  --border-d: #2A2A28;
  --border-l: #D8D5CE;

  --ff-display:'Bebas Neue', 'Barlow Condensed', 'Arial Black', sans-serif;
  --ff-body:   'Inter', 'DM Sans', system-ui, sans-serif;

  --max-w:    1120px;
  --section-gap: clamp(5rem, 9vw, 8rem);
  --radius:   1px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.container {
  width: min(var(--max-w), 100% - 2 * clamp(1.25rem, 5vw, 3rem));
  margin-inline: auto;
}

img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }

/* Background alternation */
.bg-dark  { background: var(--black); color: var(--off-white); }
.bg-light {
  background: var(--off-white);
  color: var(--black);
}
.bg-light .form-field__label,
.bg-light .contact__detail-label,
.bg-light .contact__label,
.bg-light .program__label,
.bg-light .pricing__note,
.bg-light .contact__sub { color: var(--gray-lt); }

/* ---- Scroll-reveal ---- */
.reveal {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.reveal.visible { opacity: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  border: none;
}
.btn:active { transform: scale(0.98); }

.btn--accent {
  background: var(--yellow);
  color: var(--black);
}
.btn--accent:hover { background: #c2d820; }

.btn--outline {
  background: transparent;
  border: 1px solid var(--off-white);
  color: var(--off-white);
}
.btn--outline:hover {
  background: var(--off-white);
  color: var(--black);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-d);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
}

.nav__logo {
  text-decoration: none;
}

.nav__logo-text {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--off-white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  font-family: var(--ff-display);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--gray);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--white); }

.nav__link--cta {
  padding: 0.5rem 1.25rem;
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
}
.nav__link--cta:hover {
  background: #c2d820;
  color: var(--black);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}

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

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.3) contrast(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.98) 0%,
    rgba(10,10,10,0.6) 40%,
    rgba(10,10,10,0.2) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__meta {
  font-family: var(--ff-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.hero__heading {
  font-family: var(--ff-display);
  font-size: clamp(4.5rem, 12vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
}

.hero__heading-line--accent {
  color: var(--yellow);
}

.hero__sub {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 300;
  color: var(--gray);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__text-link {
  font-family: var(--ff-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--off-white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.hero__text-link:hover { border-color: var(--off-white); }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.25rem, 5vw, 3rem);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gray));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers {
  padding: var(--section-gap) 0;
}

.numbers__label {
  font-family: var(--ff-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-bottom: 0.875rem;
}

.numbers__heading {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  line-height: 1;
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-d);
  border: 1px solid var(--border-d);
}

.number-card {
  background: var(--black);
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}
.number-card:hover { background: var(--black-2); }

.number-card__top {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  line-height: 1;
}

.number-card__digit {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.number-card__digit--accent {
  color: var(--yellow);
}

.number-card__unit {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  color: var(--gray);
  letter-spacing: 0.08em;
}

.number-card__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.65;
}

/* ============================================================
   PROGRAM
   ============================================================ */
.program {
  padding: var(--section-gap) 0;
}

/* bg-light overrides for program */
.program .program__label { color: var(--gray-lt); }
.program .program__heading,
.program .program__phase-title { color: var(--black); }
.program .program__intro,
.program .program__phase-desc { color: #3A3A35; }
.program .program__phase-period { color: var(--gray-lt); }
.program .program__phase-num { color: #D0CCBF; }

.program__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 600px;
}

.program__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-bottom: 0.875rem;
}

.program__heading {
  font-family: var(--ff-display);
  font-size: clamp(2.75rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.program__intro {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 52ch;
}

.program__phases {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--border-l);
}

.program__phase {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: clamp(2rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--border-l);
  align-items: start;
  transition: background 0.2s;
}
.program__phase:last-child { border-bottom: none; }
.program__phase:hover { background: rgba(212, 232, 48, 0.04); }

.program__phase-num {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.program__phase-period {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}

.program__phase-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.program__phase-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 58ch;
}

/* Pricing */
.pricing {
  border: 1px solid var(--border-l);
  padding: clamp(2rem, 3.5vw, 3rem);
}

.pricing__heading {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-l);
  margin-bottom: 1.25rem;
}

.pricing__item {
  background: var(--off-white);
  padding: 1.5rem;
  position: relative;
}

.pricing__item--featured {
  background: var(--black);
  color: var(--off-white);
}

.pricing__badge {
  font-family: var(--ff-display);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 0.375rem;
}

.pricing__name {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-lt);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
}
.pricing__item--featured .pricing__name { color: var(--gray); }

.pricing__price {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: 0.04em;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.pricing__item--featured .pricing__price { color: var(--yellow); }

.pricing__rate {
  font-size: 0.8125rem;
  color: var(--gray-lt);
}
.pricing__item--featured .pricing__rate { color: var(--gray); }

.pricing__note {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: var(--section-gap) 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
}

.about__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.85) contrast(1.05);
}

.about__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-bottom: 0.875rem;
}

.about__heading {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 2rem;
}

.about__text p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 56ch;
}
.about__text p:last-child { margin-bottom: 0; }

.about__quote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--yellow);
}

.about__quote p {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-style: italic;
  font-weight: 300;
  color: var(--off-white);
  line-height: 1.6;
  max-width: 50ch;
}

.about__creds {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  border-top: 1px solid var(--border-d);
  padding-top: 1.5rem;
}

.about__cred {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
}

.about__cred-key {
  font-family: var(--ff-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--yellow);
  min-width: 5rem;
  line-height: 1;
}

.about__cred-val {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.5;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--section-gap) 0 clamp(4rem, 8vw, 7rem);
}

/* bg-light overrides for contact */
.contact .contact__heading { color: var(--black); }
.contact .contact__detail-val { color: var(--black); }
.contact .contact__philosophy p { color: #4A4A45; }
.contact .about__quote { border-color: var(--black); }

.contact__header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.contact__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-bottom: 0.875rem;
}

.contact__heading {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 9vw, 7rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
  margin-bottom: 1rem;
}

.contact__sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 52ch;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact__detail-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact__detail-val {
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s;
}
a.contact__detail-val:hover { color: var(--yellow); }

.contact__philosophy {
  border-top: 1px solid var(--border-l);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.contact__philosophy p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
}

.contact__cta-btn { margin-top: 0.5rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-fieldset {
  border: none;
  padding: 0;
}

.form-field__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-lt);
}

.form-field__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.form-field__input {
  background: #1A1A17;
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}
/* Override for bg-light section */
.bg-light .form-field__input {
  background: var(--white);
  color: var(--black);
  border-color: var(--border-l);
}

.form-field__input::placeholder { color: var(--gray); }
.bg-light .form-field__input::placeholder { color: #AAAAAA; }

.form-field__input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(212, 232, 48, 0.12);
}

.form-field__input.invalid { border-color: #E05050; }

.form-field__textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.65;
}

.form-field__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A82' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.bg-light .form-field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A45' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.form-field__error {
  font-size: 0.75rem;
  color: #E05050;
  min-height: 1em;
}

.form-radios {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-radio input[type="radio"] {
  accent-color: var(--yellow);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.form-radio__label {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.4;
}
.bg-light .form-radio__label { color: var(--black); }

.form-field--checkbox { gap: 0.5rem; }

.form-field__checkbox-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}

.form-field__checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--yellow);
  cursor: pointer;
}

.form-field__checkbox-text {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.55;
}
.bg-light .form-field__checkbox-text { color: var(--gray-lt); }

.form-field__policy-link { color: var(--yellow); text-underline-offset: 2px; }
.bg-light .form-field__policy-link { color: var(--black); }

.form-submit { align-self: flex-start; }

.form-success {
  font-family: var(--ff-display);
  font-size: 1.1875rem;
  letter-spacing: 0.06em;
  color: var(--yellow);
  padding: 1rem 0;
}
.bg-light .form-success { color: #2A6A30; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black-2);
  border-top: 1px solid var(--border-d);
  padding: 2.5rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem 3rem;
  align-items: center;
}

.footer__logo {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--white);
  display: block;
}

.footer__tagline {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gray);
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.footer__nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer__link {
  font-family: var(--ff-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--white); }

.footer__legal {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer__copy,
.footer__demo {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.5;
}
.footer__demo { font-style: italic; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about__image { width: min(340px, 100%); aspect-ratio: 3/4; }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pricing__grid { grid-template-columns: 1fr; gap: 1px; }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__legal { text-align: center; }
  .footer__nav { justify-content: center; }
}

@media (max-width: 680px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black-2);
    border-bottom: 1px solid var(--border-d);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 99;
  }
  .nav__menu.open { display: flex; }

  .nav__link {
    display: block;
    padding: 0.875rem 1.5rem;
    border-radius: 0;
  }
  .nav__link--cta {
    display: block;
    margin: 0.5rem 1.5rem;
    text-align: center;
    border-radius: var(--radius);
  }

  .form-row--two { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }

  .program__phase { grid-template-columns: 60px 1fr; gap: 1rem; }
  .program__phase-num { font-size: 2.5rem; }

  .hero__heading { font-size: clamp(3.5rem, 15vw, 6rem); }
}

@media (max-width: 480px) {
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
