/* ==========================================================================
   EcomHolistic Global Stylesheet
   Shared styles for all pages: variables, reset, header, footer, buttons,
   animations, and base responsive rules
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --eh-sage: #0500FF;
  --eh-sage-hover: #0400D6;
  --eh-folk-dark: #2D2926;
  --eh-folk-mid: #5C5650;
  --eh-drip-peach: #F2A695;
  --eh-drip-cream: #FFFEEF;
  --eh-dark-bg: #3F3A36;
  --eh-white: #FFFFFF;
  --eh-font-heading: 'Space Grotesk', sans-serif;
  --eh-font-body: 'DM Sans', sans-serif;
  --eh-font-editorial: 'Georgia', serif;
  --eh-cta-primary: #FA4028;
  --eh-cta-primary-hover: #E03520;
  --eh-cta-secondary: #0500FF;
  --eh-cta-secondary-hover: #0400D6;
  --eh-border-light: #E0D8D2;
  --eh-text-on-dark: #D4D0CC;
  --eh-content-max: 1200px;
}

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

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

body {
  font-family: var(--eh-font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--eh-folk-dark);
  background-color: var(--eh-drip-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }
svg { max-width: 100%; height: auto; overflow: visible; }

/* Prevent code blocks from causing horizontal overflow */
pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  word-wrap: break-word;
}

code {
  word-break: break-word;
}

pre code {
  word-break: normal;
}

/* Screen reader only — visible to assistive tech, hidden visually */
.eh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content link — visible on focus for keyboard users */
.eh-skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--eh-folk-dark);
  color: var(--eh-white);
  font-family: var(--eh-font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.eh-skip-link:focus {
  top: 0;
  outline: 2px solid var(--eh-sage);
  outline-offset: 2px;
}

/* Focus-visible outlines for keyboard navigation (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--eh-sage);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--eh-sage);
  outline-offset: 2px;
}
/* Remove outline for mouse/touch users */
:focus:not(:focus-visible) {
  outline: none;
}

a {
  color: var(--eh-sage);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--eh-font-heading);
  letter-spacing: -0.3px;
  color: var(--eh-folk-dark);
}

