/* FOODY MOBILE CSS - Responsive Override for Mobile Devices */

/* ===== TABLET & MOBILE STYLES - HAMBURGER MENU (1200px and below) ===== */
@media (max-width: 1200px) {
    /* ===== NAVIGATION - HAMBURGER MENU ===== */
    #mainNavbar {
        padding: 15px 0 !important;
        background: #000 !important;
    }

    body.home-page #mainNavbar .navbar-logo {
        content: url('../images/foodylogodrk.png') !important;
    }

    .navbar-logo {
        content: url('../images/foodylogodrk.png') !important;
    }

    .navbar-brand .brand-title {
        font-size: 1.5rem !important;
        color: #fff !important;
    }

    /* Hamburger Button - Enhanced Styling */
    .navbar-toggler {
        display: block !important;
        border: 2px solid #fff !important;
        padding: 10px 12px !important;
        background: transparent !important;
        transition: all 0.3s ease !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-radius: 5px !important;
        cursor: pointer !important;
    }

    .navbar-toggler:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: scale(1.05) !important;
        border-color: #fff !important;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.3) !important;
        outline: none !important;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 22px !important;
        height: 22px !important;
    }

    /* Navbar Collapse - Smooth Animation */
    .navbar-collapse {
        background: #0a0a0a !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        z-index: 1050 !important;
        padding: 0 25px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Smooth Opening Animation */
    .navbar-collapse.show {
        height: auto !important;
        max-height: none !important;
        padding: 15px 25px 25px 25px !important;
        opacity: 1 !important;
        visibility: visible !important;
        animation: slideDown 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
    }

    .navbar-collapse.collapsing {
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        transition: height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Navbar Items - Enhanced Styling */
    .navbar-nav {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .navbar-nav .nav-link {
        padding: 14px 10px !important;
        margin: 0 !important;
        width: 100% !important;
        text-align: left !important;
        color: rgba(255, 255, 255, 0.7) !important;
        transition: color 0.3s ease, padding-left 0.3s ease !important;
        position: relative;
        font-size: 1rem !important;
        font-weight: 500 !important;
        letter-spacing: 1px !important;
        display: block !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: transparent !important;
    }

    /* Hover Effect - Only Text Color Changes */
    .navbar-nav .nav-link:hover {
        color: #fff !important;
        padding-left: 20px !important;
        background: transparent !important;
    }

    /* Active State - Show line only on current page */
    .navbar-nav .nav-link.active {
        color: #fff !important;
        background: transparent !important;
        font-weight: 600 !important;
    }

    .navbar-nav .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 10px;
        right: 10px;
        height: 2px;
        background: #fff;
        border-radius: 1px;
    }

    .navbar-nav .nav-item {
        width: 100% !important;
        display: block !important;
        border-bottom: 1px solid #fff !important;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none !important;
    }
}

/* ===== MOBILE STYLES - ADDITIONAL (600px and below) ===== */
@media (max-width: 600px) {
    /* ===== GLOBAL MOBILE STYLES ===== */
    html {
        font-size: 14px;
    }

    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    /* Typography Scale */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    p { font-size: 1rem; line-height: 1.5; }

    /* Container & Spacing */
    .container,
    .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    section {
        padding: 40px 0 !important;
    }

    /* Touch Optimization */
    button,
    a.btn,
    input[type="submit"],
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }

    input,
    textarea,
    select {
        font-size: 16px !important;
        padding: 12px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* ===== HOME PAGE ===== */
    
    .hero-section {
        min-height: 80vh !important;
        padding: 80px 0 40px !important;
        position: relative;
    }

    .hero-image-top-right {
        position: absolute !important;
        top: -100px !important;
        right: -150px !important;
        display: block !important;
        z-index: 1 !important;
    }

    .hero-image-circle {
        width: 350px !important;
        height: 400px !important;
    }

    .hero-content {
        padding-left: 20px !important;
        padding-top: 20px !important;
        text-align: left !important;
        position: relative;
        z-index: 2;
    }

    .hero-line {
        margin-left: 0 !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
        max-width: 100% !important;
        text-align: left !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
        max-width: 100% !important;
        text-align: left !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .btn-tentang {
        padding: 15px 40px !important;
        display: inline-block !important;
        width: auto !important;
    }

    .tentang-section {
        padding: 60px 0 !important;
    }

    .section-title {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }

    .tentang-description {
        font-size: 1rem !important;
    }

    /* Menu Section - HORIZONTAL SCROLL */
    .menu-section {
        padding: 60px 0 !important;
        overflow: visible !important;
    }

    .menu-section .container {
        max-width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .menu-row {
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding: 10px 20px 30px 20px !important;
        margin: 0 !important;
        scroll-padding: 0 20px !important;
    }

    .menu-row::-webkit-scrollbar {
        display: none !important;
    }

    .menu-col {
        flex: 0 0 calc(100% - 80px) !important;
        max-width: calc(100% - 80px) !important;
        scroll-snap-align: center !important;
        display: block !important;
    }

    .menu-card {
        height: auto !important;
        min-height: 320px !important;
        margin-top: 80px !important;
        padding: 100px 20px 30px !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    }

    .menu-image-container {
        width: 160px !important;
        height: 160px !important;
        top: -80px !important;
    }

    .menu-title {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
    }

    .menu-description {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    .berita-section {
        padding: 60px 0 !important;
    }

    .news-row {
        margin: 0 !important;
    }

    .news-col {
        padding: 0 5px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .news-col:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .news-col:last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .news-col:last-child .news-row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 -5px !important;
    }

    .news-col:last-child .news-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 5px !important;
    }

    .news-card.large-card {
        height: auto !important;
        min-height: auto !important;
    }

    .news-card.small-card {
        height: auto !important;
        min-height: auto !important;
    }

    .news-card.large-card .news-image {
        height: 220px !important;
    }

    .news-card.small-card .news-image {
        height: 120px !important;
    }

    .news-content {
        padding: 15px !important;
    }

    .news-title {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .news-excerpt {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    .btn-lihat-lebih {
        padding: 12px 30px !important;
        font-size: 0.9rem !important;
    }
}

/* ===== MOBILE STYLES - 500px and below ===== */
@media (max-width: 500px) {
    /* Other News Section - 2 Column Layout */
    .news-col:last-child .news-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 5px !important;
        margin-bottom: 10px !important;
    }

    .news-card.small-card {
        height: auto !important;
        min-height: 200px !important;
    }

    .news-card.small-card .news-image {
        height: 100px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .news-card.small-card .news-content {
        padding: 10px !important;
    }

    .news-card.small-card .news-title {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }

    .news-card.small-card .news-excerpt {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .other-news-section .news-row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 -5px !important;
    }

    .other-news-section .news-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 5px !important;
        margin-bottom: 10px !important;
    }

    .galeri-section .gallery-row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 -5px !important;
    }

    .galeri-section .gallery-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 5px !important;
        margin-bottom: 10px !important;
    }

    .gallery-image {
        height: 140px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .product-carousel-wrapper {
        height: 140px !important;
    }

    .product-carousel-wrapper img {
        height: 140px !important;
        object-fit: cover !important;
    }

    .product-grid-section .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 -5px !important;
    }

    .product-grid-section .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 5px !important;
        margin-bottom: 10px !important;
    }

    .product-card {
        height: 150px !important;
        width: 100% !important;
    }

    .galeri-section {
        padding: 60px 0 !important;
    }

    .gallery-row {
        margin: 0 -5px !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .gallery-col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 5px !important;
        margin-bottom: 10px !important;
    }

    .gallery-image {
        height: 140px !important;
    }

    .btn-lihat-lebih {
        padding: 15px 40px !important;
        width: 100%;
        max-width: 300px;
    }

    .about-header {
        padding: 150px 0 !important;
    }

    .about-header-title {
        font-size: 2.5rem !important;
    }

    .about-tasty-food-section,
    .about-visi-section,
    .about-misi-section {
        padding: 60px 0 !important;
    }

    .about-section-title {
        font-size: 1.5rem !important;
    }

    .about-paragraph {
        font-size: 0.9rem !important;
    }

    .about-images-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .about-img {
        height: 250px !important;
    }

    .featured-news-section {
        padding: 60px 0 !important;
    }

    .featured-image img {
        height: 300px !important;
    }

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

    .featured-content h2 {
        font-size: 1.5rem !important;
    }

    .other-news-section {
        padding: 40px 0 !important;
    }

    .other-news-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 30px !important;
    }

    .product-carousel-section {
        padding: 40px 0 !important;
    }

    .product-carousel-container {
        padding: 0 20px !important;
    }

    .product-carousel-wrapper {
        height: 200px !important;
        border-radius: 15px !important;
    }

    .carousel-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }

    .carousel-nav.prev {
        left: 5px !important;
    }

    .carousel-nav.next {
        right: 5px !important;
    }

    .product-grid-section {
        padding: 40px 0 !important;
    }

    .product-grid-section .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin: 0 -5px !important;
    }

    .product-grid-section .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 5px !important;
        margin-bottom: 10px !important;
    }

    .product-card {
        height: 120px !important;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 40px 0 !important;
    }

    .contact-form-title {
        font-size: 1.5rem !important;
    }

    .contact-form-input,
    .contact-form-textarea {
        padding: 12px !important;
    }

    .contact-info-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .contact-info-icon i {
        font-size: 24px !important;
    }

    .footer-section {
        padding: 40px 0 20px !important;
    }

    .footer-section .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .footer-section .col-md-4:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    .footer-section .col-md-2,
    .footer-section .col-md-4:not(:first-child) {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        padding: 0 10px !important;
    }

    .footer-brand-title {
        font-size: 20px !important;
    }

    .footer-description {
        font-size: 12px !important;
        max-width: 100% !important;
        margin: 0 auto 20px !important;
    }

    .footer-links,
    .footer-contact {
        padding-left: 0 !important;
        margin-top: 0 !important;
    }

    .footer-title {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    .footer-menu-links li,
    .footer-menu-priv li {
        margin-bottom: 8px !important;
    }

    .footer-menu-links li a,
    .footer-menu-priv li a {
        font-size: 12px !important;
    }

    .footer-contact-list li {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }

    .footer-contact-list li i {
        font-size: 12px !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    .social-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }

    .footer-copyright {
        font-size: 11px !important;
        margin-top: 30px !important;
        padding-top: 20px !important;
    }

    .scroll-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 16px !important;
    }
}

