
/* ═══════════════════════════════════════════════════════════════
   Bosphorus Tech — MOBILE ONLY (max-width: 620px)
   Desktop styles untouched except shared loader in site.css
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 620px) {
  :root {
    --nav-h: 56px;
    --radius: 20px;
    --radius-sm: 14px;
    --blur: blur(28px) saturate(170%) brightness(1.04);
  }

  html, body { overflow-x: clip; }

  .wrap { padding: 0 16px; }

  /* ── Ambient: richer glow on mobile ── */
  .blob { filter: blur(78px); opacity: 0.9; }
  .b1 {
    width: 120vw; height: 120vw;
    top: -28%; right: -35%;
  }
  .b2 {
    width: 105vw; height: 105vw;
    bottom: 0; left: -38%;
  }
  .b3 {
    display: block;
    width: 90vw; height: 90vw;
    top: 42%; left: -5%;
    opacity: 0.62;
  }
  .b4 {
    display: block;
    width: 75vw; height: 75vw;
    top: 68%; right: -22%;
    opacity: 0.5;
  }

  /* Section glow behind glass cards */
  .sec { position: relative; isolation: isolate; }
  .sec-ambient {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(ellipse 90% 55% at 50% 18%, rgba(184, 74, 98, 0.14), transparent 68%),
      radial-gradient(ellipse 70% 45% at 20% 72%, rgba(122, 40, 64, 0.1), transparent 70%);
  }
  .sec-ambient.cases-bg {
    background:
      radial-gradient(ellipse 85% 50% at 80% 25%, rgba(154, 58, 82, 0.12), transparent 68%),
      radial-gradient(ellipse 75% 45% at 15% 65%, rgba(122, 40, 64, 0.1), transparent 72%);
  }
  .sec > .wrap { position: relative; z-index: 1; }

  /* Matte glass on mobile */
  .glass {
    border: none;
    background: linear-gradient(148deg, rgba(255,255,255,0.44) 0%, rgba(255,255,255,0.22) 55%, rgba(255,255,255,0.12) 100%);
    backdrop-filter: blur(32px) saturate(175%);
    -webkit-backdrop-filter: blur(32px) saturate(175%);
    box-shadow: 0 8px 28px rgba(42, 31, 36, 0.05), 0 0 44px rgba(122, 40, 64, 0.08);
  }
  .glass::after { opacity: 0.65; }
  .glass-glow,
  .tier.pop {
    border: none;
    box-shadow: 0 10px 32px rgba(122, 40, 64, 0.1), 0 0 48px rgba(122, 40, 64, 0.09);
  }
  .feat .fic,
  .svc .sic,
  .info-row .ii,
  .foot-bottom .socials a {
    border: none;
    background: rgba(255, 255, 255, 0.3);
  }

  /* ── Nav ── */
  .site-nav {
    padding: 8px 12px 8px 16px;
    min-height: var(--nav-h);
    padding-top: max(8px, env(safe-area-inset-top));
    gap: 8px;
  }
  .brand { flex-shrink: 0; }
  .brand .logo-svg { height: 22px; max-width: 132px; }
  .nav-mobile-links {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    margin-right: 2px;
    flex-shrink: 1;
    min-width: 0;
  }
  .nav-mobile-links a {
    font-size: .72rem;
    padding: 7px 8px;
    letter-spacing: -.01em;
  }
  .nav-right { gap: 6px; }
  .lang-btn { width: 36px; height: 36px; border-radius: 10px; }
  .lang-btn .lang-flag { font-size: 1.05rem; }
  .nav-toggle { width: 36px; height: 36px; border-radius: 10px; }

  /* ── Hero: full viewport, moderate rhythm ── */
  .hero-sec {
    --hero-pad-x: clamp(16px, 4vw, 24px);
    min-height: calc(100svh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
    display: flex;
    flex-direction: column;
    padding: clamp(14px, 2.8vh, 22px) 0 clamp(16px, 2.5vh, 24px);
    overflow: hidden;
    box-sizing: border-box;
  }
  .hero-sec > .wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    justify-content: flex-start;
  }
  .hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    gap: 0;
  }
  .hero .copy {
    order: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding-top: clamp(8px, 2vh, 14px);
  }
  .hero-feats-wrap {
    order: 2;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: clamp(14px, 2.5vh, 22px);
  }
  .hero .panel { display: none !important; }
  .hero-swipe-hint {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    padding: 0 0 10px;
    letter-spacing: .04em;
  }
  .eyebrow { font-size: .64rem; gap: 8px; letter-spacing: .12em; margin-bottom: 0; }
  .eyebrow::before { width: 18px; }
  .hero h1 {
    font-size: clamp(1.48rem, 6.5vw, 1.82rem);
    margin-top: clamp(18px, 4vh, 28px);
    line-height: 1.1;
  }
  .hero .sub {
    font-size: .84rem;
    margin-top: clamp(18px, 3.5vh, 24px);
    line-height: 1.52;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: clamp(12px, 2.5vh, 18px);
  }
  .hero-chips span {
    font-size: .66rem;
    padding: 5px 10px;
  }
  .hero-trust-mobile {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: clamp(10px, 2vh, 14px);
  }
  .hero-trust-mobile span {
    font-size: .68rem;
    font-weight: 600;
    color: var(--muted);
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(122,40,64,0.1);
  }
  .cta-row {
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: clamp(22px, 5vh, 40px);
  }
  .cta-row .btn-primary {
    flex: none;
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
    font-size: .84rem;
  }
  .cta-row .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
    font-size: .78rem;
  }
  .founder {
    margin-top: clamp(14px, 2.6vh, 20px);
    max-width: 100%;
    padding: 7px 12px 7px 7px;
  }
  .founder .ava { width: 34px; height: 34px; font-size: .92rem; }
  .founder .txt b { font-size: .8rem; }
  .founder .txt span {
    font-size: .72rem;
    line-height: 1.4;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  /* Hero feats: single centered card, neighbors off-screen */
  .hero-feats-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
  }
  .hero-feats-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: 88%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(122, 40, 64, 0.16) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
  }
  .hero-feats {
    display: flex !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding: 0;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
  }
  .hero-feats::-webkit-scrollbar { display: none; }
  .hero-feats.nudge { animation: none; }
  .hero-fade-left,
  .hero-fade-right { display: none; }
  .hero-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 14px 0 6px;
  }
  .hero-dots button {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    border: none;
    padding: 0;
    background: rgba(122, 40, 64, 0.18);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
  }
  .hero-dots button.active {
    width: 18px;
    background: var(--burgundy);
  }
  .feat {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 18px 16px;
    min-height: 148px;
    box-sizing: border-box;
  }
  .feat p { display: block; font-size: .76rem; margin-top: 8px; line-height: 1.5; }
  .feat h3 { font-size: .88rem; margin-top: 2px; }
  .feat .fic { margin-bottom: 12px; }
  .feat .fic svg [stroke] { stroke: var(--burgundy) !important; }

  /* Touch targets */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .cta-row .btn-ghost { min-height: 40px; }
  .foot-bottom .socials a { width: 36px; height: 36px; }

  /* Typography polish */
  .kicker { font-size: .62rem; letter-spacing: .12em; }
  .cform .note { font-size: .72rem; }
  .foot-grid .about p { max-width: none; }

  /* Icons → burgundy on mobile */
  .svc .sic svg [stroke],
  .why-list .ck svg [stroke] { stroke: var(--burgundy) !important; }

  /* Quotes compact */
  .quote { padding: 18px; }

  /* Pricing featured tier */
  .tier.pop {
    box-shadow: 0 10px 32px rgba(122, 40, 64, 0.1), 0 0 48px rgba(122, 40, 64, 0.09);
  }

  /* RTL Arabic */
  html[dir="rtl"] .hero-feats { direction: ltr; }
  html[dir="rtl"] .nav-mobile-links { flex-direction: row-reverse; }
  html[dir="rtl"] .sec-head.left { text-align: right; }
  html[dir="rtl"] .drawer-panel { border-radius: 0 24px 0 0; }
  html[dir="rtl"] .mobile-cta-bar { flex-direction: row-reverse; }
  html[dir="rtl"] body { font-size: 1.02em; }

  /* Body pad when sticky CTA visible */
  body.has-mobile-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* ── Sections ── */
  .sec { padding: 40px 0; }
  .sec-head { margin-bottom: 24px; }
  .sec-head h2 { font-size: clamp(1.45rem, 5.5vw, 1.75rem); margin-top: 10px; }
  .sec-head p { font-size: .88rem; margin-top: 10px; }

  .svc-grid, .steps, .quotes, .tiers { gap: 10px; }
  .svc { padding: 18px; }
  .svc h3 { font-size: .98rem; }
  .svc p { font-size: .82rem; }

  .step { padding: 18px; }
  .step .no { font-size: 1.65rem; }

  /* Cases — unified card */
  .case-card { grid-template-columns: 1fr; }
  .case-card:nth-child(even) .case-cover { order: 0; }
  .case-cover { aspect-ratio: 16 / 10; min-height: 0; }
  .case-cover img { min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .case-body { padding: 18px 18px 20px; border-top: 1px solid rgba(122,40,64,0.06); }
  .case-body h3 { font-size: 1.15rem; }
  .case-metrics { gap: 16px; }
  .case-metrics div strong { font-size: 1.2rem; }
  .case-visual { aspect-ratio: 16 / 10; border-radius: var(--radius); }
  .case-visual img { width: 100%; height: 100%; object-fit: cover; }
  .case-glass { padding: 18px; }
  .case-glass h3 { font-size: 1.15rem; }

  /* Team */
  .why { gap: 20px; }
  .why-media { min-height: 260px; border-radius: var(--radius); }
  .why-list b { font-size: .88rem; }
  .why-list p { font-size: .8rem; }

  /* Pricing */
  .tier { padding: 20px 18px; }
  .tier .tprice { font-size: 1.65rem; }

  /* FAQ */
  .qa summary { padding: 16px; font-size: .88rem; }
  .qa .ans { padding: 0 16px 16px; font-size: .84rem; }

  /* Contact */
  .info-row { padding: 12px 14px; }
  .cform { padding: 18px; }

  /* Footer */
  .foot-grid { gap: 20px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* ── Sticky mobile CTA ── */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: none;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 8px 32px rgba(42, 31, 36, 0.12);
    transform: translateY(120%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s ease;
    pointer-events: none;
  }
  .mobile-cta-bar.visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-cta-bar .btn { flex: 1; padding: 12px 14px; font-size: .82rem; }
  .mobile-cta-bar .btn-ghost { flex: 0 0 auto; padding: 12px 16px; }

  /* Drawer polish */
  .drawer-panel {
    width: 100%; max-width: 100%; border-left: none;
    border-radius: 24px 0 0 0;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  .drawer-panel a { font-size: 1.05rem; padding: 12px 0; }
  .drawer-cta {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .drawer-cta .btn { padding: 14px; font-size: .88rem; min-height: 48px; }
}

/* Loader mobile — also in site.css base but reinforced here */
@media (max-width: 620px) {
  .loader-stage {
    width: calc(100vw - 28px);
    max-width: 360px;
    max-height: min(88dvh, 520px);
    overflow-y: auto;
    padding: 22px 16px 18px;
    margin: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  }
  .loader-mark { height: 24px; margin-bottom: 14px; }
  .loader-tag { font-size: .92rem; line-height: 1.3; }
  .loader-steps { gap: 6px; margin: 14px 0 16px; }
  .loader-steps li { font-size: .78rem; padding: 8px 10px; }
  .loader-ring { width: 52px; height: 52px; margin-bottom: 12px; }
  .loader-foot { font-size: .68rem; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  @media (max-width: 620px) {
    .hero-feats.nudge { animation: none !important; }
    .mobile-cta-bar { transition: opacity .2s ease; transform: none; }
    .mobile-cta-bar:not(.visible) { opacity: 0; }
  }
}
