/**
 * Travel With Julz - Responsive Styles
 * Version: 1.4.1
 * Last Updated: 2026-01-22
 *
 * Additional responsive overrides
 * Base responsive styles are in style.css
 */

/* ================================
   Large Desktop (1440px+)
   ================================ */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

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

/* ================================
   Contact Page Layout
   ================================ */
@media (min-width: 1024px) {
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }

    .contact-info {
        position: sticky;
        top: calc(var(--header-height) + 2rem);
    }
}

/* ================================
   Mobile Contact Page Fixes
   ================================ */
@media (max-width: 767px) {
    /* Bug Fix: Ensure page takes full width without horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .page-header {
        width: 100%;
        box-sizing: border-box;
    }

    .section {
        width: 100%;
        box-sizing: border-box;
    }

    /* Bug Fix: Header layout - proper spacing and prevent logo-tagline from pushing menu button */
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .logo {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .logo-text {
        min-width: 0;
        overflow: hidden;
    }

    .logo-tagline {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-menu-btn {
        flex-shrink: 0;
        margin-left: 0.5rem;
        margin-right: 0;
    }

    /* RTL: Adjust mobile menu button margin */
    [dir="rtl"] .mobile-menu-btn {
        margin-right: 0.5rem;
        margin-left: 0;
    }

    /* Remove contact form padding on mobile */
    .contact-form {
        padding: 0;
        background: transparent;
        border: none;
    }

    /* Reduce page header top padding on mobile */
    .page-header {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Add top padding to sections on mobile */
    .section {
        padding-top: 4rem;
    }

    /* Remove footer top margin on mobile for tighter FAQ-to-footer spacing */
    .footer {
        margin-top: 0;
    }

    /* Hero section - align content higher on mobile */
    .hero {
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
        min-height: auto;
    }

    /* Reduce hero slogan bottom margin */
    .hero-slogan-bold {
        margin-bottom: 1.5rem;
    }

    /* Reduce hero buttons bottom margin */
    .hero-buttons {
        margin-bottom: 2rem;
    }

    /* Footer contact 2-column layout on mobile */
    .footer-contact {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 0.5rem 1rem;
    }

    .footer-contact > .footer-title,
    .footer-contact > .footer-contact-item {
        grid-column: 1;
    }

    .footer-contact > .footer-social {
        grid-column: 2;
        grid-row: 1 / -1;  /* Span all rows */
        align-self: center;  /* Vertically centered */
        margin-top: 0;
    }
}

/* ================================
   Reduced Motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================================
   Print Styles
   ================================ */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .mobile-nav,
    .mobile-nav-overlay,
    .btn,
    .filters {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
        background: none;
    }

    .card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* ================================
   High Contrast Mode
   ================================ */
@media (prefers-contrast: high) {
    :root {
        --slate-700: #ffffff;
        --slate-400: #cccccc;
    }

    .card,
    .service-card {
        border-width: 2px;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* ================================
   Touch Device Optimizations
   ================================ */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .service-card:hover {
        transform: none;
    }

    .nav-link:hover {
        background: transparent;
    }

    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .nav-link,
    .mobile-nav-link {
        min-height: 48px;
    }

    .filter-btn {
        min-height: 44px;
    }

    .social-link {
        width: 3rem;
        height: 3rem;
    }
}

/* ================================
   Landscape Mobile
   ================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 1rem) 1rem 1rem;
    }

    .hero-stats {
        display: none;
    }
}

/* ================================
   Small Mobile (< 360px)
   ================================ */
@media (max-width: 359px) {
    .logo-name {
        font-size: 1rem;
    }

    .logo-tagline {
        display: none;
    }

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

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

/* ================================
   iOS Input Zoom Fix
   ================================ */
@supports (-webkit-touch-callout: none) {
    input,
    textarea,
    select {
        font-size: 16px;
    }
}
