/* ============================================================
   النور أون لاين — mobile responsive audit + RTL/LTR fixes
   Loaded AFTER styles.css. Non-destructive layer.
   Goals: kill horizontal scroll, fix slider arrows (RTL/LTR),
   add a working mobile nav, convert English mode to true LTR,
   and tighten every section from 320px → 768px.
   ============================================================ */

/* ------------------------------------------------------------
   0) GLOBAL OVERFLOW GUARD + SAFE SIZING
   overflow-x: clip (not hidden) keeps the sticky nav working.
   ------------------------------------------------------------ */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
body.nav-locked { overflow: hidden; }

/* ============================================================
   1) SLIDER ARROW DIRECTION + PLACEMENT  (Projects + Testimonials)
   Base inline icons: .prev = chevron-left (‹), .next = chevron-right (›)
   - RTL (default): prev must point ▶ right, next must point ◀ left
     → flip BOTH icons.  Placement: prev on RIGHT, next on LEFT (kept).
   - LTR (English): prev ◀ left, next ▶ right → no flip.
     Placement: prev on LEFT, next on RIGHT.
   ============================================================ */

/* --- icon direction --- */
.proj-arrow svg,
.test-arrow svg { transform: scaleX(-1); transition: transform .2s; }      /* RTL: flip both */
.lang-en .proj-arrow svg,
.lang-en .test-arrow svg { transform: none; }                              /* LTR: natural */

/* --- LTR placement: mirror the physical insets --- */
.lang-en .proj-arrow.prev { right: auto; left: -16px; }
.lang-en .proj-arrow.next { left: auto; right: -16px; }
.lang-en .test-arrow.prev { right: auto; left: -8px; }
.lang-en .test-arrow.next { left: auto; right: -8px; }

/* keep both arrows vertically consistent */
.proj-arrow { top: 42%; }

/* ============================================================
   2) TRUE LTR FOR ENGLISH MODE
   dir="ltr" already handles flex/grid order + text flow.
   These rules patch the physical / directional left-overs.
   ============================================================ */
.lang-en body,
.lang-en .section-sub,
.lang-en .hero p.lead,
.lang-en .intake-left p,
.lang-en .takeover-card p { text-align: left; }

/* directional inline arrows that should point forward (right) in LTR */
.lang-en .service-arrow svg,
.lang-en .proj-cta svg,
.lang-en .acard-read-more svg,
.lang-en .bento-arrow svg,
.lang-en .arow-arrow svg,
.lang-en .hero-ctas .btn-primary svg,
.lang-en .nav-actions .btn-primary svg { transform: scaleX(-1); }

/* small directional spacings */
.lang-en .intake-field label .req { margin-right: 0; margin-left: 4px; }
.lang-en .st-num .suf { margin-right: 0; margin-left: 2px; }

/* hover nudges should travel toward the reading direction in LTR */
.lang-en .service-card:hover .service-arrow,
.lang-en .bento-card:hover .bento-arrow,
.lang-en .article-row:hover .arow-arrow { transform: translateX(4px); }
.lang-en .proj-row:hover { transform: translateX(6px); }

/* ============================================================
   3) MOBILE NAVIGATION (hamburger)
   ============================================================ */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex-shrink: 0;
  border: 0; background: transparent; cursor: pointer;
  padding: 11px; margin-inline-start: 2px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink-900);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-wrap.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-wrap.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-wrap.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }

  .nav { height: 64px; }
  .nav-logo .logo-img { height: 42px; }
  .nav-logo .logo-img.compact { height: 38px; }

  /* turn the link row into a dropdown panel (overrides display:none) */
  .nav-links {
    display: flex !important;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px -22px rgba(10,40,85,.4);
    padding: 6px 0;
    max-height: 0; opacity: 0; visibility: hidden;
    overflow: hidden; transform: translateY(-6px);
    transition: max-height .32s ease, opacity .24s ease,
                transform .24s ease, visibility .32s;
  }
  .nav-wrap.menu-open .nav-links {
    max-height: calc(100vh - 64px);
    opacity: 1; visibility: visible; transform: none;
    overflow-y: auto;
  }
  .nav-links a {
    padding: 15px 24px; font-size: 16px; border-radius: 0;
    border-bottom: 1px solid var(--ink-50);
  }
  .nav-links a:last-child { border-bottom: 0; }

  /* keep the action cluster compact */
  .nav-actions { gap: 8px; }
  .nav-actions .btn { display: none !important; }
  
  /* Make dropdown accordion on mobile */
  .nav-links > a { width: 100%; text-align: center; }
  .nav-dropdown { width: 100%; display: flex; flex-direction: column; }
  .nav-dropdown > a.dropdown-toggle {
    pointer-events: auto;
    color: var(--ink-900) !important;
    width: 100%;
    justify-content: center;
  }
  .nav-dropdown .dropdown-menu {
    position: static;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }
  .nav-dropdown.expanded .dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 600px !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  .nav-dropdown .dropdown-menu a {
    padding: 12px 24px !important;
    font-size: 14.5px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    text-align: center !important;
    width: 100%;
  }
  
  .nav-links a.mobile-nav-cta { 
    display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
    width: calc(100% - 48px); margin: 24px 24px 32px; 
    background: linear-gradient(135deg, var(--primary), var(--cyan)) !important;
    color: white !important; border: none !important; border-radius: 999px !important; 
    box-shadow: 0 12px 28px rgba(25, 118, 210, 0.35) !important; 
    padding: 16px !important; font-size: 16.5px !important; font-weight: 700 !important;
    position: relative; overflow: hidden;
  }
  .nav-links a.mobile-nav-cta::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: cta-shine 3s infinite;
  }
  @keyframes cta-shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
  }
}

