/* ================================================================
   Elementor bridge — styles for the el- classes used in the Elementor
   page data (README.md → "el- CSS classes").

   Elementor settings own colors, fonts, spacing and borders. This file only
   adds what Elementor Free cannot do: hover lifts, arrow nudges, icon fills,
   marquee, process line, floating stat cards, CTA shapes, form styling, and
   the easing/distance of entrance animations (DESIGN.md 3 and 5).

   Colors read Elementor globals with theme-token fallbacks.
   ================================================================ */

:root {
  --elara-c-primary: var(--e-global-color-primary, #4B00FF);
  --elara-c-hover: var(--e-global-color-elbluehv, #3A00C7);
  --elara-c-ink: var(--e-global-color-secondary, #0E0A2B);
  --elara-c-text: var(--e-global-color-text, #5B5875);
  --elara-c-soft: var(--e-global-color-accent, #9D80FF);
  --elara-c-100: var(--e-global-color-elblu100, #EDE7FF);
  --elara-c-50: var(--e-global-color-elblu050, #F6F3FF);
  --elara-c-line: var(--e-global-color-elline, #E6E3F0);
}

/* ── Text rhythm inside Text Editor widgets ───────────────── */

.elementor-widget-text-editor p:not(:last-child),
.elementor-widget-text-editor ul:not(:last-child):not(.el-marquee-track),
.elementor-widget-text-editor ol:not(:last-child),
.elementor-widget-text-editor blockquote:not(:last-child) {
  margin-bottom: 1em;
}

.el-prose ul,
.el-prose ol,
.el-legal ul,
.el-legal ol {
  padding-left: 1.25em;
}

.el-prose li + li {
  margin-top: 0.4em;
}

.el-prose li::marker {
  color: var(--elara-c-primary);
}

.el-prose strong,
.el-legal strong {
  color: var(--elara-c-ink);
}

.el-legal h2 {
  font-family: var(--elara-font-heading);
  font-size: 1.5rem;
  color: var(--elara-c-ink);
  margin: 2em 0 0.5em;
}

.el-intro,
.el-cta-copy {
  max-width: 680px;
}

.el-cta-copy,
.el-cta-micro {
  opacity: 0.85;
}

.elementor-heading-title {
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .elementor-heading-title h1,
  h1.elementor-heading-title {
    font-size: clamp(1.85rem, 7.5vw, 2.4rem) !important;
    line-height: 1.12 !important;
  }
}

.el-section-heading--center .elementor-widget-text-editor {
  margin-inline: auto;
}

/* ── Buttons (DESIGN.md 3.4) ──────────────────────────────── */

[class*="el-btn-"] .elementor-button {
  transition: transform 0.25s var(--elara-ease), box-shadow 0.25s var(--elara-ease),
              background-color 0.25s var(--elara-ease), color 0.25s var(--elara-ease),
              border-color 0.25s var(--elara-ease);
}

.el-btn-primary .elementor-button:hover,
.el-btn-secondary .elementor-button:hover,
.el-btn-white .elementor-button:hover,
.el-btn-outline-white .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--elara-shadow-hover);
}

[class*="el-btn-"] .elementor-button-icon {
  transition: transform 0.25s var(--elara-ease);
}

[class*="el-btn-"] .elementor-button:hover .elementor-button-icon {
  transform: translateX(4px);
}

[class*="el-btn-"] .elementor-button:focus-visible {
  outline: 3px solid var(--elara-c-soft);
  outline-offset: 2px;
}

/* Text-link CTA: underline grows from the left. */
.el-btn-text-link .elementor-button-text {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.3s var(--elara-ease);
}

.el-btn-text-link .elementor-button:hover .elementor-button-text {
  background-size: 100% 1.5px;
}

/* Tap targets ≥ 48px on mobile (DESIGN.md 7). */
@media (max-width: 767px) {
  [class*="el-btn-"]:not(.el-btn-text-link) .elementor-button {
    min-height: 48px;
    justify-content: center;
  }
  .el-btn-row > .elementor-widget-button:not(.el-btn-text-link) {
    width: 100%;
  }
  .el-btn-row > .elementor-widget-button:not(.el-btn-text-link) .elementor-button {
    width: 100%;
  }
}

/* ── Cards (DESIGN.md 3.6) ────────────────────────────────── */

.el-card {
  transition: transform 0.3s var(--elara-ease), box-shadow 0.3s var(--elara-ease);
}

.el-card > .elementor-widget-container,
.e-con.el-card {
  transition: border-color 0.3s var(--elara-ease);
}

/* Widget cards fill their grid cell so a row of cards shares one height. */
.elementor-widget.el-card > .elementor-widget-container {
  height: 100%;
}

.el-card:not(.el-card--static):hover {
  transform: translateY(-6px);
  box-shadow: var(--elara-shadow-hover);
}

.el-card:not(.el-card--static):hover > .elementor-widget-container,
.e-con.el-card:not(.el-card--static):hover,
.elementor-widget.el-card:not(.el-card--static):hover {
  border-color: var(--elara-c-primary) !important;
}

.el-icon-card .elementor-icon {
  transition: background-color 0.3s var(--elara-ease), color 0.3s var(--elara-ease), fill 0.3s var(--elara-ease);
}

.el-icon-card:hover .elementor-icon {
  background-color: var(--elara-c-primary) !important;
  color: #fff !important;
  fill: #fff !important;
}

.el-icon-card .elementor-icon-box-title a {
  color: inherit;
}

/* Whole service card clickable when the Icon Box has a link. */
.el-service-card .elementor-icon-box-wrapper {
  position: relative;
}

.el-service-card .elementor-icon-box-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.el-num .elementor-heading-title {
  font-variant-numeric: tabular-nums;
}

.el-tile .elementor-heading-title a {
  color: inherit;
}

.el-tile:hover .elementor-heading-title {
  color: var(--elara-c-primary);
}

.el-tile .elementor-heading-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.e-con.el-tile {
  position: relative;
}

.el-sublinks a,
.el-related-links a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--elara-c-100);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.el-sublinks a:hover,
.el-related-links a:hover {
  text-decoration-color: currentColor;
}

/* Images / placeholders in cards: slow zoom inside the rounded mask. */
.el-card-media {
  overflow: hidden;
}

.el-card-media > * {
  transition: transform 0.6s var(--elara-ease);
}

.el-card:hover .el-card-media > * {
  transform: scale(1.04);
}

/* ── Checklists and value points ──────────────────────────── */

@media (min-width: 768px) {
  .el-checklist--2col .elementor-icon-list-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}

.el-value-points .elementor-icon-list-items {
  row-gap: 12px;
}

.el-value-points .elementor-icon-list-text {
  font-weight: 600;
}

.el-callout blockquote {
  padding: 20px 24px;
  border-left: 4px solid var(--elara-c-primary);
  border-radius: 0 12px 12px 0;
  background: var(--elara-c-50);
  color: var(--elara-c-ink);
}

.el-metrics-strip {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.el-next-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}

.el-next-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  min-height: 28px;
}

.el-next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--elara-c-100);
  color: var(--elara-c-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  display: grid;
  place-items: center;
}

/* ── Stats (DESIGN.md 3.6) ────────────────────────────────── */

.el-stat-block .elementor-counter-number-wrapper {
  font-variant-numeric: tabular-nums;
}

.el-stat-block .elementor-counter {
  gap: 4px;
}

/* ── FAQ accordion (DESIGN.md 3.8) ────────────────────────── */

.el-faq .elementor-accordion-item {
  border: 0 !important;
  border-bottom: 1px solid var(--elara-c-line) !important;
}

.el-faq .elementor-accordion-item:first-child {
  border-top: 1px solid var(--elara-c-line) !important;
}

.el-faq .elementor-tab-title {
  border: 0 !important;
}

.el-faq .elementor-tab-content {
  border: 0 !important;
}

.el-faq .elementor-accordion-icon {
  transition: transform 0.3s var(--elara-ease);
}

.el-faq .elementor-tab-title.elementor-active .elementor-accordion-icon {
  transform: rotate(90deg);
}

/* ── Process steps with connecting line (DESIGN.md 3.6 / 5) ── */

.el-step {
  position: relative;
}

@media (min-width: 1025px) {
  .el-process-line {
    position: relative;
    padding-top: 28px;
  }
  .el-process-line::before,
  .el-process-line::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 6px;
    right: 0;
    height: 2px;
    background: var(--elara-c-100);
  }
  .el-process-line::after {
    background: var(--elara-c-primary);
    transform-origin: left center;
    transform: scaleX(var(--elara-line-progress, 1));
    transition: transform 1.4s var(--elara-ease);
  }
  .el-process-line.is-pending::after {
    --elara-line-progress: 0;
  }
  .el-process-line > .el-step::before {
    content: '';
    position: absolute;
    top: -28px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--elara-c-primary);
    box-shadow: 0 0 0 4px #fff;
    z-index: 1;
  }
}

/* ── Hero (DESIGN.md 4 Home 1) ────────────────────────────── */

.el-hero--home {
  position: relative;
  overflow: hidden;
}

.el-hero--home::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  right: -160px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 0, 255, 0.10), rgba(75, 0, 255, 0) 70%);
  pointer-events: none;
}

