/* ============================================
   GOREO SOLUTIONS - Responsive Breakpoints
   ============================================ */

/* --- Tablet (768px - 1199px) --- */
@media (max-width: 1199px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .container { padding: 0 30px; }

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

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

  .hero__content h1 { font-size: 2.6rem; }
  .hero__decoration { display: none; }

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

  .process-steps {
    flex-wrap: wrap;
    gap: 25px;
  }

  .process-steps::before { display: none; }

  .process-step {
    flex: 0 0 calc(33.33% - 20px);
  }
}

/* --- Mobile (below 768px) --- */
@media (max-width: 767px) {
  :root {
    --header-height: 70px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .section { padding: 50px 0; }
  .container { padding: 0 20px; }

  /* Vanta.js mobile fallback: hide canvas, show CSS gradient */
  .hero canvas {
    display: none !important;
  }

  .hero {
    background: linear-gradient(135deg, #1C2541 0%, #0D1321 100%) !important;
  }

  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 0;
    box-shadow: -5px 0 30px rgba(13, 19, 33, 0.2);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--text-primary) !important;
    font-size: 1.05rem;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a::after { display: none; }

  .nav-links a:hover { color: var(--gold) !important; }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 15px;
    min-width: auto;
    display: none;
    border-top: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 8px 0 !important;
    font-size: 0.9rem !important;
    border-bottom: none !important;
  }

  .hamburger { display: flex; }

  /* Hero */
  .hero {
    min-height: 500px;
    padding-top: calc(var(--header-height) + 20px);
  }

  .hero__content h1 { font-size: 2rem; }
  .hero__content p { font-size: 1rem; }

  .hero__buttons {
    flex-direction: column;
    gap: 10px;
  }

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

  .hero--page { min-height: 280px; }
  .hero--page h1 { font-size: 2rem; }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-item { padding: 20px 10px; }
  .stat-item__number { font-size: 2rem; }

  .service-detail-benefits {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonial-card__inner { padding: 25px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* CTA Banner */
  .cta-banner h2 { font-size: 1.6rem; }
  .cta-banner { padding: 50px 0; }

  /* Section */
  .section-header { margin-bottom: 35px; }

  /* Process Steps */
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .process-steps::before { display: none; }

  .process-step { flex: none; width: 100%; }

  /* Timeline */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    padding: 0 0 30px 55px;
  }

  .timeline-item::after,
  .timeline-item:nth-child(even)::after {
    left: 12px;
    right: auto;
  }

  /* Blog */
  .blog-card__image { height: 160px; }

  /* Blog post layout - stack on tablet/mobile */
  .blog-post__layout {
    grid-template-columns: 1fr;
  }

  .blog-post__sidebar {
    position: static;
  }

  /* Buttons */
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .btn--lg { padding: 14px 30px; font-size: 0.95rem; }

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

  /* Industries - reset order on mobile */
  .grid-2 > [style*="order:2"],
  .grid-2 > [style*="order: 2"] {
    order: 0 !important;
  }

  /* Trust bar vertical on mobile */
  .trust-bar__inner {
    flex-direction: column;
    gap: 15px;
  }

  .trust-bar__item {
    font-size: 0.95rem;
  }

  /* Blog filters scroll */
  .blog-filter {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }
}

/* --- Methodology & Results responsive --- */
@media (max-width: 768px) {
  .methodology-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .methodology-step {
    padding: 2rem 1.5rem 1.5rem;
  }

  .result-card__metric {
    font-size: 2.5rem;
  }

  .hero__trust-line {
    font-size: 0.82rem !important;
    flex-direction: column;
    display: flex;
    gap: 6px;
    text-align: center;
  }

  .hero__trust-line span[style*="margin"] {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .methodology-steps {
    grid-template-columns: 1fr 1fr;
  }

  .methodology-step:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }
}

/* --- Small Mobile (below 480px) --- */
@media (max-width: 479px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }

  .hero__content h1 { font-size: 1.7rem; }

  .stats { grid-template-columns: 1fr; }

  .stat-item__number { font-size: 1.8rem; }

  .trust-bar__inner { gap: 25px; }
  .trust-bar__item { font-size: 1rem; }
}

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

  .hero canvas {
    display: none !important;
  }
}