@media (min-width: 881px) {
  .mobile-nav-cta { display: none !important; }
}

/* very small phones */
@media (max-width: 430px) {
  .lang-toggle { padding: 7px 10px; }
}

/* ============================================================
   4) TIGHTER, CONSISTENT GUTTERS ON PHONES
   ============================================================ */
@media (max-width: 600px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .section { padding: 56px 0; }
}
@media (max-width: 380px) {
  .container { width: min(100% - 24px, var(--maxw)); }
}

/* ============================================================
   5) HERO
   ============================================================ */
@media (max-width: 880px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { gap: 40px; }

  /* contain the floating cards so they never push the page wide */
  .float-card.fc-1 { top: 2%; left: 2%; }
  .float-card.fc-2 { bottom: 4%; right: 2%; }
  .lang-en .float-card.fc-1 { left: 2%; right: auto; }
  .lang-en .float-card.fc-2 { right: 2%; left: auto; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: clamp(28px, 8.5vw, 40px); margin: 16px 0 14px; }
  .hero p.lead { font-size: 16px; margin-bottom: 22px; }

  /* CTAs stack full width and stay tappable */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; padding: 14px 20px; }

  /* Equal sizing for all sliders */
  .hero-slider { height: 520px; }
  .hero-slide { height: 100%; }
  .hero-preview { height: 100%; width: 100%; display: flex; flex-direction: column; overflow: hidden; }
  .split, .designer-body { flex: 1; min-height: 0 !important; }

  /* code + preview: stack vertically, sane heights */
  .split { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .code-pane { font-size: 11px; max-height: 160px; overflow: hidden; }
  .phone-frame { width: 50%; max-width: 160px; margin: 0 auto; }

  /* Slide B: Hide sidebars, keep only canvas */
  .designer-body { grid-template-columns: 1fr !important; padding: 0 !important; }
  .ds-layers, .ds-props { display: none !important; }
  .ds-canvas { border-radius: 12px; }

  /* Slide C: Hide sidebars, keep only canvas */
  .hero-slide[data-slide="2"] .hero-preview > div:last-child { flex: 1; min-height: 0 !important; }
  .hero-slide[data-slide="2"] .hero-preview > div:last-child > div:first-child,
  .hero-slide[data-slide="2"] .hero-preview > div:last-child > div:last-child { display: none !important; }

  /* shrink floating cards a touch */
  .float-card { padding: 9px 11px; gap: 8px; transform: scale(.8); }
  .float-card.fc-1 { top: -5px; }
  .float-card.fc-2 { bottom: -5px; }
}

@media (max-width: 380px) {
  .float-card { display: none; }   /* reclaim space on the smallest screens */
}

/* ============================================================
   6) SERVICES
   ============================================================ */
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .service-card { padding: 24px 22px; }
}

/* ============================================================
   7) PROJECTS (bento + carousel + toggle)
   ============================================================ */
@media (max-width: 600px) {
  .proj-bento { grid-template-columns: 1fr !important; gap: 32px !important; }
  .proj-bento .bento-card.b-1 { grid-column: auto !important; }
  .bento-card { min-height: 300px; }
  .proj-display-toggle { flex-wrap: wrap; }
}

