/* 
  AR Personal Training - The Curated Equilibrium
  Design System Tokens & Global Styles
*/

:root {
  /* Color Palette */
  --navy: #031631;
  --gold: #725a38;
  --cream: #fcf9f3;
  --dark-grey: #1a1a1a;
  --mid-grey: #44474d;
  --light-grey: #e5e1da;
  --white: #ffffff;
  
  /* Background / Surface Shifts */
  --bg-main: var(--cream);
  --bg-surface-low: #f3f1ed;
  --bg-surface: #ffffff;
  
  /* Typography */
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Borders & Shadows */
  --ghost-border: rgba(3, 22, 49, 0.2);
  --ambient-shadow: 0 20px 40px -4px rgba(3, 22, 49, 0.06);
  --ambient-shadow-hover: 0 30px 60px -10px rgba(3, 22, 49, 0.1);
  
  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-xxl: 8rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--dark-grey);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Space for mobile CTA */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* Typography Classes */
.headline-lg {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-md {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.headline-sm {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.body-text {
  font-size: 1.125rem;
  color: var(--mid-grey);
  max-width: 50ch;
}
.body-text-sm {
  font-size: 1rem;
  color: var(--mid-grey);
}
.text-gold { color: var(--gold); }
.navy-text { color: var(--navy); }
.gold-text { color: var(--gold); }

/* Layout Helpers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-padding {
  padding: var(--space-xxl) 0;
}
@media (max-width: 768px) {
  .section-padding { padding: var(--space-xl) 0; }
}

.mb-small { margin-bottom: var(--space-md); }
.mb-medium { margin-bottom: var(--space-lg); }
.mb-large { margin-bottom: var(--space-xl); }
.mt-small { margin-top: var(--space-md); }
.mt-medium { margin-top: var(--space-lg); }
.mt-large { margin-top: var(--space-xl); }

.bg-shifted {
  background-color: var(--bg-surface-low);
}

/* Base Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: scale(1.02);
}

.btn-primary, .btn-navy {
  background-color: var(--navy);
  color: var(--white);
  box-shadow: var(--ambient-shadow);
}
.btn-primary:hover, .btn-navy:hover {
  box-shadow: var(--ambient-shadow-hover);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Specific Sections: Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(252, 249, 243, 0.85); /* Cream semi-transparent */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 225, 218, 0.5); /* Very subtle division */
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
}
.brand-sub {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
}
.desktop-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.7;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.desktop-nav a:hover {
  color: var(--gold);
  opacity: 1;
}
.lang-switch {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.lang-switch:hover { transform: scale(1.05); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
}

/* Hero Section */
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.hero {
  min-height: 90vh;
  padding-top: calc(var(--space-xxl) + 60px); 
}

@media (min-width: 992px) {
  .hero .container { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  order: 2;
  align-items: flex-start; /* Prevent stretching of buttons */
}
@media (min-width: 992px) {
  .hero-content { order: 1; }
}

.hero-image-wrapper {
  position: relative;
  order: 1;
}
@media (min-width: 992px) {
  .hero-image-wrapper { order: 2; }
}

.hero-image {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: transform 0.8s ease;
}
.hero-image:hover .hero-img {
  transform: scale(1.05); /* Subtle scale as per constraints */
}
.image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 22, 49, 0.2), transparent);
}
.hero-accent-lines {
  display: none;
}
@media (min-width: 992px) {
  .hero-accent-lines {
    display: block;
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    width: 6rem;
    height: 6rem;
    border-left: 1px solid rgba(114, 90, 56, 0.3);
    border-bottom: 1px solid rgba(114, 90, 56, 0.3);
  }
}

/* Philosophie Section */
.philosophy {
  display: flex;
  align-items: center;
}
.content-block {
  max-width: 48rem;
}
.divider {
  width: 4rem;
  height: 2px;
  background-color: var(--gold);
  margin: var(--space-lg) 0;
}
.philosophy-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--mid-grey);
}
.text-highlight {
  font-weight: 500;
  color: var(--dark-grey);
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  padding: 2.5rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  gap: 1.5rem;
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative;
}
.card:hover {
  transform: scale(1.01);
}

