/* ==========================================================================
   ShowBrand Digital Marketing Agency - Responsive Breakpoints CSS
   ========================================================================== */

/* Laptop & Tablet Large (max-width: 1200px) */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
  
  .client-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet Medium (max-width: 992px) */
@media (max-width: 992px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }

  /* Navigation Drawer for Mobile/Tablet */
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 320px;
    height: calc(100vh - var(--header-height));
    background: var(--color-navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1rem;
    overflow-y: auto;
    transition: right var(--transition-base);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    display: none;
    width: 100%;
  }
  
  .nav-item.open > .dropdown-menu {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content p.hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }

  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Mobile Small (max-width: 768px) */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
  
  .hero-section {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
  }
  
  .hero-content h1 {
    font-size: 2.15rem;
  }
  
  .hero-content p.hero-subtitle {
    font-size: 1rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }

  .client-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form-container {
    padding: 1.75rem 1.25rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .whatsapp-float-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}


/* Mobile and tablet refinements */
@media (max-width: 1100px) {
  .mobile-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
    background: rgba(255,255,255,.08);
  }
  .mobile-nav-toggle:focus-visible, .nav-link:focus-visible, .dropdown-link:focus-visible {
    outline: 2px solid var(--color-cyan); outline-offset: 3px;
  }
  .nav-menu {
    position: fixed; top: var(--header-height); right: 0;
    width: min(22rem, calc(100vw - 1rem)); max-width: 100vw;
    height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height));
    padding: 1.25rem; gap: .25rem; overflow-y: auto; overscroll-behavior: contain;
    background: var(--color-navy-dark); border-left: 1px solid rgba(255,255,255,.1);
    transform: translateX(105%); transition: transform var(--transition-base); z-index: 1001;
  }
  .nav-menu.active { right: 0; transform: translateX(0); }
  .nav-link { min-height: 46px; padding: .7rem .25rem; }
  .dropdown-menu { margin: .25rem 0 .65rem; padding: .25rem 0; }
  .dropdown-link { min-height: 44px; padding: .65rem .8rem; }
  .header-container { gap: .75rem; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 2.25rem; }
  .hero-content, .hero-visual, .content-layout > *, .grid > * { min-width: 0; }
  .content-layout { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .content-layout aside { order: 2; }
  .footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
}

@media (max-width: 768px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section { padding: 3.75rem 0; }
  .section-header { margin-bottom: 2.25rem; }
  .section-header h2 { font-size: clamp(1.7rem,5.6vw,2.1rem); }
  .header .logo-brand img { height: 50px !important; }
  .hero-section { padding-top: calc(var(--header-height) + 2.25rem); padding-bottom: 3.75rem; }
  .hero-grid { gap: 2rem; }
  .hero-content h1 { font-size: clamp(2rem,7.2vw,2.65rem); line-height: 1.12; margin-bottom: 1rem; }
  .hero-content p.hero-subtitle { font-size: 1.025rem; line-height: 1.65; margin-bottom: 1.5rem; }
  .hero-main-card { padding: 1.5rem; border-radius: 20px; }
  .page-header { padding-top: calc(var(--header-height) + 2.25rem); padding-bottom: 2.75rem; }
  .page-header h1 { font-size: clamp(2rem,7vw,2.55rem); line-height: 1.12; }
  .page-header p.lead { font-size: 1.05rem; line-height: 1.65; }
  .grid { gap: 1.25rem; }
  .grid-2, .grid-3, .grid-4, .process-grid { grid-template-columns: minmax(0,1fr); }
  .client-logo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
  .client-logo-card { min-width: 0; height: 76px; padding: .75rem .5rem; }
  .client-logo-text { gap: .35rem; font-size: .9rem; }
  .card, .feature-card, .sidebar-card { padding: 1.4rem; }
  .contact-form-container { padding: 1.5rem 1.15rem; border-radius: 18px; }
  .callout-box { padding: 1.15rem 1.1rem; margin: 1.5rem 0; }
  .faq-button { padding: 1rem 1.1rem; font-size: 1rem; gap: .75rem; }
  .faq-content { padding-left: 1.1rem; padding-right: 1.1rem; }
  .footer { padding-top: 3.5rem; }
  .footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.75rem 1.25rem; margin-bottom: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column h4 { font-size: 1rem; margin-bottom: 1rem; }
  .footer-links { gap: .65rem; }
  .footer-links a { font-size: .875rem; overflow-wrap: anywhere; }
  .footer-brand .logo-brand img { height: 44px !important; }
  .footer-bottom { align-items: flex-start; text-align: left; }
  .footer-bottom-links { flex-wrap: wrap; gap: .65rem 1rem; }
  .error-code { font-size: clamp(5rem,24vw,7rem); }
}

@media (max-width: 540px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .header-actions { gap: .35rem; }
  .header-actions > .btn { display: none; }
  .header .logo-brand img { height: 46px !important; }
  .mobile-nav-toggle { width: 42px; height: 42px; flex-basis: 42px; }
  .hero-section { padding-top: calc(var(--header-height) + 1.75rem); padding-bottom: 3rem; }
  .hero-content h1 { font-size: clamp(1.85rem,8.2vw,2.3rem); }
  .hero-content p.hero-subtitle { font-size: .98rem; }
  .hero-cta-group { width: 100%; flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-cta-group .btn { width: 100%; min-height: 50px; padding: .8rem 1rem; white-space: normal; }
  .hero-main-card { padding: 1.15rem; }
  .hero-main-card h3 { font-size: 1.2rem; }
  .page-header { padding-top: calc(var(--header-height) + 1.75rem); padding-bottom: 2.25rem; }
  .page-header h1 { font-size: clamp(1.85rem,8vw,2.3rem); }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 1.75rem; }
  .section-header h2 { font-size: 1.7rem; }
  .detail-content h2 { font-size: 1.55rem; margin-top: 1.75rem; }
  .detail-content h3 { font-size: 1.25rem; }
  .detail-content p { font-size: 1rem; }
  .service-category-grid { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .client-logo-grid { gap: .6rem; }
  .client-logo-text { font-size: .82rem; }
  .contact-form-container { padding: 1.2rem 1rem; }
  .form-control { min-height: 48px; font-size: 1rem; }
  .contact-form-container .btn { width: 100%; min-height: 50px; white-space: normal; }
  .footer-top { gap: 1.5rem .9rem; }
  .footer-links a { font-size: .82rem; }
  .whatsapp-float-btn { right: 1rem; bottom: 1rem; width: 50px; height: 50px; font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu, .mobile-nav-toggle, .card, .feature-card, .btn, .whatsapp-float-btn {
    transition-duration: .01ms !important; animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; scroll-behavior: auto !important;
  }
}



@media (max-width: 1100px) {
  .nav-menu { flex-direction: column; align-items: flex-start; }
  .nav-item { width: 100%; }
  .nav-link {
    width: 100%; justify-content: space-between;
    padding: .7rem .25rem; font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,.04); border: 0;
    border-radius: var(--radius-sm); display: none; width: 100%;
  }
  .nav-item.open > .dropdown-menu { display: block; }
}


@media (max-width: 1100px) { .nav-link i.fa-chevron-down { padding: .65rem; margin: -.65rem; } }
