/*
Theme Name: HexWeb
Theme URI: https://hexweb.dev
Author: HexWeb
Author URI: https://hexweb.dev
Description: Custom dark hex-terminal themed WordPress theme for HexWeb.dev. Mouse-reactive hex grid background, central rotating liquid-metal hex-sphere hub with dynamic link lines to site sections. Manual on-page SEO (no SEO plugin dependency). All colors, fonts, and shared layout chrome live in this single stylesheet, referenced by every page template in the theme.
Version: 0.1.3.0
Requires at least: 6.5
Requires PHP: 7.4
Tested up to: 6.7
Text Domain: hexweb
*/

/* ==================================================================
   DESIGN SYSTEM + SHARED CHROME — color palette, fonts, header,
   footer, ambient hex-grid/scanline background, and the homepage's
   hex-sphere hub. Every template enqueues ONLY this stylesheet for
   its base styling, per Master Victor's request to keep style,
   palette, and fonts centralized rather than embedded per-page.
   ================================================================== */

  :root{
    --bg:#050706; --bg2:#0a1210; --ink:#eafff4;
    --teal:#8fe8c8; --teal-mid:#6fd3aa; --teal-line:#3fae86; --teal-dim:#4d7d6c; --teal-dark:#1f4a3c;
    --panel-line:#163a2e; --gold:#e6c13c; --gold-bright:#ffe98f;
    --mono:'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    --display:'Space Grotesk', sans-serif;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg); color:var(--teal); font-family:var(--mono);
    line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden;
  }
  a{color:inherit; text-decoration:none;}
  h1,h2,h3{font-family:var(--display); color:var(--ink); letter-spacing:-0.01em;}

  .skip-link{position:absolute; left:-999px; top:0; background:var(--teal); color:var(--bg); padding:8px 16px; z-index:200; font-weight:700;}
  .skip-link:focus{left:0;}

  @keyframes scanmove{0%{background-position:0 0}100%{background-position:0 100%}}
  @keyframes drift{
    0%{transform:translate(0,0)}
    25%{transform:translate(4px,-10px)}
    50%{transform:translate(-3px,-16px)}
    75%{transform:translate(-6px,-6px)}
    100%{transform:translate(0,0)}
  }
  @keyframes warpBurst{
    0%{transform:scale(.3);opacity:.9;filter:blur(0)}
    60%{opacity:.5}
    100%{transform:scale(2.6);opacity:0;filter:blur(2px)}
  }
  @keyframes warpFlash{0%{opacity:.35}100%{opacity:0}}

  /* ============ GLOBAL CHROME — present on every page, fixed to viewport ============ */
  .fx-grid{
    position:fixed; inset:0; z-index:0; pointer-events:none;
    background-image:linear-gradient(rgba(120,255,200,0.035) 1px,transparent 1px),
                      linear-gradient(90deg,rgba(120,255,200,0.035) 1px,transparent 1px);
    background-size:40px 40px;
  }
  .fx-scan{
    position:fixed; inset:0; z-index:1; pointer-events:none; mix-blend-mode:overlay;
    background-image:repeating-linear-gradient(rgba(0,0,0,0) 0,rgba(0,0,0,0) 2px,rgba(0,0,0,.28) 3px,rgba(0,0,0,0) 4px);
    background-size:100% 4px; animation:scanmove 6s linear infinite;
  }
  #hexCanvas{position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none;}
  .warp-flash{position:fixed; inset:0; pointer-events:none; z-index:8; background:#dff5ea; opacity:0;}
  .warp-ring{position:fixed; width:60px; height:60px; margin:-30px 0 0 -30px; border-radius:50%; border:2px solid var(--teal); box-shadow:0 0 40px 10px rgba(143,232,200,.5); pointer-events:none; z-index:8; opacity:0;}

  /* ============ TOP STATUS BAR ============ */
  header{
    position:sticky; top:0; z-index:50; display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; row-gap:10px;
    padding:clamp(14px,3vw,22px) 6vw; border-bottom:1px solid var(--panel-line);
    background:rgba(5,7,6,.55); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
    transition:background .3s ease, border-color .3s ease, box-shadow .3s ease, padding .3s ease;
  }
  header.is-scrolled{
    background:rgba(5,7,6,.92); border-color:var(--teal-dark);
    box-shadow:0 8px 24px -12px rgba(0,0,0,.6);
    padding-top:clamp(10px,2vw,14px); padding-bottom:clamp(10px,2vw,14px);
  }
  .logo{font-size:clamp(.85rem,4vw,1.15rem); font-weight:700; letter-spacing:clamp(2px,1vw,6px); color:var(--ink); white-space:nowrap;}
  .logo .dim{color:var(--teal-dim); letter-spacing:clamp(1px,0.5vw,2px);}
  .status-row{display:flex; gap:18px; font-size:.68rem; letter-spacing:1.5px; color:var(--teal-mid); text-transform:uppercase;}
  .status-row span::before{content:'● '; color:var(--teal-line);}
  .hdr-actions{display:flex; align-items:center; gap:clamp(10px,2vw,20px); flex-wrap:wrap; justify-content:flex-end;}
  .hdr-right{display:flex; align-items:center; gap:clamp(8px,2vw,16px); flex-wrap:wrap;}
  .clear-btn{
    appearance:none; -webkit-appearance:none; -moz-appearance:none;
    background:transparent; cursor:pointer; font-family:inherit;
    border:1px solid var(--teal-mid); border-radius:2px;
    padding:clamp(5px,1.5vw,6px) clamp(9px,3vw,14px); font-size:clamp(.6rem,2vw,.68rem);
    letter-spacing:clamp(1px,0.5vw,2px); color:var(--teal); font-weight:700; text-transform:uppercase; transition:.2s; white-space:nowrap;
  }
  .clear-btn:hover{border-color:var(--gold-bright); color:var(--gold-bright);}
  nav ul{list-style:none; display:flex; align-items:center; gap:clamp(12px,1.8vw,30px); font-size:.78rem; letter-spacing:1px; text-transform:uppercase; flex-wrap:nowrap;}
  nav a{color:var(--teal); font-weight:700; transition:color .2s; white-space:nowrap;}
  nav a:hover, nav a.active{color:var(--gold-bright);}
  nav#primaryNav{position:relative; min-width:0;}
  .live-demo-btn{display:none;}
  .nav-cta{color:var(--gold-bright); border-color:var(--gold);}

  @media (min-width:1001px) and (max-width:1300px){
    nav ul{gap:14px; font-size:.7rem;}
    nav ul .clear-btn{padding:5px 9px; font-size:.58rem; letter-spacing:1px;}
  }

  /* ============ "BLOG" NAV DROPDOWN — vertical landing pages ============ */
  .nav-dd{position:relative;}
  .nav-dd summary{
    list-style:none; cursor:pointer; display:flex; align-items:center; gap:5px;
    color:var(--teal); font-weight:700; transition:color .2s;
  }
  .nav-dd summary::-webkit-details-marker{display:none;}
  .nav-dd summary::after{content:'▾'; font-size:.6em; color:var(--teal-dim); transition:transform .2s;}
  .nav-dd:hover summary, .nav-dd[open] summary{color:var(--gold-bright);}
  .nav-dd[open] summary::after{transform:rotate(180deg);}
  .nav-dd .dropdown-menu{
    position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%);
    display:flex; flex-direction:column; gap:0; list-style:none;
    width:250px; background:var(--bg2); border:1px solid var(--panel-line); border-radius:4px;
    box-shadow:0 14px 34px rgba(0,0,0,.55); padding:6px 0; z-index:50;
  }
  .nav-dd .dropdown-menu li{width:100%;}
  .nav-dd .dropdown-menu a{
    display:block; padding:12px 16px; font-size:.72rem; letter-spacing:.5px;
    text-transform:none; border-bottom:1px solid var(--panel-line); white-space:normal; line-height:1.4;
  }
  .nav-dd .dropdown-menu li:last-child a{border-bottom:none;}
  .nav-dd .dropdown-menu a.dropdown-all-link{
    font-weight:700; color:var(--gold-bright); text-transform:uppercase; letter-spacing:.08em; font-size:.66rem;
  }
  /* Native <details> opens on click already; add hover-intent on desktop
     pointer devices so it also feels like a hover dropdown without JS. */
  @media (hover:hover) and (pointer:fine){
    .nav-dd{transition:none;}
  }

  .nav-toggle{
    display:none; align-items:center; gap:9px;
    height:36px; padding:0 12px 0 10px; background:transparent;
    border:1px solid var(--teal-mid); border-radius:2px; cursor:pointer;
    appearance:none; -webkit-appearance:none; -moz-appearance:none; flex-shrink:0;
  }
  .nav-toggle:hover{border-color:var(--gold-bright);}
  .nav-toggle:hover .label{color:var(--gold-bright);}
  .nav-toggle .bars{display:flex; flex-direction:column; justify-content:center; gap:5px; width:16px;}
  .nav-toggle .bars span{display:block; width:16px; height:2px; background:var(--teal); transition:transform .25s ease, opacity .2s ease;}
  .nav-toggle .label{font-size:.68rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--teal); font-weight:700; transition:color .2s;}
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(2){opacity:0;}
  .nav-toggle[aria-expanded="true"] .bars span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  /* ============ MAIN DASHBOARD LAYOUT ============ */
  .dash{position:relative; z-index:2; display:flex; gap:44px; padding:36px 6vw 0; align-items:flex-start;}
  .sidebar{width:300px; flex-shrink:0;}
  .panel-head{
    font-size:.72rem; letter-spacing:2.5px; color:var(--teal-dim); text-transform:uppercase;
    border-bottom:1px solid var(--panel-line); padding-bottom:9px; margin-bottom:20px;
    display:flex; justify-content:space-between;
  }
  .panel-head span.tag{color:#33564a;}

  .vital{margin-bottom:24px;}
  .vital .vl{display:flex; justify-content:space-between; font-size:.66rem; letter-spacing:1px; color:var(--teal-dim); text-transform:uppercase;}
  .vital .vv{font-size:1.7rem; color:var(--ink); font-family:var(--display); font-weight:700; margin:2px 0 4px;}
  .vital svg{width:100%; height:26px;}
  .trend-up{color:var(--teal-mid);} .trend-down{color:#e67c7c;}

  .svc-item{display:flex; gap:10px; align-items:flex-start; margin-bottom:16px; cursor:pointer;}
  .svc-item .box{width:12px; height:12px; margin-top:3px; flex-shrink:0; position:relative; transition:transform .2s;}
  .svc-item .box::before{
    content:'\25C6'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    font-size:9px; line-height:1; color:var(--teal-line);
  }
  .svc-item:hover .box{transform:scale(1.25);}
  .svc-item:hover .box::before{color:var(--gold);}
  .svc-item .txt{font-size:.78rem; line-height:1.55; color:var(--teal);}

  .doc-item{display:flex; justify-content:space-between; font-size:.75rem; color:var(--teal-mid); padding:6px 0; border-bottom:1px solid #10261f;}
  .doc-item span:last-child{color:#3a5c4f;}

  /* ============ CENTER: SPHERE HUB — fixed background layer, always present ============ */
  #sphereCanvas{position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none;}
  #sphereSvg{position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; transition:opacity .5s ease;}
  body.past-hero #sphereSvg{opacity:0;}
  .vault-link{stroke:var(--gold); stroke-width:1; stroke-dasharray:3 3; opacity:.55;}
  .vault-anchor{fill:var(--gold-bright);}

  .hub{flex:1; position:relative; min-height:640px; display:flex; align-items:center; justify-content:flex-start;}

  .hub-copy{position:relative; z-index:3; text-align:left; max-width:440px; pointer-events:none;}
  .eyebrow{font-size:.7rem; letter-spacing:4px; color:var(--gold); text-transform:uppercase; display:inline-flex; align-items:center; gap:8px; margin-bottom:22px;}
  .eyebrow::before{content:'●'; font-size:.55rem;}
  .hub-copy h1{font-size:clamp(1.7rem,3.4vw,2.6rem); line-height:1.15; margin-bottom:18px;}
  .hub-copy h1 .accent{color:var(--teal);}
  .hub-copy p{font-family:var(--display); font-size:.95rem; color:var(--teal-dim); margin-bottom:0;}

  .hub-link{
    position:fixed; z-index:4; font-size:.68rem; letter-spacing:1px; text-transform:uppercase;
    color:var(--gold-bright); text-align:center; pointer-events:auto; transition:opacity .5s ease;
  }
  body.past-hero .hub-link{opacity:0; pointer-events:none;}
  .hub-link:hover{opacity:.7;}
  .hub-link b{display:block; font-size:1.1rem; color:var(--ink); font-family:var(--display); margin-top:2px;}
  .hub-tl{top:12vh; left:2vw;} .hub-tr{top:12vh; right:2vw;}
  .hub-bl{bottom:24vh; left:2vw;} .hub-br{bottom:24vh; right:2vw;}

  .primary-directive{position:absolute; bottom:2%; left:0; right:0; text-align:center; z-index:3;}
  .primary-directive .pd-label{font-size:.68rem; letter-spacing:3px; color:var(--teal-dim); margin-bottom:8px;}
  .primary-directive .pd-value{font-size:clamp(1rem,2.2vw,1.3rem); font-weight:600; color:var(--teal-dim); margin:0 0 22px; font-family:var(--display); letter-spacing:.5px; line-height:1.4;}
  .primary-directive .pd-value span{font-size:.9rem; color:var(--teal-dim); letter-spacing:2px;}
  .pd-bar{width:min(280px,80vw); height:2px; background:#173226; margin:10px auto 18px;}
  .pd-bar-fill{height:100%; width:0%; background:linear-gradient(90deg,#2a6b52,#8fe8c8); transition:width 1.4s ease;}
  .btn-primary{
    background:var(--gold-bright); color:var(--bg); padding:18px 40px; border-radius:2px;
    font-weight:700; font-size:.92rem; letter-spacing:1px; text-transform:uppercase;
    border:none; cursor:pointer; font-family:var(--mono); transition:box-shadow .2s, transform .2s;
    pointer-events:auto; box-shadow:0 0 0 0 rgba(255,233,143,.45);
    animation:ctaPulse 2.6s ease-in-out infinite;
  }
  .btn-primary:hover{box-shadow:0 0 0 8px rgba(255,233,143,.2); transform:translateY(-1px); animation-play-state:paused;}
  @keyframes ctaPulse{
    0%,100%{box-shadow:0 0 0 0 rgba(255,233,143,.35);}
    50%{box-shadow:0 0 0 10px rgba(255,233,143,0);}
  }


  /* ============ FLOATING TRUST NOTES — hero-stage only ============ */
  .note{
    position:fixed; z-index:5; background:rgba(5,15,12,.85); border:1px solid #2a5c4a; padding:8px 14px;
    font-size:.66rem; letter-spacing:1px; color:var(--teal); animation:drift 5s ease-in-out infinite; cursor:pointer; width:180px;
    transition:opacity .5s ease;
  }
  body.past-hero .note{opacity:0; pointer-events:none;}
  .note .t{display:flex; justify-content:space-between; gap:16px; text-transform:uppercase;}
  .note .s{color:var(--teal-dim); margin-top:2px;}
  .n1{top:16vh; right:3vw;} .n2{top:34vh; right:3vw;} .n3{top:52vh; right:3vw;} .n4{top:70vh; right:3vw;}

  /* ============ BELOW-FOLD CONTENT SECTIONS (same chrome persists) ============ */
  main.below{position:relative; z-index:2;}
  section{padding:90px 6vw;}
  .section-panel-head{font-size:.72rem; letter-spacing:2.5px; color:var(--teal-dim); text-transform:uppercase; border-bottom:1px solid var(--panel-line); padding-bottom:10px; margin-bottom:32px; display:flex; justify-content:space-between;}
  .section-panel-head span.tag{color:#33564a;}

  .compare{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
  .compare > div{border:1px solid var(--panel-line); padding:30px; background:rgba(4,10,8,.62); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);}
  .compare .us{border-color:var(--teal-dark); background:rgba(20,45,36,.55);}
  .compare h3{font-size:.9rem; letter-spacing:2px; text-transform:uppercase; margin-bottom:20px;}
  .compare .us h3{color:var(--teal);}
  .compare ul{list-style:none;}
  .compare li{padding:10px 0; border-bottom:1px solid var(--panel-line); font-size:.85rem; color:var(--teal-dim); font-family:var(--display);}
  .compare .us li{color:var(--ink);}
  .compare li:last-child{border-bottom:none;}

  .process{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
  .process-3col{grid-template-columns:repeat(3,1fr);}
  .step{
    border-top:2px solid var(--panel-line);
    padding:22px 20px 20px;
    background:rgba(4,10,8,.6);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    border-radius:2px;
    transition:border-color .2s ease, background .2s ease;
  }
  .step:hover{
    border-top-color:var(--teal-line);
    background:rgba(4,10,8,.75);
  }
  .step .num{font-size:1.3rem; color:var(--gold); display:block; margin-bottom:10px;}
  .step h3{font-size:.95rem; margin-bottom:8px;}
  .step p{font-size:.8rem; color:var(--teal-dim); font-family:var(--display);}

  .cta-section{text-align:center; border:1px solid var(--panel-line); margin:0 6vw 100px; padding:80px 6vw; background:radial-gradient(ellipse at 50% 0%, rgba(143,232,200,.05), transparent 70%);}
  .cta-section h2{font-size:clamp(1.7rem,3.5vw,2.4rem); margin-bottom:16px;}
  .cta-section p{color:var(--teal-dim); font-family:var(--display); max-width:520px; margin:0 auto 32px;}

  footer{position:relative; z-index:2; display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; padding:32px 6vw; border-top:1px solid var(--panel-line); font-size:.75rem; color:var(--teal-dim);}
  .footer-contact{display:flex; gap:16px; flex-wrap:wrap;}

  @media (max-width:1000px){
    .dash{flex-direction:column;}
    .sidebar{width:100%;}
    .svc-item, .doc-item, .vital .vl{min-width:0;}
    .hub{min-height:0; width:100%; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:56px 24px 64px; position:relative;}
    .hub-copy{text-align:center; max-width:100%; margin-bottom:36px;}
    .primary-directive{position:static; margin-top:8px;}
    .hub-link, .note{display:none;}
    #sphereSvg{display:none;}
    .compare{grid-template-columns:1fr;}
    .process, .process-3col{grid-template-columns:1fr 1fr;}
    .status-row{display:none;}
    .live-demo-btn{display:inline-block; font-size:0; letter-spacing:0; padding:8px 12px; white-space:nowrap;}
    .live-demo-btn::after{content:'Demo'; font-size:.62rem; letter-spacing:1.5px; text-transform:uppercase; font-weight:700; color:var(--teal);}
    .live-demo-btn:hover::after{color:var(--gold-bright);}
    .live-demo-item{display:none;}
    .nav-toggle{display:flex;}
    nav ul{display:none;}
    nav.is-open ul{
      display:flex; flex-direction:column; gap:0;
      position:absolute; top:100%; right:0; margin-top:10px;
      width:min(230px,72vw); max-width:calc(100vw - 12vw);
      background:var(--bg2); border:1px solid var(--panel-line);
      border-radius:4px; box-shadow:0 14px 34px rgba(0,0,0,.55); padding:6px 0; z-index:50;
    }
    nav.is-open ul li{width:100%;}
    nav.is-open ul li a,
    nav.is-open ul li button{
      display:block; width:100%; text-align:left; background:none; border:none; border-radius:0;
      appearance:none; font-family:inherit; letter-spacing:1px; text-transform:uppercase;
      padding:14px 18px; border-bottom:1px solid var(--panel-line); font-size:.85rem; color:var(--teal);
    }
    nav.is-open ul li:last-child a,
    nav.is-open ul li:last-child button{border-bottom:none;}
    nav.is-open ul li .nav-cta{color:var(--gold-bright);}
    section{padding:60px 6vw;}

    /* "Blog" dropdown inside the mobile flat menu — <details> replaces the
       desktop floating panel with an inline expand, same visual language
       as the rest of the mobile nav (border-bottom rows, uppercase). */
    .nav-dd{width:100%;}
    .nav-dd summary{
      padding:14px 18px; border-bottom:1px solid var(--panel-line);
      font-size:.85rem; letter-spacing:1px; text-transform:uppercase; justify-content:space-between;
    }
    .nav-dd[open] summary{border-bottom:1px solid var(--teal-dark);}
    .nav-dd .dropdown-menu{
      position:static; transform:none; width:100%; background:rgba(143,232,200,.03);
      border:none; border-radius:0; box-shadow:none; padding:0;
    }
    .nav-dd .dropdown-menu a{
      padding:12px 18px 12px 30px; font-size:.76rem; text-transform:none;
      border-bottom:1px solid var(--panel-line); color:var(--teal-dim);
    }
    .nav-dd .dropdown-menu li:last-child a{border-bottom:1px solid var(--panel-line);}
  }

/* ==================================================================
   DEMO PAGE — page-specific layout additions.
   Selectors that would otherwise collide with front-page rules of
   the same name (section padding, .cta-section, .btn-primary) are
   scoped under body.demo-page (added via body_class() in the demo
   page template) so they can never leak into the homepage's styling.
   New, page-unique class names (.intro, .demo-frame*, .footnote,
   .sparklebay-demo*) are left unscoped since nothing else uses them.
   ================================================================== */

.intro{max-width:720px; margin-bottom:44px;}
.intro .eyebrow .dot{width:6px; height:6px; border-radius:50%; background:var(--gold); animation:demoPulse 1.8s ease-in-out infinite;}
@keyframes demoPulse{0%,100%{opacity:1} 50%{opacity:.25}}
.intro h1{font-size:clamp(1.8rem,3.5vw,2.6rem); line-height:1.15; margin-bottom:18px;}
.intro h1 .accent{color:var(--teal);}
.intro p{font-family:var(--display); font-size:1rem; color:var(--teal-dim); line-height:1.65;}
.intro p b{color:var(--ink); font-weight:600;}

.demo-frame{
  border:1px solid var(--panel-line); border-radius:4px; padding:32px;
  background:rgba(143,232,200,.02);
}
.demo-frame-label{
  font-size:.68rem; letter-spacing:2px; color:var(--teal-dim); text-transform:uppercase;
  margin-bottom:20px; display:flex; align-items:center; gap:10px;
}
.demo-frame-label::before{content:'◆'; color:var(--gold);}

.footnote{
  margin-top:26px; font-size:.78rem; color:var(--teal-dim); font-family:var(--display);
  line-height:1.7; max-width:760px; border-top:1px solid var(--panel-line); padding-top:20px;
}

/* scoped overrides — demo page uses a slightly more compact section/CTA than the homepage */
body.demo-page section{padding:70px 6vw;}
body.demo-page .cta-section{padding:70px 6vw;}
body.demo-page .cta-section h2{font-size:clamp(1.5rem,3vw,2.1rem);}

@media (max-width:1000px){
  body.demo-page section{padding:48px 6vw;}
  .demo-frame{padding:16px;}
}

/* ==================================================================
   EMBEDDED DEMO WIDGET — deliberately kept as its own light,
   product-branded look (this is a mockup of a client's actual
   customer-facing chat, not the HexWeb site chrome), scoped
   under .sparklebay-demo so it can't leak into the theme styles
   ================================================================== */
.sparklebay-demo{
  --ink2:#14231F; --ocean:#0E5C63; --ocean-dark:#0A484E;
  --foam:#CDEAE3; --sand:#EFEAE0; --coral:#FF6F59; --slate:#5B6B67;
  --line2: rgba(20,35,31,0.10); --alert:#D6455D; --gold2:#E8B84A;
  background:var(--sand); color:var(--ink2); border-radius:16px; padding:24px;
  font-family:'IBM Plex Sans', sans-serif;
}
.sparklebay-demo *{box-sizing:border-box;}
.sparklebay-demo .stage{ display:flex; gap:22px; align-items:flex-start; justify-content:center; flex-wrap:wrap; }
.sparklebay-demo .col-title{
  font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:0.1em; text-transform:uppercase;
  color: var(--slate); margin-bottom:10px; display:flex; align-items:center; gap:8px;
}
.sparklebay-demo .col-title .n{
  background: var(--ink2); color:#fff; width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:10px; font-family:'IBM Plex Sans';
}
.sparklebay-demo .phone-col{ flex: 0 0 auto; }
.sparklebay-demo .phone{ width: 320px; max-width: 86vw; background: var(--ink2); border-radius: 32px; padding: 9px; box-shadow: 0 30px 60px -20px rgba(20,35,31,0.35); }
.sparklebay-demo .screen{ background: #fff; border-radius: 24px; overflow:hidden; display:flex; flex-direction:column; height: 540px; }
.sparklebay-demo .chat-header{ background: var(--ocean); color:#fff; padding: 13px 15px; display:flex; align-items:center; gap: 10px; flex-shrink:0; }
.sparklebay-demo .avatar{ width:34px;height:34px;border-radius:50%; background: var(--foam); color: var(--ocean-dark); display:flex;align-items:center;justify-content:center; font-family:'Fraunces',serif; font-weight:600; font-size:14px; flex-shrink:0; }
.sparklebay-demo .chat-header .name{ font-weight:600; font-size:13.5px; }
.sparklebay-demo .chat-header .status{ font-size:10.5px; opacity:0.85; display:flex; align-items:center; gap:5px; }
.sparklebay-demo .chat-header .status .led{ width:6px;height:6px;border-radius:50%; background:#8CE99A; }
.sparklebay-demo .messages{ flex:1; overflow-y:auto; padding: 14px 11px; background: #F7F5F0; display:flex; flex-direction:column; gap:9px; }
.sparklebay-demo .bubble{ max-width: 80%; padding: 9px 12px; border-radius: 15px; font-size: 13px; line-height:1.42; white-space: pre-wrap; animation: sbRise 0.25s ease; }
@keyframes sbRise{ from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform: translateY(0);} }
.sparklebay-demo .bubble.bot{ background:#fff; color: var(--ink2); border: 1px solid var(--line2); border-bottom-left-radius: 4px; align-self:flex-start; }
.sparklebay-demo .bubble.user{ background: var(--ocean); color:#fff; border-bottom-right-radius: 4px; align-self:flex-end; }
.sparklebay-demo .typing{ align-self:flex-start; background:#fff; border:1px solid var(--line2); border-radius:15px; border-bottom-left-radius:4px; padding: 10px 13px; display:flex; gap:4px; }
.sparklebay-demo .typing span{ width:6px;height:6px;border-radius:50%; background: var(--slate); opacity:0.5; animation: sbBounce 1.1s infinite; }
.sparklebay-demo .typing span:nth-child(2){ animation-delay: 0.15s; }
.sparklebay-demo .typing span:nth-child(3){ animation-delay: 0.3s; }
@keyframes sbBounce{ 0%,60%,100%{ transform: translateY(0); opacity:0.5;} 30%{ transform: translateY(-4px); opacity:1;} }
.sparklebay-demo .quick-replies{ display:flex; gap:6px; padding: 0 11px 9px; flex-wrap:wrap; flex-shrink:0; background:#F7F5F0; }
.sparklebay-demo .chip{ font-size:11.5px; background:#fff; border: 1px solid var(--ocean); color: var(--ocean-dark); padding: 6px 10px; border-radius: 100px; cursor:pointer; transition: background 0.15s, color 0.15s; white-space:nowrap; }
.sparklebay-demo .chip:hover{ background: var(--ocean); color:#fff; }
.sparklebay-demo .input-row{ flex-shrink:0; display:flex; gap:8px; padding: 9px; background:#fff; border-top:1px solid var(--line2); }
.sparklebay-demo .input-row input{ flex:1; border: 1px solid var(--line2); background: var(--sand); border-radius: 100px; padding: 9px 13px; font-size: 13px; font-family:'IBM Plex Sans', sans-serif; outline:none; min-width:0; }
.sparklebay-demo .input-row input:focus{ border-color: var(--ocean); }
.sparklebay-demo .send-btn{ width: 36px;height:36px; border-radius:50%; background: var(--coral); border:none; color:#fff; cursor:pointer; display:flex;align-items:center;justify-content:center; flex-shrink:0; transition: transform 0.1s; }
.sparklebay-demo .send-btn:active{ transform: scale(0.92); }
.sparklebay-demo .send-btn:disabled{ opacity:0.45; cursor:default; }
.sparklebay-demo .console-col{ flex: 1 1 460px; min-width: 320px; }
.sparklebay-demo .console{ background:#fff; border:1px solid var(--line2); border-radius: 20px; height: 558px; display:flex; overflow:hidden; box-shadow: 0 20px 50px -30px rgba(20,35,31,0.25); }
.sparklebay-demo .thread-list{ width: 150px; flex-shrink:0; background: var(--sand); border-right:1px solid var(--line2); padding: 12px 8px; }
.sparklebay-demo .thread-list-title{ font-family:'IBM Plex Mono', monospace; font-size:9.5px; letter-spacing:0.08em; text-transform:uppercase; color: var(--slate); padding: 4px 6px 10px; }
.sparklebay-demo .thread-item{ background:#fff; border-radius:12px; padding: 10px 9px; cursor:default; border: 1.5px solid var(--ocean); position:relative; }
.sparklebay-demo .thread-item .tname{ font-size:12px; font-weight:600; margin-bottom:3px; }
.sparklebay-demo .thread-item .tprev{ font-size:10.5px; color: var(--slate); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sparklebay-demo .thread-tag{ position:absolute; top:-6px; right:-6px; font-size:9px; font-family:'IBM Plex Mono',monospace; padding:2px 6px; border-radius:100px; font-weight:500; }
.sparklebay-demo .thread-tag.auto{ background: var(--foam); color: var(--ocean-dark); }
.sparklebay-demo .thread-tag.needs{ background: var(--alert); color:#fff; animation: sbPulse 1.3s infinite; }
@keyframes sbPulse{ 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.sparklebay-demo .console-main{ flex:1; display:flex; flex-direction:column; min-width:0; }
.sparklebay-demo .console-header{ padding: 13px 16px; border-bottom:1px solid var(--line2); display:flex; align-items:center; justify-content:space-between; gap:10px; flex-shrink:0; }
.sparklebay-demo .console-header .who{ display:flex; align-items:center; gap:9px; }
.sparklebay-demo .console-header .who .name{ font-weight:600; font-size:13.5px; }
.sparklebay-demo .console-header .who .meta{ font-size:10.5px; color: var(--slate); }
.sparklebay-demo .toggle-wrap{ display:flex; align-items:center; gap:8px; }
.sparklebay-demo .toggle-label{ font-family:'IBM Plex Mono', monospace; font-size:10px; color: var(--slate); text-align:right; line-height:1.3; }
.sparklebay-demo .toggle{ width:42px; height:24px; border-radius:100px; background: var(--foam); position:relative; cursor:pointer; border:none; flex-shrink:0; transition: background 0.2s; }
.sparklebay-demo .toggle.off{ background: var(--slate); }
.sparklebay-demo .toggle .knob{ position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background: var(--ocean); transition: transform 0.2s; }
.sparklebay-demo .toggle.off .knob{ transform: translateX(18px); background:#fff; }
.sparklebay-demo .alert-banner{
  background: var(--alert); color:#fff; font-size:12px; padding: 9px 16px;
  display:none; align-items:center; gap:8px; flex-shrink:0;
  font-family:'IBM Plex Mono', monospace;
}
.sparklebay-demo .alert-banner.show{ display:flex; }
.sparklebay-demo .transcript{ flex:1; overflow-y:auto; padding: 14px 16px; display:flex; flex-direction:column; gap:8px; background: #FBFAF7; }
.sparklebay-demo .trow{ display:flex; flex-direction:column; max-width:74%; animation: sbRise 0.2s ease; }
.sparklebay-demo .trow.customer{ align-self:flex-start; align-items:flex-start; }
.sparklebay-demo .trow.bot, .sparklebay-demo .trow.agent{ align-self:flex-end; align-items:flex-end; }
.sparklebay-demo .trow .lbl{ font-family:'IBM Plex Mono', monospace; font-size:9.5px; color: var(--slate); margin-bottom:3px; padding: 0 3px; }
.sparklebay-demo .trow .txt{ font-size:12.5px; line-height:1.4; padding: 8px 11px; border-radius:12px; white-space:pre-wrap; }
.sparklebay-demo .trow.customer .txt{ background:#fff; border:1px solid var(--line2); border-bottom-left-radius:3px; }
.sparklebay-demo .trow.bot .txt{ background: var(--foam); color: var(--ocean-dark); border-bottom-right-radius:3px; }
.sparklebay-demo .trow.agent .txt{ background: var(--coral); color:#fff; border-bottom-right-radius:3px; }
.sparklebay-demo .trow.system{ align-self:center; }
.sparklebay-demo .trow.system .txt{ background: transparent; color: var(--slate); font-family:'IBM Plex Mono', monospace; font-size:10.5px; padding:2px 0; }
.sparklebay-demo .console-input{ flex-shrink:0; display:flex; gap:8px; padding: 11px 14px; border-top:1px solid var(--line2); background:#fff; }
.sparklebay-demo .console-input input{ flex:1; border: 1px solid var(--line2); background: var(--sand); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; font-family:'IBM Plex Sans', sans-serif; outline:none; min-width:0; }
.sparklebay-demo .console-input input:focus{ border-color: var(--ocean); }
.sparklebay-demo .console-input input:disabled{ opacity:0.5; }
.sparklebay-demo .console-send{ background: var(--ink2); color:#fff; border:none; border-radius:10px; padding: 0 16px; font-size:12px; font-weight:600; cursor:pointer; font-family:'IBM Plex Sans'; flex-shrink:0; }
.sparklebay-demo .console-send:disabled{ opacity:0.4; cursor:default; }
.sparklebay-demo .console-hint{ font-size:10.5px; color: var(--slate); padding: 0 14px 10px; font-family:'IBM Plex Mono', monospace; }
@media (max-width: 860px){ .sparklebay-demo .phone{ width:100%; } .sparklebay-demo .console{ height:auto; flex-direction:column; } .sparklebay-demo .thread-list{ width:100%; display:flex; gap:8px; border-right:none; border-bottom:1px solid var(--line2); } .sparklebay-demo .transcript{ max-height:340px; } }

/* ==================================================================
   EN/AR TOGGLE — homepage proof-of-concept.
   No separate URL: JS swaps [data-i18n] text and sets html[lang] for
   accessibility/SEO. IMPORTANT: this deliberately does NOT set
   html[dir="rtl"] — confirmed twice that doing so triggers a
   persistent mobile overflow bug, even when CSS direction-mirroring
   is explicitly blocked on the affected containers. Arabic is
   displayed as text content only, inside the same left-to-right
   layout as English, until that bug is properly diagnosed with real
   browser tooling. Arabic glyphs still render correctly (Unicode bidi
   handles character shaping independent of the `dir` attribute) —
   they just aren't mirrored into a right-to-left layout.
   ================================================================== */

html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .vital .vv, html[lang="ar"] .hub-link b,
html[lang="ar"] .primary-directive .pd-value,
html[lang="ar"] .compare li, html[lang="ar"] .step p, html[lang="ar"] .tl-card p, html[lang="ar"] .process-intro p, html[lang="ar"] .svc-body p,
html[lang="ar"] .cta-section p, html[lang="ar"] .hub-copy p,
html[lang="ar"] .btn-primary, html[lang="ar"] .clear-btn {
  font-family: 'Tajawal', var(--display), sans-serif;
}

/* Arabic script reads visually heavier at the same pixel size as
   Latin text in this UI, so nudge letter-spacing back to normal and
   ease the sizes down slightly rather than reusing the Latin tracking. */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
html[lang="ar"] .eyebrow, html[lang="ar"] nav ul, html[lang="ar"] .panel-head,
html[lang="ar"] .section-panel-head, html[lang="ar"] .pd-label,
html[lang="ar"] .vital .vl, html[lang="ar"] .doc-item { letter-spacing: 0; }

.lang-toggle { font-family: 'Tajawal', var(--mono), sans-serif; }

/* ---------- Floating WhatsApp button (sitewide, fixed, footer.php) ---------- */
@keyframes hexweb-wa-float{
  0%, 100% { transform:translateY(0); }
  50%      { transform:translateY(-7px); }
}
@keyframes hexweb-wa-breathe{
  0%, 100% { box-shadow:0 0 0 1px rgba(143,232,200,.15), 0 4px 18px rgba(0,0,0,.45), 0 0 8px rgba(143,232,200,.2); }
  50%      { box-shadow:0 0 0 1px rgba(143,232,200,.45), 0 4px 24px rgba(0,0,0,.5), 0 0 24px rgba(143,232,200,.65); }
}
.hexweb-whatsapp-btn{
  position:fixed; bottom:24px; right:24px; z-index:9999;
  width:56px; height:56px; display:flex; align-items:center; justify-content:center;
  background:var(--bg2); border:1px solid var(--teal-dark); border-radius:50%;
  color:var(--teal);
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  animation:hexweb-wa-float 3.2s ease-in-out infinite, hexweb-wa-breathe 3.2s ease-in-out infinite;
}
.hexweb-whatsapp-btn:hover, .hexweb-whatsapp-btn:focus-visible{
  animation:none;
  transform:scale(1.08); border-color:var(--teal-mid); color:var(--gold-bright);
  box-shadow:0 0 0 1px rgba(143,232,200,.35), 0 6px 22px rgba(0,0,0,.55);
}
.hexweb-whatsapp-btn svg{ width:32px; height:32px; }

@media (prefers-reduced-motion: reduce){
  .hexweb-whatsapp-btn{ animation:none; box-shadow:0 0 0 1px rgba(143,232,200,.15), 0 4px 18px rgba(0,0,0,.45); }
}

@media (max-width:600px){
  .hexweb-whatsapp-btn{ bottom:16px; right:16px; width:50px; height:50px; }
  .hexweb-whatsapp-btn svg{ width:28px; height:28px; }
  footer{padding-right:min(20vw,92px);}
}

/* ==================================================================
   VERTICAL LANDING PAGES ("Blog" dropdown) — shared by all four
   page-real-estate-website-dubai.php / page-clinic-website-dubai.php /
   page-restaurant-website-dubai.php / page-retail-website-dubai.php
   templates. Scoped under .vert-page so nothing here leaks elsewhere;
   reuses existing global tokens/classes (.step, .process, .cta-section,
   .bawd-faq-list/.bawd-faq-item accordion) rather than duplicating them.
   Each template sets --vert-accent inline on .vert-page to give itself
   a distinct hairline/tag color without a second stylesheet.
   ================================================================== */

.vert-page{
  --vert-accent: var(--teal-line);
  position:relative; z-index:2; max-width:1360px; margin:0 auto; padding:64px 4vw 0;
}
.vert-page section{ position:relative; padding:60px 0; border-top:1px solid var(--panel-line); }
.vert-page section:first-child{ border-top:none; padding-top:0; }
.vert-page h2{ font-family:var(--display); font-size:clamp(24px,3.4vw,36px); font-weight:700; color:var(--ink); letter-spacing:-0.01em; }
.vert-page .vert-sec-sub{ margin-top:10px; color:var(--teal-dim); font-size:15.5px; line-height:1.6; font-family:var(--display); }
.vert-page p{ font-family:var(--display); font-size:16px; line-height:1.75; color:var(--teal); max-width:680px; }
.vert-page p + p{ margin-top:14px; }

/* ---- editorial split: a fixed-width label/heading column on the left,
   full running content on the right. This is what actually makes the
   wider canvas feel composed instead of just centered whitespace. ---- */
.vert-page section.vert-split,
.article-page section.vert-split{ display:grid; grid-template-columns:300px 1fr; gap:56px; align-items:start; }
.vert-sec-head{ position:sticky; top:104px; }
.vert-sec-head h2{ max-width:none; }
.vert-sec-body{ min-width:0; }

/* ---- hero: copy on the left, a themed photo on the right with a
   floating stat badge — same "floating trust note" language as the
   homepage hub, so it doesn't feel bolted on. ---- */
.vert-hero{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:56px; align-items:center; }
.vert-hero-copy{ min-width:0; }
.vert-hero-visual{
  position:relative; aspect-ratio:4/5; border-radius:8px; overflow:hidden;
  border:1px solid var(--panel-line); background-size:cover; background-position:center;
}
.vert-hero-visual::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(11,15,20,.05) 45%, rgba(11,15,20,.9) 100%);
}
.vert-hero-badge{
  position:absolute; left:20px; bottom:20px; z-index:1;
  background:rgba(11,15,20,.85); border:1px solid var(--panel-line); border-radius:6px;
  padding:14px 18px; backdrop-filter:blur(6px);
}
.vert-hero-badge .n{ font-family:var(--mono); font-size:22px; font-weight:700; color:var(--vert-accent); }
.vert-hero-badge .l{ font-family:var(--mono); font-size:10.5px; color:var(--teal-dim); letter-spacing:.04em; text-transform:uppercase; margin-top:2px; }

.vert-hero .vert-eyebrow{
  font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--vert-accent);
  display:flex; align-items:center; gap:9px; margin-bottom:18px;
}
.vert-hero .vert-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--vert-accent); box-shadow:0 0 8px var(--vert-accent); flex-shrink:0; }
.vert-page .vert-hero h1{ font-family:var(--display); font-size:clamp(30px,3.6vw,44px); font-weight:700; letter-spacing:-0.015em; line-height:1.14; color:var(--ink); }
.vert-page .vert-hero h1 .accent{ color:var(--gold-bright); }
.vert-lead{ margin-top:18px; font-size:17px; color:var(--teal-dim); max-width:520px; line-height:1.6; font-family:var(--display); }
.vert-cta-row{ margin-top:26px; display:flex; gap:12px; flex-wrap:wrap; }
.vert-quickstats{ margin-top:36px; display:flex; gap:36px; flex-wrap:wrap; padding-top:24px; border-top:1px solid var(--panel-line); }
.vert-quickstats .q{ font-family:var(--mono); }
.vert-quickstats .n{ font-size:20px; font-weight:700; color:var(--vert-accent); }
.vert-quickstats .l{ font-size:11px; color:var(--teal-dim); letter-spacing:.03em; margin-top:3px; text-transform:uppercase; }

/* feature list — 2-column grid inside the right-hand body column */
.vert-feature-list{ display:grid; grid-template-columns:1fr 1fr; gap:6px 40px; }
.vert-feature{ display:flex; gap:14px; align-items:flex-start; padding:20px 0; border-top:1px solid var(--panel-line); }
.vert-feature:nth-child(-n+2){ border-top:none; padding-top:6px; }
.vert-feature .box{ width:13px; height:13px; border:1px solid var(--vert-accent); margin-top:4px; flex-shrink:0; }
.vert-feature h4{ font-family:var(--display); font-size:16.5px; font-weight:700; color:var(--ink); margin-bottom:6px; }
.vert-feature p{ font-size:14.5px; color:var(--teal-dim); max-width:none; }

/* live-template callout card */
.vert-template-card{
  display:flex; gap:24px; align-items:center; flex-wrap:wrap;
  border:1px solid var(--panel-line); border-radius:6px; padding:24px 26px;
  background:rgba(143,232,200,.02); transition:border-color .2s;
}
.vert-template-card:hover{ border-color:rgba(230,193,60,.4); }
.vert-template-card .thumb{
  width:140px; aspect-ratio:16/11; border-radius:4px; background-size:cover; background-position:center;
  border:1px solid var(--panel-line); flex-shrink:0;
}
.vert-template-card .body{ flex:1; min-width:220px; }
.vert-template-card .tag{ font-family:var(--mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold-bright); }
.vert-template-card .title{ font-family:var(--display); font-weight:700; font-size:18px; color:var(--ink); margin:4px 0 6px; }
.vert-template-card p{ font-size:14px; color:var(--teal-dim); max-width:none; }
.vert-template-card .open-link{
  display:inline-flex; align-items:center; gap:6px; margin-top:10px;
  font-family:var(--mono); font-size:12px; letter-spacing:.04em; color:var(--vert-accent); font-weight:700;
}
.vert-template-card:hover .open-link{ color:var(--gold-bright); }
.vert-cross-link{ margin-top:18px; font-size:14px; max-width:none; }

/* automation note strip */
.vert-automation-note{
  border-left:2px solid var(--vert-accent); padding:6px 0 6px 24px;
}
.vert-automation-note p{ color:var(--teal-dim); font-size:15px; max-width:none; }
.vert-automation-note strong{ color:var(--ink); }

.vert-page .bawd-faq-list{ margin-top:0; }
.vert-page .bawd-faq-item .q{ font-size:16.5px; }
.vert-page .bawd-faq-item .a p{ max-width:none; }

/* the global .cta-section sets its own margin:0 6vw, which is relative to
   the viewport — inside the now-wider .vert-page container that stacks
   with the container's own padding and makes the CTA look extra-indented.
   Zero it out here so the CTA box aligns with the rest of the page. */
.vert-page .cta-section{ margin:0 0 60px; }

@media (max-width:1080px){
  .vert-page section.vert-split,
  .article-page section.vert-split{ grid-template-columns:1fr; gap:20px; }
  .vert-sec-head{ position:static; }
  .vert-hero{ grid-template-columns:1fr; }
  .vert-hero-visual{ order:-1; aspect-ratio:16/9; }
}

@media (max-width:900px){
  .vert-feature-list{ grid-template-columns:1fr; }
  .vert-feature:nth-child(-n+2){ border-top:1px solid var(--panel-line); padding-top:20px; }
  .vert-feature:first-child{ border-top:none; padding-top:6px; }
}

@media (max-width:640px){
  .vert-page{ padding:40px 6vw 0; }
  .vert-page section{ padding:40px 0; }
  .vert-template-card{ flex-direction:column; align-items:flex-start; }
  .vert-template-card .thumb{ width:100%; aspect-ratio:16/9; }
  .vert-quickstats{ gap:24px; }
}

.vert-page[dir="rtl"]{ font-family:'Tajawal', var(--display), sans-serif; }
.vert-page[dir="rtl"] .vert-feature{ text-align:right; }
.vert-page[dir="rtl"] .vert-automation-note{ border-left:none; border-right:2px solid var(--vert-accent); padding:4px 20px 4px 0; }
.vert-page[dir="rtl"] .vert-eyebrow,
.vert-page[dir="rtl"] .bawd-faq-item .q{ text-align:right; }

/* "back to blog" link — sits above the hero on each of the four
   vertical pages, pointing back to the /blog/ index below. */
.vert-back-link{
  display:inline-flex; align-items:center; gap:7px; margin-bottom:26px;
  font-family:var(--mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--teal-dim); transition:color .2s;
}
.vert-back-link:hover{ color:var(--vert-accent, var(--teal-line)); }
.vert-back-link .arrow{ transition:transform .2s; }
.vert-back-link:hover .arrow{ transform:translateX(-3px); }

/* ---- blog index page (page-blog.php) — the hub the "Blog" nav
   dropdown and each vertical page's back-link point to. Reuses
   .vert-page for the container/hero styling, adds its own card grid. ---- */
.blog-index-hero p{ margin-top:16px; font-size:17px; color:var(--teal-dim); max-width:640px; line-height:1.6; font-family:var(--display); }
.blog-index-grid{ margin-top:0; display:grid; grid-template-columns:1fr 1fr; gap:26px; padding:50px 0 80px; }
.blog-index-card{ display:block; border:1px solid var(--panel-line); border-radius:8px; overflow:hidden; background:rgba(143,232,200,.02); transition:border-color .2s, transform .2s; }
.blog-index-card:hover{ border-color:rgba(230,193,60,.4); transform:translateY(-2px); }
.blog-index-card .thumb{ aspect-ratio:16/9; background-size:cover; background-position:center; }
.blog-index-card .body{ padding:24px 26px 28px; }
.blog-index-card .tag{ font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; }
.blog-index-card .title{ font-family:var(--display); font-weight:700; font-size:21px; color:var(--ink); margin:8px 0 10px; }
.blog-index-card p{ font-size:14.5px; color:var(--teal-dim); max-width:none; line-height:1.6; }
.blog-index-card .open-link{ display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-family:var(--mono); font-size:12px; font-weight:700; }

.blog-index-section-title{
  font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-dim);
  padding-top:20px; border-top:1px solid var(--panel-line);
}

@media (max-width:760px){ .blog-index-grid{ grid-template-columns:1fr; } }

/* ==================================================================
   ARTICLE PAGES — informational/editorial content under the "Blog"
   hub (distinct from the .vert-page sales-landing template used by
   the four verticals, though it now shares the same 2-column
   .vert-split composition for consistency across the site — sticky
   label column on the left, running content on the right).
   Reuses .bawd-faq-list/.bawd-faq-item for the FAQ, same as vert-page.
   ================================================================== */
.article-page{
  position:relative; z-index:2; max-width:1200px; margin:0 auto; padding:64px 4vw 100px;
}
.article-page .vert-back-link{ margin-bottom:22px; }
.article-eyebrow{
  font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-line);
  display:flex; align-items:center; gap:9px; margin-bottom:16px;
}
.article-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--teal-line); box-shadow:0 0 8px var(--teal-line); flex-shrink:0; }
.article-page h1{ font-family:var(--display); font-size:clamp(30px,4.6vw,46px); font-weight:700; line-height:1.16; color:var(--ink); letter-spacing:-0.015em; max-width:940px; }
.article-lead{ margin-top:16px; font-size:18px; color:var(--teal-dim); line-height:1.6; font-family:var(--display); max-width:760px; }
.article-byline{
  display:flex; gap:18px; flex-wrap:wrap; align-items:center; font-family:var(--mono); font-size:11.5px; color:var(--teal-dim);
  margin:24px 0 40px; padding-bottom:22px; border-bottom:1px solid var(--panel-line);
}
.article-tldr{
  margin:0 0 10px; border:1px solid var(--panel-line); border-left:3px solid var(--teal-line); border-radius:6px;
  padding:20px 24px; background:rgba(143,232,200,.03); max-width:900px;
}
.article-tldr .label{ font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-line); margin-bottom:8px; }
.article-tldr p{ font-size:15px; color:var(--teal); margin:0; max-width:none; }

/* each Q&A section: sticky heading column + content column, same
   grid rule the vertical pages use (.vert-page section.vert-split) */
.article-page section.vert-split{ padding:44px 0; border-top:1px solid var(--panel-line); }
.article-page section.vert-split:first-of-type{ border-top:none; padding-top:36px; }
.article-page h2{ font-family:var(--display); font-size:clamp(20px,2.2vw,25px); font-weight:700; color:var(--ink); letter-spacing:-0.01em; }
.article-page p{ font-family:var(--display); font-size:16px; line-height:1.8; color:var(--teal); max-width:720px; }
.article-page p + p{ margin-top:16px; }
.article-page ul{ margin:18px 0; padding-left:22px; max-width:720px; }
.article-page li{ font-family:var(--display); font-size:15.5px; line-height:1.8; color:var(--teal); margin-bottom:8px; }

.article-inline-cta{
  margin:10px 0 0; border:1px solid var(--panel-line); border-left:3px solid var(--gold); border-radius:6px;
  padding:24px 26px; background:rgba(230,193,60,.03); max-width:900px;
}
.article-inline-cta p{ margin:0 0 16px; max-width:none; }
.article-page .bawd-faq-list{ margin-top:0; max-width:900px; }
.article-page .bawd-faq-item .a p{ max-width:none; }

/* News posts (single.php) render through the WP block editor via
   the_content() rather than hand-structured markup, so this covers a
   broader set of elements than the hand-coded article page needs —
   scoped to .article-body so it never affects page-seo-in-2026-uae.php. */
.article-body{ margin-top:8px; max-width:900px; }
.article-body h2{ font-family:var(--display); font-size:clamp(20px,2.2vw,25px); font-weight:700; color:var(--ink); letter-spacing:-0.01em; margin:40px 0 14px; }
.article-body h3{ font-family:var(--display); font-size:19px; font-weight:700; color:var(--ink); margin:32px 0 12px; }
.article-body p{ max-width:none; }
.article-body ul, .article-body ol{ max-width:none; margin:18px 0; padding-left:22px; }
.article-body li{ margin-bottom:8px; }
.article-body a{ color:var(--teal-line); text-decoration:underline; }
.article-body a.btn-primary, .article-body a.cta-secondary{ text-decoration:none; }

/* Secondary CTA button, sized to match .btn-primary — for use inside
   post/article body content (e.g. a "Call Us" next to a WhatsApp
   button). .clear-btn exists already but is sized for the compact
   header nav, not body content, so it looks cramped and mismatched
   next to a full-size .btn-primary — use this instead in post bodies. */
.cta-secondary{
  display:inline-block; background:transparent; color:var(--teal);
  padding:14px 28px; border-radius:2px; border:1px solid var(--teal-mid);
  font-weight:700; font-size:.8rem; letter-spacing:1px; text-transform:uppercase;
  font-family:var(--mono); transition:border-color .2s, color .2s;
}
.cta-secondary:hover{ border-color:var(--gold-bright); color:var(--gold-bright); }
.article-body a:hover{ color:var(--gold-bright); }
.article-body strong{ color:var(--ink); font-weight:700; }
.article-body blockquote{
  margin:24px 0; padding:4px 0 4px 20px; border-left:2px solid var(--teal-line);
  color:var(--teal-dim); font-style:italic;
}
.article-body img, .article-body figure{ max-width:100%; height:auto; border-radius:6px; margin:24px 0; }
.article-body figcaption{ font-family:var(--mono); font-size:12px; color:var(--teal-dim); margin-top:8px; }

.article-footer-nav{
  margin-top:44px; padding-top:24px; border-top:1px solid var(--panel-line);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px;
  font-family:var(--mono); font-size:12px;

}

@media (max-width:640px){
  .article-page{ padding:40px 6vw 60px; }
}

/* ==================================================================
   BUILD-A-WEBSITE-DUBAI PAGE — page-build-a-website-dubai.php.
   Scoped entirely under .bawd-page / .bawd-panel so nothing here can
   leak into the homepage or the demo page. Reuses the theme's existing
   --teal/--gold/--bg/--mono/--display tokens rather than introducing a
   second palette. JS is assets/js/build-a-website-dubai.js.
   ================================================================== */

.bawd-page{ position:relative; z-index:2; max-width:1760px; margin:0 auto; padding:56px 48px 0; }
.bawd-page section{ position:relative; padding:64px 0; border-top:1px solid var(--panel-line); }
.bawd-page section:first-child{ border-top:none; padding-top:0; }

.bawd-sec-num{ font-family:var(--mono); font-size:12px; color:var(--gold); letter-spacing:0.06em; margin-bottom:10px; }
.bawd-page h2{ font-family:var(--display); font-size:clamp(22px,3vw,28px); font-weight:700; color:var(--ink); letter-spacing:-0.01em; max-width:520px; }
.bawd-sec-sub{ margin-top:10px; color:var(--teal-dim); font-size:15.5px; max-width:520px; line-height:1.6; font-family:var(--display); }

/* decorative hex accents — pure background, never intercept clicks */
.bawd-bg-hex{ position:absolute; pointer-events:none; z-index:0; }
.bawd-bg-hex--hero{ right:-40px; top:6%; width:480px; height:480px; }
.bawd-bg-hex--gallery{ left:-40px; bottom:0; width:400px; height:400px; }
.bawd-bg-hex--decision{ right:-30px; top:16%; width:380px; height:380px; }
.bawd-bg-hex--central{ left:50%; top:50%; transform:translate(-50%,-50%); width:340px; height:340px; }
@media (max-width:640px){
  .bawd-bg-hex--hero, .bawd-bg-hex--gallery, .bawd-bg-hex--decision{ display:none; }
  .bawd-bg-hex--central{ width:220px; height:220px; }
}

/* the single shifting sphere — fixed to the viewport, glides between whichever
   .bawd-bg-hex slot above sits nearest the vertical center of the screen.
   Sits just above the sitewide ambient hex-grid canvas (z-index 0/1 from
   header.php) but below .bawd-page's own content (z-index:2). */
.bawd-main-sphere{ position:fixed; inset:0; width:100vw; height:100vh; z-index:1; pointer-events:none; opacity:0; transition:opacity .5s ease; }

/* ---------------- hero ---------------- */
.bawd-hero .bawd-eyebrow{
  font-family:var(--mono); font-size:12px; letter-spacing:0.1em; text-transform:uppercase; color:var(--teal-line);
  display:flex; align-items:center; gap:9px; margin-bottom:20px; position:relative; z-index:1;
}
.bawd-hero .bawd-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--teal-line); box-shadow:0 0 8px var(--teal-line); flex-shrink:0; }
.bawd-page .bawd-hero h1{
  position:relative; z-index:1; font-family:var(--display); font-size:clamp(30px,5vw,46px); font-weight:700;
  letter-spacing:-0.01em; line-height:1.15; color:var(--ink); max-width:760px;
}
.bawd-page .bawd-hero h1 .accent{ color:var(--gold-bright); }
.bawd-lead{ position:relative; z-index:1; margin-top:20px; font-size:18px; color:var(--teal-dim); max-width:560px; line-height:1.6; font-family:var(--display); }
.bawd-cta-row{ position:relative; z-index:1; margin-top:30px; display:flex; gap:12px; flex-wrap:wrap; }
.bawd-quickstats{ position:relative; z-index:1; margin-top:44px; display:flex; gap:34px; flex-wrap:wrap; }
.bawd-quickstats .q{ font-family:var(--mono); }
.bawd-quickstats .n{ font-size:20px; font-weight:700; color:var(--teal-line); }
.bawd-quickstats .l{ font-size:11.5px; color:var(--teal-dim); letter-spacing:0.03em; margin-top:3px; text-transform:uppercase; }

/* ---------------- gallery ---------------- */
.bawd-gallery-inner{ position:relative; z-index:1; max-width:660px; margin-left:auto; }
.bawd-tmpl-intro{
  margin:24px 0 20px; display:flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:12px; letter-spacing:0.03em; color:var(--teal-dim);
}
.bawd-tmpl-intro .dot{ width:6px; height:6px; border-radius:50%; background:var(--teal-line); box-shadow:0 0 6px var(--teal-line); flex-shrink:0; }
.bawd-card-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:520px){ .bawd-card-grid{ grid-template-columns:1fr; } }
.bawd-template-card{
  position:relative; border-radius:6px; overflow:hidden; aspect-ratio:16/11; cursor:pointer;
  border:1px solid var(--panel-line); background-size:cover; background-position:center; isolation:isolate; transition:border-color .2s;
}
.bawd-template-card::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(5,7,6,0.1) 0%, rgba(5,7,6,0.88) 100%); z-index:1; }
.bawd-template-card:hover{ border-color:rgba(230,193,60,0.5); }
.bawd-template-card:hover .label{ transform:translateY(-2px); }
.bawd-template-card:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
.bawd-template-card .label{ position:absolute; left:14px; bottom:12px; z-index:2; transition:transform 250ms ease; }
.bawd-template-card .tag{ display:block; font-family:var(--mono); font-size:9.5px; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold-bright); margin-bottom:5px; }
.bawd-template-card .title{ font-family:var(--display); font-weight:700; font-size:16px; color:var(--ink); }
.bawd-template-card .arrow{
  position:absolute; top:10px; right:10px; z-index:2; width:26px; height:26px; border-radius:50%;
  border:1px solid var(--panel-line); background:rgba(5,7,6,0.5); display:flex; align-items:center; justify-content:center; color:var(--ink); font-size:13px;
}

/* ---------------- decision ---------------- */
.bawd-dpanels{ position:relative; z-index:1; margin-top:36px; }
.bawd-dpanel{ padding:26px 0; border-top:1px solid var(--panel-line); }
.bawd-dpanel:first-child{ border-top:none; padding-top:8px; }
.bawd-dpanel .head{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.bawd-dpanel .head h3{ font-family:var(--display); font-size:19px; font-weight:700; color:var(--ink); }
.bawd-dpanel .head .tag{ font-family:var(--mono); font-size:10.5px; letter-spacing:0.06em; padding:3px 9px; border-radius:3px; border:1px solid var(--panel-line); color:var(--teal-dim); }
.bawd-dpanel.rec .head .tag{ border-color:var(--teal-line); color:var(--teal-line); }
.bawd-dpanel p{ color:var(--teal); font-size:15.5px; line-height:1.65; max-width:560px; font-family:var(--display); }
.bawd-dpanel .stats{ display:flex; gap:24px; margin-top:14px; flex-wrap:wrap; }
.bawd-dpanel .stats .s{ font-family:var(--mono); font-size:13px; }
.bawd-dpanel .stats .k{ color:var(--teal-dim); }
.bawd-dpanel .stats .v{ color:var(--gold-bright); font-weight:700; }
.bawd-dpanel.rec .stats .v{ color:var(--teal-line); }

/* ---------------- 02/03 twin row ---------------- */
.bawd-twin-row{ display:grid; grid-template-columns:1fr 140px 1fr; gap:0; align-items:start; }
.bawd-twin-col{ min-width:0; }
.bawd-twin-gap{ position:relative; min-height:200px; }
@media (max-width:860px){
  .bawd-twin-row{ grid-template-columns:1fr; }
  .bawd-twin-gap{ min-height:90px; }
}
.bawd-table{ width:100%; border-collapse:collapse; margin-top:32px; font-size:15px; }
.bawd-table th{
  text-align:left; font-family:var(--mono); font-size:11px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--teal-dim); padding:0 0 14px; font-weight:500; border-bottom:1px solid var(--panel-line);
}
.bawd-table td{ padding:16px 0; border-bottom:1px solid var(--panel-line); color:var(--teal); vertical-align:top; }
.bawd-table tr:last-child td{ border-bottom:none; }
.bawd-table td.name{ color:var(--ink); font-weight:500; }
.bawd-table td.price{ font-family:var(--mono); color:var(--gold-bright); font-weight:700; white-space:nowrap; }
.bawd-table td.time{ color:var(--teal-dim); font-size:14px; white-space:nowrap; }

.bawd-vert-list{ margin-top:36px; }
.bawd-vert-list .v{ display:flex; gap:22px; padding:24px 0; border-top:1px solid var(--panel-line); align-items:flex-start; }
.bawd-vert-list .v:first-child{ border-top:none; padding-top:8px; }
.bawd-vert-list .lbl{ font-family:var(--mono); font-size:12px; color:var(--teal-line); letter-spacing:0.02em; width:110px; flex-shrink:0; padding-top:3px; }
.bawd-vert-list .body h4{ font-family:var(--display); font-size:16.5px; font-weight:700; color:var(--ink); margin-bottom:6px; }
.bawd-vert-list .body p{ font-size:15px; color:var(--teal-dim); line-height:1.6; font-family:var(--display); }
@media (max-width:560px){ .bawd-vert-list .v{ flex-direction:column; gap:8px; } .bawd-vert-list .lbl{ width:auto; } }

/* ---------------- FAQ ---------------- */
.bawd-faq-list{ margin-top:30px; }
.bawd-faq-item{ border-top:1px solid var(--panel-line); }
.bawd-faq-item:last-child{ border-bottom:1px solid var(--panel-line); }
.bawd-faq-item .q{
  width:100%; text-align:left; background:transparent; border:none; cursor:pointer;
  padding:20px 0; display:flex; justify-content:space-between; align-items:center; gap:16px;
  font-family:var(--display); font-size:16.5px; font-weight:500; color:var(--ink);
}
.bawd-faq-item .q:hover{ color:var(--teal-line); }
.bawd-faq-item .q:focus-visible{ outline:2px solid var(--teal-line); outline-offset:3px; }
.bawd-faq-item .q .ind{ font-family:var(--mono); color:var(--gold); font-size:18px; flex-shrink:0; transition:transform .2s; }
.bawd-faq-item.open .q .ind{ transform:rotate(45deg); }
.bawd-faq-item .a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.bawd-faq-item.open .a{ max-height:200px; }
.bawd-faq-item .a p{ padding:0 0 22px; color:var(--teal-dim); font-size:15px; line-height:1.65; max-width:560px; font-family:var(--display); }

/* ---------------- RTL ---------------- */
.bawd-page[dir="rtl"]{ font-family:'Tajawal', var(--display), sans-serif; }
.bawd-page[dir="rtl"] .bawd-eyebrow,
.bawd-page[dir="rtl"] .bawd-tmpl-intro,
.bawd-page[dir="rtl"] .bawd-dpanel .head,
.bawd-page[dir="rtl"] .bawd-faq-item .q{ text-align:right; }
.bawd-page[dir="rtl"] .bawd-gallery-inner{ margin-left:0; margin-right:auto; }
.bawd-page[dir="rtl"] .bawd-vert-list .v{ flex-direction:row-reverse; }
.bawd-page[dir="rtl"] table.bawd-table th,
.bawd-page[dir="rtl"] table.bawd-table td{ text-align:right; }

@media (max-width:900px){ .bawd-page{ padding:40px 6vw 0; } }

/* ==================================================================
   BUILD-A-WEBSITE-DUBAI — fullscreen live template panels.
   Same warp-zoom mechanic as the theme's other interactive surfaces;
   appended outside .bawd-page in the template so position:fixed is
   never affected by an ancestor transform.
   ================================================================== */
.bawd-panel{
  display:none; position:fixed; top:0; left:0; width:100vw; height:100vh; z-index:300; overflow:hidden;
  background:var(--bg2); box-shadow:0 60px 120px -30px rgba(0,0,0,0.7);
  transform-origin:center center; will-change:transform, filter, border-radius;
}
.bawd-panel.open{ display:block; }
.bawd-panel .inner{ position:relative; width:100%; height:100%; overflow:hidden; }
.bawd-panel .slide{ position:absolute; inset:0; opacity:0; transition:opacity 700ms ease; }
.bawd-panel .slide.active{ opacity:1; z-index:1; }
.bawd-panel .bg{ position:absolute; inset:0; background-size:cover; background-position:center; transform:scale(1.05); filter:blur(0px); will-change:transform, filter; }
.bawd-panel .topbar{
  position:absolute; top:0; left:0; right:0; z-index:3; display:flex; align-items:center; gap:14px;
  padding:14px 22px; opacity:0; transition:opacity 300ms ease 250ms;
}
.bawd-panel.settled .topbar{ opacity:1; }
.bawd-panel .back{
  display:flex; align-items:center; gap:6px; font-family:var(--mono); font-size:11px; letter-spacing:0.04em;
  color:var(--ink); background:rgba(5,7,6,0.5); border:1px solid rgba(255,255,255,0.14); padding:7px 14px;
  border-radius:999px; cursor:pointer;
}
.bawd-panel .back:focus-visible{ outline:2px solid var(--teal-line); outline-offset:2px; }
.bawd-panel .dots{ display:flex; gap:6px; margin-left:auto; }
.bawd-panel .dots span{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.16); }
.bawd-panel .nav-labels{ display:flex; gap:24px; font-size:11px; letter-spacing:0.05em; color:rgba(234,255,244,0.5); font-family:var(--mono); text-transform:lowercase; }
@media (max-width:640px){ .bawd-panel .nav-labels{ display:none; } }
.bawd-panel .copy{
  position:absolute; left:6%; bottom:12%; z-index:3; max-width:64%; opacity:0; transform:translateY(14px);
  transition:opacity 450ms ease 320ms, transform 450ms ease 320ms;
}
.bawd-panel.settled .copy{ opacity:1; transform:translateY(0); }
.bawd-panel .eyebrow{
  display:inline-block; font-family:var(--mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase;
  padding:4px 10px; border-radius:999px; margin-bottom:12px; background:rgba(5,7,6,0.4);
}
.bawd-panel h2{ margin:0; font-family:var(--display); font-weight:700; font-size:clamp(24px,4vw,42px); line-height:1.1; color:var(--ink); letter-spacing:-0.01em; }
.bawd-panel .cta{ margin-top:18px; display:inline-block; font-family:var(--mono); font-size:12px; letter-spacing:0.04em; padding:10px 18px; border-radius:8px; text-transform:uppercase; }

.bawd-panel[data-key="realestate"] .eyebrow{ color:var(--gold-bright); border-color:rgba(230,193,60,0.35); }
.bawd-panel[data-key="realestate"] .cta{ background:var(--gold-bright); color:var(--bg); }
.bawd-panel[data-key="clinics"] .eyebrow{ color:#7fd6d6; border-color:rgba(127,214,214,0.35); }
.bawd-panel[data-key="clinics"] .cta{ background:#7fd6d6; color:var(--bg); }
.bawd-panel[data-key="retail"] .eyebrow{ color:var(--teal-line); border-color:rgba(63,174,134,0.35); }
.bawd-panel[data-key="retail"] .cta{ background:var(--teal-line); color:var(--bg); }

.bawd-panel .streaks{ position:absolute; inset:0; z-index:2; pointer-events:none; display:flex; opacity:0; }
.bawd-panel .streaks span{
  flex:1; margin:0 2px; background:linear-gradient(180deg, transparent 0%, rgba(234,255,244,0.5) 45%, rgba(234,255,244,0.5) 55%, transparent 100%);
  transform:scaleY(0.4); filter:blur(2px); opacity:0;
}
.bawd-panel .inner.pushing .streaks{ opacity:1; }
.bawd-panel .inner.pushing .streaks span{ animation:bawdPillarPass 380ms cubic-bezier(.3,0,.6,1); }
.bawd-panel .inner.pushing .streaks span:nth-child(2){ animation-delay:15ms; }
.bawd-panel .inner.pushing .streaks span:nth-child(3){ animation-delay:30ms; }
.bawd-panel .inner.pushing .streaks span:nth-child(4){ animation-delay:45ms; }
.bawd-panel .inner.pushing .streaks span:nth-child(5){ animation-delay:60ms; }
.bawd-panel .inner.pushing .streaks span:nth-child(6){ animation-delay:75ms; }
.bawd-panel .inner.pushing .streaks span:nth-child(7){ animation-delay:90ms; }
@keyframes bawdPillarPass{
  0%{ transform:scaleY(0.3) scaleX(1); opacity:0; filter:blur(1px); }
  45%{ transform:scaleY(1.15) scaleX(2.4); opacity:0.85; filter:blur(4px); }
  100%{ transform:scaleY(0.5) scaleX(4.5); opacity:0; filter:blur(8px); }
}
.bawd-warp-streaks{ position:fixed; inset:0; z-index:310; pointer-events:none; display:flex; opacity:0; }
.bawd-warp-streaks span{
  flex:1; margin:0 3px; background:linear-gradient(180deg, transparent 0%, rgba(234,255,244,0.45) 45%, rgba(234,255,244,0.45) 55%, transparent 100%);
  transform:scaleY(0.4); filter:blur(2px); opacity:0;
}
.bawd-warp-streaks.firing{ opacity:1; }
.bawd-warp-streaks.firing span{ animation:bawdWarpPillarPass 420ms cubic-bezier(.3,0,.6,1); }
.bawd-warp-streaks.firing span:nth-child(2){ animation-delay:12ms; }
.bawd-warp-streaks.firing span:nth-child(3){ animation-delay:24ms; }
.bawd-warp-streaks.firing span:nth-child(4){ animation-delay:36ms; }
.bawd-warp-streaks.firing span:nth-child(5){ animation-delay:48ms; }
.bawd-warp-streaks.firing span:nth-child(6){ animation-delay:60ms; }
.bawd-warp-streaks.firing span:nth-child(7){ animation-delay:72ms; }
.bawd-warp-streaks.firing span:nth-child(8){ animation-delay:84ms; }
.bawd-warp-streaks.firing span:nth-child(9){ animation-delay:96ms; }
@keyframes bawdWarpPillarPass{
  0%{ transform:scaleY(0.3) scaleX(1); opacity:0; filter:blur(1px); }
  45%{ transform:scaleY(1.2) scaleX(2.2); opacity:0.8; filter:blur(4px); }
  100%{ transform:scaleY(0.5) scaleX(4); opacity:0; filter:blur(9px); }
}

/* embedded live-template panel (restaurant card) */
.bawd-panel .inner--embed{ background:#0c0a08; }
.bawd-panel .topbar--embed{ position:absolute; top:0; left:0; z-index:5; padding:16px; opacity:1; width:auto; right:auto; display:flex; align-items:center; gap:12px; }
.bawd-panel .embed-badge{
  font-family:var(--mono); font-size:10px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--teal-line); background:rgba(5,7,6,0.55); border:1px solid rgba(255,255,255,0.14); padding:6px 11px; border-radius:999px;
}
.bawd-panel .embed-frame{ position:absolute; inset:0; width:100%; height:100%; border:none; display:block; }

/* explicit close (X) control, top-right of every panel — the "← Templates" text link on
   the left isn't a familiar exit affordance on its own; a corner X is the convention
   people actually look for to leave a fullscreen overlay. Fades in alongside the rest of
   the panel chrome once the warp-open animation settles, matching the badge/back button. */
.bawd-panel .close-x{
  position:absolute; top:16px; right:16px; z-index:6; width:38px; height:38px; border-radius:50%;
  background:rgba(9,11,15,0.55); border:1px solid rgba(255,255,255,0.14); color:var(--ink);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  opacity:0; transition:opacity .3s ease .25s, background .2s, border-color .2s, transform .15s;
}
.bawd-panel.settled .close-x{ opacity:1; }
.bawd-panel .close-x:hover{ background:rgba(9,11,15,0.8); border-color:rgba(255,255,255,0.35); transform:scale(1.06); }
.bawd-panel .close-x:focus-visible{ outline:2px solid var(--teal-line); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  .bawd-panel{ transition:opacity 320ms ease !important; }
  .bawd-warp-streaks, .bawd-panel .streaks{ display:none !important; }
  .bawd-panel .slide{ transition:opacity 400ms ease !important; }
  .bawd-panel .bg{ transition:opacity 400ms ease !important; transform:scale(1.05) !important; filter:none !important; }
}

/* ---------- Overflow safety net for the EN/AR toggle (mobile only) ---------- */
/* Arabic strings can lack the natural word-break points English has, so a
   translated node can refuse to wrap and quietly push its flex parent wider
   than the viewport — invisible on desktop (room to spare) but on mobile
   this drags the whole page into horizontal overflow. Scoped to mobile only
   so desktop is completely untouched. */
@media (max-width:1000px){
  html{overflow-x:hidden;}
  [data-i18n], [data-en]{
    overflow-wrap:break-word;
    word-break:break-word;
  }
}

/* ---------- Process timeline (#process section) — scroll-lit diagonal
   cascade timeline. Reuses existing --bg/--teal/--gold tokens and the
   .step visual language (top-border card, glass blur bg) rather than
   introducing a new card style. Mobile-first: the safe single-column
   layout is the default at every width; the alternating diagonal-connector
   cascade only activates at 1100px+, so no in-between viewport can hit
   the overflow-prone two-column math. ---------- */
.process-intro{margin-bottom:40px;}
.process-intro p{
  max-width:640px; margin:0; color:var(--teal-dim); font-family:var(--display);
  font-size:.9rem; line-height:1.65;
}

.timeline{position:relative; margin-top:50px;}

.timeline .spine{
  position:absolute; left:22px; top:0; bottom:0; width:1px;
  background:var(--panel-line); z-index:0;
}
.timeline .spine-fill{
  position:absolute; left:0; top:0; width:100%; height:0%;
  background:linear-gradient(180deg, var(--gold) 0%, var(--teal-line) 100%);
  transition:height 1s cubic-bezier(.16,.8,.3,1);
}

.tl-row{
  position:relative; display:grid; grid-template-columns:44px 1fr; align-items:center;
  column-gap:16px; margin-bottom:10px; z-index:1;
}
.tl-row:last-child{margin-bottom:0;}

.tl-node{
  grid-column:1; justify-self:center; width:44px; height:44px; border-radius:50%; position:relative;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg); border:1px solid var(--panel-line); color:var(--teal-dim);
  transition:border-color .5s ease, color .5s ease, box-shadow .5s ease;
}
.tl-node svg{width:16px; height:16px;}
.tl-row.is-active .tl-node{
  border-color:var(--gold); color:var(--gold-bright);
  box-shadow:0 0 0 4px rgba(230,193,60,.08), 0 0 16px rgba(230,193,60,.35);
}

.tl-card{
  position:relative; border-top:2px solid var(--panel-line); border-radius:2px;
  background:rgba(4,10,8,.6); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  padding:22px 20px 20px; width:100%;
  overflow-wrap:break-word; word-break:break-word;
  opacity:.28; filter:grayscale(.8); transform:translateY(14px);
  transition:opacity .8s ease, filter .8s ease, transform .8s ease, border-color .2s ease, background .2s ease;
  grid-column:2; text-align:left;
}
.tl-card:hover{border-top-color:var(--teal-line); background:rgba(4,10,8,.75);}
.tl-row.is-active .tl-card{opacity:1; filter:grayscale(0); transform:translateY(0); border-top-color:var(--teal-line);}

.tl-card .num{font-size:1.3rem; color:var(--gold); display:block; margin-bottom:10px;}
.tl-card h3{font-size:.95rem; margin-bottom:8px;}
.tl-card p{font-size:.8rem; color:var(--teal-dim); font-family:var(--display); line-height:1.55; margin:0;}
.tl-card p strong{color:var(--ink); font-weight:600;}

@media (min-width:1100px){
  .timeline{margin-top:90px;}
  .timeline .spine{left:50%; transform:translateX(-50%);}
  .tl-row{
    grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr); column-gap:26px;
  }
  .tl-node{grid-column:2;}

  .tl-card{max-width:min(440px, 100%);}
  .tl-row.left .tl-card{grid-column:1; justify-self:end;}
  .tl-row.right .tl-card{grid-column:3; justify-self:start; text-align:left;}
}

@media (prefers-reduced-motion: reduce){
  .tl-card, .tl-node{opacity:1 !important; filter:none !important; transform:none !important; transition:none !important;}
  .timeline .spine-fill{transition:none;}
}

/* ---------- What We Build (#services) — interactive list + preview.
   Clicking/hovering a list item swaps the preview panel content.
   Mobile-safe (click-based), desktop gets hover-preview via hover:hover check in JS. ---------- */
.svc-layout{display:grid; grid-template-columns:1fr; gap:36px;}
@media (min-width:900px){ .svc-layout{grid-template-columns:1fr 1.15fr; gap:48px; align-items:start;} }

.svc-list{display:flex; flex-direction:column;}
.svc-item{
  display:flex; align-items:flex-start; gap:18px; padding:22px 6px;
  border-top:1px solid var(--panel-line); cursor:pointer;
  background:none; text-align:left; width:100%;
  transition:background .3s ease;
}
.svc-list .svc-item:last-child{border-bottom:1px solid var(--panel-line);}
.svc-item:hover, .svc-item.is-active{background:rgba(63,174,134,.05);}

.svc-num{font-size:1.1rem; color:var(--teal-dim); flex-shrink:0; padding-top:2px; transition:color .3s ease;}
.svc-item.is-active .svc-num, .svc-item:hover .svc-num{color:var(--gold);}

.svc-body{flex:1; min-width:0;}
.svc-body h3{font-size:1.05rem; margin-bottom:6px; transition:color .3s ease;}
.svc-item.is-active .svc-body h3{color:var(--gold-bright);}
.svc-body p{
  font-size:.82rem; color:var(--teal-dim); font-family:var(--display); line-height:1.55; margin:0;
  max-height:0; opacity:0; overflow:hidden; transition:max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}
.svc-item.is-active .svc-body p{max-height:80px; opacity:1; margin-top:2px;}

.svc-arrow{flex-shrink:0; width:20px; height:20px; color:var(--teal-dim); transform:translateX(0); transition:transform .3s ease, color .3s ease;}
.svc-item.is-active .svc-arrow, .svc-item:hover .svc-arrow{color:var(--gold); transform:translateX(5px);}

.svc-preview{
  position:relative; border:1px solid var(--panel-line); border-radius:6px; overflow:hidden;
  background:rgba(4,10,8,.6); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  min-height:360px;
}
.svc-preview-chrome{
  display:flex; align-items:center; gap:6px; padding:10px 14px; border-bottom:1px solid var(--panel-line);
  background:rgba(0,0,0,.25);
}
.svc-preview-chrome .dot{width:8px; height:8px; border-radius:50%; background:var(--panel-line);}
.svc-preview-chrome .url{
  margin-left:10px; font-size:.68rem; color:var(--teal-dim); font-family:var(--mono);
  background:var(--bg); border:1px solid var(--panel-line); border-radius:3px; padding:3px 10px;
}

.svc-pane{display:none; padding:32px 30px; min-height:300px;}
.svc-pane.is-active{display:block;}

.mock-nav{display:flex; justify-content:space-between; align-items:center; margin-bottom:34px; padding-bottom:14px; border-bottom:1px solid var(--panel-line);}
.mock-nav .brand{font-family:var(--display); font-weight:700; color:var(--ink); font-size:.9rem; letter-spacing:1px;}
.mock-nav .links{display:flex; gap:18px; font-size:.68rem; color:var(--teal-dim);}
.mock-nav .cta{background:var(--gold); color:#101a15; font-size:.66rem; font-weight:700; padding:6px 14px; border-radius:3px;}
.mock-hero h2{font-size:1.4rem; line-height:1.3; margin-bottom:12px; max-width:320px; font-family:var(--display); color:var(--ink);}
.mock-hero p{font-size:.78rem; color:var(--teal-dim); font-family:var(--display); max-width:300px; margin:0 0 20px;}
.mock-feats{display:flex; gap:22px; flex-wrap:wrap;}
.mock-feat{font-size:.68rem; color:var(--teal-mid); display:flex; align-items:center; gap:6px;}
.mock-feat svg{width:14px; height:14px;}

.mock-compare{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.mock-col{border:1px solid var(--panel-line); border-radius:4px; padding:20px; text-align:center;}
.mock-col.before{opacity:.55;}
.mock-col .label{font-size:.66rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--teal-dim); margin-bottom:14px;}
.mock-col .score{font-family:var(--display); font-weight:700; font-size:2.1rem; color:var(--ink);}
.mock-col.after .score{color:var(--gold-bright);}
.mock-col .metric{font-size:.68rem; color:var(--teal-dim); margin-top:6px;}
.mock-arrow-mid{display:flex; align-items:center; justify-content:center; grid-column:1/-1; margin:6px 0; color:var(--gold); font-size:1.1rem;}

.mock-lang{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.mock-lang-col{border:1px solid var(--panel-line); border-radius:4px; padding:18px;}
.mock-lang-col .tag{font-size:.62rem; letter-spacing:1.5px; color:var(--teal-dim); text-transform:uppercase; margin-bottom:12px;}
.mock-lang-col nav{display:flex; gap:14px; font-size:.66rem; color:var(--ink); margin-bottom:16px; padding-bottom:10px; border-bottom:1px solid var(--panel-line);}
.mock-lang-col.ar nav{flex-direction:row-reverse; font-family:var(--display); direction:rtl;}
.mock-lang-col p{font-size:.72rem; color:var(--teal-dim); font-family:var(--display); line-height:1.6; margin:0;}
.mock-lang-col.ar p{direction:rtl; text-align:right; font-family:var(--display);}

.mock-approach{display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; min-height:230px; text-align:center;}
.mock-approach-steps{display:flex; align-items:center; gap:14px; margin-bottom:24px; flex-wrap:wrap; justify-content:center;}
.mock-approach-steps span.word{font-family:var(--display); font-weight:700; font-size:1.15rem; color:var(--ink);}
.mock-approach-steps span.arrow{color:var(--gold); font-size:1rem;}
.mock-approach-tag{font-size:.85rem; color:var(--gold-bright); font-family:var(--display); font-weight:600;}

@media (max-width:600px){
  .mock-compare, .mock-lang{grid-template-columns:1fr;}
}

@media (prefers-reduced-motion: reduce){
  .svc-body p{transition:none;}
  .svc-arrow{transition:none;}
}
