/* ============================================
   OLD BAR ROCK THEME - Responsive Stylesheet
   ============================================ */

/* ============================================
   LARGE DESKTOP (1400px and up)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 7rem;
    }
}

/* ============================================
   DESKTOP (1200px - 1399px)
   ============================================ */
@media (max-width: 1399px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 5.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* ============================================
   SMALL DESKTOP (992px - 1199px)
   ============================================ */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .about-grid {
        gap: 50px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-brand {
        padding-right: 0;
    }
}

/* ============================================
   TABLET (768px - 991px)
   ============================================ */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Header */
    .header {
        padding: 15px 0;
    }
    
    .header .container {
        position: relative;
    }
    
    .logo {
        z-index: 1001;
    }
    
    .nav {
        position: static;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding-top: 80px;
        transition: right 0.4s ease;
        z-index: 999;
        border-left: 2px solid #660000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 18px 30px;
        font-size: 1rem;
        text-align: left;
        border-bottom: none;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(139, 0, 0, 0.2);
        padding-left: 40px;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    /* Mobile menu overlay */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(139, 0, 0, 0.1) 0%, transparent 30%);
        pointer-events: none;
    }
    
    /* Hero */
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image::before {
        display: none;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Menu */
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Articles */
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    /* Services Detail */
    .service-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-detail:nth-child(even) {
        direction: ltr;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Page Header */
    .page-header {
        height: 40vh;
        min-height: 350px;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   MOBILE LANDSCAPE (576px - 767px)
   ============================================ */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Section Title */
    .section-title h2::before,
    .section-title h2::after {
        width: 50px;
    }
    
    .section-title h2::before {
        right: calc(100% + 15px);
    }
    
    .section-title h2::after {
        left: calc(100% + 15px);
    }
    
    /* Header */
    .header {
        padding: 12px 0;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: 1px solid rgba(139, 0, 0, 0.5);
        border-radius: 5px;
        gap: 4px;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2px;
        background: var(--blood-red);
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    .nav-menu {
        max-width: 280px;
        padding-top: 70px;
    }
    
    .nav-link {
        padding: 15px 25px;
        font-size: 0.95rem;
    }
    
    /* Hero */
    .hero {
        min-height: 550px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        padding: 12px 30px;
        width: 100%;
        max-width: 280px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px;
    }
    
    /* Menu */
    .menu-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .menu-item {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-item-image {
        width: 100%;
        height: 200px;
    }
    
    /* Menu Full Items */
    .menu-full-item {
        flex-direction: column;
        text-align: left;
    }
    
    .menu-full-item-price {
        margin-top: 10px;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
    
    /* Contact */
    .contact-info,
    .contact-form {
        padding: 25px;
    }
    
    /* About Features */
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   MOBILE PORTRAIT (up to 575px)
   ============================================ */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Header */
    .header {
        padding: 10px 0;
    }
    
    .header.scrolled {
        padding: 8px 0;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    
    .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    /* Navigation */
    .nav-menu {
        width: 100%;
        max-width: 260px;
        padding-top: 60px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 14px 20px;
    }
    
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .menu-toggle span {
        width: 18px;
        height: 2px;
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Section Title */
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2::before,
    .section-title h2::after {
        display: none;
    }
    
    .section-title .subtitle {
        font-size: 0.85rem;
    }
    
    /* About */
    .about-features {
        gap: 15px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    /* Service Cards */
    .service-card {
        padding: 25px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    /* Menu Tabs */
    .menu-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .menu-item {
        padding: 20px;
    }
    
    /* Contact Form */
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    /* Newsletter */
    .newsletter {
        padding: 50px 0;
    }
    
    .newsletter h2 {
        font-size: 1.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    /* Testimonials */
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .testimonial-quote {
        font-size: 3rem;
    }
    
    /* Page Header */
    .page-header {
        height: 35vh;
        min-height: 300px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Blog Cards */
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    /* Articles */
    .article-main-image {
        height: 200px;
    }
    
    .article-main-content {
        padding: 25px;
    }
    
    /* Sidebar */
    .sidebar-widget {
        padding: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (up to 375px)
   ============================================ */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .logo-text {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .menu-toggle span {
        width: 25px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Service Price */
    .service-price {
        font-size: 1.5rem;
    }
}

/* ============================================
   HEIGHT-BASED QUERIES
   ============================================ */
@media (max-height: 700px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vh, 4rem);
    }
    
    .hero-description {
        font-size: clamp(0.9rem, 2vh, 1.2rem);
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   ORIENTATION QUERIES
   ============================================ */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .video-background,
    .particles,
    .scroll-indicator,
    .newsletter,
    .footer {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 50px 0;
    }
    
    .hero-title {
        color: #000;
        text-shadow: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   DARK MODE SUPPORT (System Preference)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Already dark theme, but can add adjustments */
}

/* ============================================
   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;
    }
    
    .video-background video {
        display: none;
    }
    
    .parallax-bg {
        transform: none !important;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --text-muted: #ffffff;
        --text-dark: #cccccc;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
    
    .service-card,
    .blog-card {
        border-width: 2px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) {
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-rotate:hover {
        transform: none;
    }
    
    .btn:hover::before {
        left: -100%;
    }
    
    .gallery-overlay {
        opacity: 1;
    }
}

/* ============================================
   RETINA DISPLAY
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .service-icon,
    .testimonial-author img {
        image-rendering: -webkit-optimize-contrast;
    }
}
