/* Tablet landscape & small desktops */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 44px;
  }

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

  .process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

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

/* Tablet portrait & large phones */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #00b4d8 0%, #0096b4 50%, #007c9a 100%);
    flex-direction: column;
    padding: 80px 24px 30px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right 0.35s ease;
    z-index: 999;
    gap: 0;
    align-items: flex-start;
    overflow-y: auto;
  }

  .nav-left, .nav-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-left > a,
  .dropdown-trigger {
    font-size: 16px;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    color: #fff;
  }
  .nav-left > a:visited {
    color: #fff;
  }
  .nav-left > a::after {
    display: none;
  }
  .lang-trigger {
    font-size: 22px;
    padding: 8px;
    width: auto;
    border-bottom: none;
    margin: 8px 0;
  }

  .dropdown {
    width: 100%;
  }
  .dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .dropdown-trigger::after {
    display: inline-block;
    content: '▾';
    font-size: 12px;
    transition: transform 0.2s;
  }
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    position: static;
    max-height: 400px;
  }
  .dropdown:hover .dropdown-trigger::after,
  .dropdown:focus-within .dropdown-trigger::after {
    transform: rotate(180deg);
  }
  .dropdown-menu {
    position: static;
    background: rgba(255,255,255,0.08);
    box-shadow: none;
    padding: 0 0 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    min-width: auto;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s, visibility 0.2s, max-height 0.3s;
    pointer-events: auto;
  }
  .dropdown-menu a {
    padding: 10px 16px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    border-bottom: none;
  }
  .dropdown-menu a:visited {
    color: rgba(255,255,255,0.85);
  }
  .dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
  }
  .dropdown-lang .dropdown-menu {
    min-width: auto;
  }

  .nav-actions {
    margin-top: 16px;
    width: 100%;
    flex-direction: column;
  }

  .nav-actions .btn {
    width: 100%;
    text-align: center;
  }
  .nav-actions .btn-accent:visited,
  .nav-actions .btn-outline-light:visited {
    color: #fff;
  }

  #nav-toggle:checked ~ .nav-menu {
    right: 0;
  }

  #nav-toggle:checked ~ .nav-overlay {
    display: block;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
  }

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

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

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

  .hero {
    padding: 110px 0 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
    padding: 0 10px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 360px;
  }

  .process-step {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 0;
  }

  .step-number {
    margin: 0;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .process-step h4 {
    font-size: 15px;
  }

  .process-step p {
    font-size: 13px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom a {
    margin: 0 10px;
  }

  .page-header {
    padding: 30px 20px 40px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .cta-banner {
    padding: 50px 0;
  }

  .cta-banner h2 {
    font-size: 28px;
  }

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

  .admin-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100% !important;
    min-height: auto !important;
    position: relative !important;
  }

  .content-area {
    margin-left: 0 !important;
    padding: 20px !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .btn-lg {
    width: 100%;
    padding: 14px 24px;
  }

  .btn {
    width: 100%;
  }

  .nav-actions .btn {
    padding: 10px 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .feature-card {
    padding: 24px 16px;
  }

  .trust-card {
    padding: 24px 16px;
  }

  .modal {
    padding: 24px 20px;
  }

  .header-inner {
    padding: 0 15px;
  }

  .payment-chip {
    font-size: 12px;
    padding: 6px 14px;
  }

  .page-header {
    padding: 25px 15px 35px;
  }
}
