/* ==========================================================================
   RACHELIS ITALIAN RESTAURANT - MOBILE STYLES
   Comprehensive mobile optimization for phones and tablets
   ========================================================================== */

/* Mobile-First Base Styles */
@media (max-width: 768px) {
  
  /* ==========================================================================
     GLOBAL MOBILE ADJUSTMENTS
     ========================================================================== */
  
  body {
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
  }
  
  .container {
    padding: 0 16px;
    max-width: 100%;
  }
  
  /* ==========================================================================
     HEADER & NAVIGATION
     ========================================================================== */
  
  .header {
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(10px);
  }
  
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: relative;
  }
  
  .logo {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .logo img {
    width: 32px;
    height: 32px;
  }
  
  /* Hamburger menu visible on mobile - positioned on right */
  .hamburger-btn {
    display: flex;
    order: 2;
  }
  
  .nav .chip {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  /* ==========================================================================
     HERO SECTION
     ========================================================================== */
  
  .hero {
    min-height: 60vh;
    padding: 40px 0;
  }
  
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 24px;
    text-align: center;
    padding: 20px 0;
  }
  
  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero .lead {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 200px;
    justify-content: center;
  }
  
  .food-carousel {
    width: 280px !important;
    height: 100px !important;
    margin: 0 auto;
  }

  /* ==========================================================================
     COLORADO HERO MOBILE STYLES
     ========================================================================== */
  
  .colorado-hero {
    min-height: 100svh;
    height: auto;
  }
  
  .colorado-hero .hero-content {
    padding: 20px;
    text-align: center;
  }
  
  .colorado-hero .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  .colorado-hero .hero-content h1 .accent-text {
    font-size: 0.7em;
    letter-spacing: 2px;
  }
  
  .colorado-hero .hero-content .tagline {
    font-size: 1rem !important;
    margin-bottom: 24px;
  }
  
  .colorado-hero .hero-logo {
    width: 100px !important;
    height: 100px !important;
  }
  
  .colorado-hero .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .colorado-hero .hero-cta .btn-primary,
  .colorado-hero .hero-cta .btn-secondary {
    width: 100%;
    max-width: 260px;
    padding: 14px 24px;
    font-size: 1rem;
    justify-content: center;
  }
  
  .colorado-hero .hero-info {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .colorado-hero .hero-info .info-chip {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .colorado-hero .scroll-indicator {
    bottom: 20px;
  }
  
  .colorado-hero .slideshow-dots {
    bottom: 60px;
  }
  
  .colorado-hero .floating-element {
    display: none;
  }
  
  /* Section Hero Mobile */
  .section-hero {
    height: 35vh;
    min-height: 220px;
  }
  
  .section-hero .hero-content h2 {
    font-size: 1.6rem !important;
  }
  
  .section-hero .hero-content p {
    font-size: 0.95rem !important;
  }

  /* ==========================================================================
     CHEF'S SPECIALS
     ========================================================================== */
  
  #chef-specials {
    padding: 40px 0;
  }
  
  #chef-specials h2 {
    font-size: 1.8rem !important;
    margin-bottom: 16px;
  }
  
  #specials-desc {
    font-size: 1rem !important;
    margin-bottom: 24px;
  }
  
  .special-card {
    flex-direction: column !important;
    text-align: center;
    padding: 12px !important;
    margin-bottom: 16px;
    border-radius: 12px;
    gap: 10px;
  }
  
  .special-card img {
    width: 100% !important;
    max-width: 220px !important;
    height: 140px !important;
    margin: 0 auto 10px auto !important;
  }
  
  .special-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  
  .special-card .desc {
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  
  .special-card .price {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .special-card .btn {
    width: 100%;
    max-width: 160px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .discount-badge {
    top: 12px !important;
    right: 12px !important;
    font-size: 0.75rem !important;
    padding: 6px 8px !important;
  }
  
  /* ==========================================================================
     MENU SECTION
     ========================================================================== */
  
  #menu {
    padding: 40px 0;
  }
  
  #menu h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .category-tabs {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
  }
  
  .category-tabs .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  
  .menu-search {
    margin-bottom: 24px;
  }
  
  .menu-search input {
    width: 100%;
    font-size: 1rem;
    padding: 12px 16px;
  }
  
  .menu-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .menu-item {
    padding: 16px;
    border-radius: 12px;
  }
  
  .menu-item img {
    width: 100px !important;
    height: 80px !important;
  }
  
  .menu-item h3 {
    font-size: 1.1rem;
  }
  
  .menu-item .desc {
    font-size: 0.9rem;
  }
  
  .menu-item .price {
    font-size: 1.1rem;
  }
  
  .menu-item .btn {
    width: 100%;
    margin-top: 8px;
  }
  
  /* ==========================================================================
     ABOUT SECTION
     ========================================================================== */
  
  #about {
    padding: 40px 0;
  }
  
  #about .section-title {
    font-size: 1.8rem !important;
    margin-bottom: 24px !important;
  }
  
  .grid.cols-3 {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  
  .card {
    padding: 20px;
    text-align: center;
  }
  
  .card img {
    width: 100% !important;
    max-width: 250px !important;
    height: 160px !important;
    margin: 0 auto 16px auto;
  }
  
  .card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .card p {
    font-size: 0.9rem;
  }
  
  /* ==========================================================================
     CART PANEL
     ========================================================================== */
  
  .cart-panel {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .cart-header {
    padding: 20px 0 16px 0;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
  }
  
  .cart-header h3 {
    font-size: 1.3rem;
  }
  
  .cart-close {
    font-size: 1.5rem;
    padding: 8px;
  }
  
  .cart-body {
    padding: 16px 0;
  }
  
  .cart-footer {
    padding: 20px 0;
    border-top: 1px solid #444;
  }
  
  .cart-footer .btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
  }
  
  .payment-options {
    margin: 16px 0 !important;
  }
  
  .payment-options div {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .payment-options .btn {
    width: 100% !important;
    min-width: auto !important;
    flex: none !important;
    font-size: 0.9rem !important;
  }
  
  /* ==========================================================================
     FOOTER
     ========================================================================== */
  
  footer {
    padding: 30px 0;
    text-align: center;
  }
  
  footer p {
    font-size: 0.9rem;
  }
  
}

/* ==========================================================================
   EXTRA SMALL PHONES (iPhone SE, etc.)
   ========================================================================== */

@media (max-width: 480px) {
  
  .hero h1 {
    font-size: 1.7rem !important;
  }
  
  .hero .lead {
    font-size: 1rem;
  }
  
  .food-carousel {
    width: 250px !important;
    height: 90px !important;
  }
  
  .special-card {
    padding: 10px !important;
    gap: 8px !important;
  }
  
  .special-card img {
    max-width: 180px !important;
    height: 110px !important;
  }
  
  .special-card h3 {
    font-size: 1rem !important;
  }
  
  .special-card .desc {
    font-size: 0.8rem !important;
  }
  
  .special-card .btn {
    max-width: 140px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
  }
  
  .nav .chip {
    font-size: 0.85rem;
    padding: 5px 10px;
  }
  
  .container {
    padding: 0 12px;
  }
  
}

/* ==========================================================================
   LANDSCAPE ORIENTATION FIXES
   ========================================================================== */

@media (max-width: 768px) and (orientation: landscape) {
  
  .hero {
    min-height: 50vh;
    padding: 30px 0;
  }
  
  .hero h1 {
    font-size: 1.6rem !important;
  }
  
  #chef-specials {
    padding: 30px 0;
  }
  
  .special-card {
    flex-direction: row !important;
    text-align: left;
  }
  
  .special-card img {
    width: 160px !important;
    height: 120px !important;
    margin: 0 16px 0 0 !important;
  }
  
}

/* ==========================================================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ========================================================================== */

@media (max-width: 768px) {
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  /* Better spacing for fingers */
  .category-tabs .btn {
    margin: 4px;
  }
  
  /* Prevent zoom on inputs */
  input[type="text"],
  input[type="email"],
  input[type="search"],
  textarea {
    font-size: 16px !important;
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
}