/* ==========================================================================
   Ellavi — site styles
   All rules are scoped to .ellavi / .e-* so the stylesheet can be dropped into
   a WordPress theme without colliding with theme CSS.
   Brand: ink #281878, accent #a7228b, gradient #7089c4 -> #a63c96
   Type:  Jost (display + body), Signika (numerals / E-MOTIVE letters)
   ========================================================================== */

.ellavi {
  --ink: #281878;
  --ink-70: rgba(40, 24, 120, 0.7);
  --ink-12: rgba(40, 24, 120, 0.12);
  --accent: #a7228b;
  --accent-35: rgba(167, 34, 139, 0.35);
  --grad: linear-gradient(90deg, #7089c4 0%, #a63c96 100%);
  --tint: #f4eef7;
  --white: #fff;

  --wrap: 1440px;
  --gutter: clamp(1.15rem, 4vw, 4rem);
  --section-y: clamp(2.75rem, 6vw, 6rem);
  --radius: 18px;

  /* Fluid type scale, derived from the 1920px source design */
  --fs-hero: clamp(1.55rem, 4.05vw, 3.9rem);
  --fs-h1: clamp(2.1rem, 6.2vw, 5.6rem);
  --fs-h2: clamp(1.6rem, 3.4vw, 3rem);
  --fs-h3: clamp(1.25rem, 2.2vw, 2rem);
  --fs-sub: clamp(1.2rem, 2.6vw, 2.6rem);
  --fs-lede: clamp(1.02rem, 1.55vw, 1.6rem);
  --fs-body: clamp(0.98rem, 1.2vw, 1.32rem);
  --fs-small: clamp(0.88rem, 0.95vw, 1.05rem);

  font-family: 'Avant Garde', sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 100%;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

/* --- element resets, kept inside the scope -------------------------------
   :where() keeps these at zero specificity so the component classes below
   (and any theme overrides) win without needing !important. */
.ellavi *,
.ellavi *::before,
.ellavi *::after {
  box-sizing: border-box;
}

.ellavi :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) {
  margin: 0;
  padding: 0;
}
.ellavi :where(ul) {
  list-style: none;
}
.ellavi :where(img) {
  max-width: 100%;
  height: auto;
  display: block;
}
.ellavi :where(a) {
  color: var(--ink);
  text-decoration: none;
}
.ellavi :where(a:hover) {
  color: var(--accent);
}
.ellavi :where(input, textarea, button, select) {
  font: inherit;
  color: inherit;
}
.ellavi :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.ellavi ::selection {
  background: rgba(167, 34, 139, 0.2);
}

.e-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.e-skip {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 300;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: transform 0.18s ease;
}
.e-skip:focus {
  transform: translate(-50%, 0);
  color: #fff;
}

/* --- layout primitives --------------------------------------------------- */
.e-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.e-section {
  padding-block: var(--section-y);
  scroll-margin-top: clamp(88px, 12vh, 150px);
}
.e-section--tint {
  background: var(--tint);
}
.e-center {
  text-align: center;
}

.e-h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.e-h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.1;
}
.e-h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.15;
}
.e-sub {
  font-size: var(--fs-sub);
  font-weight: 400;
  line-height: 1.12;
  color: var(--accent);
}
.e-lede {
  font-size: var(--fs-lede);
  font-weight: 400;
  line-height: 1.28;
  text-wrap: pretty;
}
.e-measure {
  max-width: 68ch;
  margin-inline: auto;
}
.e-stack > * + * {
  margin-top: clamp(1rem, 1.8vw, 1.7rem);
}

/* --- buttons ------------------------------------------------------------- */
.e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 3.1em;
  padding: 0.55em 1.9em;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: clamp(1rem, 1.35vw, 1.5rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition:
    filter 0.18s ease,
    transform 0.18s ease;
}
.e-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff;
}
.e-btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.e-btn--ghost:hover {
  background: var(--accent);
  color: #fff;
}
.e-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 1.6vw, 1.6rem);
  justify-content: center;
}

/* ==========================================================================
   Header
   ========================================================================== */
