/* ================================================================
   machmich.fit — Design System
   Daniel Schandl Personal Training
   CI: DEIN RAUM — Navy + Amber + Red
   ================================================================ */

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

:root {
  --navy: #1B2433;
  --surface-dark: #242B3D;
  --surface-dark-hover: #2C3448;
  --amber: #C49332;
  --amber-hover: #D4A43E;
  --amber-glow: rgba(196,147,50,.15);
  --amber-subtle: rgba(196,147,50,.08);
  --bg-light: #F5F4F1;
  --surface-light: #ECEAE5;
  --surface-light-hover: #E3E0DA;
  --text-primary: #1A1A1A;
  --text-secondary: #6E7179;
  --text-on-dark: #E8E6E1;
  --text-muted-dark: #9498A4;
  --red: #C44B4B;
  --red-subtle: rgba(196,75,75,.1);
  --success: #2D7D52;
  --white: #FFFFFF;
  --border-light: rgba(27,36,51,.08);
  --border-dark: rgba(232,230,225,.08);
  --shadow-sm: 0 1px 3px rgba(27,36,51,.06);
  --shadow-md: 0 4px 16px rgba(27,36,51,.08);
  --shadow-lg: 0 8px 32px rgba(27,36,51,.12);
  --shadow-lift: 0 12px 40px rgba(27,36,51,.16);
  --shadow-amber: 0 4px 20px rgba(196,147,50,.2);
  --radius: 8px;
  --radius-sm: 6px;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(196,147,50,.25); color: var(--navy); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Layout ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
section { padding: clamp(4rem, 10vh, 7rem) 0; position: relative; }
.section-dark { background: var(--navy); color: var(--text-on-dark); }
.section-surface { background: var(--surface-light); }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

.section-label {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amber);
  margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem;
}
.section-label::before { content: ''; width: 28px; height: 1.5px; background: var(--amber); }

.amber { color: var(--amber); }
.text-muted { color: var(--text-secondary); }

.divider { width: 60px; height: 2px; background: var(--amber); margin: 2rem 0; }
.divider-center { margin-left: auto; margin-right: auto; }

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0; transition: all .35s ease;
}
.nav.scrolled {
  background: rgba(27,36,51,.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,230,225,.06);
  padding: .7rem 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand {
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--white);
  text-decoration: none; display: flex; align-items: center; gap: .75rem;
}
.nav-monogram {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--amber); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: .75rem;
  color: var(--navy); letter-spacing: .02em;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-body); font-size: .8rem; font-weight: 500;
  color: var(--text-muted-dark); text-decoration: none; letter-spacing: .01em;
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--amber); }
.nav-links .btn-dark { color: var(--white); }

/* Mobile menu */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--white);
  position: absolute; left: 5px; transition: all .3s ease;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 15px; }

.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,36,51,.98); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
  color: var(--text-on-dark); transition: color .25s;
}
.mobile-menu a:hover { color: var(--amber); }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  letter-spacing: .02em; padding: .75rem 1.75rem; border-radius: var(--radius);
  cursor: pointer; transition: all .25s ease; border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber); color: var(--navy); border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); box-shadow: var(--shadow-amber); }
.btn-secondary {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-dark {
  background: var(--amber); color: var(--navy); border-color: var(--amber);
}
.btn-dark:hover { background: var(--amber-hover); box-shadow: var(--shadow-amber); }
.btn-outline-light {
  background: transparent; color: var(--text-on-dark); border-color: rgba(232,230,225,.2);
}
.btn-outline-light:hover { border-color: var(--amber); color: var(--amber); }
.btn-sm { font-size: .75rem; padding: .55rem 1.25rem; }
.btn-lg { font-size: .95rem; padding: .85rem 2rem; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border-light); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.75rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 22px; height: 22px; }
.card-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.card-text { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; }
.card-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  color: var(--amber); margin-top: 1rem; transition: gap .2s ease;
}
.card-link:hover { gap: .6rem; }

