/**
 * Veewom Online Measurement Tools
 * Responsive Styles & Print Optimization
 *
 * @package Veewom\RulerOnline
 */

/* Tablets and below (< 1024px) */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-illustration {
    order: -1;
    max-width: 440px;
    margin: 0 auto;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    gap: 0.5rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-cta-btn {
    text-align: center;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2.15rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .tool-container {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .content-section {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .toast-notice {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

/* Very Small Mobile (< 480px) */
@media (max-width: 479px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }

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

  .tool-page-title {
    font-size: 1.8rem;
  }

  .ad-unit-wrapper {
    margin: 1.5rem auto;
    padding: 0.75rem 0.35rem;
  }

  .ad-unit-300x250,
  .ad-unit-300x600 {
    max-width: 100%;
  }
}

/* Print Stylesheet (True 100% Scale for Printable Rulers) */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #fff !important;
    font-size: 12pt;
    line-height: 1.4;
  }

  .site-header,
  .site-footer,
  .breadcrumb-section,
  .related-tools-section,
  .hero-actions,
  .btn,
  .faq-list,
  .ad-unit-wrapper,
  .adsbygoogle,
  .no-print {
    display: none !important;
  }

  .tool-container,
  .content-section {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }

  @page {
    margin: 0.5in;
    size: letter portrait;
  }

  .print-only {
    display: block !important;
  }
}