h1 { font-size: 48px; font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -0.4px; }
h3 { font-size: 26px; font-weight: 600; line-height: 1.3; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.eh-btn {
  display: inline-block;
  font-family: var(--eh-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 16px 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-align: center;
  text-decoration: none;
}
.eh-btn:hover { transform: translateY(-1px); }
.eh-btn:hover { text-decoration: none; }

.eh-btn-primary {
  background-color: var(--eh-cta-primary);
  color: var(--eh-white);
  border-color: var(--eh-cta-primary);
}
.eh-btn-primary:hover {
  background-color: var(--eh-cta-primary-hover);
  border-color: var(--eh-cta-primary-hover);
  color: var(--eh-white);
}

.eh-btn-secondary {
  background-color: var(--eh-cta-secondary);
  color: var(--eh-white);
  border-color: var(--eh-cta-secondary);
}
.eh-btn-secondary:hover {
  background-color: var(--eh-cta-secondary-hover);
  border-color: var(--eh-cta-secondary-hover);
  color: var(--eh-white);
}

.eh-btn-outline-peach {
  background-color: transparent;
  color: var(--eh-drip-peach);
  border-color: var(--eh-drip-peach);
}
.eh-btn-outline-peach:hover {
  background-color: var(--eh-drip-peach);
  color: var(--eh-dark-bg);
}

.eh-btn-primary-inverted {
  background-color: var(--eh-white);
  color: var(--eh-cta-primary);
  border-color: var(--eh-white);
}
.eh-btn-primary-inverted:hover {
  background-color: var(--eh-drip-cream);
  border-color: var(--eh-drip-cream);
  color: var(--eh-cta-primary-hover);
}

.eh-btn-secondary-white {
  background-color: transparent;
  color: var(--eh-white);
  border-color: var(--eh-white);
}
.eh-btn-secondary-white:hover {
  background-color: var(--eh-white);
  color: var(--eh-cta-secondary);
}

.eh-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   HEADER — Sticky navigation
   ========================================================================== */
.eh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.eh-header.eh-header-scrolled {
  background-color: var(--eh-drip-cream);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.eh-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 32px;
}

/* Logo */
.eh-header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.eh-header-logo:hover { text-decoration: none; }

.eh-logo-svg {
  width: 180px;
  height: 28px;
}

.eh-logo-text {
  transition: fill 0.3s ease;
}

.eh-header-scrolled .eh-logo-text {
  fill: var(--eh-folk-dark);
}

/* Desktop Nav */
.eh-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.eh-nav-list {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

.eh-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--eh-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--eh-folk-dark);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.eh-nav-link:hover {
  color: var(--eh-sage);
  background-color: rgba(5, 0, 255, 0.06);
  text-decoration: none;
}

.eh-nav-arrow {
  font-size: 10px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

/* Header CTA */
.eh-header-cta {
  flex-shrink: 0;
}

.eh-btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* Hamburger — hidden on desktop */
.eh-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.eh-hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--eh-folk-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.eh-hamburger.eh-active .eh-hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.eh-hamburger.eh-active .eh-hamburger-line:nth-child(2) {
  opacity: 0;
}
.eh-hamburger.eh-active .eh-hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mega Menu (5-column dropdown from Services)
   -------------------------------------------------------------------------- */
.eh-nav-has-mega,
.eh-nav-has-dropdown {
  position: relative;
}

.eh-mega-menu {
  position: fixed;
  top: 68px; /* header height */
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease 400ms, transform 0.2s ease 400ms, visibility 0.2s ease 400ms;
  z-index: 100;
  padding-top: 20px; /* Invisible hover bridge — generous gap for diagonal mouse paths */
}

/* Large invisible hover bridge connecting nav link to mega menu */
.eh-mega-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 40px;
}

.eh-nav-has-mega:hover .eh-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.eh-mega-inner {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  gap: 32px;
  background-color: var(--eh-white);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(87, 83, 78, 0.12);
  padding: 28px 36px;
  position: relative;
  overflow: hidden;
}

.eh-mega-col {}

.eh-mega-col h4 {
  font-family: var(--eh-font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--eh-folk-dark);
  margin-bottom: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.eh-mega-col a {
  display: block;
  font-family: var(--eh-font-body);
  font-size: 14px;
  color: var(--eh-folk-mid);
  line-height: 2;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}
.eh-mega-col a:hover {
  color: var(--eh-sage);
  text-decoration: none;
}

/* Simple dropdown (Learn) */
.eh-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease 400ms, transform 0.2s ease 400ms, visibility 0.2s ease 400ms;
  z-index: 100;
  padding-top: 16px; /* Invisible hover bridge */
}

.eh-dropdown-inner {
  background-color: var(--eh-white);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}

.eh-nav-has-dropdown:hover .eh-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.eh-dropdown-inner a {
  display: block;
  font-family: var(--eh-font-body);
  font-size: 14px;
  color: var(--eh-folk-mid);
  line-height: 2.4;
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
  z-index: 1;
}
.eh-dropdown-inner a:hover {
  color: var(--eh-sage);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Mobile Menu Panel — Slide from right with accordion
   -------------------------------------------------------------------------- */
.eh-mobile-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--eh-drip-cream);
  z-index: 999;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
}

.eh-mobile-menu.eh-mobile-open {
  transform: translateX(0);
  visibility: visible;
}

.eh-mobile-nav-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
}

.eh-mobile-nav-list {
  list-style: none;
}

/* Parent items (Services, Learn) button */
.eh-mobile-parent-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--eh-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--eh-folk-dark);
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid #E0D8D2;
  background: none;
  cursor: pointer;
  text-align: left;
}

/* Direct links (About, Contact) */
.eh-mobile-link {
  display: block;
  font-family: var(--eh-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--eh-folk-dark);
  padding: 16px 20px;
  border-bottom: 1px solid #E0D8D2;
  text-decoration: none;
}
.eh-mobile-link:hover {
  color: var(--eh-sage);
  text-decoration: none;
}

/* Chevron indicator */
.eh-mobile-chevron {
  font-size: 12px;
  opacity: 0.5;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.eh-mobile-parent.eh-expanded > .eh-mobile-parent-btn .eh-mobile-chevron {
  transform: rotate(180deg);
}

/* Submenu (hidden by default) */
.eh-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.eh-mobile-parent.eh-expanded > .eh-mobile-submenu {
  max-height: 1200px;
}

/* Category buttons inside Services */
.eh-mobile-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--eh-font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--eh-folk-mid);
  padding: 12px 20px 4px 36px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.eh-mobile-category.eh-expanded > .eh-mobile-cat-btn .eh-mobile-chevron {
  transform: rotate(180deg);
}

