/* ============================================
   Capital Metals - Responsive Styles
   Mobile-First Approach
   ============================================ */

/* ===== Tablet (768px - 1024px) ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .step-arrow {
    transform: rotate(90deg);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Mobile (< 768px) ===== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
  }
  
  body {
    overscroll-behavior: none;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Header */
  .header-content {
    padding: 0.75rem 1rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .logo svg {
    width: 40px;
    height: 40px;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid var(--light);
    font-size: 1rem;
  }
  
  .nav-dropdown .dropdown-menu {
    position: static;
    display: none;
    background: var(--light);
    box-shadow: none;
    padding-left: 1rem;
  }
  
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .lang-switcher {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .btn-primary {
    width: 100%;
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }
  
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .badge-item {
    padding: 0.75rem;
  }
  
  .badge-item i {
    font-size: 1.5rem;
  }
  
  .badge-item span {
    font-size: 0.8rem;
  }
  
  .floating-card {
    padding: 1rem;
  }
  
  .scan-preview {
    height: 200px;
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.25rem;
  }
  
  .stat-icon {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  /* Section Headers */
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .service-title {
    font-size: 1.15rem;
  }
  
  .service-price {
    font-size: 1.35rem;
  }
  
  .service-features {
    font-size: 0.9rem;
  }
  
  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .feature-title {
    font-size: 1.1rem;
  }
  
  .feature-description {
    font-size: 0.9rem;
  }
  
  /* CTA */
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-subtitle {
    font-size: 0.95rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Typography */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.95rem; }
  
  /* Performance */
  * {
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== Small Mobile (< 480px) ===== */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .trust-badges {
    grid-template-columns: 1fr;
  }
  
  .badge-item {
    padding: 0.6rem;
  }
  
  .watermark {
    font-size: 3rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
}

/* ===== Touch Devices ===== */
@media (hover: none) and (pointer: coarse) {
  .btn:active {
    transform: scale(0.96);
  }
  
  .service-card:active,
  .feature-card:active,
  .testimonial-card:active {
    transform: scale(0.98);
  }
  
  .nav-link:active {
    background: var(--light);
  }
  
  /* Remove hover effects on touch devices */
  .btn:hover::before {
    display: none;
  }
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .mobile-menu-toggle,
  .scroll-indicator,
  .cta-section,
  .footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero {
    min-height: auto;
    background: white;
    color: black;
  }
  
  .watermark {
    opacity: 0.05;
  }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
  /* Can add dark mode styles here if needed */
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }
  
  .service-card,
  .feature-card {
    border: 2px solid var(--primary);
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
