/* ===========================================================
   Agata Wąsowicz — Trenerka Strength & Conditioning
   Wspólny arkusz stylów dla index.html i onboarding.html
   =========================================================== */

:root {
  --bg: #FAFAF8;
  --bg-alt: #F1F0EA;
  --text: #1C1C1A;
  --text-muted: #6B6B63;
  --accent: #2F5D4E;
  --accent-dark: #234A3E;
  --accent-light: #E7EFE9;
  --border: #E4E2DB;
  --white: #FFFFFF;
  --radius: 14px;
  --max-width: 1120px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--accent); text-decoration: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75em;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(47, 93, 78, 0.25);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta { display: none; }

@media (min-width: 760px) {
  .nav-cta { display: inline-flex; }
}

.nav-mobile-links {
  display: none;
}

@media (max-width: 759px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
}

.hero .container {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  margin-bottom: 0.4em;
}

.hero-lede {
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-visual {
  /* PLACEHOLDER — podmień na prawdziwe zdjęcie:
     background: url('../images/hero.jpg') center/cover no-repeat; */
  background: linear-gradient(155deg, var(--accent-light) 0%, var(--bg-alt) 60%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 24px;
}

.hero-badge {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-badge strong { color: var(--text); display: block; font-size: 0.95rem; }

/* ---------- Section shell ---------- */

section { padding: 72px 0; }

.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- O mnie ---------- */

.about .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .about .container { grid-template-columns: 0.85fr 1.15fr; }
}

.about-visual {
  /* PLACEHOLDER — podmień na prawdziwe zdjęcie profilowe:
     background: url('../images/about.jpg') center/cover no-repeat; */
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px;
  text-align: center;
}

.about-content .eyebrow { margin-bottom: 0.5em; }

/* ---------- Cards / Specjalizacje ---------- */

.cards-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

.tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---------- Dla kogo / cele ---------- */

.goals-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .goals-grid { grid-template-columns: repeat(3, 1fr); }
}

.goal-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.goal-item h4 { font-size: 1rem; margin-bottom: 0.3em; }
.goal-item p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Proces ---------- */

.steps-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

.step-item { position: relative; padding-top: 8px; }

.step-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.step-item h4 { font-size: 1rem; margin-bottom: 0.3em; }
.step-item p { font-size: 0.9rem; }

/* ---------- CTA final ---------- */

.cta-final {
  background: var(--accent);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
  color: var(--white);
}

.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(255,255,255,0.85); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-final .btn-primary { background: var(--white); color: var(--accent-dark); box-shadow: none; }
.cta-final .btn-primary:hover { background: var(--bg-alt); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }

/* ===========================================================
   CENNIK
   =========================================================== */

.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(47, 93, 78, 0.12);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.price-card .price-tagline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }

.price-amount {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--text);
  margin-bottom: 2px;
}

.price-amount small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }

.price-per-session {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
}

.price-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-top: 1px solid var(--border);
}

.price-card li:first-child { border-top: none; }

.pricing-online {
  margin-top: 28px;
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pricing-online h4 { font-size: 1rem; margin-bottom: 2px; }
.pricing-online p { font-size: 0.88rem; margin-bottom: 0; }
.pricing-online .price-amount { font-size: 1.5rem; margin-bottom: 0; }

/* Skrócony cennik w ankiecie (przy pytaniu o budżet) */
.quiz-pricing-teaser {
  background: var(--accent-light);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 0.88rem;
}

.quiz-pricing-teaser ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.quiz-pricing-teaser li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.quiz-pricing-teaser li strong { color: var(--accent-dark); }
.quiz-pricing-teaser a { font-size: 0.8rem; display: inline-block; margin-top: 8px; }

/* ===========================================================
   BREADCRUMBS
   =========================================================== */

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 18px 0 0;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; }

/* ===========================================================
   PAGE HERO (podstrony usług / lokalizacji / o mnie)
   =========================================================== */

.page-hero { padding: 40px 0 56px; }

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  max-width: 20ch;
}

.page-hero .hero-lede { max-width: 60ch; }

/* ===========================================================
   PROSE (blog / dłuższe treści)
   =========================================================== */

.prose { max-width: 720px; margin: 0 auto; }

.prose h2 {
  font-size: 1.4rem;
  margin-top: 1.6em;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.3em;
}

.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }

.prose .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5em;
}

.callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
}

.callout p:last-child { margin-bottom: 0; }

/* ===========================================================
   BLOG LISTING
   =========================================================== */

.blog-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.blog-card .meta { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.blog-card p { flex: 1; }
.blog-card .read-more { font-weight: 600; font-size: 0.9rem; }

/* ===========================================================
   FAQ (native <details>/<summary> — bez JS)
   =========================================================== */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.05rem;
  padding: 16px 28px 16px 0;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  color: var(--accent);
  font-family: var(--font-body);
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  padding-bottom: 18px;
  margin: 0;
}

/* ===========================================================
   RICH FOOTER (sitemap-style, używany na wszystkich podstronach)
   =========================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  color: var(--text);
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { font-size: 0.88rem; max-width: 32ch; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===========================================================
   ONBOARDING / QUIZ
   =========================================================== */

.quiz-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.quiz-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
}

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

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 16%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.quiz-shell {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

.quiz-step { display: none; animation: fadeIn 0.35s ease; }
.quiz-step.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-step .eyebrow { text-align: left; }

.quiz-step h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.3em;
}

.quiz-step .quiz-sub { margin-bottom: 28px; }

.option-list {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card:hover { border-color: var(--accent); }

.option-card input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.field-group { margin-bottom: 20px; }

.field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.field-group input, .field-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--white);
  color: var(--text);
}

.field-group input:focus, .field-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  cursor: pointer;
}

.consent-row input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.price-box {
  background: var(--accent-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.price-box .price { font-family: var(--font-head); font-size: 2rem; color: var(--accent-dark); }
.price-box .price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; }
.price-box p { margin: 6px 0 0; font-size: 0.85rem; }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.quiz-error {
  color: #B3413A;
  font-size: 0.85rem;
  margin-top: -14px;
  margin-bottom: 18px;
  display: none;
}

.quiz-error.visible { display: block; }

/* ---------- Thank you / summary screen ---------- */

.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0 32px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.summary-row:last-child { border-bottom: none; }
.summary-row dt { color: var(--text-muted); }
.summary-row dd { margin: 0; text-align: right; font-weight: 500; max-width: 60%; }

.calendar-box {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.calendar-box p { font-size: 0.88rem; }

/* ---------- Zdjęcia zaufania w ankiecie (placeholdery) ---------- */

.quiz-trust-card {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 36px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quiz-trust-photo-lg {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  flex-shrink: 0;
  /* PLACEHOLDER — podmień na: background: url('../images/about.jpg') center/cover no-repeat; */
  background: linear-gradient(155deg, var(--accent-light) 0%, var(--bg-alt) 60%, var(--white) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  text-align: center;
  color: var(--text-muted);
  padding: 8px;
}

.quiz-trust-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
.quiz-trust-card p { font-size: 0.85rem; margin-bottom: 0; }

.quiz-trust-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.quiz-trust-photo-sm {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  /* PLACEHOLDER — podmień na: background: url('../images/about.jpg') center/cover no-repeat; */
  background: linear-gradient(155deg, var(--accent-light) 0%, var(--bg-alt) 60%, var(--white) 100%);
  border: 1px solid var(--border);
}

.quiz-trust-mini span { font-size: 0.82rem; color: var(--text-muted); }
.quiz-trust-mini strong { color: var(--text); }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }
