/* ==========================================================================
   Envision Dev — UI Kit component styles (edv-* prefix)
   Relies on CSS tokens defined in style.css :root
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Icon base — applies to both Lucide-replaced SVGs and inline SVGs */
[data-lucide], [data-lucide] svg,
.edv-card-ico svg, .edv-feature-ico svg,
.edv-foot-contact svg, .edv-checklist svg,
.edv-btn svg, .edv-scroll-ind svg,
.edv-header-actions svg, .edv-drop-menu svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
/* Ensure card/feature icon colours */
.edv-card-ico svg { color: var(--burgundy-200); width: 26px; height: 26px; }
.edv-feature-ico svg { color: var(--teal-600); width: 24px; height: 24px; }
.edv-checklist li svg { color: var(--teal-600); width: 20px; height: 20px; margin-top: 2px; }
.edv-foot-contact svg { color: var(--teal-400); width: 16px; height: 16px; }
.edv-card-more svg { color: var(--teal-300); transition: transform var(--dur) var(--ease-out); }
.edv-card:hover .edv-card-more svg { transform: translateX(4px); }
[dir="rtl"] .edv-card:hover .edv-card-more svg { transform: translateX(-4px) scaleX(-1); }
.edv-stat-n svg { display: none; } /* stats use text, not icons */

.edv-container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 32px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.edv-header { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.edv-header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }

/* Default: transparent over dark hero */
.edv-header:not(.scrolled) { background: transparent; }

/* Scrolled: cream glassmorphism */
.edv-header.scrolled { background: rgba(244,237,234,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }

/* Logo */
.edv-logo { flex: none; display: flex; align-items: center; text-decoration: none; }
.edv-logo .logo-dark { display: none; }
.edv-logo .logo-light { display: block; }
.edv-header.scrolled .edv-logo .logo-dark { display: block; }
.edv-header.scrolled .edv-logo .logo-light { display: none; }
.edv-logo img, .edv-logo .custom-logo { height: 40px; width: auto; }

/* Nav links */
.edv-nav { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.edv-nav > a, .edv-drop-trigger { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: rgba(255,255,255,.9) !important; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--r-sm); text-decoration: none !important; transition: color var(--dur), background var(--dur); position: relative; cursor: pointer; background: none; border: none; }
.edv-nav > a:hover, .edv-drop-trigger:hover { color: var(--teal-300) !important; }
.edv-header.scrolled .edv-nav > a, .edv-header.scrolled .edv-drop-trigger { color: var(--fg-1) !important; }
.edv-header.scrolled .edv-nav > a:hover, .edv-header.scrolled .edv-drop-trigger:hover { color: var(--burgundy-700) !important; background: rgba(116,12,62,.06); }
.edv-nav > a[aria-current="page"] { color: var(--teal-300) !important; }
.edv-header.scrolled .edv-nav > a[aria-current="page"] { color: var(--burgundy-700) !important; }

/* Services dropdown */
.edv-drop { position: relative; }
.edv-drop-menu { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 8px; min-width: 260px; display: flex; flex-direction: column; gap: 2px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); z-index: 10; }
.edv-drop-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.edv-drop:hover .edv-drop-menu, .edv-drop:focus-within .edv-drop-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.edv-drop-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--fg-1); text-decoration: none; transition: background var(--dur), color var(--dur); }
.edv-drop-menu a:hover { background: var(--burgundy-50); color: var(--burgundy-700); }
.edv-drop-menu a svg, .edv-drop-menu a i[data-lucide] { color: var(--teal-600); flex: none; }

