/**
 * Main Stylesheet
 * 
 * Styles for the scrolling header prototype
 * Custom CSS without frameworks
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Smooth scrolling for anchor links */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   SITE HEADER STYLES (Main Header Above Slider)
   ============================================ */
/* Updated: Added sticky positioning copied from scrolling-header */
.site-header {
    background-color: #ffffff;
    width: 100%;
    position: sticky;
    /* Sticky positioning - fixed when scrolling down */
    top: 0;
    z-index: 1001;
    /* Above scrolling-header (z-index: 1000) */
}

.header-top {
    padding: 20px 0;
}

/* Header container - flexbox layout with logo on left, top-section on right */
/* Updated: Changed justify-content to space-between and added padding-inline */
.site-header .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    padding-inline: 30px;
    /* Horizontal padding - same as social-media-section */
    display: flex;
    align-items: flex-start;
    /* Align items to top for proper vertical alignment */
    justify-content: space-between;
    /* Space between logo and top-section */
    gap: 30px;
    /* Gap between logo section and top section */
}

.site-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   LOGO SECTION (Left Side)
   ============================================ */

/* Logo section - positioned on the left side of header */
.logo-section {
    flex-shrink: 0;
    /* Prevent logo from shrinking */
}

/* Logo container */
.logo {
    display: inline-block;
    line-height: 1;
}

/* Logo image - scales responsively, max height 50px on desktop */
.logo-img {
    height: auto;
    max-height: 50px;
    width: auto;
    display: block;
}

/* Logo subtitle text - "Mining Equipment" */
/* Updated: Text aligned to the right */
/* Updated: Increased font-weight to make text bolder */
.logo-subtitle {
    font-size: 14px;
    color: #000;
    margin-top: 5px;
    font-weight: 700;
    /* Bold weight for more emphasis */
    text-align: right;
    /* Right-align subtitle text */
}

/* Logo location text - "Pretoria, South-Africa" */
/* Updated: Text aligned to the right */
.logo-location {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
    text-align: right;
    /* Right-align location text */
}

/* ============================================
   TOP SECTION (Right Side)
   ============================================ */

/* Top section container - contains social-media-section and navigation */
/* Updated: Now uses flex column to stack social media and navigation vertically */
.top-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align content to the right */
    gap: 15px;
    /* Gap between social media section and navigation */
    flex: 1;
    /* Take remaining space */
}

/* Social Media Section */
/* Updated: Changed justify-content to space-between and added padding-inline to match header-container */
.social-media-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* Space between tagline and contact buttons */
    padding-inline: 30px;
    /* Horizontal padding - same as header-container */
    gap: 20px;
    width: 100%;
}

/* Tagline Section */
.tagline-section {
    text-align: right;
    flex-shrink: 0;
}

/* Tagline text styling */
/* Updated: Increased font-size to make tagline bigger */
.tagline {
    font-size: 20px;
    /* Increased from 16px for better visibility */
    color: #333;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* Individual contact button styling */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    /* Prevent text wrapping */
    -webkit-tap-highlight-color: transparent;
    /* Remove tap highlight on mobile */
    touch-action: manipulation;
    /* Optimize touch interactions */
}

/* Contact button hover effect */
.contact-btn:hover {
    opacity: 0.9;
}

