:root {
  --primary: #0f6b57; /* slightly brighter green for better contrast */
  --accent: #dc6633;
  --bg: #0f1512; /* lighter hero base for friendlier look */
  --text: #0e1615;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(0,0,0,.08);
  --container-padding: clamp(16px, 4vw, 24px);
  --section-spacing: clamp(48px, 8vw, 48px);
  --section-bg: transparent;
  --section-alt-bg: #f2fbf7; /* toned-down green for gentler separation */
  --section-border: #e8eceb;
  --section-shadow: 0 8px 20px rgba(11,45,37,.03);
  --text-sm: clamp(14px, 2.5vw, 16px);
  --text-base: clamp(16px, 3vw, 18px);
  --text-lg: clamp(18px, 3.5vw, 22px);
}

* { 
  box-sizing: border-box; 
}

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

body { 
  margin: 0; 
  padding: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); 
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { 
  width: min(1200px, 100% - 2 * var(--container-padding)); 
  margin: 0 auto; 
 /* padding: 0 var(--container-padding); */
}

/* Topbar */
.topbar { 
  position: sticky; 
  top: 0; 
  z-index: 1000; 
  backdrop-filter: saturate(180%) blur(20px); 
  background: rgba(255,255,255,.95); 
  border-bottom: 1px solid #e8eceb;
  transition: all 0.3s ease;
}

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: clamp(12px, 2vw, 16px) 0; 
  gap: 16px; 
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  text-decoration: none; 
  color: inherit;
  z-index: 1001;
}

.brand-logo { 
  width: clamp(32px, 5vw, 40px); 
  height: clamp(32px, 5vw, 40px); 
}

.brand-title { 
  font-weight: 800; 
  letter-spacing: 0.2px;
  font-size: var(--text-base);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-menu { 
  display: flex; 
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
}

.nav-menu a { 
  text-decoration: none; 
  color: var(--text); 
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 8px 8px;
  transition: color 0.2s ease;
}

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

.nav-menu a.btn { 
  margin-left: 8px; 
}

/* Hero */
.hero {
    background: radial-gradient(1000px 520px at 90% -20%, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(180deg, var(--bg), #0e221d 40%, #0f1512);
    color: #eef6f4;
    min-height: clamp(500px, 80vh, 700px);
    display: flex;
    align-items: center;
}

.hero-inner { 
  display: grid; 
  grid-template-columns: 1.2fr 1fr; 
  align-items: center; 
  gap: clamp(24px, 5vw, 48px); 
  width: 100%;
}

.hero h1 { 
  font-size: clamp(28px, 6vw, 56px); 
  margin: 0 0 clamp(12px, 2vw, 16px); 
  line-height: 1.1; 
  font-weight: 800;
}

.hero p { 
  font-size: var(--text-lg); 
  opacity: 0.9; 
  margin-bottom: clamp(16px, 3vw, 24px);
}

.hero-cta { 
  display: flex; 
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 16px); 
  margin-bottom: clamp(16px, 3vw, 24px);
}

.badges { 
  display: flex; 
  flex-wrap: wrap; 
  gap: clamp(8px, 2vw, 14px); 
  padding: 0; 
  margin: 0; 
  list-style: none; 
}

.badges li { 
  background: rgba(255,255,255,.92); 
  border: 1px solid rgba(14,58,49,0.06); 
  padding: clamp(6px, 1.5vw, 10px) clamp(10px, 2vw, 14px); 
  border-radius: 999px; 
  font-weight: 600; 
  font-size: var(--text-sm);
  white-space: nowrap;
  color: var(--primary);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo { 
  width: 100%; 
  max-width: clamp(200px, 40vw, 320px); 
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.3)); 
}

/* Buttons */
.btn { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 14px) clamp(16px, 3vw, 24px); 
  border-radius: 999px; 
  text-decoration: none; 
  font-weight: 700; 
  font-size: var(--text-sm);
  border: 1px solid transparent; 
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 44px; /* Better touch targets */
  white-space: nowrap;
}