/* Header actions */
.edv-header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* Language button */
.edv-lang { background: none; border: none; cursor: pointer; font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 5px; padding: 0; }
.edv-lang .on { color: #fff; font-weight: 700; }
.edv-lang .sep { color: rgba(255,255,255,.35); }
.edv-header.scrolled .edv-lang { color: var(--fg-3); }
.edv-header.scrolled .edv-lang .on { color: var(--burgundy-700); font-weight: 700; }
.edv-header.scrolled .edv-lang .sep { color: var(--line-strong); }

/* WA icon */
.edv-wa-icon { color: var(--whatsapp); font-size: 22px; display: inline-flex; text-decoration: none; transition: transform var(--dur); }
.edv-wa-icon:hover { transform: scale(1.1); }

/* Burger */
.edv-burger { background: none; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-sm); cursor: pointer; color: #fff; padding: 6px; display: none; align-items: center; justify-content: center; transition: border-color var(--dur), color var(--dur); }
.edv-header.scrolled .edv-burger { color: var(--fg-1); border-color: var(--line); }

/* Mobile overlay */
.edv-mobile { position: fixed; inset: 0; z-index: 9500; background: var(--ink-900); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; animation: edvFade .25s var(--ease-out); }
.edv-mobile.is-open { display: flex; }
.edv-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 16px; }
.edv-mobile nav a { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--cream); text-decoration: none; transition: color var(--dur); }
.edv-mobile nav a:hover { color: var(--teal-300); }
.edv-mobile-close { position: absolute; top: 24px; inset-inline-end: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-sm); color: var(--cream); cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.edv-footer { background: var(--ink-900); color: var(--fg-on-dark-2); padding-top: 72px; }
.edv-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.edv-foot-logo-text { font-family: var(--font-display); font-size: 22px; font-weight: 900; letter-spacing: -.03em; color: #fff; text-decoration: none; display: inline-block; margin-bottom: 16px; }
.edv-foot-logo-text span { color: var(--teal-300); }
.edv-foot-logo { height: 38px; width: auto; margin-bottom: 18px; display: block; filter: brightness(0) invert(1); }
.edv-footer .custom-logo { height: 38px; width: auto; margin-bottom: 18px; display: block; filter: brightness(0) invert(1); }
.edv-foot-desc { font-size: 14px; line-height: 1.65; color: var(--fg-on-dark-2); max-width: 280px; margin: 0 0 20px; }
.edv-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.edv-socials a { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; color: var(--fg-on-dark-2); font-size: 15px; text-decoration: none; transition: all var(--dur) var(--ease-out); }
.edv-socials a:hover { background: var(--burgundy-700); border-color: var(--burgundy-700); color: #fff; transform: translateY(-3px); }
.edv-foot-h { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 18px; }
.edv-foot-col { display: flex; flex-direction: column; }
.edv-footer .edv-foot-col > a { font-size: 14px; color: var(--fg-on-dark-2) !important; text-decoration: none; padding: 5px 0; transition: color var(--dur), padding-inline-start var(--dur); }
.edv-footer .edv-foot-col > a:hover { color: var(--teal-300) !important; padding-inline-start: 6px; }
.edv-foot-contact { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--fg-on-dark-2); text-decoration: none; padding: 5px 0; transition: color var(--dur); }
.edv-foot-contact:hover { color: var(--cream); }
.edv-foot-contact i[data-lucide] { color: var(--teal-400); flex: none; margin-top: 2px; }
.edv-foot-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; border-top: 1px solid var(--line-dark); font-size: 13px; font-family: var(--font-mono); color: rgba(244,237,234,.35); gap: 16px; flex-wrap: wrap; }
.edv-foot-legal { display: flex; gap: 20px; }
.edv-foot-legal a { color: rgba(244,237,234,.35) !important; text-decoration: none; transition: color var(--dur); }
.edv-foot-legal a:hover { color: var(--teal-300) !important; }

/* Footer responsive */
@media (max-width: 960px) { .edv-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 580px) { .edv-footer-grid { grid-template-columns: 1fr; } .edv-foot-bottom { flex-direction: column; text-align: center; } }

/* ---- shared type helpers ---- */
.edv-eyebrow { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy-700); margin-bottom: 14px; }
.edv-eyebrow-teal { color: var(--teal-500); }
.edv-eyebrow.center { text-align: center; }
.edv-h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; color: var(--fg-1); margin: 0 0 16px; }
.edv-h2.center { text-align: center; }
.edv-h2.on-dark { color: var(--cream); }
.edv-lead { font-size: 19px; line-height: 1.6; color: var(--fg-2); margin: 0; max-width: 620px; }
.edv-lead.on-dark { color: var(--fg-on-dark-2); }

.edv-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.edv-head .edv-lead { margin-inline: auto; }

/* ---- sections ---- */
.edv-section { padding: clamp(64px, 9vw, 112px) 0; }
.edv-section-ink { background: var(--ink-800); color: var(--cream); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.edv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-body);
  font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: all var(--dur) var(--ease-out); white-space: nowrap; text-decoration: none; }
