/*
Theme Name: SamaraBoT Theme
Theme URI: https://samarabot.com
Author: SamaraBoT
Description: Custom theme for SamaraBoT — Build, Wire, and Code a Robotic Arm.
Version: 1.0
*/

  :root{
    --bg:#f8f4ee;
    --panel:#fffdf8;
    --ink:#1e2d4e;
    --muted:#7d7568;
    --blue:#3B82F6;
    --yellow:#e8c23a;
    --red:#dc663f;
    --line:rgba(30,45,78,0.08);
    --sukkari:#d9c9a3;
    --sukkari-line:rgba(180,160,120,0.45);
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth; overflow-x:hidden;}
  body{
    background:var(--bg); color:var(--ink);
    font-family:'Sora',sans-serif;
    overflow-x:clip; max-width:100%;
  }
  nav{
    position:sticky; top:0; z-index:10; background:var(--bg);
    display:flex; justify-content:space-between; align-items:center;
    padding:16px 6vw; border-bottom:1px solid var(--line);
  }
  .logo{font-weight:800; font-size:20px; display:flex; align-items:center; gap:8px;}
  .navlinks{display:flex; gap:32px; font-size:14px; color:var(--muted);}
  .navlinks a{color:inherit; text-decoration:none; padding-bottom:3px; border-bottom:2px solid transparent; transition:color .2s, border-color .2s, font-weight .2s;}
  .navlinks a:hover{color:var(--ink); font-weight:700;}
  .navlinks a.active{color:var(--ink); font-weight:700; border-color:var(--blue);}
  .cta{
    background:var(--ink); color:#fff; border:none; font-weight:700; font-size:14px;
    padding:11px 22px; border-radius:999px; cursor:pointer;
  }

  .hero{
    min-height:88vh;
    display:flex; align-items:center; justify-content:space-between;
    padding:4vh 6vw; gap:30px;
  }
  .hero-copy{max-width:480px;}
  .eyebrow{
    font-size:12px; letter-spacing:3px; color:var(--red); font-weight:700;
    display:flex; align-items:center; gap:10px; margin-bottom:14px;
  }
  .eyebrow::before{content:'';width:24px;height:2px;background:var(--red);}
  h1{
    font-weight:800;
    font-size:clamp(24px,3.2vw,46px); line-height:1.1; letter-spacing:-1px; margin-bottom:14px;
  }
  h1 .accent{color:var(--blue);}
  .hero-copy p{font-size:15px; line-height:1.7; color:var(--muted); margin-bottom:18px;}
  .actions{display:flex; gap:14px;}
  .btn-primary{background:var(--blue); color:#fff; border:none; font-weight:700; font-size:14px; padding:12px 22px; border-radius:10px; cursor:pointer;}
  .btn-ghost{background:transparent; border:1.5px solid var(--ink); font-weight:600; font-size:14px; padding:11px 20px; border-radius:10px; cursor:pointer;}
  .specs{display:flex; gap:30px; margin-top:26px;}
  .spec b{font-size:21px; display:block;}
  .spec span{font-size:11px; color:var(--muted);}

  .stage{
    height:min(64vh,540px); aspect-ratio:640/660; width:auto; position:relative;
    display:flex; align-items:center; justify-content:center;
  }
  .stage svg{width:100%; height:100%; overflow:visible;}

  .section{ padding:70px 6vw; }
  .section.alt{ background-color:var(--panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .video-section{ position:relative; overflow:hidden; padding:0; }
  .video-section .bg-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
  .video-section .video-overlay{ position:absolute; inset:0; background:rgba(248,244,238,0.8); z-index:1; }
  .video-section .video-content{ position:relative; z-index:2; padding:70px 6vw; }
  .video-section .section-head{ background:rgba(255,253,248,0.88); border-radius:20px; padding:26px 32px; box-shadow:0 6px 30px rgba(18,25,51,0.14); }
  .hero, .section:not(.alt){
    background-image: radial-gradient(rgba(125,117,104,0.22) .7px, transparent .7px);
    background-size: 26px 26px;
  }
  .section-head{ max-width:640px; margin:0 auto 42px; text-align:center; }
  .section-head .eyebrow{ justify-content:center; margin-left:auto; margin-right:auto; }
  .section-head h2{ font-size:clamp(22px,2.6vw,32px); font-weight:800; margin-bottom:10px; }
  .section-head p{ color:var(--muted); font-size:15px; line-height:1.7; }

  .timeline{ position:relative; max-width:600px; margin:0 auto; padding-left:60px; }
  .timeline::before{ content:''; position:absolute; left:19px; top:6px; bottom:6px; width:2px; background:repeating-linear-gradient(var(--sukkari-line) 0 6px, transparent 6px 12px); }
  .timeline-fill{ position:absolute; left:19px; top:6px; width:2px; height:0; background:repeating-linear-gradient(var(--blue) 0 6px, transparent 6px 12px); transition:height .6s ease; }
  .timeline-row{ position:relative; padding-bottom:32px; }
  .timeline-row:last-child{ padding-bottom:0; }
  .step-num{ position:absolute; left:-60px; top:0; width:40px; height:40px; border-radius:50%; background:var(--sukkari); color:#fff; font-weight:800; font-size:16px; display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 5px var(--bg); transition:background-color .5s ease, transform .5s ease; }
  .section.alt .step-num{ box-shadow:0 0 0 5px var(--panel); }
  .step-num.lit{ background:var(--blue); transform:scale(1.08); }
  .timeline-row:last-child .step-num.lit{ background:var(--red); }
  .step-phase{ display:block; font-size:11px; letter-spacing:.5px; color:var(--red); font-weight:700; margin-bottom:2px; }
  .step-body{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:16px 20px; }
  .section:not(.alt) .step-body{ background:var(--bg); }
  .step-body h3{ font-size:16px; margin-bottom:2px; }
  .step-time{ display:block; font-size:11px; color:var(--blue); font-weight:700; margin-bottom:6px; }
  .step-body p{ font-size:13.5px; color:var(--muted); line-height:1.6; }

  .learn-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; max-width:1100px; margin:0 auto; }
  .learn-card{ background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:26px 20px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; }
  .learn-icon{ width:48px; height:48px; border-radius:12px; flex:0 0 auto; display:flex; align-items:center; justify-content:center; font-size:22px; }
  .learn-card h3{ font-size:15px; margin-bottom:2px; }
  .learn-card p{ font-size:13px; color:var(--muted); line-height:1.6; }
  .level-badge{ font-size:11px; font-weight:700; color:var(--muted); display:block; margin-bottom:4px; }

  .app-features{ max-width:1000px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
  .feature-pill{ background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:16px 18px; font-size:13.5px; }
  .feature-pill b{ display:block; font-size:14px; margin-bottom:4px; }

  .workshop-gallery{ max-width:1000px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
  .workshop-photo{
    aspect-ratio:4/3; border:none; border-radius:14px;
    background:var(--bg); display:flex; align-items:center; justify-content:center;
    color:var(--muted); font-size:13px; overflow:hidden;
  }
  .workshop-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
  .workshop-photo{ position:relative; }
  .workshop-photo::after{
    content:''; position:absolute; inset:0; pointer-events:none;
    background:rgba(0,0,0,0.08);
  }

  footer{
    background-color:#121933;
    background-image: radial-gradient(rgba(255,255,255,0.18) .7px, transparent .7px);
    background-size: 26px 26px;
    padding:56px 6vw 28px;
    text-align:center;
    position:relative;
  }
  .footer-mascot{ position:absolute; bottom:calc(100% - 9px); right:1.5vw; z-index:5; }
  #footerBot{ width:90px; height:117px; }
.wa-bubble{
  position:absolute; right:calc(100% - 12px); top:27px; transform:translateY(-50%);
  background:var(--blue); color:#fff; font-weight:700; font-size:10px;
  padding:6px 10px; border-radius:14px; white-space:nowrap;
  text-decoration:none; z-index:1;
}
  .wa-bubble::after{
    content:''; position:absolute; right:-5px; top:50%; transform:translateY(-50%);
    border-width:7px 0 7px 8px; border-style:solid; border-color:transparent transparent transparent var(--blue);
  }
  .footer-eye{ animation:eyeBlink 3s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
  @keyframes eyeBlink{
    0%, 96%, 100%{ transform:scaleY(1); }
    98%{ transform:scaleY(0.1); }
  }
  .footer-top{
    max-width:1000px; margin:0 auto 32px; text-align:left;
    display:flex; justify-content:space-between; align-items:flex-start; gap:40px;
  }
  .footer-brand{ max-width:340px; flex-shrink:0; }
  .footer-logo{ font-weight:800; font-size:20px; color:#f8f4ee; margin-bottom:14px; }
  .footer-tagline{ font-size:14px; line-height:1.7; color:rgba(248,244,238,0.68); }
  .footer-bottom{
    position:relative;
    padding-top:20px;
    font-size:12px; color:rgba(248,244,238,0.45);
  }
  .footer-bottom::before{
    content:'';
    position:absolute; top:-6px; left:0; right:0;
    border-top:1px solid rgba(248,244,238,0.12);
  }

  .footer-links{
    display:grid; grid-template-columns:repeat(4,auto); gap:32px;
  }
  .footer-col h4{
    font-size:12px; letter-spacing:1.5px; text-transform:uppercase;
    color:rgba(248,244,238,0.9); margin-bottom:14px; font-weight:700;
  }
  .footer-col ul{ list-style:none; display:flex; flex-direction:column; gap:10px; }
  .footer-col a{
    font-size:13.5px; color:rgba(248,244,238,0.62); text-decoration:none; transition:color .2s; white-space:nowrap;
  }
  .footer-col a:hover{ color:#f8f4ee; }
  @media (max-width:800px){
    .footer-top{ flex-direction:column; align-items:center; text-align:center; }
    .footer-brand{ max-width:420px; margin:0 auto; }
    .footer-links{ grid-template-columns:repeat(2,1fr); text-align:center; }
    .footer-col ul{ align-items:center; }

        /* ترتيب الفوتر على الهاتف: Robot | About  /  Shop | Legal */
    .footer-links .footer-col:nth-child(1){ order:1; } /* Robot */
    .footer-links .footer-col:nth-child(3){ order:2; } /* About */
    .footer-links .footer-col:nth-child(2){ order:3; } /* Shop */
    .footer-links .footer-col:nth-child(4){ order:4; } /* Legal */
  }


  @media (max-width:900px){
    .hero{flex-direction:column-reverse; text-align:center; min-height:auto; padding:4vh 6vw;}
    .hero-copy{max-width:100%;}
    .eyebrow, .actions, .specs{justify-content:center;}
    .stage{height:auto; width:82vw;}
    .navlinks{display:none;}
    .timeline{ padding-left:48px; }
    .step-num{ left:-48px; width:34px; height:34px; font-size:14px; }
    .timeline::before{ left:16px; }
    .learn-grid{grid-template-columns:repeat(2,1fr);}
    .app-features{grid-template-columns:1fr;}
  }
  @media (max-width:520px){
    .learn-grid{grid-template-columns:1fr;}
    .workshop-gallery{grid-template-columns:repeat(2,1fr);}
  }

/* ---------- Workshops page ---------- */
.ws-hero{ text-align:center; padding:90px 6vw 70px; }
.ws-hero .eyebrow{ justify-content:center; }
.ws-hero h1{ max-width:760px; margin-left:auto; margin-right:auto; }
.ws-hero p{ max-width:640px; margin:0 auto 24px; font-size:15px; line-height:1.7; color:var(--muted); }
.ws-hero .actions{ justify-content:center; }
.ws-cta{
  max-width:1000px; margin:0 auto; text-align:center;
  background:var(--ink); color:#fff; border-radius:24px; padding:48px 6vw;
}
.ws-cta h2{ font-size:clamp(22px,2.6vw,32px); font-weight:800; margin-bottom:10px; }
.ws-cta p{ color:rgba(255,255,255,0.72); font-size:15px; line-height:1.7; margin-bottom:22px; }


/* ---------- Work Plan: decorative gears (half off-screen on the right) ---------- */
#how{ position:relative; overflow:hidden; }
.how-gears{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.how-gear{
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.how-gear svg{
  width:100%;
  height:100%;
  transform-origin:50% 50%;
  animation:gearSpin 60s linear infinite;
}
.how-gear.gear-sm  svg{ animation-duration:40s;  animation-direction:reverse; }
.how-gear.gear-sm2 svg{ animation-duration:80s;  animation-direction:reverse; }

@keyframes gearSpin{
  from{ transform:rotate(0deg); }
  to  { transform:rotate(360deg); }
}

/* Big gold gear - centered vertically, half off the right edge */
.how-gear.gear-lg{
  top:50%;
  right:0;
  width:280px;
  height:280px;
  transform:translate(50%,-50%);   /* pushes half of it off the screen */
  opacity:0.9;
  filter:drop-shadow(0 12px 28px rgba(201,162,39,0.22));
}

/* Small blue gear - upper right corner, half off the edge */
.how-gear.gear-sm{
  top:6%;
  right:0;
  width:150px;
  height:150px;
  transform:translate(55%,0);
  opacity:0.85;
  filter:drop-shadow(0 10px 22px rgba(59,130,246,0.20));
}

/* Small red gear - lower right corner, half off the edge */
.how-gear.gear-sm2{
  bottom:6%;
  right:0;
  width:130px;
  height:130px;
  transform:translate(55%,0);
  opacity:0.85;
  filter:drop-shadow(0 10px 22px rgba(220,102,63,0.20));
}

/* keep the title + timeline above the gears */
#how .section-head,
#how .timeline{ position:relative; z-index:1; }

/* tablet: shrink the gears a bit but keep them half off-screen */
@media (max-width:1100px){
  .how-gear.gear-lg { width:200px; height:200px; }
  .how-gear.gear-sm { width:110px; height:110px; }
  .how-gear.gear-sm2{ width:100px; height:100px; }
}

/* phone + small tablet: hide all gears */
@media (max-width:900px){
  .how-gears{ display:none; }
}

/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  .how-gear svg{ animation:none; }
}

/* ---------- The App: decorative IC chip (half off-screen on the left) ---------- */
#app{ position:relative; overflow:hidden; }
.how-chips{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.how-chip{
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.how-chip svg{
  width:100%;
  height:100%;
  transform-origin:50% 50%;
  animation:none;   /* static like a real IC */
}
.how-chip.chip-lg{
  top:20px;
  left:-40px;
  width:140px;
  height:140px;
  transform:none;
  opacity:0.92;
  filter:drop-shadow(0 10px 22px rgba(30,41,59,0.25));
}

/* ---------- Animated electric current along the blue traces ---------- */
/* ---------- Flowing white glow along the blue traces ---------- */
.how-chip .trace{
  /* the wire stays fully visible; we paint a soft white highlight on top
     of the blue, moving along the path */
  stroke-dasharray: 14 86;              /* short white dash + long transparent gap */
  stroke-dashoffset: 100;
  animation: traceGlow 3.2s linear infinite;
  filter:drop-shadow(0 0 3px rgba(255,255,255,0.95))
         drop-shadow(0 0 6px rgba(59,130,246,0.85));
}

.how-chip .trace:nth-of-type(2){ animation-delay: .5s; }
.how-chip .trace:nth-of-type(3){ animation-delay: 1s; }
.how-chip .trace:nth-of-type(4){ animation-delay: 1.5s; }
.how-chip .trace:nth-of-type(5){ animation-delay: 2s; }

@keyframes traceGlow{
  from{ stroke-dashoffset: 100; }
  to  { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce){
  .how-chip .trace{ animation:none; }
}

/* keep the title + features above the chip */
#app .section-head,
#app .app-features{ position:relative; z-index:1; }

/* tablet: shrink the chip */
@media (max-width:1100px){
  .how-chip.chip-lg{ width:90px; height:90px; top:16px; left:-26px; }
}

/* phone + small tablet: hide it */
@media (max-width:900px){
  .how-chips{ display:none; }
}


/* =====================================================================
   Mobile & tablet: shared header/footer + front page
   (desktop is untouched - everything below is inside media queries,
    except the hidden hamburger button)
   ===================================================================== */
.nav-right{ display:flex; align-items:center; gap:10px; }
.menu-toggle{
  display:none; position:relative; width:42px; height:42px; padding:0;
  background:transparent; border:1px solid var(--line); border-radius:12px; cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.menu-toggle span{
  position:absolute; left:11px; right:11px; height:2px; border-radius:2px; background:var(--ink);
  transition:transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle span:nth-child(1){ top:14px; }
.menu-toggle span:nth-child(2){ top:20px; }
.menu-toggle span:nth-child(3){ top:26px; }
nav.open .menu-toggle span:nth-child(1){ top:20px; transform:rotate(45deg); }
nav.open .menu-toggle span:nth-child(2){ opacity:0; }
nav.open .menu-toggle span:nth-child(3){ top:20px; transform:rotate(-45deg); }

@media (max-width:900px){
  /* ---- navigation: dropdown menu ---- */
  .menu-toggle{ display:block; }
  .navlinks{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0; padding:4px 6vw 12px; font-size:15px;
    background:var(--bg); border-bottom:1px solid var(--line);
    box-shadow:0 14px 24px rgba(18,25,51,0.08);
  }
  nav.open .navlinks{ display:flex; }
  .navlinks a{ padding:14px 0; border-bottom:1px solid var(--line); }
  .navlinks a:last-child{ border-bottom:none; }
  .navlinks a.active{ border-bottom-color:var(--line); }

  section[id]{ scroll-margin-top:68px; }
  .section{ padding:52px 6vw; }
  .section.video-section{ padding:0; }
  .section-head{ margin-bottom:30px; }

  /* ---- hero: text first, robot after the buttons, stats last ---- */
  .hero{ flex-direction:column; align-items:stretch; text-align:left; min-height:auto; gap:0; padding:32px 6vw 40px; }
  .hero-copy{ display:contents; }
  .hero-copy > *{ max-width:640px; }
  .hero .eyebrow{ order:1; justify-content:flex-start; align-items:flex-start; line-height:1.5; }
  .hero .eyebrow::before{ flex:0 0 24px; margin-top:.7em; }
  .hero h1{ order:2; font-size:clamp(28px,8vw,40px); line-height:1.12; }
  .hero-copy > p{ order:3; }
  .hero-copy > p + p{ order:4; }
  .hero .actions{ order:5; justify-content:flex-start; margin-top:4px; }
  .hero .stage{ order:6; height:auto; width:min(70vw,360px); align-self:center; margin:26px 0 8px; position:relative; inset-inline-start:7vw; }
  .hero .specs{ order:7; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:22px; width:100%; max-width:none; }
  .spec{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:14px 16px; }
  .spec b{ font-size:22px; }
  .spec span{ display:block; font-size:12px; line-height:1.4; margin-top:2px; }

  .feature-pill{ color:var(--muted); line-height:1.55; }
  .feature-pill b{ color:var(--ink); }
  .video-section .video-content{ padding:52px 6vw; }
}

@media (max-width:600px){
  /* footer robot: sits inside the footer instead of overlapping the section above */
  .footer-mascot{
    position:static; display:flex; align-items:flex-start; justify-content:center;
    margin:-145px auto 20px; right:auto; bottom:auto; transform:translateX(147px);
    pointer-events:none;
  }
  .footer-mascot a,
  #footerBot{ pointer-events:auto; }
       .wa-bubble{ right:calc(50% + 21px); top:24px; font-size:11px; }
  #footerBot{ width:66px; height:110px; }
}

@media (max-width:520px){
  /* ---- header: slimmer ---- */
  nav{ padding:10px 5vw; }
  .navlinks{ padding:4px 5vw 12px; }
  nav .logo{ font-size:18px; gap:6px; }
  nav .logo svg{ width:26px; height:44px; }
  nav .cta{ padding:9px 16px; font-size:13px; font-family:inherit; }

  .section{ padding:44px 5vw; }
  .section.video-section{ padding:0; }
  .section-head{ margin-bottom:24px; }
  .section-head p{ font-size:14.5px; line-height:1.65; }
  .eyebrow{ font-size:11px; letter-spacing:2.2px; }

  /* ---- hero ---- */
  .hero{ padding:28px 5vw 36px; }
  .hero-copy p{ font-size:14.5px; line-height:1.65; margin-bottom:14px; }
  .hero-copy > p + p{ font-size:12.5px !important; margin-top:-2px !important; }
  .hero .actions{ order:8; flex-direction:column; gap:10px; margin-top:22px; }
  .hero .actions .btn-primary,
  .hero .actions .btn-ghost{
    width:100%; min-height:48px; font-size:15px; font-family:inherit; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
  }
  .hero .actions .btn-ghost{ color:var(--ink); }
  .hero .specs{ grid-template-columns:repeat(2,1fr); }

  /* ---- timeline ---- */
  .step-body{ padding:14px 16px; }

  /* ---- app features ---- */
  .app-features{ gap:10px; }
  .feature-pill{ padding:14px 16px; font-size:13.5px; }
  .feature-pill b{ font-size:14.5px; margin-bottom:3px; }

  /* ---- "what's next" cards: compact rows ---- */
  .video-section .video-content{ padding:44px 5vw; }
  .video-section .section-head{ padding:20px 18px; border-radius:16px; }
  .video-section{ background:var(--bg); }
  .video-section .video-overlay{ display:none; }
  .video-section .bg-video{ opacity:.2; }
  .learn-grid{ gap:10px; }
  .learn-card{
    display:grid; grid-template-columns:44px 1fr; column-gap:14px; row-gap:2px;
    align-items:start; justify-items:start; text-align:left; padding:14px 16px;
  }
  .learn-icon{ grid-column:1; grid-row:1 / span 3; width:44px; height:44px; }
  .learn-card > :not(.learn-icon){ grid-column:2; }
  .learn-card h3{ font-size:15.5px; margin-bottom:0; }
  .learn-card p{ font-size:13.5px; line-height:1.55; }

  /* ---- workshops teaser ---- */
  .workshop-gallery{ gap:12px; }

  /* ---- footer ---- */
  footer{ padding-top:40px; padding-bottom:calc(28px + env(safe-area-inset-bottom, 0px)); }
  .footer-links{ gap:24px 16px; }
  .footer-col a{ display:inline-block; padding:4px 0; }
  .footer-col ul{ gap:4px; }
}

  /* ---- footer ---- */
  footer{ padding-top:40px; padding-bottom:calc(28px + env(safe-area-inset-bottom, 0px)); }
  .footer-links{ gap:24px 16px; }
  .footer-col a{ display:inline-block; padding:4px 0; }
  .footer-col ul{ gap:4px; }


/* ---------- Workshops cards: hover zoom ---------- */
a.ws-card{
  transform:scale(1);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
a.ws-card:hover{
  transform:scale(1.02);
  box-shadow:0 14px 32px rgba(18,25,51,0.14);
  border-color:var(--blue);
  z-index:5;
  position:relative;
}
a.ws-card:active{
  transform:scale(.985);
}

/* ---------- Global buttons: hover zoom ---------- */
.btn-primary,
.btn-ghost,
.cta,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
a.button,
a.btn{
  transform:scale(1);
  transition:transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.btn-primary:hover,
.btn-ghost:hover,
.cta:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
a.button:hover,
a.btn:hover{
  transform:scale(1.02);
  box-shadow:0 10px 24px rgba(18,25,51,0.16);
  z-index:5;
  position:relative;
}

/* ---------- Performance: pause endless animations while their section is off-screen ---------- */
.how-gear.is-offscreen svg,
.how-chip.is-offscreen .trace{ animation-play-state:paused; }


#next .video-content{ padding-bottom:36px; }
@media (max-width:900px){ #next .video-content{ padding-bottom:30px; } }
@media (max-width:520px){ #next .video-content{ padding-bottom:26px; } }

/* ---------- Same size for the three section buttons (Explore the App / Explore the Roadmap / See All Workshops) ---------- */
#app .btn-primary,
#next .btn-primary,
#workshops .btn-primary{
  box-sizing:border-box;
  min-width:190px; max-width:100%;
  padding:12px 22px;
  font-size:14px; font-weight:700;
  border-radius:10px;
  text-align:center;
}
/* ---------- Phone: the three section buttons are full width, like "Watch it move / How it works" ---------- */
@media (max-width:520px){
  #app .btn-primary,
  #next .btn-primary,
  #workshops .btn-primary{
    display:flex !important; align-items:center; justify-content:center;
    width:100%; min-width:0; min-height:48px;
    font-size:15px; font-family:inherit; border-radius:12px;
  }
}

/* ---------- Phone: extra space under "See All Workshops" so the WhatsApp robot does not touch the button ---------- */
@media (max-width:600px){
  #workshops{ padding-bottom:120px; }
}

/* ---------- Language switcher (header dropdown) ---------- */
.lang-switcher{ position:relative; }
.lang-toggle{
  display:inline-flex; align-items:center; gap:6px;
  height:40px; padding:0 14px;
  background:transparent; color:var(--ink);
  border:1px solid var(--line); border-radius:999px;
  font-family:inherit; font-size:13px; font-weight:700; letter-spacing:.5px;
  cursor:pointer; -webkit-tap-highlight-color:transparent;
}
.lang-toggle:hover{ transform:none; box-shadow:none; border-color:var(--ink); }
.lang-toggle svg{ transition:transform .2s ease; }
.lang-switcher.open .lang-toggle svg{ transform:rotate(180deg); }
.lang-menu{
  display:none; position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:20;
  list-style:none; padding:4px;
  background:var(--bg); border:1px solid var(--line); border-radius:14px;
  box-shadow:0 14px 24px rgba(18,25,51,0.08);
}
.lang-switcher.open .lang-menu{ display:block; }
.lang-menu a{
  display:block; padding:10px 12px; border-radius:10px;
  font-size:13px; font-weight:700; letter-spacing:.5px; text-align:center;
  color:var(--ink); text-decoration:none; white-space:nowrap;
}
.lang-menu a:hover{ background:var(--panel); }
.lang-menu .current a{ color:var(--blue); }
@media (max-width:520px){
  .nav-right{ gap:6px; }
  .lang-toggle{ height:36px; padding:0 10px; font-size:12px; gap:4px; }
}