/* carousel arrows: pull inside the rail on small screens so they
   never overflow, and shrink them slightly */
@media (max-width: 720px) {
  .proj-arrow { width: 42px; height: 42px; }
  .proj-arrow.prev { right: 2px; }
  .proj-arrow.next { left: 2px; }
  .lang-en .proj-arrow.prev { left: 2px; right: auto; }
  .lang-en .proj-arrow.next { right: 2px; left: auto; }
}
.proj-carousel .proj-card { 
  min-width: calc(33.33333% - 16px);
  width: calc(33.33333% - 16px);
  max-width: 420px;
  flex: 0 0 calc(33.33333% - 16px);
}
@media (max-width: 1024px) {
  .proj-carousel .proj-card { 
    min-width: calc(50% - 12px);
    width: calc(50% - 12px);
    flex: 0 0 calc(50% - 12px);
  }
}
@media (max-width: 640px) {
  .proj-carousel .proj-card { 
    min-width: min(380px, 86vw);
    width: min(380px, 86vw);
    flex: 0 0 min(380px, 86vw);
  }
}

/* ============================================================
   8) STATS
   ============================================================ */
@media (max-width: 600px) {
  .stats-v2 { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .stat-tile { padding: 20px 16px; }
  .stat-tile .st-num { font-size: clamp(30px, 9vw, 42px); }
}
@media (max-width: 360px) {
  .stats-v2 { grid-template-columns: 1fr !important; }
}

/* ============================================================
   9) PROCESS / JOURNEY
   ============================================================ */
@media (max-width: 720px) {
  .journey-track { grid-template-columns: 1fr !important; gap: 16px; }
  /* the decorative connecting rail is meaningless once stacked */
  .journey-rail-wrap::before,
  .journey-rail-wrap::after { display: none; }
}

/* ============================================================
   10) CONTACT / INTAKE FORM
   ============================================================ */
@media (max-width: 600px) {
  .intake-wrap { padding: 32px 20px; border-radius: 22px; }
  .intake-section { padding: 64px 0; }
  .intake-grid { gap: 28px; }
  .intake-row { grid-template-columns: 1fr !important; }

  /* full-width, finger-friendly fields */
  .intake-input, .intake-textarea { padding: 14px 16px; font-size: 16px; } /* 16px stops iOS zoom */
  .intake-chips { gap: 7px; }
  .intake-chip { padding: 10px 14px; }            /* taller tap target */
  .intake-submit { width: 100%; }

  .intake-captcha .captcha-row { max-width: 100%; }
  .intake-illus img { max-width: 220px; }
}

/* mid-page takeover CTA */
@media (max-width: 600px) {
  .takeover-card { padding: 28px 20px; }
  .takeover-card .takeover-ctas .btn { width: 100%; justify-content: center; }
  .audit-row { grid-template-columns: 1fr auto !important; row-gap: 6px; }
  .audit-row .audit-row-label { grid-column: 1 / -1; }
}

/* ============================================================
   11) ARTICLES
   ============================================================ */
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr !important; gap: 18px; }
  .article-row { grid-template-columns: 1fr !important; }
  .arow-cover { aspect-ratio: 16 / 9; width: 100%; }
}

/* ============================================================
   12) TESTIMONIALS
   ============================================================ */
@media (max-width: 600px) {
  .test-slider { margin-top: 28px; padding: 0 4px; }
  .test-card-lg { padding: 28px 20px 24px; }
  .test-card-lg .quote { font-size: 15.5px; line-height: 1.7; }
  /* keep arrows tucked just inside the rail edges */
  .test-arrow { width: 40px; height: 40px; }
  .test-arrow.prev { right: 0; }
  .test-arrow.next { left: 0; }
  .lang-en .test-arrow.prev { left: 0; right: auto; }
  .lang-en .test-arrow.next { right: 0; left: auto; }
}

/* ============================================================
   13) CLIENTS MARQUEE
   ============================================================ */
@media (max-width: 600px) {
  .clients-section { padding-bottom: 72px; }
  .clients-marquee .marquee-cell { width: 160px; height: 84px; padding: 12px; }
}

/* ============================================================
   14) FOOTER
   ============================================================ */
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; gap: 32px 24px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-brand { text-align: center; }
  .footer-brand .nav-logo { justify-content: center; }
  .footer-brand .socials { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr !important; text-align: center; }
  .footer-grid .socials { justify-content: center; }
}