.e-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-12);
}
.e-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2.5rem);
  min-height: 74px;
  padding-block: 0.5rem;
}
.e-logo {
  flex: none;
}
.e-logo img {
  width: auto;
  height: clamp(46px, 5.2vw, 88px);
}

.e-nav {
  margin-inline-start: auto;
}
.e-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.5vw, 1.9rem);
  font-size: clamp(0.9rem, 1.05vw, 1.28rem);
  font-weight: 600;
  white-space: nowrap;
}
.e-nav__list a {
  padding-block: 0.35rem;
  display: block;
}
.e-nav__list a[aria-current='page'] {
  color: var(--accent);
  box-shadow: inset 0 -3px 0 0 var(--accent);
}

.e-burger {
  display: none;
  margin-inline-start: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--ink-12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.e-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.e-burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.e-burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.e-burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Live counter */
.e-counter {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 430px;
}
.e-counter__label {
  font-size: clamp(0.72rem, 0.78vw, 0.95rem);
  line-height: 1.15;
  max-width: 8.5em;
}
.e-counter__label--right {
  text-align: left;
}
.e-counter__label--left {
  text-align: right;
}
.e-counter__caption {
  display: none;
}
.e-counter__digits {
  display: flex;
  gap: 4px;
}
.e-counter__digit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 2.2vw, 44px);
  height: clamp(36px, 3.3vw, 66px);
  border-radius: 5px;
  background: linear-gradient(
    180deg,
    #3f168f 0%,
    #3a1188 49%,
    #2f0d70 51%,
    #2a0b66 100%
  );
  box-shadow: 0 4px 12px rgba(40, 24, 120, 0.28);
  overflow: hidden;
  font-family: 'Signika', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.1vw, 2.6rem);
  line-height: 1;
  color: #fff;
}
.e-counter__digit::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
}

@media (max-width: 1180px) {
  .e-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--ink-12);
    box-shadow: 0 18px 40px rgba(40, 24, 120, 0.12);
  }
  .e-nav.is-open {
    display: block;
  }
  .e-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.2rem;
    font-size: 1.1rem;
  }
  .e-nav__list a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--ink-12);
  }
  .e-burger {
    display: block;
  }
  .e-header__bar {
    position: relative;
    flex-wrap: wrap;
  }
  .e-counter {
    order: 3;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
    max-width: none;
    justify-content: center;
    padding-block: 0.6rem;
    border-top: 1px solid var(--ink-12);
  }
  .e-counter__label {
    display: none;
  }
  .e-counter__caption {
    display: block;
    max-width: 34ch;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: center;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.e-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(320px, 62vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.e-hero__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}
.e-hero__band {
  width: 100%;
  padding-block: clamp(1.4rem, 3.4vw, 3.4rem);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.92) 16%,
    rgba(255, 255, 255, 0.92) 84%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(3px);
}
.e-hero__quote {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.24;
  text-align: center;
}

/* ==========================================================================
   E-MOTIVE row
   ========================================================================== */
.e-emotive {
  position: relative;
  overflow: hidden;
}
.e-emotive__deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.e-emotive__deco--left {
  left: 0;
  top: 8%;
  width: min(155px, 11vw);
}
.e-emotive__deco--right {
  right: 0;
  top: 8%;
  width: min(155px, 11vw);
}
.e-emotive__deco--wave {
  left: 50%;
  top: 34%;
  width: min(1215px, 66vw);
  transform: translateX(-50%);
}
.e-emotive__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.6vw, 1.6rem);
  margin-top: clamp(1.6rem, 3vw, 3rem);
}
.e-emotive__letter {
  font-family: 'Signika', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7.6vw, 7.4rem);
  line-height: 1;
  text-align: center;
}
.e-emotive__word {
  margin-top: clamp(0.5rem, 1.2vw, 1.4rem);
  font-size: clamp(0.78rem, 1.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}
@media (max-width: 720px) {
  .e-emotive__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 1.6rem;
  }
  .e-emotive__deco--left,
  .e-emotive__deco--right,
  .e-emotive__deco--wave {
    display: none;
  }
}