/* Contact button icon styling */
.contact-btn svg {
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

/* Contact button main text */
.contact-btn .btn-text {
    display: block;
    line-height: 1.2;
}

/* Contact button subtext (e.g., "click to chat") */
.contact-btn .btn-subtext {
    display: block;
    font-size: 10px;
    opacity: 0.9;
    line-height: 1.2;
}

/* WhatsApp button - green background */
.whatsapp-btn {
    background-color: #25D366;
    color: #fff;
}

/* Email button - blue background */
.email-btn {
    background-color: #3498db;
    color: #fff;
}

/* Google Maps button - white background with border */
.maps-btn {
    background-color: transparent;
    color: #333;
    border: 1px solid #ddd;
}

/* Google Maps icon - red color */
.maps-btn svg {
    color: #e74c3c;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */

/* Main Navigation Top - positioned inside top-section, below social media */
/* Updated: Navigation is now part of top-section, aligned to the right */
.main-nav-top {
    width: 100%;
}

/* Navigation container - flexbox for horizontal menu items */
/* Updated: Changed justify-content to space-around for better distribution */
.main-nav-top .header-container {
    display: flex;
    justify-content: space-around;
    /* Distribute space evenly around navigation items */
    gap: 0;
    /* No gap between items */
    padding: 0;
    width: auto;
    max-width: none;
    /* Override parent max-width */
}

/* Main Navigation (Legacy - kept for compatibility if needed elsewhere) */
.main-nav {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 0;
}

.main-nav .header-container {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0;
}

/* Individual navigation item - black background, white text */
.nav-item {
    display: inline-block;
    padding: 12px 20px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    border-right: 1px solid #333;
    /* Separator between items */
    -webkit-tap-highlight-color: transparent;
    /* Remove tap highlight on mobile */
    touch-action: manipulation;
    /* Optimize touch interactions */
}

/* Remove border from last navigation item */
.nav-item:last-child {
    border-right: none;
}

/* Navigation item hover effect */
.nav-item:hover {
    background-color: #333;
}

/* ============================================
   SCROLLING HEADER STYLES (Image Slider)
   ============================================ */
/* Scrolling header styles */
.scrolling-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    /* Above modal (999), below site-header (1001) */
}


/* Scrolling header container - contains the scroll bar */
/* Updated: Fixed width at 95% - no dynamic adjustment */
.scrolling-header .header-container {
    position: relative;
    max-width: 100%;
    width: 95%;
    /* Fixed width at 95% */
    margin: 0 auto;
    padding: 0 50px;
}

/* Scroll bar container - horizontal scrolling for images */
/* Updated: Added gap between images for spacing */
.scroll-bar {
    display: flex;
    overflow-x: auto;
    /* Enable horizontal scrolling */
    scroll-behavior: smooth;
    /* Smooth scrolling animation */
    gap: 15px;
    /* Space between images */
    padding: 0;
    width: 100%;
    /* Full width scroll bar */
    scrollbar-width: none;
    /* Firefox - hide scrollbar */
    -ms-overflow-style: none;
    /* IE and Edge - hide scrollbar */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    scroll-snap-type: x mandatory;
    /* Snap to images when scrolling */
    touch-action: pan-x;
    /* Optimize touch scrolling for horizontal only */
}

/* Hide scrollbar for webkit browsers (Chrome, Safari, Opera) */
.scroll-bar::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar */
}

/* ============================================
   MEDIA ITEM STYLES (Images in Scroll Bar)
   ============================================ */

/* Individual media item (image) in the scroll bar */
/* Updated: Removed overflow: hidden to allow content to show */
.media-item {
    flex: 0 0 auto;
    /* Don't shrink or grow, maintain fixed size */
    width: auto;
    /* Fixed width for desktop */
    height: 200px;
    /* Fixed height for desktop */
    cursor: pointer;
    /* Pointer cursor on hover */
    position: relative;
    scroll-snap-align: start;
    /* Snap alignment for smooth scrolling */
    -webkit-tap-highlight-color: transparent;
    /* Remove tap highlight on mobile */
    touch-action: manipulation;
    /* Optimize touch interactions */
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.media-item:hover img {
    opacity: 0.9;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 2;
}

.no-media {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-style: italic;
    width: 100%;
}

/* ============================================
   SCROLL CONTROLS (Navigation Arrows)
   ============================================ */

/* Container for scroll navigation buttons */
/* Updated: Positioned relative to header-container, buttons are static at left and right edges */
.scroll-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Vertically center */
    width: 100%;
    left: 0;
    /* Align to left edge of header-container */
    pointer-events: none;
    /* Allow clicks to pass through container */
    z-index: 20;
    /* Above scroll-bar content */
}

/* Scroll button base styling - triangle shape using CSS borders */
/* Updated: Base styles for navigation buttons */
.scroll-btn {
    background: transparent;
    border: none;
    width: 0;
    height: 0;
    cursor: pointer;
    pointer-events: all;
    /* Enable clicks on buttons */
    transition: opacity 0.2s ease;
    padding: 0;
    opacity: 0.9;
    -webkit-tap-highlight-color: transparent;
    /* Remove tap highlight on mobile */
    touch-action: manipulation;
    /* Optimize touch interactions */
}

/* Scroll button hover effect */
.scroll-btn:hover {
    opacity: 1;
}

/* Previous button - left arrow triangle */
/* Updated: Static position 20px from left edge of scrolling-header */
.prev-btn {
    position: absolute;
    /* Static position within scrolling-header */
    left: 20px;
    /* 20px from left edge */
    top: 50%;
    transform: translateY(-50%);
    /* Vertically center */
    border-right: 25px solid #000;
    /* Triangle pointing left */
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: none;
    z-index: 21;
    /* Above scroll content */
}