/* ============================================================
   15) GENERIC TOUCH-TARGET + WRAP SAFETY
   ============================================================ */
@media (max-width: 760px) {
  .about-hero, .contact-hero, .faq-hero, .case-hero, .premium-hero, .page-hero, .article-meta-hero {
    padding: 40px 0 32px !important;
  }
}
@media (max-width: 600px) {
  .section-head { margin-bottom: 36px; gap: 16px; }
  .cta-band { text-align: center; }
  .cta-band .btn { width: 100%; max-width: 360px; justify-content: center; }
  /* anything using a fixed pixel min-width should never exceed viewport */
  [style*="min-width"] { max-width: 100%; }
}
/* Fix sticky header teleporting on mobile when menu opens */
@media (max-width: 880px) {
  .nav-wrap.menu-open {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
  }
}

@media (max-width: 768px) {
  .bento-card, .proj-card {
    margin-bottom: 24px !important;
  }
}

@media (max-width: 768px) {
  .proj-bento {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }
  .bento-card {
    display: block !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }
}

/* ============================================================
   11) GLOBAL PORTFOLIO & SERVICE PAGES MOBILE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
  .case-hero .container, .hero .container, .brand-meta-grid, 
  .case-info-grid, .components-grid, .logo-concept-grid, 
  .identity-showcase, .colors-grid, .elements-grid, 
  .impact-grid, .portfolio-grid, .m-grid, .previews-grid, 
  .benefits-grid, .packages-grid, .deliverables-grid, 
  .idea-grid, .tl-grid, .rm-grid, .features-grid, .typo-grid {
    grid-template-columns: 1fr !important;
  }
  .id-img.large, .b-img.large {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  
  /* Vertical Steps & Flow Overrides */
  .flow-container, .timeline-nodes, .steps, .journey {
    flex-direction: column !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    align-items: stretch !important;
    gap: 24px !important;
  }
  .flow-step, .t-node {
    width: 100% !important;
    flex: 1 1 auto !important;
  }
  .flow-arrow {
    transform: rotate(90deg) !important;
    margin: -8px auto !important;
  }
  .timeline-nodes::before {
    width: 2px !important;
    height: 100% !important;
    top: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  /* Center align flex cards on mobile */
  .deliv-card-lg, .impact-card, .comp-card, .s-trust-card, .pain-card, .feature-card, .deliv-card, .journey-step {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .deliv-card-lg div, .impact-card div, .comp-card div, .s-trust-card div, .pain-card div, .feature-card div, .deliv-card div, .journey-step div,
  .deliv-card-lg h3, .impact-card h4, .comp-card h4, .s-trust-card h3, .pain-card h4, .feature-card h3, .deliv-card h3, .journey-step h4,
  .deliv-card-lg p, .impact-card p, .comp-card p, .s-trust-card p, .pain-card p, .feature-card p, .deliv-card p, .journey-step p {
    align-items: center !important;
    text-align: center !important;
  }
}

/* ===================================================================
   ULTIMATE ALL-23-PAGES MOBILE PERFECTION MASTER BLOCK
   (Portfolio, Services, Hero Showcases, Grids, & Overflow Protection)
   =================================================================== */

@media (max-width: 768px) {
  /* 0. Absolute Zero-Overflow Guarantee */
  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  .pw-hero, .pw-section, .premium-hero, .sec-pad, .sec-pad-sm, section {
    max-width: 100vw !important;
    overflow-x: clip !important;
  }

  /* 1. Hero Layouts & Buttons on Mobile */
  .pw-hero-inner, .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding-top: 15px !important;
    text-align: center !important;
  }
  .pw-hero-content h1, .hero-content h1 {
    font-size: clamp(24px, 6.5vw, 32px) !important;
    line-height: 1.35 !important;
  }
  .pw-hero-btns, .hero-actions {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  .pw-hero-btns a, .hero-actions a, .btn-hero-primary, .btn-hero-outline {
    width: 100% !important;
    max-width: 310px !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }
  .pw-hero-visual {
    display: block !important;
    width: 100% !important;
    margin: 20px auto 0 !important;
  }

  /* 2. New Hero Showcases Mobile Fit (3-Phone App, Brand Kit, Website) */
  .app-hero-showcase {
    gap: 6px !important;
    max-width: 100% !important;
    padding: 10px 0 !important;
    transform: scale(0.92) !important;
  }
  .app-phone-frame {
    width: 95px !important;
    border-radius: 18px !important;
    padding: 5px !important;
  }
  .app-phone-notch {
    width: 26px !important;
    height: 6px !important;
    margin-bottom: 5px !important;
  }
  .app-phone-left { transform: rotate(-5deg) translateY(12px) !important; }
  .app-phone-center { transform: translateY(-4px) scale(1.05) !important; }
  .app-phone-right { transform: rotate(5deg) translateY(12px) !important; }

  .brand-hero-showcase {
    height: 250px !important;
    max-width: 100% !important;
    margin-top: 10px !important;
  }
  .brand-card-main {
    width: 86% !important;
    height: 185px !important;
    right: 0 !important;
    bottom: 5px !important;
    border-radius: 16px !important;
  }
  .brand-card-secondary {
    width: 55% !important;
    height: 125px !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 14px !important;
  }
  .brand-palette-badge {
    left: 5px !important;
    bottom: 5px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }
  .swatch { width: 16px !important; height: 16px !important; }
  .swatch-text { font-size: 11px !important; }
  .brand-mini-logo { width: 32px !important; height: 32px !important; }

  .web-hero-showcase {
    height: 240px !important;
    max-width: 100% !important;
    margin-top: 10px !important;
  }
  .web-desktop-frame {
    width: 92% !important;
    height: 185px !important;
    right: 0 !important;
    top: 0 !important;
    border-radius: 14px !important;
  }
  .web-mobile-frame {
    width: 96px !important;
    height: 175px !important;
    left: 0 !important;
    bottom: 0 !important;
    border-radius: 18px !important;
    padding: 5px !important;
  }
  .web-perf-badge {
    right: 10px !important;
    bottom: 5px !important;
    padding: 6px 12px !important;
  }
  .web-perf-text { font-size: 11px !important; }

  /* 3. Universal Grids Optimization across Portfolio & Services */
  .portfolio-grid,
  .pw-work-grid,
  .pw-gallery-simple,
  .pw-gallery-grid,
  .pw-color-grid,
  .pw-typo-grid,
  .trust-grid,
  .previews-grid,
  .ad-grid,
  .values-bento-grid,
  .sectors-pills-grid,
  .why-v3-grid,
  .svc-archive-grid,
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  [style*="gap:72px"], [style*="gap: 72px"],
  [style*="gap:64px"], [style*="gap: 64px"],
  [style*="gap:48px"], [style*="gap: 48px"] {
    gap: 20px !important;
  }

  /* 4. Comparison Tables & Timelines Fit */
  .comp-table-wrap {
    max-width: calc(100vw - 24px) !important;
    overflow-x: auto !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
  }
  .comp-table th, .comp-table td {
    padding: 12px 10px !important;
    font-size: 13.5px !important;
  }
  .timeline-nodes, .flow-container {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
    overflow-x: visible !important;
  }
  .timeline-nodes::before {
    display: none !important;
  }
  .t-node, .flow-step {
    flex: 1 1 auto !important;
    width: 100% !important;
    flex-direction: row !important;
    text-align: right !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 480px) {
  /* 5. Fine-tuned Padding and Fonts for small mobile screens (<480px) */
  .proj-card, .deliv-card, .trust-card, .why-v3-card, .svc-archive-card, .pv-body {
    padding: 18px 16px !important;
  }
  h2, .sec-head h2 {
    font-size: clamp(22px, 6vw, 28px) !important;
  }
  h3, .proj-card h3, .deliv-text h3 {
    font-size: 17px !important;
  }
  p, .lead {
    font-size: 14.5px !important;
  }
}

/* ============================================================
   16) FAQ — One question per row on mobile, mild & fully visible
   Desktop keeps per-design layout (grid 2 for custom-systems)
   ============================================================ */
@media (max-width: 767px) {
  .faq-section { padding: 32px 0 !important; }
  .faq-wrap, .faq-box, .faq-grid, .faq-list {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 4px;
  }

/* ============================================================
   17) SERVICE HERO — phone: WhatsApp centered + image fully visible (no cut)
   Applies to all service pages: premium-hero + split-hero
   ============================================================ */
  .premium-hero, .split-hero-sec { padding: 36px 0 48px !important; overflow: visible !important; }
  .premium-hero::before, .premium-hero::after { display: none !important; }
  .hero-grid, .split-hero-sec .container { grid-template-columns: 1fr !important; gap: 18px !important; text-align: center !important; align-items: start !important; }
  .hero-content, .ch-content { max-width: 100% !important; margin: 0 auto !important; align-items: center !important; text-align: center !important; }
  .hero-content h1, .ch-content h1 { font-size: clamp(22px, 7vw, 28px) !important; line-height: 1.32 !important; text-align: center !important; }
  .hero-content p, .ch-content p, .hero-content .lead { text-align: center !important; font-size: 14px !important; line-height: 1.7 !important; margin-bottom: 16px !important; }
  .hero-actions, .sh-actions { justify-content: center !important; align-items: center !important; flex-wrap: wrap !important; gap: 10px !important; width: 100% !important; max-width: 360px !important; margin: 0 auto 8px !important; }
  .hero-actions .btn-hero-primary, .hero-actions .btn-hero-whatsapp,
  .sh-actions .btn-hero-primary, .sh-actions .btn-hero-whatsapp,
  .btn-hero-whatsapp { width: 100% !important; max-width: 320px !important; justify-content: center !important; margin: 0 auto !important; padding: 14px 20px !important; font-size: 14.5px !important; }
  .hero-visual, .ch-image, .cs-wrap, div[slot="visual"], .ec-wrap { margin-top: 10px !important; perspective: none !important; height: auto !important; min-height: auto !important; overflow: visible !important; width: 100% !important; max-width: 340px !important; display: flex !important; justify-content: center !important; align-items: flex-start !important; margin-bottom: 8px !important; }
  .mockup-wrapper { max-width: 320px !important; width: 92% !important; margin: 0 auto !important; }
  .mockup-card, .ch-mockup, .cs-dash, .ec-phone { transform: none !important; padding: 10px !important; height: auto !important; min-height: auto !important; max-height: none !important; overflow: visible !important; border-radius: 14px !important; box-shadow: 0 10px 28px rgba(0,0,0,0.08) !important; }
  .mockup-body, .cs-body, .ch-mockup .mockup-body, .ec-screen { height: auto !important; min-height: auto !important; max-height: none !important; overflow: visible !important; border-radius: 8px !important; }
  /* web-builder hero (service-web-design) - extend same fix */
  .hero-anim { min-height: auto !important; height: auto !important; padding: 8px 0 12px !important; overflow: visible !important; align-items: flex-start !important; display: flex !important; justify-content: center !important; }
  .web-builder { width: min(320px, 92%) !important; max-width: 340px !important; margin: 0 auto !important; transform: none !important; height: auto !important; }
  .wb-body { height: auto !important; min-height: 200px !important; padding: 12px !important; gap: 6px !important; }
  .mockup-body img, .cs-wrap img, .ch-mockup img { object-fit: contain !important; object-position: center top !important; height: auto !important; max-height: none !important; width: 100% !important; }
  .float-badge { display: none !important; }
  .sm-wrap { min-height:auto !important; height:auto !important; padding:10px 0 12px !important; flex-direction:column !important; gap:10px !important; align-items:center !important; }
  .sm-feed { width:92% !important; max-width:260px !important; }
  .sm-stat-bubble { position:relative !important; right:auto !important; left:auto !important; top:auto !important; bottom:auto !important; margin:0 auto !important; transform:none !important; animation:none !important; }
  .faq-item, .faq-box details { border-radius: 12px !important; padding: 0 !important; overflow: hidden; }
  .faq-wrap .faq-item { padding: 14px 14px !important; border-radius: 12px !important; }
  .faq-wrap .faq-item summary,
  .faq-box details summary,
  .faq-grid .faq-item summary,
  .faq-q { padding: 14px 14px !important; font-size: 14px !important; gap: 10px !important; }
  .faq-wrap .faq-item summary::after,
  .faq-box details summary::after,
  .faq-grid .faq-item summary::after { font-size: 20px !important; margin-inline-start: 8px; }
  .faq-wrap .faq-item p,
  .faq-box details p,
  .faq-box details .faq-answer,
  .faq-grid .faq-item p,
  .faq-a p { font-size: 13.5px !important; line-height: 1.65 !important; padding-top: 10px !important; margin-top: 10px !important; }
  .faq-q-icon { width: 30px !important; height: 30px !important; border-radius: 8px !important; }
  .faq-q-chevron { width: 26px !important; height: 26px !important; }
  .faq-q-text { font-size: 14px !important; }
}
@media (max-width: 380px) {
  .faq-wrap .faq-item summary,
  .faq-box details summary { font-size: 13.5px !important; }
}