/* ==========================================================================
   Product summary cards (home)
   ========================================================================== */
.e-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
}
.e-products > article {
  display: flex;
  flex-direction: column;
}
.e-product__word {
  width: auto;
  height: clamp(52px, 5.2vw, 84px);
  margin-inline: auto;
}
.e-product__figure {
  display: grid;
  place-items: center;
  margin-top: clamp(0.8rem, 1.6vw, 1.6rem);
  padding-bottom: clamp(1rem, 2vw, 2rem);
}
.e-product__illo {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}
.e-product__list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.55rem, 1vw, 1.05rem);
  font-size: clamp(0.98rem, 1.3vw, 1.45rem);
  line-height: 1.2;
}
.e-product__list li {
  padding-inline-start: 0;
}
.e-product__list strong {
  font-weight: 600;
  color: var(--accent);
}
.e-product__cta {
  margin-top: auto;
  padding-top: clamp(1.3rem, 2.4vw, 2.2rem);
}

/* ==========================================================================
   Generic media figure + captioned blocks
   ========================================================================== */
.e-figure {
  margin-inline: auto;
  max-width: var(--fig-max, 1100px);
}
.e-figure img {
  width: 100%;
}
.e-figure__caption {
  margin-top: clamp(1rem, 2vw, 2rem);
  text-align: center;
}
.e-figure__caption h3 {
  font-size: clamp(1.15rem, 2.1vw, 2rem);
  font-weight: 500;
  color: var(--accent);
}
.e-figure__caption p {
  margin-top: 0.7rem;
  font-size: var(--fs-body);
  line-height: 1.3;
  text-wrap: pretty;
}

/* --- icon grids (benefits, health economics) ---------------------------- */
.e-icons {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin-top: clamp(1.6rem, 3vw, 3rem);
}
.e-icons--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.e-icons li {
  text-align: center;
}
.e-icons img {
  margin-inline: auto;
  width: min(100%, 260px);
}
.e-icons span {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(0.9rem, 1.25vw, 1.35rem);
  line-height: 1.22;
}

/* ==========================================================================
   Stepper (how it works)
   ========================================================================== */
.e-steps {
  margin-top: clamp(1.4rem, 2.6vw, 2.6rem);
}
.e-steps__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.e-steps__tab {
  display: grid;
  place-items: center;
  width: clamp(42px, 3.4vw, 62px);
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font-size: clamp(1rem, 1.5vw, 1.7rem);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.e-steps__tab:hover {
  transform: scale(1.06);
}
.e-steps__tab[aria-selected='true'] {
  background: var(--accent);
  color: #fff;
}
.e-steps__line {
  width: clamp(18px, 7vw, 140px);
  height: 2px;
  background: var(--accent-35);
}
.e-steps__count {
  margin-inline-start: clamp(0.6rem, 1.4vw, 1.6rem);
  font-size: clamp(0.95rem, 1.3vw, 1.5rem);
  font-weight: 500;
  color: var(--accent);
}
.e-steps__panel {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 620px);
  justify-content: center;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3.5rem);
  max-width: 1080px;
  margin: clamp(1.4rem, 2.6vw, 2.6rem) auto 0;
}
.e-steps__panel[hidden] {
  display: none;
}
.e-steps__panel img {
  max-width: min(100%, 380px);
  margin-inline: auto;
}
.e-steps__body p {
  margin-top: clamp(0.8rem, 1.6vw, 1.7rem);
  font-size: clamp(1rem, 1.4vw, 1.55rem);
  line-height: 1.2;
}
@media (max-width: 760px) {
  .e-steps__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .e-steps__body {
    text-align: left;
  }
}

/* --- product hero (word mark + domino) ---------------------------------- */
.e-producthead {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
}
.e-producthead__word {
  width: min(46vw, 300px);
}
.e-producthead__domino {
  width: 100%;
}