/* Next button - right arrow triangle */
/* Updated: Static position 20px from right edge of scrolling-header */
.next-btn {
    position: absolute;
    /* Static position within scrolling-header */
    right: 20px;
    /* 20px from right edge */
    top: 50%;
    transform: translateY(-50%);
    /* Vertically center */
    border-left: 25px solid #000;
    /* Triangle pointing right */
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-right: none;
    z-index: 21;
    /* Above scroll content */
}

/* ============================================
   MODAL STYLES (Enlarged Image/Video View)
   ============================================ */

/* Modal overlay - positioned below headers using Y-axis (top position) */
/* No z-index - relies purely on document flow and position */
.modal {
    display: none;
    position: absolute;
    left: 0;
    top: 389px;
    /* Y-axis: Start below site-header + scrolling-header */
    width: 100%;
    height: calc(100vh - 389px);
    /* Fill remaining viewport height */
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent - background visible */
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

/* Fade in animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal content container - positioned at top of modal area */
.modal-content {
    position: relative;
    margin: 20px auto 40px auto;
    /* Small top margin since modal already starts below headers */
    padding: 30px 20px 20px;
    width: 90%;
    max-width: 800px;
    height: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
}

/* Modal close button (X) */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
    color: #333;
    background: #fff;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #000;
    transform: scale(1.1);
}

/* Modal navigation buttons - Previous and Next */
/* Updated: Added navigation buttons for modal */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev-btn {
    left: 20px;
}

.modal-next-btn {
    right: 20px;
}

/* Auto-play button */
.modal-autoplay-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal-autoplay-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.modal-autoplay-btn.active {
    background: #25D366;
    border-color: #25D366;
}

.modal-autoplay-btn.active:hover {
    background: #1da851;
}

#mediaContainer {
    text-align: center;
    margin-bottom: 20px;
}

#mediaContainer img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#mediaContainer iframe {
    max-width: 100%;
    width: 100%;
    height: 600px;
    border-radius: 8px;
    border: none;
}

.modal-title {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
}

/* ============================================
   ABOUT US SECTION
   ============================================ */
/* Updated: Replaced main-content with about-us section */
.about-us-section {
    min-height: calc(100vh - 300px);
    padding: 60px 0;
    background-color: #ffffff;
}

