/* ============================================
   Zeel's Studio — Mobile App Experience
   TRUE full-width · edge-to-edge · bottom tabs
   ============================================ */

@media (max-width: 768px) {
  :root {
    --app-pad: 16px;
    --app-header-h: 52px;
    --app-tab-h: 62px;
    --container-pad: 0px;
    --container-max: none;
  }

  html {
    background: #0a0610;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px) + 8px);
    scroll-padding-bottom: calc(var(--app-tab-h) + env(safe-area-inset-bottom, 0px) + 16px);
  }

  body {
    background: #0a0610 !important;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: calc(var(--app-tab-h) + env(safe-area-inset-bottom, 0px));
  }

  .grain,
  .spotlight,
  .cursor-glow,
  .scroll-progress {
    display: none !important;
  }

  /* ── Zero-gutter app shell ── */
  main,
  section,
  header,
  footer,
  .hero,
  .services,
  .classes,
  .gallery,
  .about,
  .testimonials,
  .social,
  .contact,
  .marquee-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  /* Text inset utility */
  .app-inset,
  .hero-content,
  .hero-stats-row.container,
  .services-intro,
  .classes-header,
  .gallery .section-header,
  .about .container,
  .testimonials .container,
  .social .container,
  .contact .container,
  .process,
  .footer-top,
  .footer-grid,
  .footer-bottom-inner,
  .nav.container {
    padding-inline: var(--app-pad) !important;
  }

  /* ── Compact app header ── */
  .header {
    width: 100% !important;
    background: rgba(10, 6, 16, 0.92) !important;
    backdrop-filter: blur(24px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 0 !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
  }

  .header:not(.scrolled) {
    background: rgba(10, 6, 16, 0.92) !important;
    backdrop-filter: blur(24px) !important;
  }

  .nav.container {
    height: var(--app-header-h);
    align-items: center;
    display: flex !important;
  }

  .wordmark-main {
    font-size: 1.25rem !important;
  }

  .wordmark-sub {
    font-size: 0.58rem !important;
    letter-spacing: 0.28em !important;
  }

  .nav-toggle,
  .nav-links {
    display: none !important;
  }

  .header-app-cta {
    display: inline-flex !important;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #c2185b, #c62828);
    border-radius: 100px;
    margin-left: auto;
    box-shadow: 0 4px 16px rgba(194, 24, 91, 0.35);
  }

  /* ── Hero — full viewport bleed ── */
  .hero--split {
    padding-top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px) + 12px) !important;
    padding-bottom: 0 !important;
    background: #0a0610 !important;
    overflow: visible !important;
  }

  .hero-split.container {
    padding-inline: 0 !important;
    gap: 1rem !important;
  }

  .hero-content {
    text-align: left !important;
    margin-inline: 0 !important;
    max-width: 100% !important;
    padding-inline: var(--app-pad) !important;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-brand {
    font-size: clamp(2.4rem, 11vw, 3.2rem) !important;
  }

  .hero-sub {
    letter-spacing: 0.2em !important;
    font-size: 0.75rem !important;
    text-align: left !important;
  }

  .hero-desc {
    text-align: left !important;
    font-size: 0.92rem;
    padding-inline: 0 !important;
  }

  .hero-actions {
    justify-content: stretch !important;
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem !important;
    border-radius: 14px !important;
    font-size: 0.9rem !important;
  }

  .hero-services {
    justify-content: flex-start !important;
    gap: 0.35rem;
    padding-inline: 0 !important;
  }

  /* TRUE edge-to-edge photos — break out to viewport */
  .hero-visual {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-inline: unset !important;
    opacity: 1 !important;
    gap: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .hero-frame,
  .hero-frame--primary,
  .hero-frame--secondary {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .hero-frame--primary::before {
    display: none;
  }

  .hero-frame-row {
    gap: 2px !important;
  }

  /* Stats — horizontal scroll */
  .hero-stats-row.container {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-block: 16px 20px !important;
    margin-top: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    scrollbar-width: none;
    grid-template-columns: unset !important;
    width: 100% !important;
  }

  .hero-stats-row.container::-webkit-scrollbar {
    display: none;
  }

  .hero-stat-card {
    flex: 0 0 auto;
    min-width: 130px;
    scroll-snap-align: start;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    text-align: left;
  }

  .hero-stat-card strong {
    font-size: 1.15rem !important;
  }

  .hero-stat-card span {
    font-size: 0.62rem !important;
  }

  /* ── Marquee ── */
  .marquee-section {
    width: 100% !important;
    padding-block: 0.85rem;
    background: #140d1c;
    border-block-color: rgba(255, 255, 255, 0.05) !important;
  }

  .marquee-track span {
    font-size: 0.9rem !important;
  }

  /* ── Sections ── */
  .section {
    padding-block: 2rem;
  }

  .section-header {
    text-align: left !important;
    margin-inline: 0 !important;
    margin-bottom: 1.25rem;
    max-width: 100% !important;
  }

  .section-title {
    font-size: clamp(1.65rem, 7vw, 2.1rem) !important;
    text-align: left !important;
  }

  .section-tag {
    font-size: 0.65rem !important;
  }

  /* ── Services — edge-to-edge cards ── */
  .services {
    background: #0a0610 !important;
  }

  .services-intro {
    gap: 1rem !important;
    margin-bottom: 1.25rem;
    text-align: left !important;
  }

  .services-intro-text .section-title {
    text-align: left !important;
  }

  .services-stat-card {
    border-radius: 16px;
    padding: 1.15rem !important;
    text-align: left !important;
  }

  .big-num {
    font-size: 2.5rem !important;
  }

  .services-bento {
    display: flex !important;
    flex-direction: column;
    gap: 2px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .service-card,
  .service-card--featured {
    width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    grid-row: auto !important;
    grid-column: auto !important;
  }

  .service-card-thumb {
    width: 100% !important;
  }

  .service-card--featured .service-card-thumb {
    aspect-ratio: 16 / 10 !important;
    min-height: 0 !important;
  }

  .service-card-inner,
  .service-card--featured .service-card-inner {
    padding: 1rem var(--app-pad) 1.15rem !important;
    background: #16101f;
  }

  .service-card--featured .service-link--cta {
    width: 100%;
    justify-content: center;
    border-radius: 12px !important;
    padding: 0.85rem !important;
  }

  .process-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .process-step {
    background: #16101f;
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* ── Classes ── */
  .classes-header {
    margin-bottom: 1.25rem;
  }

  .classes-header-text .section-title {
    text-align: left !important;
  }

  .classes-showcase {
    gap: 2px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .class-showcase-card {
    width: 100% !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  .class-showcase-body {
    padding: 1rem var(--app-pad) !important;
  }

  /* ── Gallery — flush grid ── */
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-inline: var(--app-pad);
  }

  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 8px;
    padding-inline: 0;
  }

  .gallery-tile--hero,
  .gallery-tile--wide,
  .gallery-tile:nth-child(2),
  .gallery-tile:nth-child(3),
  .gallery-tile:nth-child(4),
  .gallery-tile:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    min-height: 200px;
    aspect-ratio: 1;
  }

  .gallery-tile--hero {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
    min-height: 240px;
  }

  .gallery-tile--wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }

  .gallery-tile-view {
    opacity: 1;
    transform: scale(1);
  }

  .social-grid {
    gap: 8px !important;
  }

  .social-tile {
    border-radius: 14px !important;
  }

  .footer {
    padding-bottom: 0.5rem;
  }

  /* ── WhatsApp FAB ── */
  .wa-fab {
    bottom: calc(var(--app-tab-h) + env(safe-area-inset-bottom, 0px) + 12px) !important;
    right: var(--app-pad) !important;
    width: 48px;
    height: 48px;
  }

  /* ── Bottom tab bar ── */
  .app-tabbar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    height: calc(var(--app-tab-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(12, 8, 18, 0.96);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  }

  .app-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    color: rgba(255, 248, 242, 0.45);
    font-size: 0.62rem;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
  }

  .app-tab svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .app-tab.active {
    color: #f0a030;
  }

  .app-tab.active svg {
    stroke: #f0a030;
  }

  .app-tab--cta .app-tab-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c2185b, #c62828);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(194, 24, 91, 0.45);
  }

  .app-tab--cta .app-tab-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
  }

  .app-tab--cta span {
    color: #f0a030;
    font-weight: 700;
  }
}

/* Hidden on desktop */
.app-tabbar,
.header-app-cta {
  display: none;
}

@media (max-width: 768px) {
  .app-tabbar {
    display: flex !important;
  }

  .header-app-cta {
    display: inline-flex !important;
  }
}
