/* Mobile Responsive Enhancements for Casa Catering */
/* Mobile First Approach - Enhanced for small devices */

/* ======================================
   Logo and Navbar Fixes - Desktop
   ====================================== */

/* Desktop logo sizing and navbar alignment */
@media (min-width: 992px) {
    .header-area .main-header-area {
        padding: 15px 0;
        min-height: 100px;
    }

    .logo-img {
        display: inline-block;
        max-width: 160px !important;
        max-height: 106px !important;
        vertical-align: middle;
    }

    .logo-img img {
        width: 100%;
        height: auto;
        max-height: 106px !important;
        object-fit: contain;
    }

    .main-menu ul {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-menu ul li {
        vertical-align: middle;
    }
}

/* Base improvements for all mobile devices */
@media (max-width: 991px) {
    /* Typography adjustments */
    body {
        font-size: 15px;
        line-height: 1.6;
    }

    h1 {
        font-size: 32px !important;
        line-height: 1.3;
    }

    h2 {
        font-size: 28px !important;
        line-height: 1.3;
    }

    h3 {
        font-size: 24px !important;
        line-height: 1.4;
    }

    h4 {
        font-size: 20px !important;
    }

    p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    /* Container and spacing */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Section padding adjustments */
    .pt-100 {
        padding-top: 60px !important;
    }

    .pb-100 {
        padding-bottom: 60px !important;
    }

    .mb-70 {
        margin-bottom: 40px !important;
    }

    .mb-60 {
        margin-bottom: 35px !important;
    }

    .mb-40 {
        margin-bottom: 25px !important;
    }

    .mb-30 {
        margin-bottom: 20px !important;
    }

    /* Breadcrumb area */
    .breadcam_area {
        padding: 80px 0 !important;
        min-height: auto !important;
    }

    .breadcam_text h3 {
        font-size: 32px !important;
        margin-bottom: 15px;
    }

    .breadcam_text p {
        font-size: 15px;
        line-height: 1.6;
        margin: 0;
        padding: 0 15px;
    }

    .breadcam_text p br {
        display: none;
    }

    /* Slider area */
    .slider_area {
        min-height: 500px !important;
    }

    .slider_contant h2 {
        font-size: 28px !important;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .slider_contant h2 br {
        display: none;
    }

    .slider_contant p {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 15px;
    }

    /* Section titles */
    .section_title h3 {
        font-size: 28px !important;
        margin-bottom: 20px;
    }

    .section_title p {
        font-size: 15px;
        line-height: 1.6;
    }

    .section_title p br {
        display: none;
    }

    /* Service area cards */
    .single_service {
        padding: 30px 20px !important;
        margin-bottom: 30px;
    }

    .single_service h4 {
        font-size: 20px !important;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .single_service p {
        font-size: 15px;
        line-height: 1.6;
    }

    .service_icon {
        font-size: 40px !important;
    }

    /* Order/Menu area */
    .single_order {
        margin-bottom: 30px;
    }

    .order_info h3 {
        font-size: 20px !important;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .order_info p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .order_prise span {
        font-size: 18px !important;
        padding: 10px 20px !important;
    }

    /* About content text */
    .about_content_text {
        padding: 0 15px;
    }

    .about_content_text h3 {
        font-size: 26px !important;
        text-align: center;
    }

    .about_content_text p {
        font-size: 15px;
        line-height: 1.8;
        text-align: justify;
    }

    /* Video area */
    .video_area {
        padding: 100px 0 !important;
    }

    .video_text .info_inner h4 {
        font-size: 24px !important;
    }

    .video_text .info_inner p {
        font-size: 16px;
    }

    /* Testimonial area */
    .single_testmonial {
        flex-direction: column !important;
        text-align: center;
        padding: 30px 20px !important;
    }

    .testmonial_thumb {
        margin-bottom: 20px;
        margin-right: 0 !important;
    }

    .testmonial_author h3 {
        font-size: 20px !important;
    }

    .testmonial_author span {
        font-size: 14px;
    }

    .testmonial_author p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Brand area */
    .single_brand {
        margin-bottom: 20px;
        padding: 10px;
    }

    /* Contact page */
    .contact-section {
        padding: 60px 0;
    }

    .contact-title {
        font-size: 26px !important;
        margin-bottom: 30px;
        text-align: center;
    }

    .form-contact {
        padding: 0 15px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        font-size: 15px;
        padding: 12px 15px;
    }

    .contact-info {
        margin-bottom: 30px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .contact-info h3 {
        font-size: 18px !important;
        margin-bottom: 5px;
    }

    .contact-info p {
        font-size: 14px;
        margin: 0;
    }

    .contact-info__icon {
        font-size: 24px !important;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Buttons */
    .boxed_btn {
        font-size: 15px !important;
        padding: 12px 30px !important;
        display: inline-block;
    }

    .button-contactForm {
        width: 100%;
        padding: 15px !important;
        font-size: 16px !important;
    }

    /* Footer */
    .footer_area {
        padding: 40px 0 20px;
    }

    .footer-text {
        font-size: 14px;
        text-align: center !important;
    }

    .social_links {
        text-align: center !important;
        margin-bottom: 20px;
    }

    .social_links a {
        font-size: 20px;
        margin: 0 10px !important;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    h4 {
        font-size: 18px !important;
    }

    p {
        font-size: 14px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Slider */
    .slider_area {
        min-height: 400px !important;
    }

    .slider_contant h2 {
        font-size: 24px !important;
        padding: 0 10px;
    }

    .slider_contant p {
        font-size: 14px;
        padding: 0 10px;
    }

    /* Breadcrumb */
    .breadcam_area {
        padding: 60px 0 !important;
    }

    .breadcam_text h3 {
        font-size: 28px !important;
    }

    .breadcam_text p {
        font-size: 14px;
        padding: 0 10px;
    }

    /* Section titles */
    .section_title h3 {
        font-size: 24px !important;
    }

    .section_title p {
        font-size: 14px;
    }

    /* Service cards */
    .single_service {
        padding: 25px 15px !important;
    }

    .single_service h4 {
        font-size: 18px !important;
    }

    .single_service p {
        font-size: 14px;
    }

    /* Order cards */
    .order_info h3 {
        font-size: 18px !important;
    }

    .order_info p {
        font-size: 14px;
    }

    .order_prise span {
        font-size: 16px !important;
        padding: 8px 16px !important;
    }

    /* About content */
    .about_content_text h3 {
        font-size: 22px !important;
    }

    .about_content_text p {
        font-size: 14px;
    }

    /* Video area */
    .video_text .info_inner h4 {
        font-size: 20px !important;
    }

    .video_text .info_inner p {
        font-size: 14px;
    }

    /* Testimonials */
    .testmonial_author h3 {
        font-size: 18px !important;
    }

    .testmonial_author p {
        font-size: 14px;
    }

    /* Contact */
    .contact-title {
        font-size: 22px !important;
    }

    .contact-info h3 {
        font-size: 16px !important;
    }

    .contact-info p {
        font-size: 13px;
    }

    /* Buttons */
    .boxed_btn {
        font-size: 14px !important;
        padding: 10px 25px !important;
    }

    /* Spacing adjustments */
    .pt-100 {
        padding-top: 50px !important;
    }

    .pb-100 {
        padding-bottom: 50px !important;
    }
}

/* Landscape mode for small devices */
@media (max-width: 767px) and (orientation: landscape) {
    .slider_area {
        min-height: 350px !important;
    }

    .breadcam_area {
        padding: 50px 0 !important;
    }

    .video_area {
        padding: 80px 0 !important;
    }
}

/* Fix for line breaks in mobile */
@media (max-width: 991px) {
    br {
        display: none;
    }

    /* Allow intentional breaks in specific cases */
    .keep-br br {
        display: block;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 991px) {
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .boxed_btn {
        padding: 14px 32px !important;
    }
}

/* Additional mobile enhancements */
@media (max-width: 991px) {
    /* Header/Menu improvements */
    .logo-img-small {
        text-align: center;
        padding: 15px 0;
    }

    .logo-img-small img {
        max-width: 120px;
        height: auto;
    }

    /* Navigation mobile */
    .slicknav_menu {
        background: #fff;
        padding: 10px 15px;
    }

    /* Service area grid improvements */
    .service_area .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .service_area .col-xl-4,
    .service_area .col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Order/Menu grid improvements */
    .order_area .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .order_area .col-xl-4,
    .order_area .col-md-6 {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Contact form improvements */
    .form-control {
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    .form-control:focus {
        border-color: #000;
        box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
    }

    textarea.form-control {
        min-height: 120px;
    }

    /* Images responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Tables responsive */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Video iframe responsive */
    .video_area iframe,
    .video_area video {
        max-width: 100%;
        height: auto;
    }
}

/* Index page specific improvements */
@media (max-width: 991px) {
    /* Service cards on index */
    .service_area {
        padding: 60px 0;
    }

    .service_area .single_service {
        text-align: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .service_area .single_service:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.12);
        transform: translateY(-3px);
    }

    /* Popular menus on index */
    .order_area {
        padding: 60px 0;
    }

    .order_area .single_order {
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .order_area .single_order:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.12);
        transform: translateY(-3px);
    }

    .order_thumb img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* Contact page specific improvements */
@media (max-width: 991px) {
    .contact-info {
        display: flex;
        align-items: flex-start;
        padding: 20px 15px;
        margin-bottom: 20px;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 3px solid #000;
    }

    .contact-info__icon {
        margin-right: 15px;
        font-size: 28px;
        color: #000;
        flex-shrink: 0;
    }

    .contact-info .media-body h3 {
        margin-bottom: 8px;
        font-weight: 600;
    }

    .contact-info .media-body p {
        margin-bottom: 5px;
        color: #666;
    }

    .contact-info .media-body p.small {
        font-size: 13px;
        color: #888;
    }
}

/* About page specific improvements */
@media (max-width: 991px) {
    .about_content_text {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    }

    .about_content_text h3 {
        padding-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
        margin-bottom: 25px !important;
    }

    .about_content_text p {
        color: #555;
        font-size: 15px;
        line-height: 1.8;
    }
}

/* Gallery improvements for mobile */
@media (max-width: 991px) {
    .gallery-item {
        margin-bottom: 15px;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
}

/* Utility classes */
@media (max-width: 991px) {
    .text-center-mobile {
        text-align: center !important;
    }

    .mb-mobile-20 {
        margin-bottom: 20px !important;
    }

    .mb-mobile-30 {
        margin-bottom: 30px !important;
    }

    .p-mobile-15 {
        padding: 15px !important;
    }
}

/* Smooth scrolling on mobile */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

/* Better readability */
@media (max-width: 991px) {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ======================================
   Instagram Icon Styling
   ====================================== */

/* Instagram icon styling - for SVG image */
.instagram-icon img {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    filter: brightness(0) invert(1); /* Make it white */
}

/* Mobile Instagram icon */
@media (max-width: 991px) {
    .instagram-icon img {
        width: 20px;
        height: 20px;
    }
}

/* ======================================
   Mobile Navbar Improvements
   ====================================== */

/* Mobile menu styling improvements */
@media (max-width: 991px) {
    /* Slicknav menu - mobile hamburger menu */
    .slicknav_menu {
        background: transparent !important;
        padding: 10px 0;
        margin-top: 10px;
    }

    .slicknav_btn {
        background-color: transparent !important;
        padding: 10px;
        margin: 5px 0;
    }

    .slicknav_icon-bar {
        background-color: #000 !important;
        height: 3px;
    }

    /* Mobile nav items */
    .slicknav_nav {
        background: #fff !important;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .slicknav_nav li {
        border-bottom: 1px solid #f0f0f0;
    }

    .slicknav_nav li:last-child {
        border-bottom: none;
    }

    .slicknav_nav a {
        padding: 18px 20px !important;
        color: #000 !important;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .slicknav_nav a:hover {
        background-color: #f8f9fa !important;
        padding-left: 25px !important;
    }

    /* Submenu styling - more padding */
    .slicknav_nav .slicknav_collapsed,
    .slicknav_nav .slicknav_open {
        padding: 18px 20px !important;
    }

    .slicknav_nav .slicknav_item a {
        padding: 18px 20px !important;
    }

    /* Submenu items - extra padding */
    .slicknav_nav .slicknav_row {
        padding: 18px 20px !important;
    }

    .slicknav_nav ul.slicknav_hidden {
        background: #f8f9fa;
        margin: 0;
    }

    .slicknav_nav ul.slicknav_hidden li {
        border-bottom: 1px solid #e0e0e0;
    }

    .slicknav_nav ul.slicknav_hidden li:last-child {
        border-bottom: none;
    }

    .slicknav_nav ul.slicknav_hidden a {
        padding: 16px 20px 16px 35px !important;
        font-size: 15px;
        color: #333 !important;
    }

    .slicknav_nav ul.slicknav_hidden a:hover {
        background-color: #fff !important;
        padding-left: 40px !important;
    }

    /* Arrow styling for dropdown */
    .slicknav_arrow {
        float: right;
        font-size: 18px;
        margin-top: -2px;
    }

    /* Logo spacing from hamburger menu */
    .logo-img-small {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 !important;
    }

    .logo-img-small img {
        max-width: 100px;
        height: auto;
    }

    /* Ensure hamburger menu doesn't overlap logo */
    .mobile_menu {
        position: relative;
        z-index: 100;
    }
}
