/*
Theme Name:   Heraedges Child (Artistics)
Theme URI:    https://heraedges.com/
Description:  Child theme for Heraedges. ALL customization lives here. The Artistics parent theme is never edited (CLAUDE.md §1, 11 §5).
Author:       Heraedges
Template:     artistics
Version:      1.0.0
Requires PHP: 7.4
Text Domain:  artistics-child
*/

/* ------------------------------------------------------------------
   Design tokens — single source of truth (08 §4). Never scatter hex.
   Elementor Global Styles own most visual output; these variables are
   the fallback / reference and drive child-theme CSS (forms, a11y).
   ------------------------------------------------------------------ */
:root {
  /* Palette — CONFIRMED (08 §4.1) */
  --brand-accent:      #BFF747; /* Official brand lime (brand color file, confirmed 2026-07-29). CTA backgrounds, highlights. BACKGROUND on light, TEXT on dark only. */
  --brand-black:       #000000;
  --neutral-900:       #424242; /* body text on light */
  --neutral-500:       #999999; /* borders/dividers/disabled ONLY — fails as text on white */
  --surface-light:     #FFFFFF;

  /* Tints & shades — proposed (08 §4.3), pending brand-guidelines confirmation [TBD] */
  --accent-dark:       #A5D93C; /* proposed hover, darker #BFF747 — confirm vs brand guidelines [TBD] */
  --surface-off:       #F5F5F5; /* alternating light sections */
  --surface-dark-alt:  #141414; /* alternating dark sections, cards on black */
  --border-light:      #E5E5E5; /* card/input borders on light */

  /* Spacing (08 §7) */
  --space-base:        8px;
  --container-max:     1200px;
  --radius:            0px;      /* [TBD] 08 §7 — single value pending brand guidelines */

  /* Typography (08 §6). Split: Cook Conthic (display) for headings, Manrope for body. */
  --font-heading: 'Cook Conthic', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body:    'Heraedges Body', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-primary: var(--font-heading); /* back-compat alias */
}

/* Self-hosted brand typeface — Cook Conthic. Single master weight; WOFF2 + WOFF
   fallback, font-display: swap. font-weight range lets the browser synthesise
   heavier text from the one file. */
