/* ===========================
   Responsive Design - Mobile Optimization
   Saffron Theme - Manjal Catering
   =========================== */

/* Tablet Devices (768px and below) */
@media screen and (max-width: 768px) {
  /* Navigation */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: linear-gradient(135deg, #0f766e, #085d57);
    width: 100%;
    text-align: center;
    transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.15);
    padding: 20px 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    padding: 15px;
    width: 100%;
    display: block;
    margin: 5px 0;
  }

  /* Hero Section */
  .hero {
    height: 70vh;
    background-attachment: scroll;
  }

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

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

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

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
    background: transparent !important;
  }

  h3 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2rem;
    padding-left: 15px;
    padding-right: 15px;
    background: transparent !important;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  /* Grid Layouts */
  .services-grid,
  .features-grid,
  .testimonials-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

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

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

  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  /* Modal */
  .modal-content {
    margin: 10% auto;
    padding: 30px 20px;
    width: 95%;
    border-radius: 15px;
  }

  .modal-content h2 {
    font-size: 1.5rem;
    background: transparent !important;
    color: var(--text-dark);
  }

  /* Menu Category */
 

  /* Service Cards */
  .service-card {
    padding: 30px 20px;
  }

  /* Contact Form */
  .contact-form-container {
    padding: 30px 20px;
  }

  /* About List */
  .about-list li {
    padding: 10px 0 10px 25px;
  }
}