.edv-btn:active { transform: scale(.97); }
.edv-btn-sm { padding: 9px 18px; font-size: 13.5px; }
.edv-btn-lg { padding: 16px 32px; font-size: 16.5px; }
/* Use a.edv-btn prefix so these always beat bare `a { color }` rules */
a.edv-btn, button.edv-btn { text-decoration: none; }
a.edv-btn-primary, .edv-btn-primary { background: var(--burgundy-700) !important; color: #fff !important; }
a.edv-btn-primary:hover, .edv-btn-primary:hover { background: var(--burgundy-800) !important; box-shadow: var(--glow-burgundy); transform: translateY(-2px); color: #fff !important; }
a.edv-btn-outline-light, .edv-btn-outline-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
a.edv-btn-outline-light:hover, .edv-btn-outline-light:hover { background: #fff; color: var(--ink-800) !important; border-color: #fff; }
a.edv-btn-on-burgundy, .edv-btn-on-burgundy { background: var(--cream); color: var(--burgundy-700) !important; }
a.edv-btn-on-burgundy:hover, .edv-btn-on-burgundy:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.18); color: var(--burgundy-700) !important; }
a.edv-btn-whatsapp, .edv-btn-whatsapp { background: var(--whatsapp); color: #fff !important; }
a.edv-btn-whatsapp:hover, .edv-btn-whatsapp:hover { filter: brightness(.95); transform: translateY(-2px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.edv-hero { position: relative; min-height: 100vh; display: flex; align-items: center; background:
   radial-gradient(900px 600px at 78% 18%, rgba(116,12,62,.5), transparent 60%),
   linear-gradient(180deg, rgba(27,28,28,.62), rgba(27,28,28,.82)),
   url('/wp-content/themes/envision-dark/assets/brand/photos/street-sunrise.jpg') center / cover no-repeat,
   var(--ink-900); overflow: hidden; padding-top: 76px; }
.edv-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.edv-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,28,28,.2), rgba(27,28,28,.55)); }
.edv-hero-inner { position: relative; z-index: 2; max-width: 880px; padding-block: 80px; }
.edv-hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 7vw, 76px); line-height: 1.06;
  letter-spacing: -.025em; color: #fff; margin: 0 0 22px; }
.edv-word-wrap { display: inline-block; }
.edv-word { display: inline-block; background: linear-gradient(90deg, var(--teal-300), var(--burgundy-200)); -webkit-background-clip: text;
  background-clip: text; color: transparent; animation: wordIn .5s var(--ease-out); }
@keyframes wordIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.edv-hero-sub { font-size: 20px; line-height: 1.6; color: rgba(244,237,234,.82); max-width: 600px; margin: 0 0 34px; }
.edv-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.edv-scroll-ind { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex;
  flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.6); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase; animation: bob 2s var(--ease-in-out) infinite;
  text-decoration: none; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ==========================================================================
   CARDS — services
   ========================================================================== */
.edv-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.edv-card { display: block; padding: 30px 28px; border-radius: var(--r-lg); transition: all var(--dur) var(--ease-out); text-decoration: none; }
.edv-card-dark { background: var(--surface-dark); border: 1px solid var(--line-dark); }
.edv-card-dark:hover { transform: var(--lift); border-color: var(--burgundy-400); box-shadow: var(--glow-burgundy); }
.edv-card-ico { width: 56px; height: 56px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  background: rgba(116,12,62,.18); color: var(--burgundy-200); margin-bottom: 20px; transition: transform var(--dur) var(--ease-out); }
.edv-card:hover .edv-card-ico { animation: bounce .5s var(--ease-out); }
@keyframes bounce { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-7px); } 70% { transform: translateY(-2px); } }
.edv-card-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.edv-card-desc { font-size: 14.5px; line-height: 1.55; color: var(--fg-on-dark-2); margin: 0 0 18px; }
.edv-card-more { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-300); display: inline-flex; align-items: center; gap: 7px; }
.edv-card:hover .edv-card-more svg { transform: translateX(4px); }
[dir="rtl"] .edv-card:hover .edv-card-more svg { transform: translateX(-4px) scaleX(-1); }

/* ---- features (why choose) ---- */
.edv-feature { display: flex; gap: 18px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs); transition: all var(--dur) var(--ease-out); }
.edv-feature:hover { transform: var(--lift); box-shadow: var(--shadow-md); }
.edv-feature-ico { width: 52px; height: 52px; flex: none; border-radius: var(--r-md); background: var(--teal-50); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center; }
.edv-feature-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--fg-1); margin: 2px 0 6px; }
.edv-feature-desc { font-size: 14px; line-height: 1.5; color: var(--fg-2); margin: 0; }