.about-us-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-us-section h1 {
    color: #2c3e50;
    /* Primary color */
    margin-bottom: 30px;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.about-content h2 {
    color: #2c3e50;
    /* Primary color */
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}

.about-content h2:first-of-type {
    margin-top: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.site-footer p {
    margin: 5px 0;
    color: #ecf0f1;
}

.site-footer a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ============================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================ */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .site-header .header-container {
        padding: 0;
        padding-inline: 20px;
        /* Match social-media-section padding-inline */
        gap: 15px;
    }

    .tagline {
        font-size: 16px;
        /* Proportionally larger for tablet */
    }

    .contact-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .contact-btn svg {
        width: 18px;
        height: 18px;
    }

    .nav-item {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* Tablets (768px and below) */
/* Updated: Major layout changes - elements stack vertically, menu toggle button appears */
@media (max-width: 768px) {

    /* Updated: Menu toggle button appears on tablet (max-width: 768px) */
    .menu-toggle-btn {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
    }

    /* Updated: Hide main-nav-top by default on tablet, show when active */
    .main-nav-top {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        margin-top: 10px;
    }

    .main-nav-top.active {
        display: block;
    }

    /* Site Header */
    .header-top {
        padding: 15px 0;
    }

    .site-header .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0;
        padding-inline: 20px;
        /* Match social-media-section padding-inline */
    }

    .logo-section {
        width: 100%;
    }

    .logo-img {
        max-height: 45px;
    }

    .logo-subtitle {
        font-size: 13px;
    }

    .logo-location {
        font-size: 11px;
    }

    /* Top section - full width, left-aligned on mobile */
    .top-section {
        width: 100%;
        align-items: flex-start;
        /* Left-align on mobile */
    }

    /* Social media section - stack vertically on mobile */
    /* Updated: Changed from row to column layout for mobile */
    .social-media-section {
        width: 100%;
        flex-direction: column;
        /* Stack tagline above contact buttons */
        align-items: flex-start;
        /* Left-align on mobile */
        justify-content: flex-start;
        /* Reset to flex-start on mobile */
        gap: 12px;
    }

    .tagline-section {
        text-align: left;
        width: 100%;
    }

    .tagline {
        font-size: 16px;
        /* Proportionally larger for tablet */
    }

    .contact-section {
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }

    .contact-btn {
        flex: 1 1 auto;
        min-width: 140px;
        justify-content: center;
        padding: 8px 10px;
    }

    .contact-btn .btn-text {
        font-size: 11px;
    }

    .contact-btn .btn-subtext {
        font-size: 9px;
    }

    /* Navigation */
    .main-nav-top {
        width: 100%;
    }

    .main-nav-top .header-container {
        width: 100%;
        display: flex;
        /* Ensure flex display is set */
        justify-content: flex-start;
        /* Reset to flex-start on mobile */
        flex-wrap: wrap;
    }

    .main-nav .header-container {
        flex-wrap: wrap;
        padding: 0;
    }

    /* Updated: Nav items set to 100% width in tablet breakpoint */
    .nav-item {
        width: 100%;
        /* Full width for each nav item */
        min-width: 100%;
        /* Ensure full width */
        text-align: center;
        padding: 12px 10px;
        font-size: 11px;
        border-right: none;
        /* No right border since items are full width */
        border-bottom: 1px solid #333;
        /* Bottom border between items */
    }

    /* Remove border from last nav item */
    .nav-item:last-child {
        border-bottom: none;
    }

    /* Scrolling Header */
    .scrolling-header {
        padding: 10px 0;
    }

    .scrolling-header .header-container {
        padding: 0 40px;
    }

    .media-item {
        width: auto;
        height: 160px;
    }

    /* Updated: Buttons positioned at edges of header-container */
    /* Updated: Buttons positioned 20px from edges */
    .prev-btn {
        left: 20px;
        /* 20px from left edge */
        border-right-width: 18px;
        border-top-width: 14px;
        border-bottom-width: 14px;
    }

    .next-btn {
        right: 20px;
        /* 20px from right edge */
        border-left-width: 18px;
        border-top-width: 14px;
        border-bottom-width: 14px;
    }

    /* Modal */
    .modal-content {
        padding: 30px 15px 15px;
        width: 95%;
    }

    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
        width: 35px;
        height: 35px;
    }

    /* Updated: Modal navigation buttons responsive styles */
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .modal-prev-btn {
        left: 10px;
    }

    .modal-next-btn {
        right: 10px;
    }

    #mediaContainer img {
        max-height: 70vh;
    }

    #mediaContainer iframe {
        height: 400px;
    }

    .modal-title {
        font-size: 18px;
    }

    /* Main Content */
    /* Updated: About Us section responsive styles */
    .about-us-section {
        padding: 40px 0;
    }

    .about-us-section h1 {
        font-size: 30px;
    }

    .about-content p {
        font-size: 15px;
    }

    .about-content h2 {
        font-size: 24px;
    }

    .container {
        padding: 15px;
    }
}