.el-hero-visual {
  position: relative;
  overflow: visible !important;
}

.el-hero-stat {
  position: absolute !important;
  width: auto !important;
  max-width: calc(100% - 32px);
  z-index: 2;
}

.el-hero-stat .elementor-heading-title {
  white-space: nowrap;
}

/* Phones: stat cards stack inside the visual instead of covering it. */
@media (max-width: 767px) {
  .el-hero-stat {
    position: relative !important;
    inset: auto !important;
    align-self: stretch;
    max-width: none;
  }
  .el-hero-stat .elementor-heading-title {
    white-space: normal;
  }
}

/* ── Eyebrow Labels (Part 1 bugfix: restore to Inter 600, 13px uppercase, brand blue) ── */
.el-eyebrow,
.el-eyebrow .elementor-heading-title,
p.el-eyebrow,
.elementor-widget-heading.el-eyebrow .elementor-heading-title {
  font-family: var(--elara-font-body, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.14em !important;
  color: var(--elara-c-primary, #4B00FF) !important;
  margin: 0 0 12px 0 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* ── Hero Headline (Part 1: clamp applies ONLY to the hero H1) ── */
.el-hero-title,
.el-hero-title .elementor-heading-title,
.el-hero h1.el-hero-title,
.el-hero-copy h1.el-hero-title,
.el-hero h1.elementor-heading-title {
  font-family: var(--elara-font-heading, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: clamp(2.5rem, 4vw, 3.75rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance !important;
}

/* ── Hero Grid (Part 1: two equal columns, 64px gap, max 1240px, vertically centered) ── */
.el-hero {
  max-width: 100% !important;
  overflow: visible !important;
}

.el-hero-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 64px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.el-hero-copy {
  width: 50% !important;
  max-width: 50% !important;
  flex: 0 0 50% !important;
  box-sizing: border-box !important;
}

.el-hero-visual {
  width: 50% !important;
  max-width: 50% !important;
  flex: 0 0 50% !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* ── Part 2: The New Hero Visual (Photo Frame + Subtle Glow + Floating Cards) ── */
.el-hero-frame-wrap {
  position: relative !important;
  width: 100% !important;
  max-width: 540px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Behind the frame: soft lavender (#EDE7FF) radial glow for depth */
.el-hero-frame-wrap::before {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 116% !important;
  height: 116% !important;
  background: radial-gradient(circle, rgba(237, 231, 255, 0.95) 0%, rgba(246, 243, 255, 0.5) 55%, transparent 74%) !important;
  border-radius: 50% !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

/* 5:4 Frame with 16px radius and soft blue-tinted shadow */
.el-hero-photo-frame {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 5 / 4 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 64px rgba(75, 0, 255, 0.12), 0 8px 24px rgba(14, 10, 43, 0.06) !important;
  z-index: 1 !important;
  background-color: #EDE7FF !important;
}

.el-hero-photo-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 16px !important;
  animation: elPhotoFadeScale 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Subtle bottom gradient overlay on photo (transparent to rgba(14,10,43,0.25)) */
.el-hero-photo-frame::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to bottom, transparent 60%, rgba(14, 10, 43, 0.25) 100%) !important;
  border-radius: 16px !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

@keyframes elPhotoFadeScale {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Floating Cards: white cards (95% opacity, backdrop blur, 14px radius, soft shadow) */
.el-hero-float-card {
  position: absolute !important;
  z-index: 3 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  box-shadow: 0 16px 36px rgba(14, 10, 43, 0.08), 0 4px 14px rgba(75, 0, 255, 0.06) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  max-width: 320px !important;
  box-sizing: border-box !important;
  cursor: default !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Card hover: lift 4px with a stronger shadow */
.el-hero-float-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 48px rgba(14, 10, 43, 0.12), 0 8px 22px rgba(75, 0, 255, 0.12) !important;
}

/* Card 1: top-left overlapping photo edges */
.el-hero-float-card--1 {
  top: -16px !important;
  left: -20px !important;
  animation: elCardFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both, elFloatLoop1 6.8s ease-in-out 0.8s infinite alternate !important;
}

/* Card 2: bottom-right overlapping photo edges */
.el-hero-float-card--2 {
  bottom: -20px !important;
  right: -20px !important;
  animation: elCardFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both, elFloatLoop2 7.8s ease-in-out 1.0s infinite alternate !important;
}

/* Small brand-blue icon in a #EDE7FF circle */
.el-hero-float-card-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  background: #EDE7FF !important;
  color: #4B00FF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.el-hero-float-card-icon svg {
  width: 16px !important;
  height: 16px !important;
  fill: currentColor !important;
}

/* Card text: existing copy from hero trust bullets */
.el-hero-float-card-text {
  font-family: var(--elara-font-heading, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #0E0A2B !important;
  margin: 0 !important;
  white-space: normal !important;
}

@keyframes elCardFadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes elFloatLoop1 {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

@keyframes elFloatLoop2 {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

/* ── Home Hero 1:1 Panel with Floating Service Cards ── */
.el-home-hero-panel {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #F6F3FF 0%, #EDE7FF 100%);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(75, 0, 255, 0.14), 0 8px 24px rgba(14, 10, 43, 0.05);
  border: 1px solid rgba(75, 0, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  position: relative;
  overflow: visible;
}

.el-home-float-card {
  background: #FFFFFF !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 36px rgba(14, 10, 43, 0.08), 0 4px 12px rgba(75, 0, 255, 0.05) !important;
  border: 1px solid rgba(75, 0, 255, 0.08);
  padding: 16px 20px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  transition: transform 0.4s var(--elara-ease), box-shadow 0.4s var(--elara-ease);
}

.el-home-float-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(75, 0, 255, 0.15) !important;
}

.el-home-card-thumb img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  display: block !important;
}

.el-home-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--elara-primary, #4B00FF);
  display: block;
}

.el-home-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--elara-ink, #0E0A2B);
  margin: 0;
}

/* Staggered Floating Animations (6-8s loop) */
@media (prefers-reduced-motion: no-preference) {
  .el-home-float-card--1 {
    animation: el-float-card-1 6.5s ease-in-out infinite;
  }
  .el-home-float-card--2 {
    animation: el-float-card-2 7.5s ease-in-out -2.5s infinite;
  }
  .el-home-float-card--3 {
    animation: el-float-card-3 8.0s ease-in-out -4.5s infinite;
  }
}

@keyframes el-float-card-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -10px); }
}

@keyframes el-float-card-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -8px); }
}

@keyframes el-float-card-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, 10px); }
}