/* ==========================================================================
   STATS
   ========================================================================== */
.edv-stats { background:
   radial-gradient(700px 400px at 50% 0%, rgba(116,12,62,.4), transparent 60%), var(--ink-900); }
.edv-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.edv-stat { text-align: center; }
.edv-stat-n { font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, var(--burgundy-200)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.edv-stat-l { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-300); margin-top: 8px; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.edv-testi { background: var(--paper); }
.edv-testi-inner { max-width: 800px; text-align: center; }
.edv-quote { position: relative; margin-top: 36px; }
.edv-quote-mark { color: var(--burgundy-100); margin: 0 auto 6px; display: block; }
.edv-quote-text { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 500; line-height: 1.4;
  color: var(--fg-1); margin: 0 auto 22px; max-width: 700px; animation: edvFade .5s var(--ease-out) both; }
.edv-stars { display: flex; justify-content: center; gap: 4px; color: var(--burgundy-700); margin-bottom: 22px; }
.edv-stars svg { fill: currentColor; }
.edv-client { display: inline-flex; align-items: center; gap: 14px; }
.edv-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--burgundy-700); color: #fff; display: flex;
  align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.edv-client-name { font-weight: 700; color: var(--fg-1); text-align: start; }
.edv-client-role { font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); text-align: start; }
.edv-testi-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 38px; }
.edv-testi-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff;
  color: var(--fg-1); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--dur); }
.edv-testi-nav button:hover { background: var(--burgundy-700); color: #fff; border-color: var(--burgundy-700); }
.edv-dots { display: flex; gap: 8px; }
.edv-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); cursor: pointer; transition: all var(--dur); }
.edv-dots span.on { background: var(--burgundy-700); width: 24px; border-radius: 4px; }

/* ==========================================================================
   OUR STORY
   ========================================================================== */
.edv-story { background: var(--paper); }
.edv-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.edv-story-media { position: relative; }
.edv-story-media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: block; }
.edv-story-badge { position: absolute; inset-inline-end: -16px; bottom: -16px; background: var(--burgundy-700); color: #fff;
  border-radius: var(--r-md); padding: 16px 22px; display: flex; flex-direction: column; box-shadow: var(--glow-burgundy); }
.edv-story-badge-n { font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 1; }
.edv-story-badge span:last-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--burgundy-100); margin-top: 4px; }
.edv-checklist { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.edv-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--fg-1); font-weight: 500; }
.edv-checklist li svg { color: var(--teal-600); flex: none; margin-top: 1px; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.edv-cta-banner { background: linear-gradient(120deg, var(--burgundy-800), var(--burgundy-600) 60%, var(--burgundy-500)); padding: clamp(64px, 8vw, 96px) 0; }
.edv-cta-inner { text-align: center; max-width: 720px; }
.edv-cta-inner .edv-lead { margin: 0 auto 30px; color: rgba(255,255,255,.85); }
.edv-cta-inner .edv-h2 { color: #fff; }

/* ==========================================================================
   WHATSAPP FAB
   ========================================================================== */
.edv-wa-fab { position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 80; display: flex; align-items: center; gap: 12px; }
.edv-wa-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); display: flex;
  align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform var(--dur); text-decoration: none; }