/* Mobile Devices (480px and below) */
@media screen and (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 15px;
  }

  /* Logo */
  .logo h1 {
    font-size: 1.1rem;
    letter-spacing: 0px;
  }

  /* Hero Section */
  .hero {
    height: 60vh;
  }

  .hero-content {
    padding: 10px;
  }

  .hero-title {
    font-size: 1.7rem;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  /* Typography */
  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.5rem;
    background: transparent !important;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.7rem;
    padding-left: 10px;
    padding-right: 10px;
    background: transparent !important;
    margin-bottom: 25px;
  }

  .section-description {
    font-size: 0.95rem;
  }

  .page-header {
    padding: 80px 0 50px;
    background-attachment: scroll;
    min-height: 280px;
  }

  .page-header h1 {
    font-size: 1.7rem;
    letter-spacing: 0;
  }

  .page-header p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .breadcrumb {
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  .breadcrumb-item {
    font-size: 0.85rem;
  }

  .breadcrumb-item a {
    padding: 3px 6px;
  }

  /* Buttons */
  .btn-primary {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  /* Service Cards */
  .service-card {
    padding: 25px 15px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  /* Feature Cards */
  .feature {
    padding: 25px 15px;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.3rem;
  }

  .feature h4 {
    font-size: 1rem;
  }

  .feature p {
    font-size: 0.9rem;
  }

  /* Testimonial Cards */
  .testimonial-card {
    padding: 20px;
  }

  .testimonial-card .rating {
    font-size: 1rem;
  }

  .testimonial-card p {
    font-size: 0.9rem;
  }

  /* FAQ Items */
  .faq-item {
    padding: 20px;
  }

  .faq-item h4 {
    font-size: 0.95rem;
  }

  .faq-item p {
    font-size: 0.9rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Menu Items */
  .menu-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .price {
    font-size: 1rem;
  }

  .menu-title {
    font-size: 1.3rem;
  }

  /* Packages */
  .package-card {
    padding: 25px 15px;
  }

  .package-card h3 {
    font-size: 1.3rem;
  }

  .package-price {
    font-size: 1.5rem;
  }

  /* Contact Items */
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .contact-icon {
    margin: 0 auto;
  }

  /* Modal */
  .modal-content {
    padding: 20px 15px;
    width: 95%;
  }

  .modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .close {
    font-size: 24px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 16px; /* Prevents auto-zoom on iOS */
  }

  .form-group label {
    font-size: 0.95rem;
  }

  .btn-submit {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Footer */
  .footer {
    padding: 35px 0 15px;
    margin-top: 60px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 20px;
  }

  .footer-section h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .footer-section p {
    font-size: 0.88rem;
    margin-bottom: 10px;
    line-height: 1.6;
  }

  .footer-section ul li {
    margin-bottom: 8px;
  }

  .footer-section ul li a {
    font-size: 0.88rem;
  }

  .social-links {
    gap: 8px;
    margin-top: 10px;
  }

  .social-links a {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .service-areas {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .footer-bottom {
    font-size: 0.82rem;
    padding: 15px 15px 12px;
    margin-top: 10px;
  }

  .footer-bottom p {
    line-height: 1.5;
  }

  .footer-bottom a {
    padding: 0 3px;
    display: inline-block;
  }

  /* About List */
  .about-list li {
    padding: 8px 0 8px 25px;
    font-size: 0.95rem;
  }

  .about-text {
    font-size: 0.95rem;
  }

  .about-text h3 {
    font-size: 1.1rem;
    margin-top: 20px;
  }

  /* Spacing */
  .about,
  .services,
  .why-choose,
  .testimonials,
  .faq {
    padding: 50px 0;
  }
}

/* Large Desktop (1400px and above) */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

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

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

  .hero-description {
    font-size: 1.2rem;
  }

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

  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Landscape Orientation for Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 100vh;
  }

  .page-header {
    padding: 80px 0 40px;
  }

  .navbar {
    padding: 10px 0;
  }

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

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

/* Menu Sidebar Responsive (scoped to old menu-wrapper to avoid hiding new full-menu sidebar) */
@media screen and (max-width: 768px) {
  .menu-wrapper {
    flex-direction: column;
  }

  .menu-wrapper .menu-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    margin-bottom: 0;
    z-index: 999;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .menu-wrapper .menu-sidebar.active {
    transform: translateX(0);
  }

  .menu-wrapper .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

  .menu-wrapper .sidebar-close {
    background: var(--manjal-orange);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  }

  .menu-wrapper .menu-toggle-btn {
    position: fixed;
    top: 85px;
    left: 15px;
    background: var(--primary-gradient);
    color: rgb(216, 192, 31);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 998;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .menu-wrapper .menu-toggle-btn::before {
    content: "☰";
    font-size: 1.1rem;
  }

  .menu-wrapper .menu-content {
    margin-top: 60px;
  }

  .menu-wrapper .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .menu-wrapper .sidebar-link {
    text-align: left;
    font-size: 0.9rem;
    padding: 12px 15px;
  }

  .menu-wrapper .sidebar-link:hover {
    padding-left: 20px;
  }
}

/* Extra Small Mobile (480px and below) - Additional Footer Optimizations */
@media screen and (max-width: 480px) {
  .footer {
    padding: 30px 0 12px;
    margin-top: 50px;
  }

  .footer-content {
    gap: 20px;
    margin-bottom: 15px;
  }

  .footer-section {
    padding: 0 5px;
  }

  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .footer-section p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .footer-section ul li {
    margin-bottom: 7px;
  }

  .footer-section ul li a {
    font-size: 0.85rem;
    padding-left: 12px;
  }

  .social-links {
    gap: 6px;
    margin-top: 8px;
  }

  .social-links a {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .service-areas {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .footer-bottom {
    font-size: 0.78rem;
    padding: 12px 10px 10px;
    margin-top: 8px;
  }

  .footer-bottom p {
    line-height: 1.4;
  }

  .footer-bottom a {
    padding: 0 2px;
  }

  .container {
    padding: 0 15px;
  }

  .menu-wrapper .menu-sidebar {
    padding: 20px 15px;
  }

  .menu-wrapper .sidebar-title {
    font-size: 1.1rem;
  }

  .menu-wrapper .menu-toggle-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .menu-toggle,
  .btn-primary,
  .btn-submit,
  .btn-book,
  .modal,
  .filter-btn,
  .menu-sidebar {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  .container {
    max-width: 100%;
  }
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #111827;
    color: #f3f4f6;
  }

  .about {
    background: white;
  }

  .about-text {
    color: #374151;
  }
}