/* --- video card --------------------------------------------------------- */
.e-video {
  position: relative;
  display: block;
  max-width: 1000px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(40, 24, 120, 0.18);
}
.e-video img {
  width: 100%;
  transition: transform 0.4s ease;
}
.e-video:hover img {
  transform: scale(1.02);
}
.e-video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.e-video__play::after {
  content: '';
  width: clamp(56px, 7vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(167, 34, 139, 0.9);
  clip-path: circle(50%);
  box-shadow: 0 8px 24px rgba(40, 24, 120, 0.35);
}
.e-video__play::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
  border-left: clamp(16px, 2vw, 26px) solid #fff;
  border-top: clamp(10px, 1.3vw, 16px) solid transparent;
  border-bottom: clamp(10px, 1.3vw, 16px) solid transparent;
  translate: 15% 0;
}

/* ==========================================================================
   Footprint map
   ========================================================================== */
.e-map {
  position: relative;
}
.e-map__canvas {
  position: relative;
}
.e-map__pin {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 24, 120, 0.4);
  transition: transform 0.18s ease;
}
.e-map__pin:hover,
.e-map__pin[aria-pressed='true'] {
  transform: scale(1.4);
}
.e-map__pin[aria-pressed='true'] {
  background: var(--ink);
}
.e-map__card {
  width: min(100%, 400px);
  margin-top: 1rem;
  padding: clamp(1rem, 1.6vw, 1.7rem) clamp(1.1rem, 1.8vw, 2rem);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--accent-35);
  border-radius: 12px;
}
.e-map__count {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--accent);
}
.e-map__name {
  margin-top: 0.4rem;
  font-size: clamp(1.2rem, 1.9vw, 1.9rem);
  font-weight: 600;
  line-height: 1.1;
}
.e-map__note {
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  line-height: 1.25;
}
@media (min-width: 900px) {
  .e-map__card {
    position: absolute;
    left: 2%;
    top: 5%;
    margin-top: 0;
  }
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.e-testimonial {
  display: grid;
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}
.e-testimonial__card {
  padding: clamp(1.5rem, 3vw, 3.4rem);
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  line-height: 1.4;
  text-wrap: pretty;
}
.e-testimonial__who {
  margin-top: 1.2rem;
  font-weight: 600;
}
.e-testimonial__photo {
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(40, 24, 120, 0.22);
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  object-fit: cover;
}
@media (min-width: 900px) {
  .e-testimonial {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 0.85fr);
  }
  .e-testimonial__card {
    background: url('../images/leaf-gradient.png') no-repeat center / 100% 100%;
    padding: clamp(2.4rem, 4.4vw, 5rem) clamp(3rem, 6vw, 7rem);
    border-radius: 0;
  }
}

/* ==========================================================================
   Newsletters
   ========================================================================== */
.e-news {
  display: grid;
  gap: clamp(1.6rem, 3.4vw, 3.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.e-news__month {
  text-align: center;
  font-size: clamp(1.1rem, 1.6vw, 1.7rem);
  font-weight: 500;
}
.e-news__issue {
  margin-top: clamp(1rem, 2vw, 2rem);
}
.e-news__lang {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--accent);
}
.e-news__cover {
  display: block;
  margin-top: 0.6rem;
  border: 1px solid var(--ink-12);
  border-radius: 8px;
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.e-news__cover:hover {
  box-shadow: 0 10px 28px rgba(40, 24, 120, 0.18);
  transform: translateY(-2px);
}
.e-news__cover img {
  width: 100%;
}

/* ==========================================================================
   Contact / footer
   ========================================================================== */
.e-footer {
  background: var(--grad);
  color: #fff;
  padding-block: clamp(2.4rem, 5vw, 4.5rem);
  scroll-margin-top: clamp(88px, 12vh, 150px);
}
.e-footer a {
  color: #fff;
}
.e-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.e-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .e-footer__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}
.e-footer__title {
  font-size: clamp(1.5rem, 2.6vw, 2.7rem);
  font-weight: 500;
}
.e-details {
  display: grid;
  gap: clamp(1.4rem, 2.6vw, 2.8rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-top: clamp(1.4rem, 2.6vw, 2.8rem);
}
.e-details dt {
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  font-weight: 600;
}
.e-details dd {
  margin: 0.8rem 0 0;
  font-size: var(--fs-body);
  line-height: 1.35;
}
.e-details a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}
.e-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
}
.e-social a {
  display: block;
  transition: transform 0.18s ease;
}
.e-social a:hover {
  transform: translateY(-2px);
}
.e-social img {
  width: clamp(38px, 3vw, 52px);
}