.edv-wa-btn:hover { transform: scale(1.07); }
.edv-wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); opacity: .45; animation: waPulse 2s var(--ease-out) infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.9); opacity: 0; } }
.edv-wa-tip { background: #fff; color: var(--fg-1); font-size: 13px; padding: 10px 14px; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  max-width: 240px; line-height: 1.4; animation: edvFade .25s var(--ease-out); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal] { opacity: 0; }
[data-reveal].is-in { animation: revealUp .7s var(--ease-out) forwards; }
@keyframes revealUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes edvFade { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   RTL
   ========================================================================== */
[dir="rtl"] .edv-hero-title, [dir="rtl"] .edv-h2, [dir="rtl"] .edv-card-title,
[dir="rtl"] .edv-feature-title, [dir="rtl"] .edv-quote-text, [dir="rtl"] .edv-foot-h { font-family: var(--font-ar-display); letter-spacing: normal; }
[dir="rtl"] .edv-eyebrow, [dir="rtl"] .edv-stat-l, [dir="rtl"] .edv-card-more { letter-spacing: normal; }
[dir="rtl"] .icon-directional { transform: scaleX(-1); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .edv-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .edv-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .edv-story-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  .edv-container { padding-inline: 20px; }
  .edv-grid-3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   INNER-PAGE COMPONENTS
   ========================================================================== */

/* ---- Page hero (inner pages) ---- */
.edv-pagehero {
  position: relative; overflow: hidden;
  padding: clamp(130px, 18vw, 200px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(800px 500px at 80% 10%, rgba(116,12,62,.55), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(0,206,209,.18), transparent 60%),
    linear-gradient(160deg, var(--ink-900), var(--ink-800));
  color: var(--cream); text-align: center;
}
.edv-pagehero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(244,237,234,.05) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .5;
}
.edv-pagehero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.edv-pagehero .edv-eyebrow { color: var(--teal-300); }
.edv-pagehero h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
  font-size: clamp(38px, 6vw, 64px); color: #fff; margin: 0 0 18px;
}
.edv-pagehero .edv-pagehero-sub { font-size: clamp(16px, 2vw, 20px); line-height: 1.6; color: rgba(244,237,234,.82); max-width: 620px; margin: 0 auto; }
.edv-breadcrumb { display: flex; justify-content: center; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(244,237,234,.5); margin-top: 22px; }
.edv-breadcrumb a { color: var(--teal-300) !important; text-decoration: none; }
.edv-breadcrumb span { opacity: .5; }
/* floating orbs */
.edv-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(8px); opacity: .55; animation: edvFloat 9s var(--ease-in-out) infinite; }
.edv-orb-1 { width: 120px; height: 120px; background: radial-gradient(circle, rgba(0,206,209,.4), transparent 70%); top: 22%; left: 8%; }
.edv-orb-2 { width: 180px; height: 180px; background: radial-gradient(circle, rgba(116,12,62,.5), transparent 70%); bottom: 12%; right: 10%; animation-delay: -3s; }
@keyframes edvFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(0,-26px); } }

/* ---- Section header variants ---- */
.edv-section.alt { background: var(--paper); }
.edv-section.cream { background: var(--cream); }

/* ---- Prose / rich text ---- */
.edv-prose { max-width: 760px; margin: 0 auto; }
.edv-prose p { font-size: 17px; line-height: 1.75; color: var(--fg-2); margin: 0 0 18px; }
.edv-prose h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--fg-1); margin: 32px 0 12px; }
.edv-prose ul { margin: 0 0 18px; padding-inline-start: 22px; }
.edv-prose li { font-size: 16px; line-height: 1.7; color: var(--fg-2); margin-bottom: 8px; }

/* ---- Split section (image + text) ---- */
.edv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.edv-split.reverse .edv-split-media { order: 2; }
.edv-split-media { position: relative; }
.edv-split-media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: block; }
.edv-split-media .edv-orb-badge { position: absolute; inset-inline-end: -14px; bottom: -14px; background: var(--burgundy-700); color: #fff; border-radius: var(--r-md); padding: 14px 20px; box-shadow: var(--glow-burgundy); font-family: var(--font-display); font-weight: 700; }
@media (max-width: 860px) { .edv-split { grid-template-columns: 1fr; gap: 40px; } .edv-split.reverse .edv-split-media { order: 0; } }

/* ---- Process steps ---- */
.edv-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.edv-step { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); transition: all var(--dur) var(--ease-out); }
.edv-step:hover { transform: var(--lift); box-shadow: var(--shadow-md); border-color: var(--burgundy-200); }
.edv-step-n { counter-increment: step; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #fff; width: 40px; height: 40px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--burgundy-700), var(--burgundy-500)); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.edv-step-n::before { content: '0' counter(step); }
.edv-step h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--fg-1); margin: 0 0 8px; }
.edv-step p { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0; }
@media (max-width: 900px) { .edv-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .edv-steps { grid-template-columns: 1fr; } }

