/* ==========================================================================
   Digitobrand - Responsive Architecture
   Breakpoints: 320px, 480px, 768px, 1024px, 1280px, 1440px
   ========================================================================== */

/* Large Desktop (1440px +) */
@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
  }
  .hero-main-title {
    font-size: 4.4rem;
  }
}

/* Medium Desktop / Laptops (1025px - 1280px) */
@media (max-width: 1280px) {
  .hero-main-title {
    font-size: 3.4rem;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
  }
}

/* Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
  .site-header {
    height: 75px;
  }
  .header-inner {
    height: 75px;
  }
  .hero-main-title {
    font-size: 2.8rem;
  }
  .hero-subheading {
    font-size: 1.35rem;
  }
  .section-padding {
    padding: 70px 0;
  }
  .section-title {
    font-size: 2.1rem;
  }
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Mobile & Small Tablets (768px and below) */
@media (max-width: 768px) {
  /* Mobile Heading Hierarchy Scale (H1 > H2 > H3) */
  .inner-hero-title, .hero-main-title {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
  }

  h2, .section-title, .cta-animated-title, .detail-content-box h2 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  h3, .promo-title, .service-title, .widget-title {
    font-size: 1.1rem !important;
    line-height: 1.35 !important;
  }

  .subheading-badge {
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
  }

  /* Mobile Background Images Display Fix */
  .inner-hero-bg,
  .section-has-overlay .inner-hero-bg,
  .hero-bg-media,
  .cta-banner-bg {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: brightness(0.55) contrast(1.1) !important;
    transform: none !important;
    opacity: 0.9 !important;
  }

  .inner-hero-overlay {
    background: linear-gradient(180deg, rgba(6, 17, 31, 0.65) 0%, rgba(8, 26, 45, 0.82) 60%, rgba(6, 17, 31, 0.95) 100%) !important;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1002;
  }

  /* App-Style Slide-In Mobile Navigation Drawer */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 84vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(8, 17, 30, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-gold);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    flex-direction: column;
    align-items: flex-start;
    padding: 85px 20px 40px 20px;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(212, 167, 44, 0.12);
  }

  .nav-link {
    padding: 14px 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 100%;
    justify-content: space-between;
    color: var(--text-white);
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    display: none;
    background: rgba(13, 27, 42, 0.95);
    border: none;
    border-left: 2px solid var(--gold-primary);
    border-radius: 0 0 6px 6px;
    box-shadow: none;
    padding: 6px 0 10px 12px;
    margin-top: 4px;
    margin-bottom: 8px;
    min-width: 100%;
  }

  .dropdown-item {
    font-size: 0.85rem;
    padding: 8px 12px;
    color: var(--text-muted);
  }

  .nav-item.has-dropdown.active .dropdown-menu {
    display: block;
  }

  /* Why Choose Us - Left Aligned Glass Cards */
  .why-card,
  .why-card *,
  .glass-card,
  .glass-card * {
    text-align: left !important;
  }

  .why-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .why-icon {
    flex-shrink: 0;
  }

  /* Hide Sidebar Box on Mobile Screens */
  .sidebar-box {
    display: none !important;
  }

  /* Detail Action Buttons Spacing for Mobile */
  .detail-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
  }

  .detail-action-buttons .btn {
    width: 100% !important;
    margin-left: 0 !important;
    text-align: center;
    justify-content: center;
  }

  /* Banner Badge Group & Media Tags Mobile Alignment */
  .banner-badge-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }

  .banner-media-tag {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.76rem !important;
    padding: 8px 12px !important;
    background: rgba(8, 26, 45, 0.88) !important;
    border: 1px solid rgba(212, 167, 44, 0.5) !important;
    color: var(--gold-light) !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    letter-spacing: 0.4px !important;
  }

  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-main-title {
    font-size: 2.1rem !important;
  }

  .hero-subheading {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  .promotions-grid,
  .services-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 30px 16px;
  }

  .inner-hero {
    padding-top: 110px;
    padding-bottom: 35px;
  }

  .detail-content-box {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Floating WhatsApp Button Mobile Placement */
  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
    bottom: 22px;
    right: 20px;
  }
}

/* Small Mobile Screens (360px - 480px) */
@media (max-width: 480px) {
  .hero-main-title {
    font-size: 1.8rem !important;
  }
  .section-title {
    font-size: 1.45rem !important;
  }
  .floating-whatsapp-btn {
    width: 48px;
    height: 48px;
    bottom: 18px;
    right: 16px;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 18px;
    left: 16px;
  }
  .glass-card {
    padding: 18px;
  }
}
