/* =============================================
   FAROOK CATERING - RESPONSIVE STYLES
   Mobile-First Breakpoints
   ============================================= */

/* =============================================
   EXTRA SMALL DEVICES (Phones, < 576px)
   ============================================= */

@media (max-width: 575.98px) {
  /* Typography */
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  
  /* Hero */
  .hero {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-base);
  }
  
  .hero-tagline {
    font-size: var(--text-sm);
    letter-spacing: 2px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  /* Page Header */
  .page-title {
    font-size: var(--text-3xl);
  }
  
  /* Section */
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .section-title {
    font-size: var(--text-2xl);
  }
  
  /* Stats */
  .stats {
    flex-direction: column;
    gap: var(--space-xl);
  }
  
  .stat-number {
    font-size: var(--text-3xl);
  }
  
  /* Grid */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Filters */
  .filter-bar {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-select {
    width: 100%;
  }
  
  .filter-buttons {
    flex-wrap: wrap;
  }
  
  .filter-reset {
    margin-left: 0;
    width: 100%;
  }
  
  /* WhatsApp Float */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  
  .back-to-top {
    bottom: 85px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  
  /* Package Card */
  .package-actions {
    flex-direction: column;
  }
}

/* =============================================
   SMALL DEVICES (Landscape Phones, >= 576px)
   ============================================= */

@media (min-width: 576px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   MEDIUM DEVICES (Tablets, >= 768px)
   ============================================= */

@media (min-width: 768px) {
  /* Hero */
  .hero-title {
    font-size: var(--text-5xl);
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  /* Stats */
  .stats {
    flex-direction: row;
  }
  
  /* Grid */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
  
  .footer-social {
    justify-content: flex-start;
  }
  
  /* Filters */
  .filter-bar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .filter-group {
    width: auto;
  }
  
  .filter-select {
    width: auto;
    min-width: 180px;
  }
}

/* =============================================
   LARGE DEVICES (Desktops, >= 992px)
   ============================================= */

@media (min-width: 992px) {
  /* Navigation - Show full menu */
  .navbar-links {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
  
  /* Hero */
  .hero {
    min-height: 100vh;
  }
  
  .hero-title {
    font-size: var(--text-6xl);
  }
  
  /* Grid */
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* =============================================
   EXTRA LARGE DEVICES (Large Desktops, >= 1200px)
   ============================================= */

@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-xl);
  }
  
  /* Grid */
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Package Card */
  .package-card .package-items-list {
    max-height: none;
  }
}

/* =============================================
   EXTRA EXTRA LARGE DEVICES (>= 1400px)
   ============================================= */

@media (min-width: 1400px) {
  html {
    font-size: 18px;
  }
}

/* =============================================
   MOBILE NAVIGATION
   ============================================= */

@media (max-width: 991.98px) {
  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
  }
  
  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .navbar-link {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
  }
  
  .navbar-link::after {
    display: none;
  }
  
  .navbar-actions {
    margin-top: var(--space-md);
    width: 100%;
    justify-content: center;
  }
  
  .menu-toggle {
    display: flex;
  }
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
  .navbar,
  .footer,
  .whatsapp-float,
  .back-to-top,
  .btn,
  .filter-bar {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  .hero {
    min-height: auto;
    padding: 20pt;
  }
  
  .hero::before {
    display: none;
  }
  
  .package-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* =============================================
   REDUCED MOTION
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* =============================================
   HIGH CONTRAST MODE
   ============================================= */

@media (prefers-contrast: high) {
  :root {
    --brand-red: #B80000;
    --text-secondary: #333333;
    --border-color: #000000;
  }
  
  .btn {
    border-width: 3px;
  }
  
  .card,
  .package-card,
  .service-card {
    border: 2px solid var(--text-primary);
  }
}