/* ---- Accordion (FAQ) ---- */
.edv-acc { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.edv-acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--dur), box-shadow var(--dur); }
.edv-acc-item.open { border-color: var(--burgundy-300); box-shadow: var(--shadow-sm); }
.edv-acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: start; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--fg-1); }
.edv-acc-q:hover { color: var(--burgundy-700); }
.edv-acc-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--burgundy-50); color: var(--burgundy-700); display: flex; align-items: center; justify-content: center; transition: transform var(--dur) var(--ease-out), background var(--dur); }
.edv-acc-item.open .edv-acc-icon { transform: rotate(45deg); background: var(--burgundy-700); color: #fff; }
.edv-acc-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.edv-acc-a-inner { padding: 0 24px 22px; font-size: 15.5px; line-height: 1.7; color: var(--fg-2); }

/* ---- Pricing cards ---- */
.edv-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.edv-price-card { position: relative; display: flex; flex-direction: column; padding: 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: all var(--dur) var(--ease-out); }
.edv-price-card:hover { transform: var(--lift); box-shadow: var(--shadow-lg); }
.edv-price-card.featured { background: linear-gradient(160deg, var(--ink-900), var(--ink-800)); border: 1px solid transparent; color: var(--cream); transform: scale(1.03); }
.edv-price-card.featured:hover { transform: scale(1.03) translateY(-8px); box-shadow: var(--glow-burgundy), var(--shadow-lg); }
.edv-price-badge { position: absolute; top: 18px; inset-inline-end: 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); background: linear-gradient(135deg, var(--burgundy-700), var(--burgundy-500)); color: #fff; }
.edv-price-name { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy-700); margin-bottom: 14px; }
.edv-price-card.featured .edv-price-name { color: var(--teal-300); }
.edv-price-amount { font-family: var(--font-display); font-size: 46px; font-weight: 800; letter-spacing: -.02em; color: var(--fg-1); line-height: 1; }
.edv-price-card.featured .edv-price-amount { color: #fff; }
.edv-price-amount small { font-size: 16px; font-weight: 500; color: var(--fg-3); }
.edv-price-amount .cur { font-size: 22px; vertical-align: super; }
.edv-price-desc { font-size: 14px; color: var(--fg-2); margin: 12px 0 22px; line-height: 1.55; }
.edv-price-card.featured .edv-price-desc { color: var(--fg-on-dark-2); }
.edv-price-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.edv-price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--fg-1); }
.edv-price-card.featured .edv-price-list li { color: var(--cream); }
.edv-price-list li svg { color: var(--teal-600); flex: none; margin-top: 2px; }
.edv-price-card.featured .edv-price-list li svg { color: var(--teal-300); }
@media (max-width: 900px) { .edv-pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .edv-price-card.featured { transform: none; } .edv-price-card.featured:hover { transform: var(--lift); } }

/* ---- Contact form / split ---- */
.edv-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .edv-contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.edv-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.edv-field { margin-bottom: 18px; }
.edv-field label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 7px; }
.edv-field input, .edv-field textarea, .edv-field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 15px; color: var(--fg-1); background: var(--paper);
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.edv-field input:focus, .edv-field textarea:focus, .edv-field select:focus {
  outline: none; border-color: var(--burgundy-500); background: #fff; box-shadow: 0 0 0 3px rgba(116,12,62,.1);
}
.edv-field textarea { resize: vertical; min-height: 120px; }
.edv-contact-info { display: flex; flex-direction: column; gap: 18px; }
.edv-contact-row { display: flex; gap: 16px; align-items: flex-start; }
.edv-contact-row .edv-ci-ico { width: 48px; height: 48px; flex: none; border-radius: var(--r-md); background: var(--teal-50); color: var(--teal-600); display: flex; align-items: center; justify-content: center; }
.edv-contact-row h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--fg-1); margin: 0 0 3px; }
.edv-contact-row p, .edv-contact-row a { font-size: 15px; color: var(--fg-2) !important; text-decoration: none; margin: 0; line-height: 1.5; }
.edv-contact-row a:hover { color: var(--burgundy-700) !important; }

/* ---- Generic icon-tile grid (values, features) ---- */
.edv-tile { padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); transition: all var(--dur) var(--ease-out); }
.edv-tile:hover { transform: var(--lift); box-shadow: var(--shadow-md); border-color: var(--burgundy-200); }
.edv-tile-ico { width: 54px; height: 54px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--teal-50), rgba(0,206,209,.12)); color: var(--teal-600); margin-bottom: 18px; transition: all var(--dur) var(--ease-out); }
.edv-tile:hover .edv-tile-ico { background: linear-gradient(135deg, var(--burgundy-700), var(--burgundy-500)); color: #fff; transform: scale(1.08) rotate(-4deg); }
.edv-tile-ico svg { width: 26px; height: 26px; }
.edv-tile h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--fg-1); margin: 0 0 8px; }
.edv-tile p { font-size: 14.5px; line-height: 1.6; color: var(--fg-2); margin: 0; }