/* ===== FOR SCREENS ABOVE 1200px ===== */
@media (min-width: 1201px) {
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-collapse {
        display: flex !important;
        position: static !important;
        background: transparent !important;
    }
    
    .navbar-nav {
        flex-direction: row !important;
    }
    
    .navbar-nav .nav-link {
        border-bottom: none !important;
        padding: 0.5rem 1rem !important;
        text-align: center !important;
    }

    .navbar-nav .nav-item {
        border-bottom: none !important;
    }
}

/* ===== EXTRA SMALL DEVICES (480px and below) ===== */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

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

    .section-title {
        font-size: 1.8rem !important;
    }

    .menu-col {
        flex: 0 0 90% !important;
        max-width: 90% !important;
    }

    .gallery-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .product-grid-section .col-md-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* About page images - 2 columns except misi */
    .about-tasty-food-section .row,
    .about-visi-section .row {
        flex-direction: column !important;
    }

    .about-tasty-food-section .col-lg-6,
    .about-visi-section .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .about-visi-section .col-lg-6:first-child {
        order: 2 !important;
    }

    .about-visi-section .col-lg-6:last-child {
        order: 1 !important;
    }

    .about-tasty-food-section .about-section-title,
    .about-visi-section .about-section-title {
        order: 1 !important;
    }

    .about-tasty-food-section .about-paragraph,
    .about-visi-section .about-paragraph {
        order: 2 !important;
        margin-bottom: 20px !important;
    }

    .about-tasty-food-section .about-text-content,
    .about-visi-section .about-text-content {
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .about-tasty-food-section .about-images-grid,
    .about-visi-section .about-images-grid {
        order: 3 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        margin-top: 0 !important;
    }

    .about-tasty-food-section .about-img,
    .about-visi-section .about-img {
        height: 150px !important;
        width: 100% !important;
    }

    .about-tasty-food-section .about-image-item,
    .about-visi-section .about-image-item {
        width: calc(50% - 5px) !important;
        flex: 0 0 calc(50% - 5px) !important;
    }

    .about-misi-section .about-images-grid {
        grid-template-columns: 1fr !important;
    }

    .about-misi-section .about-img {
        height: 250px !important;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 700px) and (orientation: landscape) {
    .hero-section {
        min-height: auto !important;
        padding: 40px 0 !important;
    }

    .about-header {
        padding: 100px 0 !important;
    }

    .product-carousel-wrapper {
        height: 250px !important;
    }
}
