/* style.css */

:root {
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  --font-secondary: "Merriweather", serif;

  /* Light Theme Colors */
  --color-background: #f9fafb;
  --color-surface: #ffffff;
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-secondary: #10b981;
  --color-text-primary: #1f2937;
  --color-text-secondary: #4b5563;
  --color-text-subtle: #9ca3af;
  --color-border: #e5e7eb;
  --color-accent: #8b5cf6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Spacing & Sizing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-width: 1280px;
  --container-padding: var(--spacing-lg);

  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #111827;
    --color-surface: #1f2937;
    --color-primary: #60a5fa;
    --color-primary-hover: #93c5fd;
    --color-secondary: #34d399;
    --color-text-primary: #f9fafb;
    --color-text-secondary: #d1d5db;
    --color-text-subtle: #6b7280;
    --color-border: #374151;
    --color-accent: #a78bfa;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2),
      0 2px 4px -1px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2),
      0 4px 6px -2px rgba(0, 0, 0, 0.15);
  }
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-medium),
    color var(--transition-medium);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
}

h2 {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-4xl));
}

h3 {
  font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-2xl));
}

p {
  margin-bottom: var(--spacing-md);
  max-width: 75ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
  padding-left: var(--spacing-md);
}

section {
  padding-top: var(--spacing-4xl);
  padding-bottom: var(--spacing-4xl);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-top: var(--spacing-md);
}

.main-header {
  background-color: color-mix(
    in srgb,
    var(--color-background) 80%,
    transparent
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 900;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-medium);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 600;
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.logo svg {
  color: var(--color-secondary);
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
  padding-left: 0;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: var(--spacing-sm) 0;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.nav-button {
  background-color: var(--color-primary);
  color: white;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  transition: background-color var(--transition-fast);
}

.nav-button:hover {
  background-color: var(--color-primary-hover);
  color: white;
  text-decoration: none;
}

.nav-button:hover::after {
  transform: scaleX(0);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  z-index: 1000;
}

.mobile-nav-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--color-text-primary);
}

.hero-section {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-4xl);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero-text .subtitle {
  font-size: var(--font-size-lg);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  max-width: 60ch;
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cta-button,
.cta-button-secondary {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  transition: var(--transition-medium);
  border: 2px solid transparent;
  cursor: pointer;
}

.cta-button {
  background-color: var(--color-primary);
  color: white;
}

.cta-button:hover {
  background-color: var(--color-primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.cta-button-secondary {
  background-color: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.cta-button-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.intro-block {
  text-align: center;
}

.intro-block h2 {
  margin-bottom: var(--spacing-lg);
}

.intro-block p {
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  padding-top: 0;
  padding-bottom: 0;
}

.section-divider hr {
  border: none;
  height: 1px;
  background-color: var(--color-border);
  max-width: 300px;
  margin: 0 auto;
}

.exercise-section h2,
.benefits-section h2,
.testimonials-section h2,
.faq-section h2,
.newsletter-form-wrapper h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.exercise-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.exercise-header svg {
  margin: 0 auto var(--spacing-md);
  color: var(--color-secondary);
}

.exercise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.exercise-card {
  background-color: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

.exercise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.exercise-card h3 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}

.exercise-card ul {
  list-style: none;
  padding: 0;
  margin-top: var(--spacing-md);
}

.exercise-card ul li {
  position: relative;
  padding-left: var(--spacing-lg);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
}

.exercise-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

.exercise-summary {
  margin-top: var(--spacing-3xl);
  padding: var(--spacing-lg);
  background-color: color-mix(
    in srgb,
    var(--color-secondary) 10%,
    var(--color-surface)
  );
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--border-radius-md);
  text-align: center;
}

.accordion {
  max-width: 800px;
  margin: var(--spacing-xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.accordion-item {
  background-color: var(--color-surface);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition-medium);
}

.accordion-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--spacing-lg);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  gap: var(--spacing-md);
}

.accordion-header:hover {
  background-color: color-mix(
    in srgb,
    var(--color-primary) 5%,
    var(--color-surface)
  );
}

.accordion-header > svg:first-child {
  color: var(--color-primary);
  flex-shrink: 0;
}

.accordion-header .accordion-icon {
  margin-left: auto;
  transition: transform var(--transition-medium);
  color: var(--color-text-subtle);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.accordion-content p {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.accordion-item.active .accordion-content {
  max-height: 500px; /* Adjust as needed */
}

.story-section {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.story-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.story-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.story-text h3 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
}

.cta-download-section {
  text-align: center;
  background-color: color-mix(
    in srgb,
    var(--color-accent) 10%,
    var(--color-background)
  );
}

.cta-content .cta-icon {
  margin: 0 auto var(--spacing-lg);
  width: 64px;
  height: 64px;
  background-color: var(--color-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.cta-content .cta-icon svg {
  color: var(--color-accent);
  width: 32px;
  height: 32px;
}

.cta-content p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-xl);
}

.testimonials-section {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.testimonial-card {
  background-color: var(--color-background);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-card::before {
  content: "“";
  font-family: var(--font-secondary);
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.1;
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-lg);
  line-height: 1;
}

.testimonial-card p {
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.testimonial-card footer {
  font-weight: 600;
  color: var(--color-text-primary);
}

.faq-section {
  padding-bottom: var(--spacing-2xl);
}

.faq-link {
  text-align: center;
  margin-top: var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

.newsletter-section {
  background-color: var(--color-surface);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.newsletter-image img {
  border-radius: var(--border-radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: none;
}

.newsletter-form-wrapper {
  padding: var(--spacing-2xl) 0;
}

#newsletter-form .form-group {
  margin-bottom: var(--spacing-lg);
}

#newsletter-form label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

#newsletter-form input[type="text"],
#newsletter-form input[type="email"] {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  transition: var(--transition-fast);
}

#newsletter-form input[type="text"]:focus,
#newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.form-group-checkbox input[type="checkbox"] {
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  accent-color: var(--color-primary);
}

.form-group-checkbox label {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text-secondary);
}

#newsletter-form button {
  width: 100%;
  border: none;
}

#thank-you-message h3 {
  color: var(--color-secondary);
  margin: var(--spacing-md) 0;
}

#thank-you-message p {
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.main-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-xl);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-column h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.footer-column.about {
  grid-column: 1 / -1;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-column ul a {
  color: var(--color-text-secondary);
}

.footer-column ul a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-column.contact p {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.footer-column.contact svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-text-subtle);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-xl);
  text-align: center;
  color: var(--color-text-subtle);
}

#cookie-banner {
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

#cookie-banner.visible {
  transform: translateY(0);
}

#cookie-banner p,
#cookie-banner button {
  font-size: var(--font-size-sm);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet Styles */
@media (min-width: 768px) {
  :root {
    --font-size-base: 1.125rem;
  }

  .nav-links {
    gap: var(--spacing-xl);
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .hero-text {
    text-align: left;
  }

  .exercise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-wrapper {
    grid-template-columns: 4fr 5fr;
    gap: var(--spacing-4xl);
  }

  .story-image {
    order: -1;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-content {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-image img {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 2fr;
  }

  .footer-column.about {
    grid-column: auto;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2xl);
    background-color: var(--color-surface);
    transform: translateX(100%);
    transition: transform var(--transition-medium);
    padding: var(--spacing-4xl);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: var(--font-size-2xl);
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-button {
    padding: var(--spacing-md) var(--spacing-xl);
  }
}

/* 2K and larger displays */
@media (min-width: 1536px) {
  :root {
    --container-width: 1440px;
    --font-size-base: 1.2rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