.card-white {
  background-color: var(--bg-surface);
  /* Use space instead of border for separation */
  box-shadow: 0 0 0 1px var(--bg-surface-low); 
}
.card-navy {
  background-color: var(--navy);
  color: var(--white);
  flex-direction: row;
}
@media (max-width: 768px) {
  .card-navy { flex-direction: column; }
}
.card-navy .headline-sm { color: var(--white); }
.card-navy .body-text-sm { color: rgba(255,255,255,0.7); }
.card-navy .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.card-image-box {
  flex: 1;
  border-radius: 0.5rem;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.card-cream {
  background-color: var(--light-grey);
}

.span-2 {
  grid-column: span 1;
}
@media (min-width: 768px) {
  .span-2 { grid-column: span 2; }
}

.card-icon {
  font-size: 2.5rem;
  color: var(--gold);
}
.card-phase {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 700;
  margin-top: auto;
}

.benefits-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--mid-grey);
}
.icon-small {
  font-size: 1.25rem;
  color: var(--gold);
}

.progress-arc {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hidden-mobile {
  display: none;
}
@media (min-width: 768px) {
  .hidden-mobile { display: flex; }
}
.arc-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.arc-bg {
  fill: none;
  stroke: var(--light-grey);
  stroke-width: 2;
}
.arc-fg {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-dasharray: 339; /* 2 * pi * 54 */
  stroke-dashoffset: 50; /* Adjust for 85% */
}
.arc-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.arc-number {
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.arc-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--mid-grey);
  letter-spacing: 0.1em;
}

/* Contact Section */
.contact-card {
  border-radius: 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-card { grid-template-columns: 1fr 1fr; }
}

.contact-form-wrapper {
  padding: var(--space-xl) var(--space-lg);
}
@media (max-width: 768px) {
  .contact-form-wrapper { padding: var(--space-xl) var(--space-md); }
}

.input-group {
  margin-bottom: 1.5rem;
}
.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ghost-border);
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark-grey);
  outline: none;
  transition: border-color 0.3s ease;
}
.input-group input:focus,
.input-group textarea:focus {
  border-bottom-color: var(--gold);
}
.input-group textarea {
  resize: none;
}

.w-full { width: 100%; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--mid-grey);
}
.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-image {
  position: relative;
  height: 100%;
}
.contact-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 22, 49, 0.1);
}

/* Footer */
.footer {
  border-top: 1px solid var(--light-grey);
  padding: var(--space-xl) var(--space-lg);
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .footer-brand { align-items: flex-start; }
}
.copyright {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  opacity: 0.4;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-link {
  background: none;
  border: none;
  font-family: var(--font-body);
  text-decoration: none;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  opacity: 0.4;
  cursor: pointer;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.footer-link:hover {
  color: var(--gold);
  opacity: 1;
}

/* Modal (Impressum) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 22, 49, 0.5); /* Navy transparent */
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background-color: var(--bg-main);
  padding: var(--space-xl) var(--space-lg);
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--ambient-shadow-hover);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal.is-open .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.modal-close:hover { opacity: 1; }
.modal-body {
  font-size: 0.875rem;
  color: var(--mid-grey);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.legal-heading {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
}

/* Form Success Message */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 1rem;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}
.mobile-nav.is-open {
  visibility: visible;
}
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(3, 22, 49, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav.is-open .mobile-nav-overlay {
  opacity: 1;
}
.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 3rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -20px 0 60px rgba(3, 22, 49, 0.15);
}
.mobile-nav.is-open .mobile-nav-drawer {
  transform: translateX(0);
}
.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  margin-bottom: 2rem;
}
.mobile-nav-close:hover { opacity: 1; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.mobile-nav-link {
  display: block;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.35;
  padding: 0.6rem 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
  width: 100%;
}
.mobile-nav-link:hover {
  opacity: 1;
  color: var(--gold);
}
.mobile-nav-footer {
  padding-top: 2rem;
  border-top: 1px solid var(--light-grey);
}

/* Mobile CTA */
.mobile-cta-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  height: 70px;
  background-color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -10px 40px rgba(3, 22, 49, 0.06);
}
@media (min-width: 768px) {
  .mobile-cta-wrapper { display: none; }
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}
.mobile-cta-btn:active {
  background-color: var(--dark-grey); /* Slightly darker on tap */
}
