/* ==========================================================================
   EVOLVE CORE STYLESHEET — FUNCTIONAL MOVEMENT & ERGONOMIC LONGEVITY
   Deterministic Profile 1 (Prefix: ev-) | Google Ads Safe Architecture
   ========================================================================== */

:root {
  --ev-primary: #0f172a;
  --ev-secondary: #1e293b;
  --ev-accent: #10b981;
  --ev-accent-hover: #059669;
  --ev-accent-light: #ecfdf5;
  --ev-bg: #f8fafc;
  --ev-surface: #ffffff;
  --ev-surface-alt: #f1f5f9;
  --ev-border: #e2e8f0;
  --ev-text: #0f172a;
  --ev-text-muted: #64748b;
  --ev-text-light: #94a3b8;
  --ev-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ev-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ev-radius-sm: 6px;
  --ev-radius-md: 12px;
  --ev-radius-lg: 18px;
  --ev-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --ev-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --ev-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
}

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

html {
  font-family: var(--ev-font-body);
  background-color: var(--ev-bg);
  color: var(--ev-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ev-font-heading);
  color: var(--ev-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
p { margin-bottom: 1rem; color: var(--ev-text-muted); }
p:last-child { margin-bottom: 0; }

.ev-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.ev-main {
  flex: 1 0 auto;
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.ev-header {
  background: var(--ev-surface);
  border-bottom: 1px solid var(--ev-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.ev-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.ev-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ev-font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ev-primary);
  letter-spacing: -0.03em;
}

.ev-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--ev-primary);
  border-radius: var(--ev-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ev-accent);
}

.ev-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

.ev-nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ev-secondary);
  padding: 0.5rem 0.25rem;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.ev-nav-link:hover,
.ev-nav-link.ev-active {
  color: var(--ev-accent);
}

.ev-nav-link.ev-active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ev-accent);
  border-radius: 2px;
}

.ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--ev-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.ev-btn-primary {
  background: var(--ev-accent);
  color: #ffffff;
}

.ev-btn-primary:hover {
  background: var(--ev-accent-hover);
  color: #ffffff;
}

.ev-btn-navy {
  background: var(--ev-primary);
  color: #ffffff;
}

.ev-btn-navy:hover {
  background: var(--ev-secondary);
  color: #ffffff;
}

.ev-btn-outline {
  background: transparent;
  border-color: var(--ev-border);
  color: var(--ev-secondary);
}

.ev-btn-outline:hover {
  background: var(--ev-surface-alt);
  border-color: var(--ev-secondary);
}

.ev-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ev-primary);
  min-width: 44px;
  min-height: 44px;
}

/* ==========================================================================
   HERO SECTION (SPLIT-SCREEN 50/50 FOR PROFILE 1)
   ========================================================================== */
.ev-hero-split {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, var(--ev-surface) 0%, var(--ev-bg) 100%);
  border-bottom: 1px solid var(--ev-border);
}

.ev-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.ev-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--ev-accent-light);
  color: var(--ev-accent-hover);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ev-hero-title {
  margin-bottom: 1.25rem;
}

.ev-hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ev-text-muted);
  margin-bottom: 2rem;
}

.ev-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.ev-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ev-border);
}

.ev-stat-item h4 {
  font-size: 1.6rem;
  color: var(--ev-primary);
  margin-bottom: 0.2rem;
}

.ev-stat-item p {
  font-size: 0.825rem;
  color: var(--ev-text-muted);
  line-height: 1.3;
}

.ev-hero-media {
  position: relative;
}

.ev-media-card {
  position: relative;
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  box-shadow: var(--ev-shadow-lg);
  border: 1px solid var(--ev-border);
}

.ev-media-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  padding: 1.25rem;
  border-radius: var(--ev-radius-md);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ev-media-overlay h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.ev-media-overlay p {
  color: var(--ev-text-light);
  font-size: 0.85rem;
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.ev-section {
  padding: 5rem 0;
}

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

.ev-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.ev-section-header.ev-text-left {
  text-align: left;
  margin-left: 0;
}

.ev-section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ev-accent);
  margin-bottom: 0.75rem;
}

.ev-section-header h2 {
  margin-bottom: 1rem;
}

.ev-section-header p {
  font-size: 1.05rem;
  line-height: 1.65;
}

.ev-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ev-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.ev-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ev-card {
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-md);
  padding: 2rem;
  transition: all 0.25s ease;
  box-shadow: var(--ev-shadow-sm);
  display: flex;
  flex-direction: column;
}

.ev-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ev-shadow-md);
  border-color: rgba(16, 185, 129, 0.4);
}

.ev-card-icon {
  width: 48px;
  height: 48px;
  background: var(--ev-accent-light);
  color: var(--ev-accent);
  border-radius: var(--ev-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.ev-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.ev-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.ev-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ev-accent);
  min-height: 44px;
}