/* Category links (hidden by default) */
.eh-mobile-cat-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.eh-mobile-category.eh-expanded > .eh-mobile-cat-links {
  max-height: 500px;
}

/* Service links inside categories + Learn direct links */
.eh-mobile-cat-links a,
.eh-mobile-submenu > a {
  display: block;
  font-family: var(--eh-font-body);
  font-size: 16px;
  color: var(--eh-folk-dark);
  padding: 8px 20px 8px 36px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.eh-mobile-cat-links a:hover,
.eh-mobile-submenu > a:hover {
  color: var(--eh-sage);
  text-decoration: none;
}

/* Fixed CTA at bottom of mobile panel */
.eh-mobile-cta {
  margin: 0 20px 20px;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   FOOTER — Jasper-inspired dark layout
   ========================================================================== */
.eh-footer {
  background-color: #1A1A1A;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  padding: 80px 40px 0;
  position: relative;
}

.eh-footer-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Footer Main Grid — 5 columns
   -------------------------------------------------------------------------- */
.eh-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 0.7fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
}

/* --------------------------------------------------------------------------
   Footer Brand Column (Column 1)
   -------------------------------------------------------------------------- */
.eh-footer-brand-col {
  padding-right: 20px;
}

.eh-footer-logo {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
}
.eh-footer-logo:hover { text-decoration: none; }
.eh-footer-logo img {
  height: 30px;
  width: auto;
}

.eh-footer-tagline {
  font-family: var(--eh-font-body);
  font-size: 14px;
  color: #9CA3AF;
  line-height: 1.7;
  max-width: 300px;
}

/* --------------------------------------------------------------------------
   Footer Link Columns (Columns 2-5)
   -------------------------------------------------------------------------- */
.eh-footer-col h4,
.eh-footer-heading {
  font-family: var(--eh-font-heading);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: #FFFFFF;
  margin-bottom: 24px;
  font-weight: 600;
}

.eh-footer-col ul {
  list-style: none;
}

.eh-footer-col ul li {
  line-height: 2.1;
}

.eh-footer-col ul a {
  font-family: var(--eh-font-body);
  font-size: 14px;
  color: #9CA3AF;
  display: block;
  text-decoration: none;
  transition: color 0.2s ease;
}
.eh-footer-col ul a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Footer Contact Column
   -------------------------------------------------------------------------- */
.eh-footer-contact address {
  font-style: normal;
}

.eh-contact-address {
  font-family: var(--eh-font-body);
  font-size: 14px;
  color: #9CA3AF;
  line-height: 1.6;
  margin-bottom: 20px;
}

.eh-contact-phone,
.eh-contact-email {
  font-family: var(--eh-font-body);
  font-size: 14px;
  color: #9CA3AF;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eh-contact-phone a,
.eh-contact-email a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s ease;
}
.eh-contact-phone a:hover,
.eh-contact-email a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.eh-contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #9CA3AF;
}

/* --------------------------------------------------------------------------
   Footer Bottom Bar
   -------------------------------------------------------------------------- */
.eh-footer-bottom {
  border-top: 1px solid #2D2D2D;
  padding: 32px 0;
}

.eh-footer-bottom-main {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

/* Footer social icons (bottom bar) */
.eh-footer-social {
  display: flex;
  gap: 20px;
}

.eh-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  transition: color 0.2s ease;
  text-decoration: none;
}
.eh-social-link:hover {
  color: #FFFFFF;
  text-decoration: none;
}
.eh-social-link svg {
  width: 20px;
  height: 20px;
}

/* Copyright + legal links row */
.eh-footer-bottom-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eh-footer-bottom-legal p {
  font-family: var(--eh-font-body);
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 0;
}

.eh-footer-legal-links {
  display: flex;
  gap: 24px;
}

.eh-footer-legal-links a {
  font-family: var(--eh-font-body);
  font-size: 13px;
  color: #6B7280;
  text-decoration: none;
  transition: color 0.2s ease;
}
.eh-footer-legal-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   ANIMATIONS — Continuous SVG motion + scroll-triggered entrances
   ========================================================================== */

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes eh-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes eh-float-slow {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  70% { transform: translateY(-12px); }
}