@font-face {
  font-family: 'Cook Conthic';
  src: url('assets/fonts/cookconthic.woff2') format('woff2'),
       url('assets/fonts/cookconthic.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Body typeface — self-hosted Manrope (readable for long copy). */
@font-face {
  font-family: 'Heraedges Body';
  src: url('assets/fonts/body-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Heraedges Body';
  src: url('assets/fonts/body-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Heraedges Body';
  src: url('assets/fonts/body-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Split apply (Elementor sets font-family inline, so !important is required).
   Body copy → Manrope; headings, buttons, nav, marquee, fancy text → Cook Conthic. */
body,
.elementor-widget-text-editor, .elementor-widget-text-editor *,
p, li, blockquote, table, input, select, textarea {
  font-family: var(--font-body) !important;
}
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-button, .wpcf7-submit, button, input[type="submit"],
.ekit-fancy-text-lists, .ekit-fancy-text-lists *,
.elementskit-navbar-nav a,
[class*="marquee"], [class*="marquee"] * {
  font-family: var(--font-heading) !important;
}

/* ------------------------------------------------------------------
   TYPE SCALE — one consistent hierarchy across every section.
   Eyebrow 14 (CC) · Section title 70 (CC) · Subtitle 18 (MR) ·
   Body 16 (MR) · Small/meta 14 (MR). Section titles are already 70px
   via the heading rule below; this standardises the intro SUBTITLE
   (Elementor text-editor under each section title) to 18px so it sits
   between the 70px title and 16px body — the theme demo left them at
   the 16px default, flat against body. hero-meta keeps its own size
   (it sets 15px !important). Component body sizes (edge/blog/form) are
   normalised to this scale in their own blocks.
   ------------------------------------------------------------------ */
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  font-size: 18px;
  line-height: 1.6;
}

/*
  BINDING ACCESSIBILITY RULE (08 §4.2):
  #BFF747 is NEVER text, icon, or border on white (~1.2:1, fails WCAG hard).
  It is a BACKGROUND colour on light surfaces and a TEXT colour on dark
  (~17:1 on black — AAA; black text on the lime is the correct CTA).
  Links on light backgrounds: #000000 with underline, accent underline on hover.
*/

/* Respect reduced motion globally (08 §12, §15). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------
   Brand enforcement — ElementsKit/Elementor widgets whose highlight
   should always be the brand accent (08 §4). Keeps the palette to
   brand-only. Uses the token, never a scattered hex.
   ------------------------------------------------------------------ */
.ekit-fancy-text-lists,
.ekit-fancy-text-lists b,
.ekit-fancy-text-lists strong,
.elementskit-typewriter { color: var(--brand-accent) !important; }

/* Neutralise ElementsKit decorative watermark icons to a faint brand tint
   (demo shipped them a faint non-brand blue). Keeps palette brand-only. */
.elementskit-watermark-icon,
.elementskit-watermark-icon svg,
.elementskit-watermark-icon * {
  color: rgba(153, 153, 153, 0.15) !important;
  border-color: rgba(153, 153, 153, 0.15) !important;
  outline-color: rgba(153, 153, 153, 0.15) !important;
}

/* ------------------------------------------------------------------
   Hero — brand background replacing the demo autoplay video.
   Abstract geometric, brand colours (08 §11); restrained, reduced-motion
   -safe motion (08 §15). No video, no remote demo dependency.
   ------------------------------------------------------------------ */
/* NOTE: on the real build, add CSS class "heraedges-hero" to the hero section
   in Elementor (Advanced → CSS Classes). The .elementor-element-464af3d selector
   is the SANDBOX hero-section id (Elementor container class output is quirky) and
   is harmless elsewhere. */
.heraedges-hero,
.elementor-element-464af3d {
  position: relative;
  background-color: #000 !important;
  background-image:
    radial-gradient(rgba(191, 247, 71, 0.10) 1.2px, rgba(0, 0, 0, 0) 1.6px),
    repeating-radial-gradient(circle at 50% 42%,
      rgba(255, 255, 255, 0.05) 0 1.5px, rgba(0, 0, 0, 0) 1.5px 72px) !important;
  background-size: 40px 40px, 100% 100% !important;
  background-position: 0 0, center !important;
  overflow: hidden;
}
.heraedges-hero::before,
.elementor-element-464af3d::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 42%,
    rgba(191, 247, 71, 0.13), rgba(191, 247, 71, 0) 46%);
  animation: heraedges-glow 8s ease-in-out infinite alternate;
}
.heraedges-hero > *,
.elementor-element-464af3d > * { position: relative; z-index: 1; }
@keyframes heraedges-glow { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .heraedges-hero::before { animation: none; opacity: .7; }
}

/* Secondary CTA — outline on dark (accent border passes on dark, 08 §4.2). */
.btn-secondary .elementor-button {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid var(--brand-accent) !important;
}
.btn-secondary .elementor-button:hover,
.btn-secondary .elementor-button:focus {
  background: var(--accent-dark) !important;
  color: #000 !important;
}

/* Hero trust line (doc 05 B1) — small, muted, under the CTAs. */
.hero-meta, .hero-meta p {
  font-size: 15px !important;
  color: var(--neutral-500) !important;
  margin-top: 20px;
  letter-spacing: .2px;
}

/* Primary CTA — black on lime, the strongest brand treatment (08 §4.2). */
.btn-primary-lime .elementor-button {
  background: var(--brand-accent) !important;
  color: #000 !important;
  border: 0 !important;
}
.btn-primary-lime .elementor-button:hover,
.btn-primary-lime .elementor-button:focus {
  background: var(--accent-dark) !important;
  color: #000 !important;
}

/* Remove the grey line under the header nav (sandbox header id 42cddf0;
   on the real build set the header container border to none in Elementor). */
.elementor-element-42cddf0,
.elementskit-nav-identity-panel { border-bottom: none !important; }

/* Hero layout — clean, left-aligned single column (sandbox ids; on the real
   build: delete the empty column + left-align content in Elementor). */
.elementor-element-a12fa04 { width: 100% !important; }
.elementor-element-35f2f1e { width: 100% !important; max-width: 620px; }
.elementor-element-c07ab99 { align-items: flex-start !important; }
.elementor-element-c07ab99 > .elementor-widget .elementor-widget-container { text-align: left !important; }
.elementor-element-c07ab99 .elementor-button-wrapper { justify-content: flex-start !important; text-align: left !important; }

/* Ticker — bullet marker spacing after the size reduction. */
.elementskit-single-content-ticker img,
.elementskit-content-ticker img { margin: 0 20px 0 4px !important; }

/* CTA buttons — rounded pill curves. */
.elementor-element-c07ab99 .elementor-button,
.btn-primary-lime .elementor-button,
.btn-secondary .elementor-button { border-radius: 50px !important; }

/* Keep the animated headline on ONE line (never wrap the rotating word down). */
.ekit-fancy-text .ekit-fancy-prefix-text,
.ekit-fancy-text-lists,
.ekit-fancy-text-lists * { white-space: nowrap !important; }

/* Ticker — shorter bar (trim content height). */
.elementor-element-13430fb .elementskit-single-content-ticker,
.elementor-element-13430fb .elementskit-content-ticker,
.elementor-element-13430fb .elementskit-content-ticker * { line-height: 1.05 !important; }
.elementor-element-13430fb .elementskit-single-content-ticker { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Bigger CTA text (hero). */
.elementor-element-c07ab99 .elementor-button {
  font-size: 20px !important;
  padding: 18px 34px !important;
}

/* Bigger ticker service names — bar stays compact via tight line-height. */
.elementor-element-13430fb .elementskit-single-content-ticker { font-size: 34px !important; }
.elementor-element-13430fb .elementskit-content-ticker img { width: 16px !important; height: 16px !important; }

/* Ticker bar — bigger BLACK names, vertically centred with the asterisk
   bullets, and a tight bar (less top/bottom space). */
.elementor-element-13430fb { padding-top: 4px !important; padding-bottom: 4px !important; }
.elementor-element-13430fb .elementor-widget-container { padding: 0 !important; }
.elementor-element-13430fb .elementskit-single-content-ticker {
  font-size: 42px !important;
  color: #000 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}
.elementor-element-13430fb .elementskit-single-content-ticker * { color: #000 !important; }
.elementor-element-13430fb .elementskit-content-ticker img {
  width: 22px !important; height: 22px !important;
  margin: 0 28px !important;
  vertical-align: middle !important;
}

/* Ticker — correct selectors (.ticker-item / <a>). Bigger BLACK names,
   vertically centred with the asterisk bullets, tight bar. */
.elementor-element-13430fb { padding-top: 3px !important; padding-bottom: 3px !important; }
.elementor-element-13430fb .ticker-item { display: inline-flex !important; align-items: center !important; line-height: 1 !important; }
.elementor-element-13430fb .ticker-item a,
.elementor-element-13430fb .ekit-title-and-description,
.elementor-element-13430fb .ekit-title-and-description * {
  color: #000 !important;
  font-size: 42px !important;
  line-height: 1 !important;
}
.elementor-element-13430fb .ticker-item img {
  width: 22px !important; height: 22px !important;
  margin: 0 30px !important; vertical-align: middle !important;
}

/* Stable two-line headline: "Your growth, run as" on line 1, the rotating word
   ALWAYS on its own line below — so a longer/bigger word never pushes layout. */
.elementor-element-3db5f57 .ekit-fancy-prefix-text { display: block !important; }
.elementor-element-3db5f57 .ekit-fancy-text-lists { display: block !important; white-space: nowrap !important; }

/* About section — clear type hierarchy: heading > card titles > body (sentence
   case per doc 05 A1). Heading 72 / card title 34 / body 18. */
.elementor-element-984c2fd .elementor-heading-title { font-size: 70px !important; line-height: 1.05 !important; }
.elementor-element-b55c785 .elementor-icon-box-title,
.elementor-element-b55c785 .elementor-icon-box-title a { font-size: 34px !important; line-height: 1.2 !important; }
.elementor-element-b55c785 .elementor-icon-box-description { font-size: 18px !important; line-height: 1.6 !important; }
.elementor-element-b55c785 .elementor-icon-box-icon .elementor-icon { font-size: 48px !important; }

/* Responsive: keep the big heading from overflowing on small screens. */
@media (max-width: 767px) {
  .elementor-element-984c2fd .elementor-heading-title { font-size: 40px !important; }
  .elementor-element-b55c785 .elementor-icon-box-title,
  .elementor-element-b55c785 .elementor-icon-box-title a { font-size: 26px !important; }
}

/* Remove the remote demo 3D blob behind the About section (about-agency-bg.png,
   demo asset — 10 §9). On the real build, clear the section background image in
   Elementor instead. */
.elementor-element.elementor-element-b55c785::before,
body .elementor-element-b55c785::before {
  background-image: none !important;
  background: none !important;
  content: none !important;
}

/* Services section heading — prominent, consistent section-heading scale. */
.elementor-element-e421479 .elementor-heading-title { font-size: 70px !important; line-height: 1.08 !important; }
@media (max-width:767px){ .elementor-element-e421479 .elementor-heading-title { font-size: 34px !important; } }

/* ------------------------------------------------------------------
   Services marquee — all 12 pillars, auto-scroll right-to-left,
   hover-pause, reduced-motion-safe (08 §15).
   ------------------------------------------------------------------ */
.svc-strip {
  overflow: hidden; width: 100%; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.svc-track {
  display: flex; gap: 20px; width: max-content;
  animation: svc-scroll 55s linear infinite;
}
.svc-strip:hover .svc-track { animation-play-state: paused; }
.svc-card {
  flex: 0 0 auto; width: 330px;
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px 26px;
  background: var(--surface-dark-alt); /* #141414 */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #fff; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.svc-card:hover, .svc-card:focus-visible {
  border-color: var(--brand-accent); transform: translateY(-3px);
}
.svc-ic {
  font-size: 30px; color: var(--brand-accent); line-height: 1; flex: 0 0 auto;
  width: 52px; height: 52px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(191, 247, 71, 0.10);
}
.svc-body { display: flex; flex-direction: column; gap: 6px; }
.svc-name { font-family: var(--font-heading); font-size: 20px; line-height: 1.15; }
.svc-desc { font-family: var(--font-body); font-size: 14px; line-height: 1.4; color: var(--neutral-500); }
@keyframes svc-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .svc-track { animation: none; }
  .svc-strip { overflow-x: auto; }
}

/* ------------------------------------------------------------------
   Consistent CTA buttons — all Elementor buttons share the hero CTA
   text size (20px) and the same hover colour (accent-dark, black text).
   ------------------------------------------------------------------ */
.elementor-button { font-size: 20px !important; }
.elementor-button:hover,
.elementor-button:focus {
  background-color: var(--accent-dark) !important;
  color: #000 !important;
}

/* ------------------------------------------------------------------
   Consistent title scale — all main section titles 70px; small eyebrow
   labels (.section-title) untouched. Hero animated title matches at 70.
   ------------------------------------------------------------------ */
.elementor-widget-heading:not(.section-title) .elementor-heading-title {
  font-size: 70px !important; line-height: 1.06 !important;
}
.elementor-element-3db5f57 .ekit-fancy-text,
.elementor-element-3db5f57 .ekit-fancy-prefix-text,
.elementor-element-3db5f57 .ekit-fancy-text-lists,
.elementor-element-3db5f57 .ekit-fancy-text-lists * { font-size: 70px !important; }
@media (max-width: 767px) {
  .elementor-widget-heading:not(.section-title) .elementor-heading-title { font-size: 38px !important; }
  .elementor-element-3db5f57 .ekit-fancy-text,
  .elementor-element-3db5f57 .ekit-fancy-prefix-text,
  .elementor-element-3db5f57 .ekit-fancy-text-lists,
  .elementor-element-3db5f57 .ekit-fancy-text-lists * { font-size: 40px !important; }
}

/* All CTA buttons — fully rounded (pill). */
.elementor-button { border-radius: 50px !important; }

/* ------------------------------------------------------------------
   Section 5 (growth) — UI enhancement: bold lime stats + tidy checklist.
   ------------------------------------------------------------------ */
.elementor-element-e953eb0 .elementor-counter-number,
.elementor-element-e953eb0 .elementor-counter-number-prefix,
.elementor-element-e953eb0 .elementor-counter-number-suffix {
  font-family: var(--font-heading) !important;
  color: var(--brand-accent) !important;
  font-size: 66px !important; line-height: 1 !important;
}
.elementor-element-e953eb0 .elementor-counter-number-suffix { font-size: 30px !important; }
.elementor-element-e953eb0 .elementor-counter-title {
  font-family: var(--font-body) !important;
  color: var(--neutral-500) !important;
  font-size: 15px !important; line-height: 1.5 !important; margin-top: 12px !important;
}
.elementor-element-e953eb0 .elementor-icon-list-items > li { margin-bottom: 22px !important; align-items: flex-start !important; }
.elementor-element-e953eb0 .elementor-icon-list-icon { margin-top: 3px !important; }
.elementor-element-e953eb0 .elementor-icon-list-icon i { color: var(--brand-accent) !important; font-size: 20px !important; }
.elementor-element-e953eb0 .elementor-icon-list-text {
  font-family: var(--font-body) !important; font-size: 16px !important;
  line-height: 1.55 !important; color: #cfcfcf !important;
}
.elementor-element-e953eb0 .elementor-icon-list-text strong { color: #fff !important; }

/* ------------------------------------------------------------------
   Section 5 (growth) — shaped, creative layout. Text lives in cards,
   not free-floating. Moderate: subhead + 2 stat cards + 3 feature cards.
   ------------------------------------------------------------------ */
.s5 { display: flex; flex-direction: column; gap: 26px; }
.s5-sub {
  font-family: var(--font-body); font-size: 18px; line-height: 1.6;
  color: var(--neutral-500); max-width: 760px; margin: 0;
}
.s5-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.s5-stat {
  background: rgba(191, 247, 71, 0.06);
  border: 1px solid rgba(191, 247, 71, 0.28);
  border-radius: 18px; padding: 26px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.s5-num { font-family: var(--font-heading); font-size: 58px; line-height: 1; color: var(--brand-accent); }
.s5-unit { font-size: 26px; }
.s5-lbl { font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: #cfcfcf; }
.s5-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.s5-feat {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface-dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; padding: 20px 22px;
  font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: #fff;
  transition: border-color .2s ease, transform .2s ease;
}
.s5-feat:hover { border-color: var(--brand-accent); transform: translateY(-3px); }
.s5-ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(191, 247, 71, 0.10); color: var(--brand-accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
@media (max-width: 900px) {
  .s5-grid, .s5-feats { grid-template-columns: 1fr; }
}
.s5-ic svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------------
   Why Choose — replace the demo stock photo with a brand panel
   (dark, concentric rings, centred lime logo). 08 §11 graphic-led.
   ------------------------------------------------------------------ */
.why-brand img,
.why-brand .at-image-animation-inner { display: none !important; }
.why-brand,
.why-brand .elementor-widget-container {
  position: relative;
  min-height: 440px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;   /* nothing but the section behind it */
}
/* soft lime glow — smooth radial, no rings, no arcs, no edges. Gently breathes. */
.why-brand::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(191,247,71,0.20), rgba(191,247,71,0) 42%);
  animation: why-pulse 6s ease-in-out infinite alternate;
}
/* centred lime brand mark */
.why-brand::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url('assets/img/why-mark.png') center 46%/240px no-repeat;
}
@keyframes why-pulse { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .why-brand::before { animation: none; }
}

/* ------------------------------------------------------------------
   EDGE method — zig-zag timeline (Option 3). A central connecting line;
   cards alternate above / below it, each pinned to a node on the line.
   Node centring uses margins (NOT transform) so GSAP can animate scale
   on the node without knocking it off the line. Same for the line
   (margin-top, not translateY) so scaleX draw doesn't drop it.
   ------------------------------------------------------------------ */
.edge { position: relative; }
/* min-height reserves a half-row (380px) above and below the centre line so the
   TALLEST up/down card + its 46px offset clears the section title above and the
   next section below. Sized for the worst case (~900px, narrow columns → tall
   wrapped cards). Wider screens just gain symmetric breathing room. */
.edge-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; min-height: 760px; }

/* central line — static faint track + GSAP-drawn accent, both centred by margin */
.edge-track, .edge-line {
  position: absolute; top: 50%; margin-top: -1px; left: 12.5%; right: 12.5%; height: 2px; z-index: 0;
}
.edge-track { background: rgba(191, 247, 71, 0.16); }
.edge-line {
  background: linear-gradient(90deg, rgba(191,247,71,0.55), var(--brand-accent));
  transform-origin: left center;
}

.edge-col { position: relative; min-height: 760px; }

.edge-node {
  position: absolute; top: 50%; left: 50%; margin: -26px 0 0 -26px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #000; border: 2px solid var(--brand-accent); color: var(--brand-accent);
  font-family: var(--font-heading); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; box-shadow: 0 0 0 6px #000, 0 0 22px rgba(191,247,71,0.18);
  transition: box-shadow .25s ease;
}
.edge-col:hover .edge-node { box-shadow: 0 0 0 6px #000, 0 0 30px rgba(191,247,71,0.55); }

/* each stage lives in a card (shape); alternates above / below the line */
.edge-card {
  position: absolute; left: 0; right: 0; text-align: left;
  background: var(--surface-dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; padding: 22px 20px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.edge-card.edge-up   { bottom: calc(50% + 46px); }
.edge-card.edge-down { top: calc(50% + 46px); }
/* stem: 2px vertical connector from card to the line */
.edge-card::after {
  content: ""; position: absolute; left: 50%; width: 2px; height: 24px;
  margin-left: -1px; background: rgba(191, 247, 71, 0.45);
}
.edge-card.edge-up::after   { bottom: -24px; }
.edge-card.edge-down::after { top: -24px; }
.edge-col:hover .edge-card {
  border-color: rgba(191, 247, 71, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.edge-name { font-family: var(--font-heading); font-size: 21px; line-height: 1.1; margin-bottom: 12px; }
.edge-time {
  display: inline-block; color: var(--brand-accent); border: 1px solid rgba(191,247,71,0.4);
  border-radius: 30px; padding: 3px 14px; font-size: 13px; font-family: var(--font-body); margin-bottom: 14px;
}
.edge-desc { font-family: var(--font-body); color: #cfcfcf; font-size: 16px; line-height: 1.6; }
.edge-get { font-family: var(--font-body); color: var(--neutral-500); font-size: 14px; line-height: 1.5; margin-top: 14px; }
.edge-get b { color: #fff; }

/* below the timeline breakpoint: stack cleanly, node above card, no line */
@media (max-width: 900px) {
  .edge-row { grid-template-columns: 1fr 1fr; gap: 40px 24px; min-height: 0; }
  .edge-track, .edge-line { display: none; }
  .edge-col { min-height: 0; display: flex; flex-direction: column; align-items: center; }
  .edge-node { position: static; margin: 0 0 16px; }
  .edge-card { position: static; inset: auto; width: 100%; }
  .edge-card::after { display: none; }
}
@media (max-width: 560px) { .edge-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Blog feed — "Featured + compact list" (design Option 1). Rendered by
   the [heraedges_blog] shortcode (functions.php). Left: one large lead
   article. Right: compact rows of the next posts.
   ------------------------------------------------------------------ */
.hblog { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }

/* shared media: real featured image or a gradient placeholder */
.hblog-media { display: block; position: relative; overflow: hidden; background: #0c0c0c; }
.hblog-media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease; }
.hblog-feat .hblog-media:hover img, .hblog-li:hover .hblog-media img { transform: scale(1.04); }
.hblog-ph { display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, #1c1c1c, #0c0c0c); }
.hblog-ph::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(191,247,71,0.14), transparent 55%); }

.hblog-cat { display: inline-block; font-family: var(--font-body); font-size: 13px;
  color: var(--brand-accent); border: 1px solid rgba(191,247,71,0.4);
  border-radius: 30px; padding: 3px 12px; margin-bottom: 12px; }
.hblog-meta { display: block; color: var(--neutral-500); font-family: var(--font-body); font-size: 14px; }

/* featured */
.hblog-feat .hblog-media { height: 300px; border-radius: 16px; }
.hblog-feat-body { padding-top: 18px; }
.hblog-title { font-family: var(--font-heading); font-weight: 400; font-size: 30px; line-height: 1.14; margin-bottom: 12px; }
.hblog-title a { color: #fff; text-decoration: none; transition: color .2s ease; }
.hblog-title a:hover { color: var(--brand-accent); }
.hblog-ex { font-family: var(--font-body); color: #cfcfcf; font-size: 16px; line-height: 1.6; margin-bottom: 12px; }

/* compact list */
.hblog-list { display: flex; flex-direction: column; gap: 14px; }
.hblog-li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  background: var(--surface-dark-alt); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 12px; text-decoration: none;
  transition: border-color .25s ease, transform .25s ease; }
.hblog-li:hover { border-color: rgba(191,247,71,0.4); transform: translateY(-2px); }
.hblog-li .hblog-media { height: 72px; border-radius: 8px; }
.hblog-li-title { display: block; font-family: var(--font-heading); font-weight: 400;
  color: #fff; font-size: 16px; line-height: 1.2; margin-bottom: 7px; }

@media (max-width: 900px) {
  .hblog { grid-template-columns: 1fr; gap: 30px; }
  .hblog-feat .hblog-media { height: 240px; }
  .hblog-title { font-size: 26px; }
}
@media (max-width: 480px) {
  .hblog-li { grid-template-columns: 72px 1fr; }
  .hblog-li .hblog-media { height: 60px; }
}

/* ------------------------------------------------------------------
   FOOTER (ElementsKit template 5407). Pre-footer CTA button was
   absolutely-positioned (overlapped the headline) — now flows below.
   Style it as the brand lime pill and give the CTA breathing room.
   Element-id selectors target the footer template's widgets.
   ------------------------------------------------------------------ */
.elementor-element-13d268a { margin-top: 28px !important; text-align: center; }
.elementor-element-13d268a .elementor-button {
  background: var(--brand-accent) !important; color: #000 !important;
  border-radius: 50px !important; padding: 16px 40px !important;
  font-family: var(--font-heading) !important; font-size: 18px !important; font-weight: 400 !important;
  transition: background-color .2s ease, transform .2s ease;
}
.elementor-element-13d268a .elementor-button:hover { background: var(--accent-dark) !important; transform: translateY(-1px); }

/* footer contact rows — clean icon + text alignment */
.elementor-element-a111120 .elementskit-info-box-icon,
.elementor-element-1300394 .elementskit-info-box-icon { flex: 0 0 auto; }

/* footer logo sizing */
.elementor-element-1e40ffc img { max-width: 190px; height: auto; }

/* Pre-footer CTA headings — larger than the 70px section-title default.
   Overrides the global :not(.section-title) 70px rule (same specificity,
   this loads later) via element-id + !important. */
.elementor-element-f23b774 .elementor-heading-title,
.elementor-element-719a0b4 .elementor-heading-title { font-size: 92px !important; line-height: 1.02 !important; }
@media (max-width: 1024px) {
  .elementor-element-f23b774 .elementor-heading-title,
  .elementor-element-719a0b4 .elementor-heading-title { font-size: 58px !important; }
}
@media (max-width: 600px) {
  .elementor-element-f23b774 .elementor-heading-title,
  .elementor-element-719a0b4 .elementor-heading-title { font-size: 36px !important; }
}

/* Footer fixes round 2:
   - CTA button kept a left:-386 / full-width transform from its old absolute
     centering; reset it to a normal centered inline pill.
   - Contact info-boxes rendered white bg + white text (invisible); force
     transparent so the white phone/email text shows on the dark footer. */
.elementor-element-13d268a {
  position: relative !important; left: auto !important; right: auto !important; top: auto !important;
  transform: none !important; width: 100% !important; text-align: center; margin-top: 28px !important;
}
.elementor-element-13d268a .elementor-button { display: inline-flex !important; width: auto !important; }
.elementor-element-a111120 .elementskit-infobox,
.elementor-element-1300394 .elementskit-infobox { background: transparent !important; box-shadow: none !important; }

/* Kill the parent theme's decorative wireframe-sphere ::before on the
   pre-footer CTA (demo asset from artistics/assets/images). Parent theme
   is never edited — overridden here. */
.elementor-element-1e35c81::before { background-image: none !important; }

/* Footer column titles (Quick Link / Support / Newsletter) were inheriting
   the 70px section-title default → oversized, wrapping. Bring down to a
   sensible footer-heading size. CTA headings (f23b774/719a0b4) untouched. */
.elementor-5407 .elementor-element-725e807 .elementor-heading-title,
.elementor-5407 .elementor-element-3d6c0d7 .elementor-heading-title,
.elementor-5407 .elementor-element-14d1141 .elementor-heading-title {
  font-size: 24px !important; line-height: 1.25 !important;
}

/* ------------------------------------------------------------------
   THANK-YOU page (post 11626, /thank-you/). Immersive full-bleed to
   match the enquiry form. Confirmation + next steps + return actions.
   "within 24 hours" = D-31 (locked). No invented claims.
   ------------------------------------------------------------------ */
.hera-ty-sec {
  position: relative; text-align: center;
  background-color: #000;
  background-image: radial-gradient(rgba(191, 247, 71, 0.10) 1.2px, transparent 1.6px);
  background-size: 40px 40px; overflow: hidden;
}
.hera-ty-sec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% -5%, rgba(191, 247, 71, 0.16), transparent 42%),
    radial-gradient(circle at 50% 108%, rgba(191, 247, 71, 0.08), transparent 45%);
}
.hera-ty-sec > * { position: relative; z-index: 1; }
.hera-ty { max-width: 720px; margin: 0 auto; }
.hera-ty-check {
  width: 74px; height: 74px; border-radius: 50%; background: var(--brand-accent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 26px;
  box-shadow: 0 0 0 8px rgba(191, 247, 71, 0.12);
}
.hera-ty-eyebrow { color: var(--brand-accent); font-family: var(--font-heading); letter-spacing: 3px; text-transform: uppercase; font-size: 14px; margin-bottom: 14px; }
.hera-ty-title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(34px, 6vw, 70px); line-height: 1.04; color: #fff; margin-bottom: 16px; }
.hera-ty-title span { color: var(--brand-accent); }
.hera-ty-sub { font-family: var(--font-body); font-size: 18px; color: #cfcfcf; line-height: 1.6; max-width: 560px; margin: 0 auto 30px; }
.hera-ty-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 430px; margin: 0 auto 34px; text-align: left; padding: 0; }
.hera-ty-steps li { display: flex; align-items: center; gap: 14px; color: #ddd; font-family: var(--font-body); font-size: 16px; }
.hera-ty-steps b { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(191, 247, 71, 0.5); color: var(--brand-accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 15px; }
.hera-ty-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hera-ty-btn { font-family: var(--font-heading); font-size: 18px; padding: 15px 34px; border-radius: 50px; background: var(--brand-accent); color: #000; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.hera-ty-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.hera-ty-btn.ghost { background: transparent; color: #fff; border: 2px solid var(--brand-accent); }
.hera-ty-btn.ghost:hover { background: var(--accent-dark); color: #000; border-color: var(--accent-dark); }
@media (max-width: 600px) { .hera-ty-btn { width: 100%; text-align: center; } }

/* CTA conversion routing: on-page CTAs scroll to the embedded form (#enquiry).
   Smooth scroll (disabled under prefers-reduced-motion by the block above),
   plus scroll-margin so the sticky header doesn't cover the form heading. */
html { scroll-behavior: smooth; }
#enquiry { scroll-margin-top: 100px; }

/* ------------------------------------------------------------------
   CONTACT PAGE (post 4737) — full page: intro + contact methods,
   form (immersive, reuses .heraedges-form), next-steps. Facts only:
   Cairo/Egypt, Sun–Thu 09:00–20:00 GMT+2, info@heraedges.com,
   +20 112 347 0777, reply within 24h (D-31). No street address (10 §9).
   ------------------------------------------------------------------ */
.hc-top, .hc-bottom { background: #000; }
.hc-intro { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.hc-title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(34px, 6vw, 70px); line-height: 1.04; color: #fff; }
.hc-title span { color: var(--brand-accent); }
.hc-sub { font-family: var(--font-body); font-size: 18px; color: #b8b8b8; line-height: 1.6; margin-top: 14px; }

.hc-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; max-width: 1100px; margin: 0 auto; }
.hc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; background: var(--surface-dark-alt); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 24px 22px; text-decoration: none; transition: border-color .25s ease, transform .25s ease; }
a.hc-card:hover { border-color: rgba(191, 247, 71, 0.4); transform: translateY(-3px); }
.hc-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(191, 247, 71, 0.12); color: var(--brand-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.hc-ic svg { width: 22px; height: 22px; }
.hc-k { font-family: var(--font-body); font-size: 12px; color: var(--neutral-500); text-transform: uppercase; letter-spacing: 1.2px; }
.hc-v { font-family: var(--font-heading); font-size: 18px; color: #fff; line-height: 1.3; word-break: break-word; }
.hc-a { font-family: var(--font-body); font-size: 13px; color: var(--brand-accent); margin-top: 6px; }
.hc-card.is-static .hc-a { color: var(--neutral-500); }

.hc-next { max-width: 620px; margin: 0 auto; text-align: center; }
.hc-next-title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(28px, 4vw, 44px); color: #fff; margin: 6px 0 26px; }
.hc-next .hera-ty-steps { text-align: left; }

@media (max-width: 900px) { .hc-methods { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hc-methods { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Floating WhatsApp button — site-wide (output in wp_footer). Lime to
   respect the brand-only palette (10 §), black WhatsApp glyph keeps it
   instantly recognisable. Fixed bottom-right, above content.
   ------------------------------------------------------------------ */
.hera-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 9990;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--brand-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hera-wa:hover, .hera-wa:focus-visible { transform: scale(1.08); box-shadow: 0 10px 30px rgba(191, 247, 71, 0.45); }
.hera-wa svg { width: 32px; height: 32px; fill: #000; }
@media (max-width: 600px) { .hera-wa { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

/* Privacy Policy page (post 3) — branded shell. NO legal wording here;
   the policy text is lawyer-drafted (CLAUDE.md §11). Placeholder + contact. */
.hc-legal { max-width: 760px; margin: 0 auto; text-align: center; }
.hc-legal-note { text-align: left; margin-top: 34px; background: var(--surface-dark-alt); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 28px 30px; }
.hc-legal-note p { font-family: var(--font-body); font-size: 16px; color: #cfcfcf; line-height: 1.7; }
.hc-legal-note p + p { margin-top: 14px; }
.hc-legal-note strong { color: #fff; }
.hc-legal-note a { color: var(--brand-accent); }

/* Privacy Policy — full legal-document layout (draft). Readable column,
   left-aligned, section headings. Draft banner = lime-tinted note. */
.hc-legal-sec .elementor-widget, .hc-legal-sec .elementor-widget-container { width: 100%; }
.hc-doc { max-width: 820px; margin: 0 auto; text-align: left; width: 100%; }
.hc-doc-banner { background: rgba(191, 247, 71, 0.10); border: 1px solid rgba(191, 247, 71, 0.4); border-radius: 12px; padding: 16px 18px; color: #e9ffc2; font-family: var(--font-body); font-size: 14px; line-height: 1.6; margin-bottom: 32px; }
.hc-doc-banner strong { color: var(--brand-accent); }
.hc-doc .hef-eyebrow { text-align: left; }
.hc-doc-title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(34px, 6vw, 64px); color: #fff; line-height: 1.05; }
.hc-doc-meta { font-family: var(--font-body); font-size: 14px; color: var(--neutral-500); margin: 8px 0 30px; }
.hc-doc-body h2 { font-family: var(--font-heading); font-weight: 400; font-size: 22px; color: #fff; margin: 28px 0 10px; }
.hc-doc-body p { font-family: var(--font-body); font-size: 16px; color: #cfcfcf; line-height: 1.7; margin-bottom: 12px; }
.hc-doc-body a { color: var(--brand-accent); }
.hc-doc-body em { color: var(--neutral-500); font-style: italic; }
.hc-doc-body strong { color: #fff; }