@media (prefers-reduced-motion: reduce) {
  .el-home-float-card {
    animation: none !important;
  }
}

/* ── Hidden Pending Buttons ── */
.el-btn-hidden,
.elementor-widget.el-btn-hidden {
  display: none !important;
}

.el-card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--elara-ease);
}

.el-card:hover .el-card-media img {
  transform: scale(1.04);
}

.el-split-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 20px 48px rgba(14, 10, 43, 0.08);
}

.el-map-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.el-visual-placeholder .elementor-widget-text-editor {
  max-width: 320px;
}

/* ── CTA band (DESIGN.md 3.9) ─────────────────────────────── */

.e-con.el-cta-band {
  position: relative;
  isolation: isolate;
}

.e-con.el-cta-band::before,
.e-con.el-cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  z-index: -1;
  pointer-events: none;
}

.e-con.el-cta-band::before {
  width: 420px;
  height: 420px;
  top: -210px;
  right: -120px;
}

.e-con.el-cta-band::after {
  width: 300px;
  height: 300px;
  bottom: -160px;
  left: -80px;
}

@media (prefers-reduced-motion: no-preference) {
  .e-con.el-cta-band::before { animation: el-drift 16s ease-in-out infinite; }
  .e-con.el-cta-band::after { animation: el-drift 20s ease-in-out infinite reverse; }
}