@keyframes eh-rock {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(3deg); }
  70% { transform: rotate(-3deg); }
}

@keyframes eh-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes eh-breathe-lg {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes eh-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(5px, -4px) rotate(2deg); }
  60% { transform: translate(10px, -8px) rotate(4deg); }
  80% { transform: translate(6px, -3px) rotate(1deg); }
}

@keyframes eh-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes eh-dash-flow {
  to { stroke-dashoffset: -20; }
}

@keyframes eh-spin {
  to { transform: rotate(360deg); }
}

@keyframes eh-wave {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(8deg); }
  40% { transform: rotate(-4deg); }
  60% { transform: rotate(6deg); }
  80% { transform: rotate(-6deg); }
}

@keyframes eh-launch {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  70% { transform: translate(12px, -14px) rotate(6deg); opacity: 1; }
  85% { transform: translate(16px, -18px) rotate(7deg); opacity: 0.3; }
  86% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  95% { opacity: 0; }
  96% { opacity: 1; }
}

@keyframes eh-float-h {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(5px, -4px); }
  65% { transform: translate(3px, -7px); }
}

@keyframes eh-confetti {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(-3px); }
}

@keyframes eh-bounce-icon {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes eh-magnify-rock {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}

@keyframes eh-airplane-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -4px); }
}

@keyframes eh-color-pop {
  0% { filter: saturate(0.5) brightness(0.95); }
  50% { filter: saturate(1.4) brightness(1.08); }
  100% { filter: saturate(1) brightness(1); }
}

