:root {
  --brand: #005450;
  --brand-light: #0f766e;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --radius: 16px;
}

/* Base Styles */
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  scroll-behavior: smooth; /* Makes the jump to #services look elegant */
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Header & Navigation */
.header {
  border-bottom: 4px solid var(--brand);
  background: #fff;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-img { height: 45px; }
.header-text-logo { 
  font-size: 22px; 
  font-weight: 800; 
  color: var(--brand); 
  text-decoration: none; 
}

.main-nav { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 15px; }
.nav-links a { 
  text-decoration: none; 
  color: #334155; 
  font-weight: 500; 
  font-size: 14px; 
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand-light); }

/* Partner Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropbtn { 
  background-color: var(--brand); 
  color: white; 
  padding: 8px 16px; 
  border: none; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 600; 
  font-size: 13px;
  transition: background 0.2s;
}
.dropbtn:hover { background-color: var(--brand-light); }

.dropdown-content { 
  display: none; 
  position: absolute; 
  right: 0; 
  background-color: white; 
  min-width: 160px; 
  box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
  z-index: 1001; 
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { 
  padding: 12px 16px; 
  display: block; 
  text-decoration: none; 
  color: #334155; 
  font-size: 13px; 
}
.dropdown-content a:hover { background-color: #f1f5f9; color: var(--brand); }

/* Hero Section & Fold Optimization */
/* Hero Optimization */
.hero { 
  padding: 0; 
  text-align: center; 
  background: #f1f5f9; /* Matches the carousel background */
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 60vh; /* Adjusted height to give the full photo room to breathe */
  overflow: hidden;
  background: #000; /* Black background to frame photos if they are different aspect ratios */
}

.slide { 
  position: absolute; 
  top: 0; left: 0; width: 100%; height: 100%; 
  opacity: 0; transition: opacity 1s; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; z-index: 1; }

.slide img { 
  max-width: 100%; 
  max-height: 100%; 
  /* FIXED: 'contain' ensures the whole rider and bike are visible without cropping */
  object-fit: contain; 
}

.slide-overlay {
  position: absolute;
  bottom: 0; 
  width: 100%;
  background: rgba(0, 84, 80, 0.7); /* Semi-transparent bar so it doesn't block the bike */
  color: white; 
  padding: 15px 0; 
  z-index: 2;
}
.slide-overlay p { font-size: 18px; font-weight: bold; margin: 0; }

/* Headline Area - Pulled up to stay "Above the Fold" */
.hero-text-area { 
  padding: 20px 0;
  background: white;
}

.main-headline { 
  font-size: 28px; 
  color: var(--brand); 
  margin: 0 0 5px; 
  font-weight: 900; 
}

.sub-headline { 
  color: var(--muted); 
  font-size: 16px; 
  max-width: 650px; 
  margin: 0 auto 15px; 
}

/* Services Section - Closing the Gap */
#services {
  scroll-margin-top: 80px;
  padding: 30px 0; /* Reduced padding to pull section up */
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Headlines Area */
.hero-text-area { padding: 20px 0; }
.main-headline { 
  font-size: clamp(28px, 5vw, 40px); 
  color: var(--brand); 
  margin: 0 0 10px; 
  font-weight: 900; 
  line-height: 1.1; 
}
.toh-span { 
  color: var(--brand-light); 
  display: block; 
  font-size: 0.6em; 
  margin-top: 5px; 
}
.sub-headline { 
  color: var(--muted); 
  font-size: clamp(14px, 3vw, 18px); 
  max-width: 700px; 
  margin: 0 auto 20px; 
  line-height: 1.5; 
}

/* Action Buttons */
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.btn { 
  padding: 14px 28px; 
  border-radius: 50px; 
  font-weight: 700; 
  text-decoration: none; 
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn.primary { background: var(--brand); color: white; }
.btn.outline { border: 2px solid var(--brand); color: var(--brand); }

/* Services Section (Fixed Jump Link) */
#services {
  scroll-margin-top: 80px; /* Prevents sticky header from covering title */
  padding: 80px 0;
  background: #f8fafc;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }

/* Footer */
.footer { 
  background: #f8fafc; 
  padding: 60px 0 30px; 
  margin-top: 40px; 
  border-top: 1px solid #e2e8f0; 
  font-size: 0.9rem;
}
.legal-badge { 
  background: #e0f2f1; 
  color: var(--brand); 
  padding: 6px 14px; 
  border-radius: 6px; 
  font-weight: 700; 
  display: inline-block; 
  margin-top: 12px; 
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .header-content { flex-direction: column; gap: 15px; text-align: center; }
  .main-nav { flex-direction: column; gap: 10px; }
  .hero-carousel { height: 40vh; }
  .main-headline { font-size: 26px; }
}