.ev-card-link:hover {
  color: var(--ev-accent-hover);
}

/* ==========================================================================
   INTERACTIVE MODULE: PACE & HEART RATE CALCULATOR
   ========================================================================== */
.ev-calc-wrapper {
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-lg);
  box-shadow: var(--ev-shadow-md);
  overflow: hidden;
}

.ev-calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
}

.ev-calc-inputs {
  padding: 2.5rem;
  background: var(--ev-surface);
  border-right: 1px solid var(--ev-border);
}

.ev-calc-outputs {
  padding: 2.5rem;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
}

.ev-field-group {
  margin-bottom: 1.5rem;
}

.ev-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ev-secondary);
  margin-bottom: 0.5rem;
}

.ev-field-val {
  color: var(--ev-accent);
  font-weight: 700;
}

.ev-range-slider {
  width: 100%;
  height: 8px;
  background: var(--ev-border);
  border-radius: 4px;
  outline: none;
  accent-color: var(--ev-accent);
  cursor: pointer;
  min-height: 44px;
}

.ev-select, .ev-input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 1rem;
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-sm);
  font-family: var(--ev-font-body);
  font-size: 0.95rem;
  color: var(--ev-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.ev-select:focus, .ev-input:focus {
  border-color: var(--ev-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.ev-zone-card {
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.ev-zone-card:last-child {
  margin-bottom: 0;
}

.ev-zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ev-zone-name {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ev-zone-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ev-zone-bpm {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--ev-font-heading);
  color: var(--ev-primary);
}

.ev-zone-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--ev-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.ev-zone-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.ev-zone-desc {
  font-size: 0.825rem;
  color: var(--ev-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   FORMS & INQUIRY
   ========================================================================== */
.ev-form {
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-md);
  padding: 2.5rem;
  box-shadow: var(--ev-shadow-md);
}

.ev-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ev-textarea {
  width: 100%;
  min-height: 130px;
  padding: 0.75rem 1rem;
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-sm);
  font-family: var(--ev-font-body);
  font-size: 0.95rem;
  color: var(--ev-text);
  outline: none;
  resize: vertical;
}

.ev-textarea:focus {
  border-color: var(--ev-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.ev-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  opacity: 0;
}

/* ==========================================================================
   CALL TO ACTION & HIGHLIGHTS
   ========================================================================== */
.ev-cta-box {
  background: var(--ev-primary);
  border-radius: var(--ev-radius-lg);
  padding: 3.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--ev-shadow-lg);
}

.ev-cta-content h2 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.ev-cta-content p {
  color: var(--ev-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0;
}

/* ==========================================================================
   LEGAL & CORPORATE FOOTER
   ========================================================================== */
.ev-footer {
  background: var(--ev-primary);
  color: #ffffff;
  padding: 4.5rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ev-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.ev-footer-col h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.ev-footer-desc {
  color: var(--ev-text-light);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.ev-footer-links {
  list-style: none;
}

.ev-footer-links li {
  margin-bottom: 0.65rem;
}

.ev-footer-links a {
  color: var(--ev-text-light);
  font-size: 0.9rem;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.ev-footer-links a:hover {
  color: var(--ev-accent);
}

.ev-entity-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ev-radius-sm);
  padding: 1rem;
  font-size: 0.825rem;
  color: var(--ev-text-light);
  line-height: 1.55;
}

.ev-entity-card strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
}

.ev-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ev-text-light);
}

.ev-footer-bottom a {
  color: var(--ev-text-light);
  text-decoration: underline;
}

.ev-footer-bottom a:hover {
  color: var(--ev-accent);
}

.ev-footer-disclaimer {
  font-size: 0.775rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.5;
}

/* ==========================================================================
   COOKIE BANNER (CONSENT MODE V2 / GDPR)
   ========================================================================== */
.ev-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  border-radius: var(--ev-radius-md);
  padding: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: evSlideUp 0.35s ease-out;
}

@keyframes evSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ev-cookie-text {
  font-size: 0.875rem;
  color: var(--ev-text-muted);
  line-height: 1.55;
  margin: 0;
}

.ev-cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .ev-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .ev-calc-grid {
    grid-template-columns: 1fr;
  }
  .ev-calc-inputs {
    border-right: none;
    border-bottom: 1px solid var(--ev-border);
  }
}

@media (max-width: 768px) {
  .ev-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ev-grid-3, .ev-grid-2, .ev-grid-4 {
    grid-template-columns: 1fr;
  }
  .ev-form-grid {
    grid-template-columns: 1fr;
  }
  .ev-hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .ev-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
  .ev-nav-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ev-surface);
    border-bottom: 1px solid var(--ev-border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--ev-shadow-md);
  }
  .ev-nav-menu.ev-open {
    display: flex;
  }
  .ev-mobile-toggle {
    display: block;
  }
  .ev-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
