/*
Theme Name: Lapa Landing Final
Theme URI: https://lapatrener.com/
Author: DH Marketing / Codex
Description: Elegancki landing page dla trenera personalnego Andrzeja "Lapy" Lapinskiego.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: lapa-landing-final
*/

:root {
  --bg: #090d14;
  --bg-2: #111827;
  --bg-3: #172033;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.085);
  --ink: #f5f7fb;
  --muted: #b5bdcb;
  --line: rgba(255, 255, 255, 0.13);
  --navy: #243b66;
  --navy-light: #35598f;
  --navy-deep: #101b31;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(53, 89, 143, 0.34), transparent 34rem),
    radial-gradient(circle at 88% 22%, rgba(69, 82, 118, 0.22), transparent 30rem),
    linear-gradient(145deg, #070a10 0%, #111827 45%, #090d14 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 13, 20, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 58px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus,
.site-footer a:hover,
.site-footer a:focus {
  color: #fff;
}

.nav-cta,
.button,
.form-card button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover,
.button:hover,
.form-card button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: rgba(255, 255, 255, 0.26);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.045);
}

.hero {
  min-height: calc(100vh - 76px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 10, 16, 0.92) 0%, rgba(10, 17, 30, 0.68) 47%, rgba(9, 13, 20, 0.2) 100%),
    linear-gradient(0deg, #090d14 0%, rgba(9, 13, 20, 0) 40%);
}

.hero-inner,
.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  padding: 135px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #eaf0fb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--navy-light);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(38px, 6.5vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: #dde4ee;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.stat {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(25, 36, 58, 0.9));
  padding: 24px;
}

.stat strong {
  display: block;
  color: #8fb1e4;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: clamp(66px, 8vw, 104px) 0;
}

.section.darker {
  background:
    radial-gradient(circle at 20% 0%, rgba(53, 89, 143, 0.14), transparent 28rem),
    linear-gradient(145deg, rgba(7, 10, 16, 0.7), rgba(23, 32, 51, 0.74));
}

.navy-band {
  background:
    radial-gradient(circle at 80% 0%, rgba(88, 123, 178, 0.28), transparent 30rem),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head.compact {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.section-head h2,
.split-copy h2,
.contact-copy h2 {
  margin-bottom: 14px;
}

.section-head p,
.split-copy p,
.contact-copy p {
  color: var(--muted);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 42px;
  align-items: center;
}

.split-copy blockquote {
  margin: 0 0 26px;
  padding-left: 20px;
  border-left: 4px solid var(--navy-light);
  color: #fff;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 900;
}

.split-copy ul,
.offer-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.split-copy li,
.offer-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: #dce3ee;
  font-weight: 700;
}

.split-copy li::before,
.offer-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 2px;
  background: #8fb1e4;
}

.photo-stack {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 14px;
  align-items: end;
}

.photo-stack img,
.gallery img,
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06);
}

.photo-stack img:first-child {
  min-height: 480px;
}

.photo-stack img:last-child {
  min-height: 380px;
  margin-bottom: -34px;
  border: 10px solid rgba(9, 13, 20, 0.95);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.offer-card {
  min-height: 300px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.offer-card strong {
  display: block;
  margin-bottom: 16px;
  color: #8fb1e4;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.offer-card h3 {
  margin-bottom: 12px;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 245px 245px;
  gap: 14px;
}

.gallery img:first-child {
  grid-row: span 2;
}

.testimonial-slider {
  position: relative;
}

.testimonial-slider input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.testimonial-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.105)),
    linear-gradient(135deg, rgba(7, 10, 16, 0.22), rgba(53, 89, 143, 0.26));
  backdrop-filter: blur(10px);
}

.testimonial-track {
  display: flex;
  transition: transform 0.45s ease;
}

#opinia-1:checked ~ .testimonial-window .testimonial-track {
  transform: translateX(0);
}

#opinia-2:checked ~ .testimonial-window .testimonial-track {
  transform: translateX(-100%);
}

#opinia-3:checked ~ .testimonial-window .testimonial-track {
  transform: translateX(-200%);
}

#opinia-4:checked ~ .testimonial-window .testimonial-track {
  transform: translateX(-300%);
}

.testimonial {
  min-width: 100%;
  min-height: 380px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5.2vw, 68px);
}

.testimonial p {
  max-width: 880px;
  margin-bottom: 26px;
  color: #fff;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.18;
  font-weight: 900;
}

.testimonial cite {
  color: #dce7f8;
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.testimonial-dots label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: #dce7f8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#opinia-1:checked ~ .testimonial-dots label[for="opinia-1"],
#opinia-2:checked ~ .testimonial-dots label[for="opinia-2"],
#opinia-3:checked ~ .testimonial-dots label[for="opinia-3"],
#opinia-4:checked ~ .testimonial-dots label[for="opinia-4"] {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.78fr);
  gap: 40px;
  align-items: stretch;
}

.contact-copy {
  padding: 38px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.contact-lines {
  margin: 28px 0;
  display: grid;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
}

.contact-lines span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-photo {
  min-height: 500px;
}

.form-card {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(3, 7, 14, 0.72);
  color: var(--ink);
  padding: 13px 15px;
  font: inherit;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: #929bad;
}

.form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.site-footer {
  padding: 32px 0;
  background: rgba(3, 7, 14, 0.78);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner a {
  color: #dce7f8;
}

@media (max-width: 920px) {
  .nav-wrap {
    min-height: 72px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 88px 0 62px;
  }

  .stats,
  .section-head,
  .split,
  .offer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-stack img:first-child,
  .photo-stack img:last-child,
  .contact-photo {
    min-height: 350px;
  }

  .photo-stack img:last-child {
    margin-bottom: 0;
  }

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

  .gallery {
    grid-template-rows: none;
    grid-auto-rows: 240px;
  }

  .gallery img:first-child {
    grid-row: auto;
  }

  .testimonial {
    min-height: 340px;
  }

  .contact-copy {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .brand span {
    font-size: 12px;
  }

  .nav-cta {
    padding-inline: 13px;
    font-size: 11px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .gallery {
    grid-auto-rows: 220px;
  }
}