@keyframes eh-color-shift {
  0% { fill: #0500FF; }
  25% { fill: #F2A695; }
  50% { fill: #A8A29E; }
  75% { fill: #0500FF; }
  100% { fill: #0500FF; }
}

@keyframes eh-hue-cycle {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Scroll-Triggered Entrance Animations — Progressive Enhancement
   IMPORTANT: Animations only activate when JS is confirmed running (html.eh-js).
   Without JS, all content is fully visible. In-app browsers skip animations
   entirely to prevent blank page / scroll-lock bugs.
   -------------------------------------------------------------------------- */

/* Default: everything visible. No opacity:0 in CSS alone — ever. */
.eh-animate-in {
  opacity: 1;
  transform: none;
}

/* JS is running AND not an in-app browser — safe to animate */
html.eh-js:not(.eh-inapp) .eh-animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Slide-in from left (methodology odd rows) */
html.eh-js:not(.eh-inapp) .eh-animate-in.eh-slide-left {
  transform: translateX(-60px);
}
html.eh-js:not(.eh-inapp) .eh-animate-in.eh-slide-left .eh-methodology-illust {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

/* Slide-in from right (methodology even rows) */
html.eh-js:not(.eh-inapp) .eh-animate-in.eh-slide-right {
  transform: translateX(60px);
}
html.eh-js:not(.eh-inapp) .eh-animate-in.eh-slide-right .eh-methodology-illust {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

html.eh-js:not(.eh-inapp) .eh-animate-in.eh-slide-left.eh-visible,
html.eh-js:not(.eh-inapp) .eh-animate-in.eh-slide-right.eh-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Specificity must match the hide rule above (html.eh-js:not(.eh-inapp) ...),
   otherwise the initial opacity: 0 / translateX() on .eh-methodology-illust
   outranks the reveal and the SVG illustrations stay invisible even after
   .eh-visible is added by the IntersectionObserver. */
html.eh-js:not(.eh-inapp) .eh-animate-in.eh-slide-left.eh-visible .eh-methodology-illust,
html.eh-js:not(.eh-inapp) .eh-animate-in.eh-slide-right.eh-visible .eh-methodology-illust {
  opacity: 1;
  transform: translateX(0);
}

.eh-stagger-1 { transition-delay: 0s; }
.eh-stagger-2 { transition-delay: 0.12s; }
.eh-stagger-3 { transition-delay: 0.24s; }
.eh-stagger-4 { transition-delay: 0.36s; }
.eh-stagger-5 { transition-delay: 0.48s; }
.eh-stagger-6 { transition-delay: 0.6s; }

/* --------------------------------------------------------------------------
   Color Vibrancy — Color-pop on scroll appearance
   -------------------------------------------------------------------------- */
.eh-animate-in.eh-visible {
  animation: eh-color-pop 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --------------------------------------------------------------------------
   Trusted By — Logo Strip (shared across all pages)
   -------------------------------------------------------------------------- */
.eh-trusted {
  padding: 48px 40px;
  background-color: var(--eh-drip-cream);
}
.eh-trusted-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.eh-trusted-label {
  font-family: var(--eh-font-heading);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--eh-folk-mid);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 1;
  color: var(--eh-folk-mid);
}
.eh-trusted-sep {
  width: 1px;
  height: 20px;
  background: rgba(168, 162, 158, 0.2);
  flex-shrink: 0;
}
.eh-trusted-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
}
.eh-trusted-logos svg {
  height: 18px;
  width: auto;
  color: var(--eh-folk-dark);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}
.eh-trusted-logos svg:hover {
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   Accessibility: Reduced Motion
   -------------------------------------------------------------------------- */
/* In-app browsers: force everything visible, no animations */
html.eh-inapp .eh-animate-in,
html.eh-inapp .eh-animate-in.eh-slide-left,
html.eh-inapp .eh-animate-in.eh-slide-right,
html.eh-inapp .eh-animate-in .eh-methodology-illust,
html.eh-inapp .eh-ecom-seo-animate,
html.eh-inapp .eh-svc-animate-in,
html.eh-inapp .eh-svchub-animate-in,
html.eh-inapp .eh-guides-animate,
html.eh-inapp .eh-cs-animate,
html.eh-inapp .eh-nl-animate {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .eh-animate-in,
  .eh-animate-in.eh-slide-left,
  .eh-animate-in.eh-slide-right {
    opacity: 1;
    transform: none;
  }

  .eh-animate-in.eh-slide-left .eh-methodology-illust,
  .eh-animate-in.eh-slide-right .eh-methodology-illust {
    opacity: 1;
    transform: none;
  }

  .eh-anim-bar {
    transform: scaleY(1);
  }

  /* Disable color-pop */
  .eh-animate-in.eh-visible {
    animation: none;
    filter: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (768-1199px) — Header, Footer, Base Typography
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }

  /* Footer: tablet */
  .eh-footer { padding: 60px 24px 0; }
  .eh-footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .eh-footer-brand-col {
    grid-column: 1 / -1;
    padding-right: 0;
    max-width: none;
  }
  .eh-footer-tagline { max-width: none; }
  .eh-footer-bottom-main { flex-direction: column; gap: 20px; }
  .eh-footer-bottom-legal { flex-direction: column; gap: 12px; align-items: center; text-align: center; }

  /* Trusted logos: tablet */
  .eh-trusted { padding: 40px 24px; }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile (< 768px) — Header, Footer, Buttons, Base Typography
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  body { font-size: 16px; }

  /* Header: mobile mode */
  .eh-header-nav { display: none; }
  .eh-header-cta { display: none; }
  .eh-hamburger { display: flex; }

  /* Buttons */
  .eh-btn { padding: 14px 24px; font-size: 15px; width: 100%; }
  .eh-btn-group { flex-direction: column; align-items: center; gap: 12px; }
  .eh-btn-group .eh-btn { max-width: 320px; }

  /* Trusted logos: mobile — compact inline row */
  .eh-trusted { padding: 20px 20px; }
  .eh-trusted-inner { flex-direction: column; gap: 10px; }
  .eh-trusted-sep { display: none; }
  .eh-trusted-label { font-size: 10px; }
  .eh-trusted-logos { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .eh-trusted-logos svg { height: 14px; max-width: 80px; }

  /* Footer: single column on mobile */
  .eh-footer { padding: 48px 24px 0; }
  .eh-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .eh-footer-brand-col { padding-right: 0; }
  .eh-footer-tagline { max-width: none; }
  .eh-footer-social { justify-content: center; }
  .eh-footer-bottom-main { flex-direction: column; gap: 20px; align-items: center; }
  .eh-footer-bottom-legal { flex-direction: column; gap: 12px; align-items: center; text-align: center; }
  .eh-footer-legal-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* --------------------------------------------------------------------------
   Responsive: Small Mobile (< 480px) — Base Typography
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
  h1 { font-size: 26px; }
  h2 { font-size: 23px; }

  /* Footer: small mobile */
  .eh-footer { padding: 48px 20px 0; }
}