@keyframes el-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, 16px); }
}

/* ── Breadcrumbs widget ───────────────────────────────────── */

.el-breadcrumbs-widget .el-breadcrumbs {
  padding: 0;
}

/* ── Forms (DESIGN.md 3.11) ───────────────────────────────── */

.el-form-wrap .el-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

@media (max-width: 767px) {
  .el-form-wrap .el-form-row {
    grid-template-columns: 1fr;
  }
}

.el-form-wrap .el-form-field {
  margin: 0 0 16px;
  border: 0;
}

.el-form-wrap legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--elara-c-ink);
  margin-bottom: 8px;
}

.el-form-wrap .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.el-form-wrap .wpcf7-list-item {
  margin: 0;
}

.el-form-wrap .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  margin: 0;
  border: 1px solid var(--elara-c-line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s;
}

.el-form-wrap .wpcf7-list-item label:has(input:checked) {
  border-color: var(--elara-c-primary);
  background: var(--elara-c-50);
}

.el-form-wrap input[type="checkbox"] {
  accent-color: var(--elara-c-primary);
  width: 18px;
  height: 18px;
}

.el-form-wrap input:focus,
.el-form-wrap select:focus,
.el-form-wrap textarea:focus {
  transition: border-color 0.2s, box-shadow 0.25s var(--elara-ease);
}