/* Goal cards (landing page) */
.goal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.goal-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--border-light);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none; color: inherit;
}
.goal-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--amber);
}
.goal-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.goal-card-icon svg { width: 24px; height: 24px; }
.goal-card h3 { margin-bottom: .5rem; }
.goal-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.goal-card-cta {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  color: var(--amber); display: inline-flex; align-items: center; gap: .3rem;
  transition: gap .2s ease;
}
.goal-card:hover .goal-card-cta { gap: .6rem; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--navy); position: relative; overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(196,147,50,.025) 40px, rgba(196,147,50,.025) 41px);
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,147,50,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--amber); }
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-muted-dark);
  max-width: 540px; line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-line { width: 60px; height: 2px; background: var(--amber); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero-scroll span {
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-muted-dark);
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* Subpage hero (smaller) */
.hero-sub-page {
  min-height: 60vh; padding-top: 6rem;
}
.hero-sub-page .hero-content { max-width: 640px; }

/* ─── Pain Points ───────────────────────────────────────────── */
.pain-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.pain-point {
  padding: 1.75rem; border-left: 3px solid var(--red);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.pain-point h4 { margin-bottom: .5rem; color: var(--navy); }
.pain-point p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Solution / How It Works ───────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700;
  color: var(--amber-glow); position: absolute; top: -0.5rem; left: -0.25rem;
  line-height: 1; z-index: 0;
}
.step-content { position: relative; z-index: 1; padding-top: 2rem; }
.step h4 { margin-bottom: .5rem; }
.step p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Testimonials ──────────────────────────────────────────── */
.testimonial {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--border-light); position: relative;
}
.testimonial-mark {
  font-family: var(--font-head); font-size: 3.5rem; font-weight: 800;
  color: var(--amber); line-height: 1; margin-bottom: .5rem;
}
.testimonial-text {
  font-size: 1.05rem; line-height: 1.7; color: var(--text-primary); margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author { font-family: var(--font-head); font-size: .85rem; font-weight: 600; }
.testimonial-role { font-size: .75rem; color: var(--text-secondary); }

/* Dark testimonial */
.section-dark .testimonial {
  background: var(--surface-dark); border-color: var(--border-dark);
}
.section-dark .testimonial-text { color: var(--text-on-dark); }
.section-dark .testimonial-author { color: var(--white); }
.section-dark .testimonial-role { color: var(--text-muted-dark); }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 700px; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; cursor: pointer; gap: 1rem;
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
  color: var(--text-primary); background: none; border: none; width: 100%; text-align: left;
}
.faq-question:hover { color: var(--amber); }
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.faq-icon svg { width: 16px; height: 16px; stroke: currentColor; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: .9rem; color: var(--text-secondary); line-height: 1.7;
}

/* Dark FAQ */
.section-dark .faq-item { border-bottom-color: var(--border-dark); }
.section-dark .faq-question { color: var(--text-on-dark); }
.section-dark .faq-question:hover { color: var(--amber); }
.section-dark .faq-answer-inner { color: var(--text-muted-dark); }

/* ─── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  display: flex; justify-content: center; gap: clamp(2rem, 4vw, 4rem);
  flex-wrap: wrap; padding: 2rem 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-mono); font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700; color: var(--amber); line-height: 1;
}
.stat-label {
  font-size: .8rem; color: var(--text-secondary); margin-top: .3rem;
}
.section-dark .stat-number { color: var(--amber); }
.section-dark .stat-label { color: var(--text-muted-dark); }

/* ─── About Daniel (Teaser) ─────────────────────────────────── */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-photo-placeholder {
  aspect-ratio: 3/4; border-radius: var(--radius);
  background: var(--surface-light); display: flex; align-items: center;
  justify-content: center;
}
.about-photo-placeholder span {
  font-family: var(--font-mono); font-size: .7rem; color: var(--text-secondary);
  letter-spacing: .1em; text-transform: uppercase;
}
.about-photo {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 3/4; object-fit: cover; object-position: center top;
}
.about-content blockquote {
  font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600; line-height: 1.5; border-left: 3px solid var(--amber);
  padding-left: 1.25rem; margin-bottom: 1.5rem;
}
.about-content p { font-size: .95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }

/* ─── CTA Section ───────────────────────────────────────────── */
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted-dark); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy); padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--white);
  margin-bottom: .75rem;
}
.footer-brand-sub {
  font-size: .85rem; color: var(--text-muted-dark); line-height: 1.6;
}
.footer h4 {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  font-size: .85rem; color: var(--text-muted-dark); transition: color .25s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border-dark); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p {
  font-family: var(--font-mono); font-size: .65rem;
  color: var(--text-muted-dark); letter-spacing: .05em;
}

/* ─── Member Placeholder ────────────────────────────────────── */
.member-placeholder {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.member-lock {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--surface-dark); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 2rem;
}
.member-lock svg { width: 32px; height: 32px; }

/* ─── Legal Pages ───────────────────────────────────────────── */
.legal-content { padding-top: 8rem; padding-bottom: 4rem; }
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.legal-content p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.8; }
.legal-content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-content li { color: var(--text-secondary); line-height: 1.8; margin-bottom: .25rem; }

/* ─── Animations ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity .65s ease, transform .65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity .65s ease, transform .65s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.25s}
.d4{transition-delay:.35s} .d5{transition-delay:.45s} .d6{transition-delay:.55s}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-teaser { grid-template-columns: 1fr; }
  .about-photo-placeholder { max-width: 300px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: 85vh; }
  .hero-sub-page { min-height: 50vh; }
  .stats-bar { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .goal-cards { grid-template-columns: 1fr; }
  .pain-points { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