/* form */
.e-form {
  display: grid;
  gap: clamp(0.7rem, 1.2vw, 1.1rem);
  margin-top: clamp(1.4rem, 2.6vw, 2.8rem);
}
.e-form__row {
  display: grid;
  gap: inherit;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.e-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--fs-body);
}
.e-form input,
.e-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1rem;
}
.e-form textarea {
  min-height: 8rem;
  resize: vertical;
}
.e-form__submit {
  justify-self: start;
  margin-top: 0.6rem;
  min-height: 3rem;
  padding: 0.5rem 2.2rem;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--accent);
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}
.e-form__submit:hover {
  background: var(--tint);
}
.e-form__note {
  font-size: var(--fs-small);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}
.e-form__status[hidden] {
  display: none;
}
.e-form__status {
  padding: 0.8rem 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  font-size: var(--fs-body);
}

.e-footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3.6rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: var(--fs-small);
}
.e-footer__base img {
  width: auto;
  height: clamp(48px, 4vw, 76px);
  filter: brightness(0) invert(1);
}
.e-footer__links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Resources page
   ========================================================================== */
.e-cards {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin-top: clamp(1.6rem, 3vw, 3rem);
}
.e-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.2rem, 2.2vw, 2.2rem);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius);
  background: #fff;
  scroll-margin-top: clamp(88px, 12vh, 150px);
}
.e-card h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 600;
  color: var(--accent);
}
.e-card p {
  font-size: var(--fs-body);
  line-height: 1.3;
}
.e-card .e-btn {
  margin-top: auto;
  align-self: start;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
}

/* ==========================================================================
   Motion / print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ellavi *,
  .ellavi *::before,
  .ellavi *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .e-header,
  .e-burger,
  .e-video__play,
  .e-form {
    display: none !important;
  }
  .ellavi {
    color: #000;
  }
  .e-footer {
    background: none !important;
    color: #000;
  }
  .e-footer a {
    color: #000;
  }
  .e-steps__panel[hidden] {
    display: grid !important;
  }
}

/* EC-BTN-104 + EC-NAV-121: Re-assert hero / CTA text-white on buttons & links.
   Uses class~= (word match) not class*= (substring) to avoid matching hover:text-white etc. */
button[class~='text-white/90'],
a[class~='text-white/90'] {
  color: rgba(255, 255, 255, 0.9);
}
button[class~='text-white/80'],
a[class~='text-white/80'] {
  color: rgba(255, 255, 255, 0.8);
}
button[class~='text-white/70'],
a[class~='text-white/70'] {
  color: rgba(255, 255, 255, 0.7);
}
button[class~='text-white/60'],
a[class~='text-white/60'] {
  color: rgba(255, 255, 255, 0.6);
}
button[class~='text-white/50'],
a[class~='text-white/50'] {
  color: rgba(255, 255, 255, 0.5);
}
button[class~='text-white/40'],
a[class~='text-white/40'] {
  color: rgba(255, 255, 255, 0.4);
}
button[class~='text-white'],
a[class~='text-white'] {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* EC-ANIM-008b / EC-ANIM-009: carousel-only override — scroll-reveal elements animate via IO in functions.php */
.scroll-fade-up:has([aria-roledescription='carousel']),
.scroll-fade-up:has([data-wpconvert-blog-filter-bar]),
.scroll-fade-left:has([aria-roledescription='carousel']),
.scroll-fade-right:has([aria-roledescription='carousel']),
.scroll-scale-in:has([aria-roledescription='carousel']) {
  opacity: 1 !important;
  transform: none !important;
}
