/* =============================================
   SOLVERSTOP — Responsive Styles
   ============================================= */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-row1-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-col-brand { grid-column: span 2; }
}

/* --- Tablet / Large Mobile (≤ 768px) --- */
@media (max-width: 768px) {

  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  /* Layout */
  .container { padding: 0 1.25rem; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }

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

  /* Hero */
  .hero { padding: 100px 0 56px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  /* Navbar — hide links, show hamburger */
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 1.25rem;
    overflow-y: auto;
    gap: 0;
    border-top: 1px solid #eee;
    z-index: 998;
  }
  .nav-menu.open { display: flex; }
  .nav-hamburger { display: flex; }

  .nav-item { width: 100%; }
  .nav-link {
    width: 100%;
    padding: 14px 12px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    justify-content: space-between;
  }
  .nav-link-cta {
    margin-top: 16px;
    border-radius: var(--radius);
    justify-content: center;
    border-bottom: none;
  }

  /* Dropdown mobile */
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--grey-light);
    display: none;
  }
  .dropdown.open { display: block; }
  .dropdown-item {
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  /* Footer row 1 columns */
  .footer-row1-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .footer-col-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand-desc { max-width: 100%; }

  /* Footer row 2 */
  .footer-row2-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-bottom-left { flex-direction: column; align-items: center; gap: 10px; }
  .footer-bottom-right { justify-content: center; }
  .lang-toggle-wrap { justify-content: center; }
  .footer-social { justify-content: center; }
}

/* --- Small Mobile (≤ 480px) --- */
@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
  .section-header { margin-bottom: 36px; }
  .hero { padding: 90px 0 48px; }
  .page-hero { padding: 90px 0 48px; }

  /* Tighter container on very small screens */
  .container { padding: 0 1rem; }

  /* Reduce section vertical spacing */
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .cta-strip { padding: 48px 0; }

  /* Card grid gap reduction */
  .card-grid { gap: 16px; }

  /* Buttons — full width on small phones */
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}
