/* ═══════════════════════════════════════════════════════════════════════════
   APPLE.COM MOBILE CLONE v3 — True Apple Experience
   Every component, animation, and pixel matches apple.com/iphone on mobile
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── APPLE SCROLL ANIMATIONS (all viewports) ─── */
@keyframes appleRevealUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes appleRevealScale {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes appleFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes appleSlideUp {
  from { opacity: 0; transform: translate3d(0, 60px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes appleCountUp {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroTextReveal {
  0%   { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroBgZoom {
  from { transform: translate(-50%,-50%) scale(1.08); }
  to   { transform: translate(-50%,-50%) scale(1); }
}
@keyframes heroMobileZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* Apple-style reveal classes — used by IntersectionObserver */
.apple-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.apple-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.apple-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.apple-reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for child animations */
.apple-stagger > *:nth-child(1) { transition-delay: 0s; }
.apple-stagger > *:nth-child(2) { transition-delay: 0.12s; }
.apple-stagger > *:nth-child(3) { transition-delay: 0.24s; }
.apple-stagger > *:nth-child(4) { transition-delay: 0.36s; }
.apple-stagger > *:nth-child(5) { transition-delay: 0.48s; }
.apple-stagger > *:nth-child(6) { transition-delay: 0.60s; }


/* ═══════════════════════════════════════════════════════
   MAIN MOBILE BREAKPOINT (≤ 768px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ─── GLOBAL RESET ─── */
  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 48px;
  }
  body {
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    -webkit-overflow-scrolling: touch;
    font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', 'Inter', sans-serif !important;
    background: #fff !important;
  }
  * { -webkit-tap-highlight-color: transparent; }
  img, video { max-width: 100% !important; }
  .container { padding: 0 24px !important; }
  section { overflow-x: hidden !important; }

  /* ═══════════════════════════════
     NAVBAR — Apple 48px frosted chrome
     ═══════════════════════════════ */
  .navbar {
    height: 48px !important;
    background: rgba(255,255,255,0.72) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 0.5px solid rgba(0,0,0,0.1) !important;
    padding-left: env(safe-area-inset-left) !important;
    padding-right: env(safe-area-inset-right) !important;
    transition: background 0.36s cubic-bezier(0.32, 0.08, 0.24, 1),
                height 0.36s cubic-bezier(0.32, 0.08, 0.24, 1) !important;
  }
  .nav-container {
    height: 48px !important;
    padding: 0 16px !important;
    justify-content: space-between !important;
  }
  .logo-img { height: 17px !important; }
  .nav-toggle {
    display: flex !important;
    width: 48px !important;
    height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .nav-toggle span {
    width: 15px !important;
    height: 1px !important;
    background: #1d1d1f !important;
    transition: transform 0.36s cubic-bezier(0.32, 0.08, 0.24, 1) !important;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #fff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 56px 48px 48px !important;
    gap: 0 !important;
    z-index: 10001 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    clip-path: inset(0 0 0 0) !important;
  }
  .nav-links.open .nav-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    line-height: 1.15 !important;
    letter-spacing: -0.005em !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .nav-links.open .nav-link:first-child {
    font-weight: 700 !important;
    color: #000 !important;
  }
  /* Navbar stays white when menu is open */
  .navbar.menu-is-open {
    background: #fff !important;
    border-bottom-color: rgba(0,0,0,0.1) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .navbar.menu-is-open .logo-img {
    filter: brightness(0) saturate(100%) !important;
  }
  .navbar.menu-is-open .nav-toggle span {
    background: #1d1d1f !important;
  }
  .nav-cta { display: none !important; }

  /* ═══════════════════════════════
     HERO — Full-screen cinematic
     Apple.com/iphone hero pattern
     ═══════════════════════════════ */
  .hero {
    min-height: 100svh !important;
    min-height: -webkit-fill-available;
    padding-top: 48px !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  /* Force mobile video to cover entire hero */
  #hero-video-mobile,
  #hero-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
    display: block !important;
    opacity: 1 !important;
  }
  /* Hide desktop video container on mobile */
  #hero-video-bg {
    display: none !important;
  }
  /* Kill the JS-loaded background image on mobile — video should be the only bg */
  #heroSection {
    background-image: none !important;
    background-color: #000 !important;
  }
  /* Background video zoom-in on load (mobile-safe — no translate) */
  #hero-video-mobile,
  #hero-video {
    animation: heroMobileZoom 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
    transform-origin: center center !important;
  }
  .hero-content {
    padding: 0 32px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  /* PIXELSPOT branding — fade in with blur */
  .hero-content > p:first-child {
    font-size: 0.72rem !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 8px !important;
    color: rgba(255,255,255,0.7) !important;
    animation: heroTextReveal 1s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
  }
  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.4rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.05 !important;
    margin-bottom: 0 !important;
    color: #fff !important;
    animation: heroTextReveal 1s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
  }
  .hero-subtitle {
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    line-height: 1.42 !important;
    color: rgba(255,255,255,0.85) !important;
    margin: 14px auto 0 !important;
    max-width: 88% !important;
    letter-spacing: 0.002em !important;
    animation: heroTextReveal 1s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
  }
  /* Two text-link CTAs (Learn more > / Buy >) — exactly like Apple */
  .hero-buttons {
    flex-direction: row !important;
    gap: 20px !important;
    margin-top: 18px !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    padding: 0 !important;
    animation: heroTextReveal 1s 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
  }
  .hero-buttons .btn {
    width: auto !important;
    min-height: auto !important;
    padding: 8px 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    color: #2997ff !important;
    letter-spacing: 0 !important;
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease !important;
  }
  .hero-buttons .btn:active { color: #0077d4 !important; }
  .hero-buttons .btn::after {
    content: '\203A' !important;
    font-size: 1.3rem !important;
    line-height: 1;
    display: inline !important;
    margin-left: 2px;
    color: #2997ff !important;
    font-weight: 300;
    transition: transform 0.2s ease, color 0.2s ease !important;
  }
  .hero-buttons .btn:active::after { transform: translateX(2px) !important; }
  .hero-buttons .btn::before { display: none !important; }

  /* ═══════════════════════════════
     SECTIONS — Apple rhythm & spacing
     ═══════════════════════════════ */
  .section {
    padding: 56px 0 !important;
  }
  .ps-section-divider {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .section-header {
    margin-bottom: 28px !important;
    text-align: center !important;
  }
  .section-tag {
    font-size: 0.68rem !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 6px !important;
    color: #bf4800 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
  }
  .section-title {
    font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif !important;
    font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.08 !important;
    color: #1d1d1f !important;
  }
  .section-subtitle {
    font-size: 0.95rem !important;
    color: #86868b !important;
    line-height: 1.42 !important;
    margin-top: 8px !important;
  }

  /* ═══════════════════════════════
     WHAT WE DO — Apple full-bleed tiles
     ═══════════════════════════════ */
  .what-we-do {
    padding: 56px 0 !important;
    background: #fff !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 16px !important;
  }
  .service-card.service-card--apple {
    padding: 36px 28px 0 !important;
    border-radius: 22px !important;
    background: #f5f5f7 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    overflow: hidden !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }
  .service-card.service-card--apple:active {
    transform: scale(0.98) !important;
  }
  .service-card--apple .service-card-label {
    font-size: 0.68rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #bf4800 !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 6px !important;
  }
  .service-card--apple h3 {
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 10px !important;
  }
  .service-card--apple .service-card-text > p {
    font-size: 0.95rem !important;
    color: #6e6e73 !important;
    line-height: 1.47 !important;
    display: block !important;
    margin-bottom: 14px !important;
  }
  .service-card--apple .service-features {
    display: block !important;
    margin-bottom: 14px !important;
  }
  .service-card--apple .service-features li {
    font-size: 0.88rem !important;
    color: #1d1d1f !important;
    line-height: 1.6 !important;
    padding: 2px 0 !important;
  }
  .service-card--apple .card-link {
    font-size: 0.95rem !important;
    color: #0071e3 !important;
    margin-bottom: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    transition: color 0.2s !important;
  }
  .service-card--apple .card-link::after {
    content: ' \203A' !important;
    font-size: 1.1rem !important;
    margin-left: 3px !important;
    transition: transform 0.2s ease !important;
  }
  .service-card--apple .card-link:active::after {
    transform: translateX(3px) !important;
  }
  .service-card--apple .service-card-hero {
    margin: 0 -28px !important;
    border-radius: 0 0 22px 22px !important;
    overflow: hidden !important;
  }
  .service-card--apple .service-card-hero-img {
    aspect-ratio: 16/10 !important;
    object-fit: cover !important;
    display: block !important;
    width: 100% !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }
  .service-card.service-card--apple:active .service-card-hero-img {
    transform: scale(1.03) !important;
  }
  .service-card--apple .service-card-text {
    display: flex !important;
    flex-direction: column !important;
  }

  /* ═══════════════════════════════
     PIXELOS HIGHLIGHTS — Carousel
     ═══════════════════════════════ */
  .pixelos-section {
    padding: 56px 0 44px !important;
    background: #fff !important;
  }
  .pxb-header { padding: 0 24px 24px !important; }
  .pxb-header h2 {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
    letter-spacing: -0.025em !important;
    line-height: 1.08 !important;
  }
  .pxb-header p { font-size: 0.95rem !important; color: #86868b !important; }
  .pxb-header a { font-size: 0.88rem !important; color: #0071e3 !important; }

  /* Pills */
  .pxb-pills {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    gap: 10px !important;
    padding: 0 24px !important;
    margin-bottom: 24px !important;
    scroll-snap-type: x proximity;
  }
  .pxb-pills::-webkit-scrollbar { display: none; }
  .pxb-pill {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
    transition: opacity 0.35s ease, transform 0.35s ease !important;
  }
  .pxb-pill:active { transform: scale(0.92) !important; }
  .pxb-pill-icon {
    width: 36px !important; height: 36px !important;
    border-radius: 10px !important; font-size: 0.82rem !important;
  }
  .pxb-pill-label { font-size: 0.5rem !important; }
  .pxb-pill-label em { font-size: 0.44rem !important; }

  /* Carousel card */
  .pxb-carousel {
    margin: 0 12px !important;
    border-radius: 22px !important;
    background: #f5f5f7 !important;
    min-height: auto !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04) !important;
  }
  .pxb-slide {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .pxb-slide-text {
    padding: 36px 28px 14px !important;
    text-align: center !important;
    align-items: center !important;
  }
  .pxb-slide-text h3 {
    font-size: 1.4rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.14 !important;
  }
  .pxb-slide-text p {
    font-size: 0.88rem !important;
    color: #86868b !important;
    max-width: 100% !important;
    line-height: 1.47 !important;
  }
  .pxb-slide-text a { font-size: 0.88rem !important; color: #0071e3 !important; }
  .pxb-slide-img {
    padding: 8px 28px 28px !important;
    justify-content: center !important;
  }
  .pxb-slide-img img {
    max-width: 260px !important;
    border-radius: 16px !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }

  /* Dots */
  .pxb-nav { padding: 14px 0 22px !important; }
  .pxb-dot {
    width: 6px !important; height: 6px !important;
    border-radius: 6px !important;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease !important;
  }
  .pxb-dot.active { width: 28px !important; }
  .pxb-pause { width: 28px !important; height: 28px !important; font-size: 0.55rem !important; }

  /* ═══════════════════════════════
     WHO ARE YOU — Apple persona tiles
     ═══════════════════════════════ */
  .who-are-you {
    padding: 56px 0 !important;
    background: #fff !important;
  }
  .who-are-you .section-title { margin-bottom: 8px !important; }
  .persona-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 0 16px !important;
    overflow: visible !important;
  }
  .persona-card {
    flex: none !important;
    width: 100% !important;
    min-width: unset !important;
  }
  .persona-card--apple {
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #f5f5f7 !important;
    border: none !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease !important;
  }
  .persona-card--apple:active {
    transform: scale(0.975) !important;
  }
  .persona-card--apple .persona-card-imgwrap {
    max-height: 240px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
  }
  .persona-card--apple .persona-card-img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }
  .persona-card--apple:active .persona-card-img {
    transform: scale(1.04) !important;
  }
  .persona-card--apple .persona-card-content {
    padding: 22px 24px 28px !important;
    text-align: center !important;
  }
  .persona-card--apple .card-subtitle {
    font-size: 0.68rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: #bf4800 !important;
    font-weight: 600 !important;
  }
  .persona-card--apple .card-title {
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    color: #1d1d1f !important;
    margin: 4px 0 10px !important;
  }
  .persona-card--apple .card-link {
    font-size: 0.95rem !important;
    color: #0071e3 !important;
    min-height: auto !important;
    transition: color 0.2s ease !important;
  }
  .persona-card--apple .card-link::after {
    content: ' \203A';
    transition: transform 0.2s ease !important;
  }

  /* ═══════════════════════════════
     PORTFOLIO — Horizontal scroll
     ═══════════════════════════════ */
  .ahs-portfolio {
    padding: 56px 0 44px !important;
    background: #f5f5f7 !important;
    overflow: visible !important;
  }
  .ahs-header {
    padding: 0 24px 22px !important;
  }
  .ahs-headline {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    letter-spacing: -0.025em !important;
    line-height: 1.08 !important;
  }
  .ahs-track {
    gap: 12px !important;
    padding: 0 16px !important;
    scroll-padding-left: 16px !important;
  }
  .ahs-card {
    flex: 0 0 78vw !important;
    max-width: 310px !important;
    height: 420px !important;
    border-radius: 22px !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease !important;
  }
  .ahs-card:active {
    transform: scale(0.97) !important;
  }
  .ahs-card-top { padding: 22px 22px 0 !important; }
  .ahs-tag { font-size: 0.58rem !important; }
  .ahs-card-top h3 {
    font-size: 1.35rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin: 3px 0 5px !important;
  }
  .ahs-card-top p { font-size: 0.78rem !important; line-height: 1.35 !important; }
  .ahs-location { font-size: 0.7rem !important; }
  .ahs-card-visual { margin-top: 8px !important; }

  /* Portfolio stats */
  .ahs-stats {
    flex-direction: row !important;
    gap: 0 !important;
    margin-top: 32px !important;
    padding: 0 16px !important;
    justify-content: space-around !important;
  }
  .ahs-stat { text-align: center !important; flex: 1; }
  .ahs-stat-num { font-size: 1.65rem !important; letter-spacing: -0.03em !important; }
  .ahs-stat-label { font-size: 0.62rem !important; color: #86868b !important; }

  /* Nav arrows */
  .ahs-progress-wrap { max-width: 120px !important; margin-top: 20px !important; }
  .ahs-nav { margin-top: 14px !important; gap: 8px !important; }
  .ahs-nav-btn {
    width: 36px !important; height: 36px !important;
    font-size: 0.9rem !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    background: rgba(255,255,255,0.8) !important;
    border-radius: 50% !important;
    transition: background 0.2s, transform 0.2s !important;
  }
  .ahs-nav-btn:active { background: rgba(0,0,0,0.06) !important; transform: scale(0.92) !important; }

  /* ═══════════════════════════════
     DOOH NETWORK — Apple metrics
     ═══════════════════════════════ */
  .dooh-hero-section {
    padding: 60px 0 52px !important;
    background: #fff !important;
  }
  .dooh-hero-inner { padding: 0 20px !important; }
  .dooh-hero-header { margin-bottom: 40px !important; text-align: center !important; }
  .dooh-hero-eyebrow {
    font-size: 0.72rem !important; letter-spacing: 0.08em !important;
    color: #0071e3 !important; font-weight: 600 !important; text-transform: uppercase !important;
  }
  .dooh-hero-title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    letter-spacing: -0.03em !important; line-height: 1.05 !important; font-weight: 700 !important;
  }
  .dooh-hero-sub { font-size: 0.95rem !important; color: #86868b !important; line-height: 1.47 !important; }

  /* Stats — vertical */
  .dooh-hero-stats { grid-template-columns: 1fr !important; gap: 12px !important; margin-bottom: 32px !important; }
  .dooh-stat {
    padding: 30px 20px !important; border-radius: 20px !important; background: #f5f5f7 !important;
    display: flex !important; flex-direction: column !important; align-items: center !important;
    border: none !important; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  }
  .dooh-stat:active { transform: scale(0.97) !important; }
  .dooh-stat-num {
    font-size: clamp(2.8rem, 10vw, 3.5rem) !important; font-weight: 700 !important;
    letter-spacing: -0.03em !important; line-height: 1 !important; color: #1d1d1f !important;
  }
  .dooh-stat-plus { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; }
  .dooh-stat-label { font-size: 0.9rem !important; font-weight: 600 !important; margin-top: 8px !important; color: #1d1d1f !important; }
  .dooh-stat-desc { font-size: 0.78rem !important; line-height: 1.4 !important; margin-top: 2px !important; color: #86868b !important; }

  /* Map */
  .dooh-map-wrap { border-radius: 20px !important; padding: 3px !important; background: #f5f5f7 !important; }
  .dooh-map-card { border-radius: 18px !important; }
  #india-leaflet-map { height: 340px !important; min-height: 240px !important; border-radius: 18px !important; }

  /* City ticker */
  #city-ticker { height: 38px !important; margin-top: 10px !important; border-radius: 10px !important; }
  #city-scroll { gap: 20px !important; padding: 0 12px !important; }
  .ticker-city { font-size: 0.72rem !important; padding: 3px 8px !important; }
  .ticker-name { font-size: 0.72rem !important; }
  .ticker-info { font-size: 0.6rem !important; }
  .ticker-dot { width: 6px !important; height: 6px !important; }

  /* CTA */
  .dooh-hero-cta {
    display: inline-flex !important; padding: 14px 30px !important;
    font-size: 0.95rem !important; border-radius: 980px !important;
    min-height: 48px !important; background: #0071e3 !important;
    color: #fff !important; border: none !important; font-weight: 400 !important;
    transition: background 0.2s, transform 0.2s !important;
  }
  .dooh-hero-cta:active { background: #0062c4 !important; transform: scale(0.97) !important; }

  /* ═══════════════════════════════
     QUOTE FORM
     ═══════════════════════════════ */
  .quote-section { padding: 56px 0 !important; background: #f5f5f7 !important; }
  .quote-section .section-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
    letter-spacing: -0.02em !important; line-height: 1.1 !important;
  }
  .quote-layout { padding: 0 !important; }
  .quote-form { max-width: 100% !important; padding: 0 !important; }
  .quote-form .form-group { margin-bottom: 14px !important; }
  .quote-form input,
  .quote-form select {
    font-size: 17px !important;
    font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif !important;
    padding: 16px 18px !important; border-radius: 12px !important;
    border: 1px solid #d2d2d7 !important; background: #fff !important;
    color: #1d1d1f !important; min-height: 52px !important; width: 100% !important;
    -webkit-appearance: none !important; appearance: none !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    outline: none !important;
  }
  .quote-form input:focus,
  .quote-form select:focus {
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 4px rgba(0,113,227,0.12) !important;
  }
  .quote-form input::placeholder { color: #86868b !important; font-weight: 400 !important; }
  .quote-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    padding-right: 44px !important;
  }
  .quote-form .btn,
  .quote-form .btn-primary,
  .quote-form .btn-full,
  .quote-form button[type="submit"] {
    width: 100% !important; min-height: 52px !important; font-size: 17px !important;
    font-weight: 400 !important; border-radius: 12px !important;
    background: #0071e3 !important; color: #fff !important;
    border: none !important; margin-top: 6px !important;
    font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif !important;
    letter-spacing: 0 !important; cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
  }
  .quote-form button[type="submit"]:active {
    background: #0062c4 !important; transform: scale(0.98) !important;
  }

  /* ═══════════════════════════════
     FOOTER — Apple.com exact accordion
     ═══════════════════════════════ */
  .footer {
    background: #f5f5f7 !important;
    padding: 17px 0 calc(8px + env(safe-area-inset-bottom)) !important;
    border-top: none !important;
    font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif !important;
  }
  .footer .container { padding: 0 22px !important; }
  .footer-disclaimer { padding: 0 0 12px !important; margin-bottom: 0 !important; border-bottom: 1px solid #d2d2d7 !important; }
  .footer-disclaimer p { font-size: 0.6875rem !important; color: #6e6e73 !important; line-height: 1.47 !important; letter-spacing: -0.003em !important; margin: 0 !important; }
  .footer-disclaimer a { color: #424245 !important; text-decoration: underline !important; }

  .footer-directory { display: flex !important; flex-direction: column !important; gap: 0 !important; padding: 0 !important; border-bottom: none !important; }
  .footer-col { border-bottom: 1px solid #d2d2d7 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; }
  .footer-col:last-child { border-bottom: 1px solid #d2d2d7 !important; }

  .footer-col h4 {
    font-size: 0.75rem !important; font-weight: 600 !important; color: #1d1d1f !important;
    text-transform: none !important; letter-spacing: -0.01em !important; margin: 0 !important;
    padding: 11px 0 !important; cursor: pointer !important;
    display: flex !important; justify-content: space-between !important; align-items: center !important;
    -webkit-user-select: none !important; user-select: none !important;
    transition: color 0.2s ease !important;
  }
  .footer-col h4:active { color: #424245 !important; }
  .footer-col h4::after {
    content: '+' !important; font-size: 1.15rem !important; font-weight: 300 !important;
    color: #86868b !important; line-height: 1 !important; flex-shrink: 0 !important;
    transition: transform 0.3s ease !important; display: block !important;
  }
  .footer-col h4.footer-accordion-open::after { content: '\2212' !important; }

  .footer-col .footer-accordion-links {
    max-height: 0 !important; overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .footer-col .footer-accordion-links.open { max-height: 600px !important; }

  .footer-col > a,
  .footer-accordion-links a {
    font-size: 0.75rem !important; color: #424245 !important;
    display: block !important; padding: 3px 0 !important;
    line-height: 1.47 !important; text-decoration: none !important;
    transition: color 0.2s ease !important;
  }
  .footer-col a:hover, .footer-col a:active { color: #1d1d1f !important; }
  .footer-accordion-links a:last-child { padding-bottom: 12px !important; }
  .footer-col-separator { height: 0 !important; margin: 4px 0 !important; border: none !important; }

  .footer-shop-more {
    display: block !important; padding: 14px 0 !important;
    border-bottom: 1px solid #d2d2d7 !important; font-size: 0.75rem !important;
    color: #6e6e73 !important; line-height: 1.47 !important;
  }
  .footer-shop-more a { color: #0071e3 !important; text-decoration: none !important; }
  .footer-shop-more a:hover { text-decoration: underline !important; }

  .footer-bottom-bar { flex-direction: column !important; align-items: flex-start !important; gap: 0 !important; padding-top: 10px !important; margin-top: 0 !important; border-top: none !important; }
  .footer-bottom-left { flex-direction: column !important; align-items: flex-start !important; gap: 0 !important; width: 100% !important; }
  .footer-copyright { font-size: 0.75rem !important; color: #6e6e73 !important; line-height: 1.47 !important; display: block !important; margin-bottom: 4px !important; }
  .footer-legal-links {
    display: flex !important; flex-wrap: wrap !important; gap: 0 !important;
    width: 100% !important; border-bottom: 1px solid #d2d2d7 !important;
    padding-bottom: 8px !important; margin-bottom: 8px !important;
  }
  .footer-legal-links a {
    font-size: 0.75rem !important; color: #424245 !important; padding: 2px 0 !important;
    border-left: none !important; margin-right: 0 !important; line-height: 1.8 !important;
    text-decoration: none !important; white-space: nowrap !important;
  }
  .footer-legal-links a::after {
    content: '|' !important; color: #d2d2d7 !important; margin: 0 10px !important;
    font-weight: 300 !important; display: inline !important;
  }
  .footer-legal-links a:last-child::after { display: none !important; }
  .footer-legal-links a:hover { text-decoration: underline !important; }
  .footer-region { font-size: 0.75rem !important; color: #424245 !important; text-decoration: none !important; display: block !important; margin-top: 0 !important; }
  .footer-region:hover { text-decoration: underline !important; }

  .footer-social { margin-top: 10px !important; display: flex !important; gap: 6px !important; }
  .footer-social a {
    width: 28px !important; height: 28px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    font-size: 0.88rem !important; color: #6e6e73 !important;
    border-radius: 50% !important; min-height: auto !important; padding: 0 !important;
    transition: color 0.2s ease !important;
  }
  .footer-social a:active { color: #1d1d1f !important; }

  /* ═══════════════════════════════
     TOUCH & POLISH
     ═══════════════════════════════ */
  .card-link { min-height: 44px !important; display: inline-flex !important; align-items: center !important; }
  .dooh-hero-cta { min-height: 48px !important; }
  .ahs-track, .pxb-pills { -webkit-overflow-scrolling: touch !important; overscroll-behavior-x: contain; }
  button, a, input, select, .btn { touch-action: manipulation; }

  /* Hide desktop decorations */
  .ps-tilt { transform: none !important; }
  .ps-gradient-border::before, .ps-gradient-border::after { display: none !important; }
  .ps-glow-text { text-shadow: none !important; }
  .ps-float-badge { animation: none !important; }

} /* end 768px */


/* ═══ FOOTER: desktop overrides ═══ */
.footer-shop-more { display: none; }
@media (min-width: 769px) {
  .footer-accordion-links { max-height: none !important; overflow: visible !important; }
  .footer-col h4::after { display: none !important; }
  .footer-col h4 { cursor: default !important; }
}


/* ═══ SMALL PHONES (<=480px) ═══ */
@media (max-width: 480px) {
  .container { padding: 0 20px !important; }
  .hero-content { padding: 0 24px !important; }
  .hero-title { font-size: clamp(2rem, 10vw, 2.8rem) !important; }
  .hero-subtitle { font-size: 0.95rem !important; max-width: 92% !important; }

  .services-grid { gap: 14px !important; padding: 0 12px !important; }
  .service-card--apple h3 { font-size: 1.4rem !important; }
  .service-card--apple .service-card-text > p { font-size: 0.88rem !important; }
  .service-card--apple .card-link { font-size: 0.88rem !important; }
  .service-card.service-card--apple { padding: 28px 22px 0 !important; }
  .service-card--apple .service-card-hero { margin: 0 -22px !important; }

  .pxb-carousel { margin: 0 8px !important; border-radius: 20px !important; }
  .pxb-slide-text { padding: 28px 22px 10px !important; }
  .pxb-slide-text h3 { font-size: 1.2rem !important; }
  .pxb-slide-img img { max-width: 220px !important; }

  .persona-grid { padding: 0 12px !important; gap: 12px !important; }
  .persona-card--apple .persona-card-content { padding: 18px 20px 24px !important; }
  .persona-card--apple .card-title { font-size: 1.4rem !important; }
  .persona-card--apple .persona-card-img { height: 220px !important; }

  .ahs-card { flex: 0 0 84vw !important; height: 390px !important; border-radius: 20px !important; }
  .ahs-card-top h3 { font-size: 1.2rem !important; }
  .ahs-stat-num { font-size: 1.4rem !important; }
  .ahs-stat-label { font-size: 0.58rem !important; }

  .dooh-hero-title { font-size: clamp(1.8rem, 9vw, 2.4rem) !important; }
  #india-leaflet-map { height: 300px !important; min-height: 220px !important; }
  .dooh-stat { padding: 24px 16px !important; border-radius: 18px !important; }

  .footer-col h4 { font-size: 0.72rem !important; padding: 10px 0 !important; }
  .footer-col a, .footer-accordion-links a { font-size: 0.72rem !important; }
  .footer-disclaimer p { font-size: 0.65rem !important; }
  .footer-shop-more { font-size: 0.72rem !important; }
}


/* ═══ ULTRA SMALL (<=380px - iPhone SE) ═══ */
@media (max-width: 380px) {
  .hero-content { padding: 0 20px !important; }
  .hero-title { font-size: 1.8rem !important; }
  .hero-subtitle { font-size: 0.88rem !important; }
  .hero-buttons { gap: 14px !important; }
  .hero-buttons .btn { font-size: 0.92rem !important; }

  .section-title { font-size: 1.4rem !important; }
  .services-grid { gap: 12px !important; padding: 0 10px !important; }
  .service-card--apple h3 { font-size: 1.25rem !important; }

  .pxb-carousel { margin: 0 6px !important; }
  .pxb-slide-text h3 { font-size: 1.05rem !important; }

  .persona-card--apple .card-title { font-size: 1.25rem !important; }
  .persona-card--apple .persona-card-img { height: 180px !important; }

  .ahs-card { flex: 0 0 88vw !important; height: 360px !important; }
  .ahs-card-top h3 { font-size: 1.1rem !important; }

  .dooh-hero-title { font-size: 1.6rem !important; }
  #india-leaflet-map { height: 260px !important; }
}


/* ═══ LANDSCAPE MOBILE ═══ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto !important; padding-top: 52px !important; padding-bottom: 24px !important; }
  .hero-title { font-size: 1.8rem !important; }
  .hero-subtitle { font-size: 0.85rem !important; margin-bottom: 12px !important; }
  .hero-buttons { flex-direction: row !important; }
  .section { padding: 36px 0 !important; }
  .persona-grid { flex-direction: row !important; overflow-x: auto !important; }
  .persona-card { flex: 0 0 70vw !important; width: auto !important; }
  .ahs-card { height: 320px !important; }
  #india-leaflet-map { height: 260px !important; }
}


/* ═══ SAFE AREA (notch / Dynamic Island) ═══ */
@supports (padding: env(safe-area-inset-top)) {
  @media (max-width: 768px) {
    .navbar { padding-top: env(safe-area-inset-top) !important; height: calc(48px + env(safe-area-inset-top)) !important; }
    .hero { padding-top: calc(48px + env(safe-area-inset-top)) !important; }
    .footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important; }
  }
}


/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .apple-reveal, .apple-reveal-scale,
  .ps-reveal, .ps-reveal-left, .ps-reveal-right, .ps-reveal-scale {
    opacity: 1 !important; transform: none !important;
  }
  .hero-content > p:first-child, .hero-title, .hero-subtitle, .hero-buttons {
    animation: none !important; opacity: 1 !important;
  }
}
