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

/* --- Large Desktop (≥ 1600px) — breathe on ultra-wide --- */
@media (min-width: 1600px) {
  :root {
    --container-max: 1600px;
  }
  .section-header p { max-width: 780px; }
  .hero-content { max-width: 860px; }
  .footer-brand-desc { max-width: 380px; }
}

/* --- Small Desktop / Large Laptop (≤ 1280px) --- */
@media (max-width: 1280px) {
  .footer-row1-inner { grid-template-columns: 1.4fr 1fr 1.2fr 0.8fr; }
  .card-grid-2 { gap: clamp(14px, 2vw, 24px); }
}

/* --- Tablet + Navbar Mobile (≤ 1024px) — hamburger menu --- */
@media (max-width: 1024px) {

  /* Grid adjustments */
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-row1-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col-brand { grid-column: span 2; }

  /* 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 var(--grey-border);
    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 var(--grey-border);
    justify-content: space-between;
  }
  .nav-link-cta {
    margin-top: 16px;
    border-radius: var(--radius);
    justify-content: center;
    border-bottom: none;
  }
  .nav-item-lang {
    margin-left: 0 !important;
    margin-top: 12px;
  }
  .nav-link-lang {
    border: none !important;
    padding: 14px 12px !important;
    font-size: 1rem !important;
    border-bottom: 1px solid var(--grey-border) !important;
    border-radius: 0 !important;
  }
  .dropdown-lang {
    left: 0 !important;
    right: auto;
  }

  /* 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 var(--grey-border);
    padding: 12px 16px;
    font-size: 0.92rem;
    color: var(--black);
  }
  .dropdown-item:hover {
    background: var(--gold-light);
    color: var(--gold);
  }
  .dropdown-item.dropdown-item-overview {
    background: var(--grey-light);
    color: var(--black);
    font-weight: 700;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--grey-border);
  }
  .dropdown-item.dropdown-item-overview:hover {
    color: var(--gold);
    background: var(--gold-light);
  }
  .dropdown-divider {
    display: none;
  }
}

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

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

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

  /* 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; grid-column: span 1; }
  .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) {
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }

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