.el-form-wrap .wpcf7-not-valid {
  border-color: #C4213B !important;
}

.el-form-wrap .wpcf7-not-valid-tip {
  color: #C4213B;
  font-size: 0.8125rem;
  margin-top: 6px;
}

.el-form-wrap .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 12px;
  font-size: 0.875rem;
}

.el-form-wrap .wpcf7-submit {
  min-height: 52px;
}

.el-form-wrap .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

/* ── Entrance animations (DESIGN.md 5) ────────────────────────
   Elementor adds `animated <name>` when an element scrolls into view.
   Swap in shorter-travel keyframes (32px) and the brand easing. */

@keyframes elaraFadeInUp { from { opacity: 0; transform: translate3d(0, 32px, 0); } to { opacity: 1; transform: none; } }
@keyframes elaraFadeInDown { from { opacity: 0; transform: translate3d(0, -32px, 0); } to { opacity: 1; transform: none; } }
@keyframes elaraFadeInLeft { from { opacity: 0; transform: translate3d(-32px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes elaraFadeInRight { from { opacity: 0; transform: translate3d(32px, 0, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .elementor-element.animated {
    animation-duration: 0.7s;
    animation-timing-function: var(--elara-ease);
  }
  .elementor-element.animated.fadeInUp { animation-name: elaraFadeInUp; }
  .elementor-element.animated.fadeInDown { animation-name: elaraFadeInDown; }
  .elementor-element.animated.fadeInLeft { animation-name: elaraFadeInLeft; }
  .elementor-element.animated.fadeInRight { animation-name: elaraFadeInRight; }
}

/* Reduced motion: show everything immediately, no movement. */
@media (prefers-reduced-motion: reduce) {
  .elementor-invisible {
    visibility: visible !important;
  }
  .elementor-element.animated {
    animation: none !important;
  }
  .el-card:hover,
  [class*="el-btn-"] .elementor-button:hover,
  [class*="el-btn-"] .elementor-button:hover .elementor-button-icon {
    transform: none !important;
  }
  .el-process-line::after {
    transition: none !important;
  }
}

/* ── Service family cards: horizontal swipe on tablet/mobile (DESIGN.md 3.6) ── */

@media (max-width: 1024px) {
  .e-con.el-family-grid {
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(300px, 60%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    padding: 4px 2px 20px;
    -webkit-overflow-scrolling: touch;
  }
  .e-con.el-family-grid > .e-con {
    scroll-snap-align: start;
  }
  .e-con.el-family-grid > .el-card:hover {
    transform: none;
  }
}

@media (max-width: 767px) {
  .e-con.el-family-grid {
    grid-auto-columns: 86%;
  }
}

/* ── Hero Responsive Stacking on Tablet & Mobile (PART 1 & PART 2) ── */
@media (max-width: 1024px) {
  .el-hero .e-con[data-settings*="row"],
  .el-hero > .e-con > .e-con,
  .el-hero-grid {
    flex-direction: column !important;
    gap: 40px !important;
  }
  .el-hero-copy,
  .el-hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .el-hero-frame-wrap {
    max-width: 100% !important;
  }
  .el-hero-float-card--1 {
    top: -12px !important;
    left: -8px !important;
  }
  .el-hero-float-card--2 {
    bottom: -16px !important;
    right: -8px !important;
  }
  .el-home-hero-panel {
    max-width: 100%;
    aspect-ratio: auto;
    min-height: auto;
    gap: 16px;
    padding: 24px 20px;
  }
}

@media (max-width: 767px) {
  /* On mobile: show only one card, kept inside the frame */
  .el-hero-float-card--2 {
    display: none !important;
  }
  .el-hero-float-card--1 {
    top: 14px !important;
    left: 14px !important;
    right: 14px !important;
    max-width: calc(100% - 28px) !important;
    padding: 10px 14px !important;
  }
  .el-hero-float-card-text {
    font-size: 12.5px !important;
  }
  .el-hero-float-card-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }
  .el-hero-float-card-icon svg {
    width: 14px !important;
    height: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .el-hero-photo-frame img,
  .el-hero-float-card--1,
  .el-hero-float-card--2 {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  .el-hero-float-card:hover {
    transform: none !important;
  }
}


/* ── Numbered card grids (design-fixes.md item 2) ─────────────
   The item number must never wrap ("0" above "1"), so it gets a fixed
   width and its own column in the row-direction cards. */

.el-num .elementor-heading-title,
.el-step .el-step-num .elementor-heading-title {
  white-space: nowrap;
}

.el-num {
  flex: 0 0 auto;
  min-width: 2.25em;
}

.e-con.el-card > .el-num,
.e-con > .el-num {
  align-self: flex-start;
}

/* ── Legal pages (client-answers.md F) ────────────────────────
   Readable 760px column; the container sets the width, these set the rhythm. */

.el-legal-updated {
  opacity: 0.75;
}

.el-legal h2 {
  margin-top: 0;
}

.el-legal h3 {
  font-family: var(--elara-font-heading);
  font-size: 1.125rem;
  color: var(--elara-c-ink);
  margin: 1.5em 0 0.5em;
}

.el-legal p + p {
  margin-top: 1em;
}

.el-legal li + li {
  margin-top: 0.4em;
}

/* ── Testimonials (client-answers.md D) ───────────────────────── */

.el-testimonial blockquote {
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  font-style: normal;
}

.el-testimonial-grid .el-card {
  height: 100%;
}

/* ==========================================================================
   TASK 2: CENTER BUTTONS IN CENTERED SECTIONS (All Pages)
   ========================================================================== */

.e-con.el-btn-row--center,
.el-btn-row--center,
.el-cta-band .el-btn-row,
.el-cta-section .el-btn-row,
.el-section-heading--center ~ .el-btn-row,
.e-con:has(> .el-section-heading--center) ~ .el-btn-row,
.el-section:has(.el-section-heading--center) > .el-btn-row,
.el-included .el-btn-row,
.el-process-section .el-btn-row,
.el-ai-workflows .el-btn-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

.e-con.el-btn-row--center > .elementor-widget-button,
.el-btn-row--center > .elementor-widget-button,
.el-cta-band .el-btn-row > .elementor-widget-button,
.el-cta-section .el-btn-row > .elementor-widget-button,
.el-section-heading--center ~ .el-btn-row > .elementor-widget-button,
.el-included .el-btn-row > .elementor-widget-button,
.el-process-section .el-btn-row > .elementor-widget-button,
.el-ai-workflows .el-btn-row > .elementor-widget-button {
  display: inline-flex !important;
  justify-content: center !important;
  text-align: center !important;
  flex: 0 0 auto !important;
}

.e-con.el-btn-row--center > .elementor-widget-button .elementor-button-wrapper,
.el-btn-row--center > .elementor-widget-button .elementor-button-wrapper,
.el-cta-band .el-btn-row > .elementor-widget-button .elementor-button-wrapper,
.el-cta-section .el-btn-row > .elementor-widget-button .elementor-button-wrapper,
.el-section-heading--center ~ .el-btn-row > .elementor-widget-button .elementor-button-wrapper,
.el-included .el-btn-row > .elementor-widget-button .elementor-button-wrapper,
.el-process-section .el-btn-row > .elementor-widget-button .elementor-button-wrapper,
.el-ai-workflows .el-btn-row > .elementor-widget-button .elementor-button-wrapper {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 767px) {
  .e-con.el-btn-row--center,
  .el-btn-row--center,
  .el-cta-band .el-btn-row,
  .el-cta-section .el-btn-row,
  .el-section-heading--center ~ .el-btn-row,
  .el-included .el-btn-row,
  .el-process-section .el-btn-row,
  .el-ai-workflows .el-btn-row {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
  }
  .el-btn-row--center > .elementor-widget-button,
  .el-cta-band .el-btn-row > .elementor-widget-button,
  .el-cta-section .el-btn-row > .elementor-widget-button,
  .el-section-heading--center ~ .el-btn-row > .elementor-widget-button,
  .el-included .el-btn-row > .elementor-widget-button,
  .el-process-section .el-btn-row > .elementor-widget-button,
  .el-ai-workflows .el-btn-row > .elementor-widget-button {
    width: 100% !important;
  }
  .el-btn-row--center > .elementor-widget-button .elementor-button,
  .el-cta-band .el-btn-row > .elementor-widget-button .elementor-button,
  .el-cta-section .el-btn-row > .elementor-widget-button .elementor-button,
  .el-section-heading--center ~ .el-btn-row > .elementor-widget-button .elementor-button,
  .el-included .el-btn-row > .elementor-widget-button .elementor-button,
  .el-process-section .el-btn-row > .elementor-widget-button .elementor-button,
  .el-ai-workflows .el-btn-row > .elementor-widget-button .elementor-button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   HOME HERO — left copy column (theme defaults) + arch-framed photo visual
   Left column intentionally uses the standard hero styles (plain eyebrow,
   ink H1, outline check bullets, standard buttons). Only the visual is bespoke.
   ========================================================================== */

/* Hero offset: a clear gap below the fixed header, not a huge empty band. */
.el-hero--home {
  padding-top: calc(88px + 48px) !important;
  padding-bottom: 64px !important;
}

@media (max-width: 1024px) {
  .el-hero--home {
    padding-top: calc(88px + 48px) !important;
    padding-bottom: 56px !important;
  }
}

@media (max-width: 767px) {
  .el-hero--home {
    padding-top: calc(72px + 28px) !important; /* 28px below the 72px mobile header */
    padding-bottom: 48px !important;
  }
}

/* Short laptop screens: tighten so the frame still lands on the first screen. */
@media (min-width: 1025px) and (max-height: 820px) {
  .el-hero--home {
    padding-top: calc(88px + 32px) !important;
    padding-bottom: 40px !important;
  }
  .el-home-photo-stage {
    max-width: 380px;
  }
}

/* ── Stage: holds the soft glow and the outlined ring accent ───────────── */

.e-con.el-home-photo-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  isolation: isolate;
}

/* large soft lavender glow behind everything */
.el-home-photo-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -12% -14% -8% -14%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--elara-c-100, #EDE7FF) 0%, rgba(237, 231, 255, 0.55) 45%, rgba(237, 231, 255, 0) 72%);
  pointer-events: none;
}

/* outlined ring, top-right */
.el-home-photo-stage::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 34px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: 2px solid var(--elara-c-soft, #9D80FF);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Frame wrapper: holds the solid circle and the ink dot ─────────────── */

.e-con.el-home-frame-wrap {
  position: relative;
  width: 100%;
}

/* solid brand circle overlapping the left edge */
.el-home-frame-wrap::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 46%;
  left: -22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--elara-c-primary, #4B00FF);
  pointer-events: none;
}

/* small ink dot, bottom-right */
.el-home-frame-wrap::after {
  content: '';
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: -10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--elara-c-ink, #0E0A2B);
  pointer-events: none;
}

/* ── Arch frame + photo ────────────────────────────────────────────────── */

.e-con.el-home-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 220px 220px 24px 24px;
  background: var(--elara-c-50, #F6F3FF);
  box-shadow:
    0 0 0 1px rgba(157, 128, 255, 0.28),
    0 18px 48px rgba(75, 0, 255, 0.16),
    0 2px 8px rgba(14, 10, 43, 0.06);
}

.el-home-photo,
.el-home-photo .elementor-widget-container,
.el-home-photo .elementor-image {
  width: 100%;
  height: 100%;
}

.el-home-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  border-radius: 0;
}

/* ── Floating proof cards ──────────────────────────────────────────────── */

.e-con.el-home-proof-card {
  position: absolute;
  z-index: 3;
  width: auto;
  max-width: 200px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(14, 10, 43, 0.12), 0 1px 3px rgba(14, 10, 43, 0.06);
}

.el-home-proof-card--claim {
  top: 44px;
  left: -34px;
}

.el-home-proof-card--growth {
  right: -34px;
  bottom: 56px;
}

.e-con.el-home-proof-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--elara-c-100, #EDE7FF);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.el-home-proof-icon .elementor-icon {
  color: var(--elara-c-primary, #4B00FF);
  font-size: 15px;
}

.el-home-proof-stat {
  font-family: var(--elara-font-heading), sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.1;
  color: var(--elara-c-ink, #0E0A2B);
}

.el-home-proof-label {
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--elara-c-text, #5B5875);
  white-space: nowrap;
}

/* ── Motion (DESIGN.md 5): slow, restrained, off for reduced motion ────── */

@media (prefers-reduced-motion: no-preference) {
  .el-home-photo img {
    animation: elHomePhotoIn 900ms var(--elara-ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
  }
  .el-home-proof-card--claim {
    animation: elHomeFloatA 7s ease-in-out infinite;
  }
  .el-home-proof-card--growth {
    animation: elHomeFloatB 8s ease-in-out infinite;
  }
  .el-home-frame-wrap::before {
    animation: elHomeFloatA 8s ease-in-out infinite;
  }
  .el-home-photo-stage::after {
    animation: elHomeFloatB 7s ease-in-out infinite;
  }
}

@keyframes elHomePhotoIn {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes elHomeFloatA {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@keyframes elHomeFloatB {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .el-home-photo img,
  .el-home-proof-card,
  .el-home-frame-wrap::before,
  .el-home-photo-stage::after {
    animation: none !important;
  }
}

/* ── Tablet ────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .e-con.el-home-photo-stage {
    max-width: 420px;
  }
}

/* ── Mobile: copy first, then a calmer photo (one card, glow only) ─────── */

@media (max-width: 767px) {
  .e-con.el-home-photo-stage {
    max-width: 420px;
  }
  .el-home-photo-stage::after,
  .el-home-frame-wrap::before,
  .el-home-frame-wrap::after {
    display: none;
  }
  .e-con.el-home-photo-frame {
    border-width: 5px;
    border-radius: 180px 180px 20px 20px;
  }
  .el-home-proof-card--growth {
    display: none;
  }
  .el-home-proof-card--claim {
    top: 28px;
    left: -10px;
  }
}

/* Hero photos that are pale illustrations rather than photographs: the dark
   bottom overlay greys them out, so it is dropped for those frames only
   (AI Services, AI Automation, AI Agents — see DECISIONS.md). */
.el-hero-photo-frame--plain::after {
  display: none !important;
}