/* Mobile Landscape and Small Tablets (480px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .contact-btn {
        min-width: 120px;
    }

    .nav-item {
        min-width: calc(33.333% - 1px);
        font-size: 10px;
        padding: 10px 8px;
    }

    .nav-item:nth-child(3n) {
        border-right: none;
    }

    .nav-item:nth-child(n+4) {
        border-bottom: 1px solid #333;
    }
}

/* Mobile Portrait (480px and below) */
/* Updated: Further optimizations for small mobile screens */
@media (max-width: 480px) {

    /* Site Header */
    .header-top {
        padding: 12px 0;
    }

    .site-header .header-container {
        padding: 0;
        padding-inline: 15px;
        /* Match social-media-section padding-inline */
        gap: 12px;
    }

    .logo-img {
        max-height: 40px;
    }

    .logo-subtitle {
        font-size: 12px;
        margin-top: 4px;
    }

    .logo-location {
        font-size: 10px;
        margin-top: 2px;
    }

    /* Top section - full width on mobile */
    .top-section {
        width: 100%;
        align-items: flex-start;
        /* Left-align all content */
        gap: 12px;
        /* Spacing between social media and navigation */
    }

    /* Social media section - vertical stack on mobile */
    /* Updated: Ensures tagline and contact buttons stack vertically */
    .social-media-section {
        width: 100%;
        flex-direction: column;
        /* Vertical layout on mobile */
        align-items: flex-start;
        /* Left-align on mobile */
        justify-content: flex-start;
        /* Reset to flex-start on mobile */
        padding-inline: 15px;
        /* Match header-container padding-inline */
        gap: 12px;
        /* Spacing between tagline and contact buttons */
    }

    .tagline-section {
        width: 100%;
        text-align: left;
    }

    .tagline {
        font-size: 15px;
        /* Proportionally larger for mobile */
        line-height: 1.4;
    }

    .contact-section {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .main-nav-top {
        width: 100%;
    }

    .main-nav-top .header-container {
        width: 100%;
        display: flex;
        /* Ensure flex display is set */
        justify-content: flex-start;
        /* Reset to flex-start on mobile */
        flex-wrap: wrap;
    }

    .contact-btn {
        width: 100%;
        min-width: auto;
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .contact-btn svg {
        width: 20px;
        height: 20px;
    }

    .contact-btn .btn-text {
        font-size: 12px;
    }

    .contact-btn .btn-subtext {
        font-size: 10px;
    }

    /* Navigation */
    .main-nav {
        border-top: 1px solid #e0e0e0;
    }

    .nav-item {
        width: 100%;
        min-width: 100%;
        padding: 12px 15px;
        font-size: 12px;
        border-right: none;
        border-bottom: 1px solid #333;
        text-align: left;
    }

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

    /* Scrolling Header */
    .scrolling-header {
        padding: 8px 0;
    }

    .scrolling-header .header-container {
        padding: 0 35px;
    }

    .media-item {
        width: auto;
        height: 130px;
    }

    /* Updated: Buttons positioned at edges of header-container */
    /* Updated: Buttons positioned 20px from edges */
    .prev-btn {
        left: 20px;
        /* 20px from left edge */
        border-right-width: 15px;
        border-top-width: 12px;
        border-bottom-width: 12px;
    }

    .next-btn {
        right: 20px;
        /* 20px from right edge */
        border-left-width: 15px;
        border-top-width: 12px;
        border-bottom-width: 12px;
    }

    /* Modal */
    .modal-content {
        padding: 20px 10px 10px;
        width: 98%;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 30px;
        height: 30px;
    }

    /* Updated: Modal navigation buttons responsive styles */
    .modal-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .modal-prev-btn {
        left: 5px;
    }

    .modal-next-btn {
        right: 5px;
    }

    #mediaContainer {
        margin-bottom: 15px;
    }

    #mediaContainer img {
        max-height: 65vh;
        border-radius: 4px;
    }

    #mediaContainer iframe {
        height: 300px;
        border-radius: 4px;
    }

    .modal-title {
        font-size: 16px;
        margin-top: 15px;
    }

    /* Main Content */
    /* Updated: About Us section responsive styles */
    .about-us-section {
        padding: 30px 0;
        min-height: auto;
    }

    .about-us-section h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .about-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .about-content h2 {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .container {
        padding: 15px;
    }

    /* Footer */
    .site-footer {
        padding: 20px 0;
        margin-top: 40px;
    }

    .site-footer p {
        font-size: 14px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .site-header .header-container {
        padding: 0;
        padding-inline: 10px;
        /* Match social-media-section padding-inline */
    }

    .logo-img {
        max-height: 35px;
    }

    .logo-subtitle {
        font-size: 11px;
    }

    .logo-location {
        font-size: 9px;
    }

    .tagline {
        font-size: 14px;
        /* Proportionally larger for extra small mobile */
    }

    .contact-btn {
        padding: 8px 10px;
    }

    .contact-btn .btn-text {
        font-size: 11px;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 11px;
    }

    .scrolling-header .header-container {
        padding: 0 30px;
    }

    .media-item {
        width: auto;
        height: 120px;
    }

    /* Updated: Buttons positioned at edges of header-container */
    .prev-btn {
        left: 0;
        /* Left edge of header-container */
        border-right-width: 12px;
        border-top-width: 10px;
        border-bottom-width: 10px;
    }

    .next-btn {
        right: 0;
        /* Right edge of header-container */
        border-left-width: 12px;
        border-top-width: 10px;
        border-bottom-width: 10px;
    }

    /* Updated: About Us section responsive styles */
    .about-us-section h1 {
        font-size: 24px;
    }

    .about-content p {
        font-size: 13px;
    }

    .about-content h2 {
        font-size: 20px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .header-top {
        padding: 10px 0;
    }

    .logo-img {
        max-height: 35px;
    }

    .logo-subtitle,
    .logo-location {
        display: none;
    }

    .tagline {
        font-size: 14px;
        /* Proportionally larger for extra small mobile */
    }

    .contact-btn {
        padding: 6px 8px;
    }

    .nav-item {
        padding: 8px 12px;
    }

    .scrolling-header {
        padding: 8px 0;
    }

    .media-item {
        width: auto;
        height: 100px;
    }
}

/* Print Styles */
@media print {

    .site-header,
    .scrolling-header,
    .scroll-controls,
    .site-footer {
        display: none;
    }

    /* Updated: About Us section print styles */
    .about-us-section {
        padding: 0;
    }
}