/* ---- Logo / portfolio grid ---- */
.edv-port-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.edv-port-item { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.edv-port-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.edv-port-item:hover img { transform: scale(1.08); }
.edv-port-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,28,28,.85), transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; opacity: 0; transition: opacity var(--dur); }
.edv-port-item:hover .edv-port-overlay { opacity: 1; }
.edv-port-overlay h4 { font-family: var(--font-display); color: #fff; font-size: 19px; margin: 0 0 4px; }
.edv-port-overlay span { font-family: var(--font-mono); font-size: 12px; color: var(--teal-300); letter-spacing: .05em; }
@media (max-width: 900px) { .edv-port-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .edv-port-grid { grid-template-columns: 1fr; } }

/* ---- 2-col feature grid helper ---- */
.edv-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.edv-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .edv-grid-2, .edv-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .edv-grid-2, .edv-grid-4 { grid-template-columns: 1fr; } }

/* ---- Reveal scale variant ---- */
[data-reveal="scale"] { opacity: 0; }
[data-reveal="scale"].is-in { animation: revealScale .6s var(--ease-out) forwards; }
@keyframes revealScale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
[data-reveal="left"] { opacity: 0; }
[data-reveal="left"].is-in { animation: revealLeft .6s var(--ease-out) forwards; }
@keyframes revealLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
[data-reveal="right"] { opacity: 0; }
[data-reveal="right"].is-in { animation: revealRight .6s var(--ease-out) forwards; }
@keyframes revealRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   FIX: FOOTER WHATSAPP BUTTON TEXT COLOR
   The footer's `.edv-foot-col > a` rule (color: muted cream !important) was
   beating `.edv-btn-whatsapp`'s white text because of higher specificity, so
   the "WhatsApp Us" label rendered low-contrast on green. Raise specificity
   so the button label + icon stay white in normal and hover states.
   ========================================================================== */
.edv-footer .edv-foot-col > a.edv-btn-whatsapp,
.edv-footer .edv-foot-col > a.edv-btn-whatsapp:hover,
.edv-footer .edv-foot-col > a.edv-btn-whatsapp:focus { color: #fff !important; }
.edv-footer .edv-foot-col > a.edv-btn-whatsapp svg { color: #fff; fill: currentColor; }

/* ==========================================================================
   FIX: STRAY GAP / LINE ABOVE FOOTER
   Pages are built as one full-bleed HTML widget plus a trailing HTML widget
   that holds only a <script> (e.g. the service-card link fixer). Elementor's
   flex-container item gap put visible space below that script widget, showing
   as a cream strip between the CTA banner and the dark footer — most obvious
   on the Arabic home. Inline scripts still execute while hidden, so removing
   these script-only widgets from layout fixes the gap with no side effects.
   ========================================================================== */
.elementor-widget-html:has(> .elementor-widget-container > script:only-child) { display: none !important; }
/* Belt-and-suspenders: collapse any leftover item gap on the page's outer
   full-width containers (sections supply their own padding). */
#main-content > .elementor .e-con.e-parent { gap: 0 !important; }

/* ==========================================================================
   FIX: MOBILE FORM RESPONSIVENESS (contact EN/AR + domains order form)
   Inputs were 14px (triggers iOS zoom-on-focus) and the contact card kept a
   fixed 40px padding on phones. These rules apply site-wide and use
   !important so they win over the per-page widget <style> blocks regardless
   of source order.
   ========================================================================== */
/* Never let a control or its card overflow its container */
.edv-cf7-input, .edv-cf7-select, .edv-cf7-textarea,
.dom-field input, .dom-field select, .dom-field textarea,
.dom-input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 600px) {
  /* 16px input text prevents mobile Safari from auto-zooming on focus */
  .edv-cf7-input, .edv-cf7-select, .edv-cf7-textarea,
  .dom-field input, .dom-field select, .dom-field textarea { font-size: 16px !important; }
  /* Tighter card padding so fields get more usable width on small phones */
  .edv-cp-form-wrap { padding: 24px 18px !important; }
  /* Stack any 2-column rows and keep comfortable spacing */
  .edv-cf7-row--2col { flex-direction: column !important; gap: 0 !important; }
  .edv-cf7-row { margin-bottom: 14px !important; }
  /* Submit buttons: full width, never clipped */
  .edv-cf7-btn, .dom-submit { width: 100% !important; white-space: normal !important; }
}
