/* ==========================================
   ZEBSITE DEVICE SPECIFIC - MOBILE STYLES (≤768px)
   ========================================== */

@media (max-width: 768px) {
  /* Device Visibility */
  .mobile-only {
    display: block !important;
  }
  .desktop-only,
  .tablet-only {
    display: none !important;
  }

  /* General Layout & Container */
  .container {
    padding: 0 1.2rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Header & Navigation */
  .site-header {
    padding: 0 0 0.75rem 0;
  }

  .header-actions .btn-phone {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #EEF2FF !important;
    border: 1px solid #BFDBFE !important;
    color: #0052FF !important;
    box-shadow: 0 2px 6px rgba(0, 82, 255, 0.12) !important;
    flex-shrink: 0 !important;
  }
  .header-actions .btn-phone span {
    display: none !important;
  }
  .header-actions .btn-phone svg {
    width: 18px !important;
    height: 18px !important;
    fill: #0052FF !important;
    color: #0052FF !important;
    margin: 0 !important;
  }

  .header-actions .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background-color: var(--light-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-normal);
    z-index: var(--z-drawer);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-toggle {
    display: block !important;
  }

  /* Hero Section */
  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero-grid,
  .hero-grid-split {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    line-height: 1.22;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-services-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
    margin-bottom: 1.5rem !important;
  }

  .hero-services-list > div {
    padding: 0.9rem 1rem !important;
  }

  .floating-badge {
    display: none !important;
  }

  /* Lead Capture Form Card */
  .lead-form {
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }

  /* Stats Section */
  .stats-grid,
  .stats-grid-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem;
  }

  .stat-card,
  .stats-grid-row > div {
    padding: 1.25rem 0.85rem !important;
  }

  .stat-number,
  .stats-grid-row div[style*="font-size: 2.75rem"] {
    font-size: 2.1rem !important;
  }

  /* Comparison Grid */
  .comparison-grid-split {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .comparison-grid-split > div {
    padding: 1.5rem !important;
  }

  /* Capabilities & Services Grids */
  .capabilities-grid-three,
  .services-grid,
  .portfolio-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .capabilities-grid-three > div,
  .service-card {
    padding: 1.5rem !important;
  }

  /* Process Timeline */
  .process-timeline-four,
  .process-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .process-timeline-four > div,
  .process-card {
    padding: 1.5rem !important;
  }

  /* Case Studies */
  .case-studies-grid-three {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .case-study-card {
    grid-template-columns: 1fr !important;
    padding: 1.25rem !important;
    gap: 1.25rem;
  }

  .case-study-card:nth-child(even) {
    direction: ltr;
  }

  .metrics-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Testimonials */
  .testimonials-grid-three,
  .testimonials-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .testimonials-grid-three > div,
  .testimonial-card {
    padding: 1.5rem !important;
  }

  /* FAQ Accordion */
  .faq-accordion {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .faq-question {
    padding: 1rem 1.15rem !important;
    font-size: 0.88rem !important;
  }

  .faq-answer {
    padding: 0 1.15rem !important;
  }

  .faq-item.faq-active .faq-answer {
    padding: 0.65rem 1.15rem 1.15rem 1.15rem !important;
  }

  /* Footer */
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .cta-banner {
    padding: 2.5rem 1.25rem;
  }

  .cta-banner h2 {
    font-size: 1.65rem;
  }

  /* Sticky Bottom Action Bar */
  div[style*="position: fixed; bottom: 0"] {
    padding: 0.65rem 1rem !important;
  }

  div[style*="position: fixed; bottom: 0"] .btn-phone {
    display: none !important;
  }

  div[style*="position: fixed; bottom: 0"] div[style*="display: flex; gap: 0.8rem;"] {
    width: 100%;
    justify-content: space-between;
  }

  div[style*="position: fixed; bottom: 0"] a.btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    font-size: 0.8rem !important;
    padding: 0.55rem 0.75rem !important;
  }
}

/* Extra Small Phones (≤480px) */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stats-grid,
  .stats-grid-row {
    grid-template-columns: 1fr !important;
  }

  .form-control,
  input,
  select,
  textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
  }
}
