/* ==========================================================================
   SWAN GROUP | سوان قروب - Responsive Stylesheet
   Mobile First Adjustments & Media Queries
   ========================================================================== */

/* Tablets & Small Desktops (<= 992px) */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }

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

  .navbar {
    padding: 14px 0;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 73px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 73px);
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 25px;
    gap: 20px;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.05rem;
    width: 100%;
    padding: 8px 0;
  }

  .hero-section {
    min-height: 75vh;
    padding: 40px 0;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .companies-grid,
  .offers-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

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

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

  .form-container {
    padding: 25px 18px;
  }

  .toast-container {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }

  .toast {
    min-width: 100%;
    max-width: 100%;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
    line-height: 1.35;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .brand-info h1, .brand-info .brand-title {
    font-size: 1.1rem;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .btn {
    padding: 11px 18px;
    font-size: 0.88rem;
    min-height: 44px; /* Optimal tap target */
  }

  .company-card {
    padding: 20px 16px;
  }

  .company-card-image {
    height: 180px;
  }

  .footer-company-contact-group {
    padding-bottom: 12px;
  }
}

/* Luxury Aesthetics & Mobile Polish */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on small screens */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 16px;
  }

  /* Ribbon Strip on Mobile */
  .coming-soon-ribbon-strip {
    font-size: 0.78rem;
    padding: 6px 12px;
    letter-spacing: 0.5px;
  }

  /* Mobile Navbar Drawer Glassmorphism */
  .nav-links {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(23, 19, 16, 0.96);
    border-left: 1px solid rgba(197, 160, 89, 0.3);
  }

  /* Admin Cards & Responsive Data */
  .stat-card {
    padding: 18px 16px;
  }

  #db-status-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px !important;
  }

  #db-ping-indicator {
    align-self: stretch;
    text-align: center !important;
  }
}