.btn:hover, .btn:focus { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary { 
  background: #0d6b56; /* slightly darker green for contrast */
  color: #fff; 
  box-shadow: var(--shadow); 
}

.btn-accent { 
  background: var(--accent); 
  color: #fff; 
  box-shadow: var(--shadow); 
}

.btn-ghost { 
  background: transparent; 
  color: #eef6f4; 
  border: 2px solid rgba(255,255,255,.4); 
}

.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

/* Sections */
section { 
  scroll-margin-top: 80px; 
  padding: var(--section-spacing) 0;
}

section:first-of-type {
  padding-top: 0;
}



/* FAQ: use a wrapper grid with gap to avoid visible margins on the section edge */
.faq { background: none; }
.faq .faq-list { display: grid; gap: 0; padding: 0 0; }
.faq .faq-list details { padding: 6px; background: var(--card); border-radius: 10px; border: 1px solid var(--section-border); }
.faq summary { padding: 6px 0; }

/* Philosophy icons (inline SVG data URIs) */
.icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 8px;
  background-size: 28px 28px;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-respect { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='3' fill='%230f6b57'/><path d='M4 20c0-3.3 4-5 8-5s8 1.7 8 5' fill='%230f6b57' opacity='0.9'/></svg>"); }
.icon-confidence { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.6 5.3L20 9l-4 3.6L17 20l-5-2.6L7 20l1-7.4L4 9l5.4-1.7L12 2z' fill='%23186354'/></svg>"); }
.icon-team { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='8' cy='8' r='2.2' fill='%230f6b57'/><circle cx='16' cy='8' r='2.2' fill='%230f6b57'/><path d='M4 18c1.7-2.3 5.3-3 8-3s6.3.7 8 3v1H4v-1z' fill='%230f6b57'/></svg>"); }
.icon-goal { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 3h10v2a3 3 0 0 1-3 3H10A3 3 0 0 1 7 5V3z' fill='%230f6b57'/><path d='M6 9v2a5 5 0 0 0 4 4.9V18H8a1 1 0 0 0-1 1v1h10v-1a1 1 0 0 0-1-1h-2v-2.1A5 5 0 0 0 18 11V9' fill='%23186354'/><circle cx='17' cy='5' r='0.8' fill='%23dc6633'/></svg>"); }
.icon-determined { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='%230f6b57' opacity='0.12'/><circle cx='12' cy='12' r='6' fill='%230f6b57' /><circle cx='12' cy='12' r='2.2' fill='%23186354' /></svg>"); }

/* Alternating section contrast */
/* Full-bleed alternating section backgrounds using pseudo-elements */
section {
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  padding: 36px 0;
}

/* Ensure content is above the background whether the section contains a .container
   or the section itself has the .container class */
section > .container,
section.container {
  position: relative;
  z-index: 2;
}



section:nth-of-type(odd)::before {
  background: var(--section-bg);
}

section:nth-of-type(even)::before {
  background: var(--section-alt-bg);
}

/* Optional subtle card lift on alt sections */
section:nth-of-type(even) .card,
section:nth-of-type(even) .panel,
section:nth-of-type(even) .trainer,
section:nth-of-type(even) .price {
  box-shadow: var(--section-shadow);
  border-color: var(--section-border);
}

/* If a section defines its own full-bleed background (hero, pricing),
   disable the alternating pseudo-background so the section's gradient shows across the viewport. */
section.hero::before,
section.pricing::before {
  display: none;
}



/* Keep pricing section overflow visible so its full-bleed background shows
   but keep normal container centering so content remains centered. */
section.pricing {
  overflow: visible;
}

h2 { 
  font-size: clamp(28px, 5vw, 42px); 
  margin: 0 0 clamp(24px, 4vw, 32px); 
  font-weight: 800;
  line-height: 1.2;
}

h3 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 clamp(12px, 2vw, 16px);
}

/* Improved readability */
p {
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0 0 16px;
}

li {
  display: block;
}

ul, ol {
  font-size: var(--text-base);
  line-height: 1.6;
}

.offers .single-card { display: flex; justify-content: center; margin: 18px 0 16px; }
.offers .single-card .card { max-width: 400px; }
.card { background: var(--card); border: 1px solid #e8eceb; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 6px; }
.card ul { margin: 8px 0 0 18px; }

.training-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 16px 0 24px; }
.training-time, .training-location { text-align: center; }
.training-time p, .training-location p { background: linear-gradient(135deg, var(--primary), #186354); color: white; padding: 16px 20px; border-radius: 12px; margin: 0; font-size: 16px; box-shadow: var(--shadow); }

.groups .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { background: linear-gradient(180deg, #fff, #fbfbfb); border: 1px solid #e8eceb; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.ticks { list-style: none; padding-left: 0; }
.ticks li::before { content: "✓ "; color: var(--primary); font-weight: 900; }

.trainers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 20px 0; }
.trainer { background: var(--card); border: 1px solid #e8eceb; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.trainer h3 { color: var(--primary); margin: 0 0 16px; font-size: 24px; }
.trainer-info p { margin: 8px 0; line-height: 1.5; }
.trainer-info strong { color: var(--primary); }

/* Team figure and intro */
.team-intro { margin: 0 0 12px; font-weight: 600; }

/* Small overlay team image in about section */
.about { position: relative; }
.team-figure {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 140px;
  height: 140px;
  margin: 0;
  z-index: 5;
  pointer-events: none;
}
.team-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  display: block;
}
.team-figure figcaption { display: none; }

@media (max-width: 768px) {
  .team-figure { position: static; width: 100%; height: auto; margin: 12px 0 18px; pointer-events: auto; }
  .team-figure img { width: 100%; height: auto; border-radius: 12px; }
  .team-figure figcaption { display: block; margin-top: 8px; font-size: 14px; color: #6b6b6b; text-align: center; }
}

/* Desktop: ensure the about section has space for the overlay and refine position */
@media (min-width: 769px) {
  .about { padding-top: 88px; }
  .team-figure {
    top: 22px;
    right: 28px;
    width: 140px;
    height: 140px;
  }
}

.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.price { background: #fff; border: 1px solid #e8eceb; border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.price .euro { font-size: 40px; margin: 6px 0 4px; font-weight: 800; color: var(--primary); }
.price-note { font-size: 14px; color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.price.featured { border-color: var(--accent); transform: translateY(-3px); }
/* Remove left padding for lists inside price cards */
.price ul { padding-left: 0; list-style-position: inside; }

.faq details { border: 1px solid #e8eceb; border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; }


.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form label { font-weight: 700; display: grid; gap: 6px; }
.form input, .form select, .form textarea { 
  border: 2px solid #cfd7d5; 
  border-radius: 12px; 
  padding: clamp(12px, 2vw, 16px) 14px; 
  font-size: 16px; /* Prevent zoom on iOS */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 58, 49, 0.1);
  outline: none;
}

.form input:focus:invalid, .form select:focus:invalid, .form textarea:focus:invalid {
  border-color: #dc2626;
}

/* Show invalid state after user attempted to submit the form */
.form.submitted input:invalid,
.form.submitted select:invalid,
.form.submitted textarea:invalid {
  border-color: #dc2626;
}

.form .agree { 
  display: inline-flex; 
  gap: 8px; 
  align-items: flex-start; 
  font-weight: 600;
  font-size: var(--text-sm);
}

.form .agree input[type="checkbox"] {
  margin-top: 4px;
  min-width: 16px;
  width: 16px;
  height: 16px;
}

.small { 
  font-size: 13px; 
  opacity: 0.7; 
}

/* Better touch targets */
@media (max-width: 768px) {
  .form input, .form select, .form textarea {
    min-height: 48px;
    font-size: 16px; /* Prevent zoom */
  }
  
  .btn {
    min-height: 48px;
    padding: 14px 24px;
  }
}

/* Footer */
.footer { background: #0c1412; color: #e8f1ef; padding: 20px 0; margin-top: 26px; }
.foot { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; }
.foot-left { display: flex; align-items: center; gap: 10px; }
.foot-logo { width: 34px; height: 34px; }
.foot-links a { color: #e8f1ef; opacity: .8; text-decoration: none; margin-left: 14px; }
.foot-copy { opacity: .7; }

/* Mobile-first Responsive Design */

/* Mobile Navigation */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .nav-menu.open {
    left: 0;
  }

  .nav-menu a {
    font-size: clamp(18px, 4vw, 24px);
    padding: 16px 16px;
  }

  /* Hamburger Animation */
  .mobile-menu-toggle.open .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.open .hamburger:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.open .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Mobile Layouts */
@media (max-width: 768px) {
  .hero-inner { 
    grid-template-columns: 1fr; 
    gap: clamp(32px, 6vw, 48px);
    text-align: center;
    margin: 0 16px 0 16px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-cta {
    justify-content: center;
  }

  .training-info { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }

  .groups .split { 
    grid-template-columns: 1fr; 
  }

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

  .price-cards { 
    grid-template-columns: 1fr; 
  }

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

  .form .row { 
    grid-template-columns: 1fr; 
  }

  .foot {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .foot-links {
    order: -1;
  }
}

/* Tablet Layouts */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-inner {
    gap: 32px;
  }

  .training-info {
    gap: 20px;
  }

  .groups .split,
  .trainers,
  .price-cards {
    gap: 20px;
  }
}

/* Desktop: place about text and image side-by-side with equal width */
@media (min-width: 769px) {
  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }

  .about > h2,
  .about > .team-intro,
  .about > .trainers {
    grid-column: 1;
  }

  .about > .team-figure {
    grid-column: 2;
    position: static;
    width: 100%;
    max-width: 420px;
    justify-self: end;
    height: auto;
    pointer-events: none;
    margin: 0;
  }

  .team-figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  /* Trainers should span the full width below the two-column about area */
  .about > .trainers {
    grid-column: 1 / -1;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero-inner {
    gap: 64px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-logo,
  .brand-logo,
  .foot-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8f1ef;
    --card: #1a2e2a;
    --bg: #0a1511;
  }

  body {
    background: #0f1512;
  }

  .topbar {
    background: rgba(15, 21, 18, 0.95);
    border-bottom-color: #2a3e3a;
  }

  .card,
  .panel,
  .trainer,
  .price {
    background: var(--card);
    border-color: #2a3e3a;
  }

  /* Make headers black in even sections (they use a light alt background) */
  section:nth-of-type(even) :is(h2) {
    color: #0e1615
  }
  
  /* Make h3 black only in the philosophy section in dark mode */
  section.philosophy :is(h3, h4, p, div) {
    color: #0e1615;
  }
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus {
  outline-color: rgba(255, 255, 255, 0.8);
}

