/* ========================================
   DIGITAL EVIDENCES - Responsive
   Mobile-first media queries
   ======================================== */

/* --- Small phones (max 374px) --- */
@media (max-width: 374px) {
  :root {
    font-size: 14px;
  }

  .hero h1 {
    font-size: var(--text-2xl);
  }

  .hero-ctas {
    flex-direction: column;
  }

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

/* --- Mobile (max 767px) --- */
@media (max-width: 767px) {
  /* Typography scale down */
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .section {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Header */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-md);
    transition: right var(--transition);
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav-link {
    color: var(--white);
    font-size: var(--text-base);
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    border-radius: 0;
    padding: 0;
  }

  .nav-dropdown-menu a {
    color: var(--gray-300);
    padding: var(--space-sm) var(--space-lg);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Trust Bar */
  .trust-bar .container {
    gap: var(--space-md);
    justify-content: center;
  }

  .trust-item {
    font-size: var(--text-xs);
  }

  /* Grids */
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 {
    grid-template-columns: 1fr;
  }

  /* Contact page layout */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Features */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .feature-item {
    padding: var(--space-md);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Floating widget - hide on mobile, show bottom bar instead */
  .floating-widget {
    display: none;
  }

  .mobile-bottom-bar {
    display: block;
  }

  /* Add bottom padding to body for mobile bar */
  body {
    padding-bottom: 60px;
  }

  /* Process steps */
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Page hero */
  .page-hero {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .page-hero h1 {
    font-size: var(--text-2xl);
  }

  /* Blog cards grid */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Contact form */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  /* Article */
  .article-content {
    padding: var(--space-xl) var(--space-md);
  }

  /* Audience badges */
  .audience-badges {
    gap: var(--space-sm);
  }

  .audience-badge {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-md);
  }
}

/* --- Tablets (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-3, .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4, .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: var(--text-4xl);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    max-width: 400px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-md);
    transition: right var(--transition);
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  }

  .nav.open {
    right: 0;
  }

  .nav-link {
    color: var(--white);
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
  }

  .header-phone {
    display: none;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .section {
    padding: var(--space-4xl) 0;
  }

  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
  }

  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Large Desktop (1280px+) --- */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* --- Print Styles --- */
@media print {
  .header, .footer, .floating-widget, .mobile-bottom-bar,
  .cta-banner, .hero::before, .nav-overlay {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    padding: 0;
    font-size: 12pt;
  }

  .hero {
    background: none;
    color: #000;
    min-height: auto;
    padding: 20px 0;
  }

  .hero h1, .hero p {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .card, .blog-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
