/* X Forge Supply Ltd.pany CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 73, 94, 0.85) 50%, rgba(44, 62, 80, 0.85) 100%),
        url('../images/logos/logo-xforge.svg');
    background-size: 120% 120%;
    background-position: center;
    background-repeat: no-repeat;
    color: #ecf0f1;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto; /* Ensure vertical scrolling works */
    position: relative; /* Ensure proper positioning context */
}

/* Mobile optimizations - remove fixed attachment for better performance */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: cover;
    }
}

/* Header Styles - Mobile Optimized */
header {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(128, 128, 128, 0.6);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    min-height: 70px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 50px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ecf0f1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    flex: 1;
    max-width: 70%;
}

.logo .tagline {
    font-size: 0.75rem;
    color: #bdc3c7;
    font-weight: normal;
    margin-top: 2px;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Mobile Menu Toggle - Enhanced */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(236, 240, 241, 0.1);
    border: none;
    border-radius: 4px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(236, 240, 241, 0.2);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #ecf0f1;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -4px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    min-height: 44px; /* Better touch target for mobile */
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: #A0A0A0;
    background: rgba(160, 160, 160, 0.1);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #808080;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Main Content */
main {
    margin-top: 90px;
    min-height: calc(100vh - 90px);
    padding-bottom: 2rem; /* Ensure space before footer */
}

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

/* Hero Section */
.hero {
    min-height: auto; /* Allow content to determine height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        linear-gradient(rgba(44, 62, 80, 0.6), rgba(44, 62, 80, 0.6));
    position: relative;
    overflow: hidden;
    padding: 3rem 0 4rem; /* Add more bottom padding */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(128, 128, 128, 0.1) 10px,
        rgba(128, 128, 128, 0.1) 20px
    );
    opacity: 0.3;
}

.hero-content {
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #A0A0A0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

/* Override for company name specifically */
.hero h1.company-name {
    color: silver;
    text-shadow: 2px 2px 4px rgba(58, 3, 3, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #bdc3c7;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #4A4A4A, #2C2C2C);
    color: #FFFFFF;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 74, 74, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 128, 128, 0.6);
    border-color: #808080;
    background: linear-gradient(45deg, #808080, #696969);
}

/* Section Styles */
.section {
    padding: 4rem 0;
    position: relative;
    background: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(5px);
    margin: 2rem 0;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #A0A0A0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ecf0f1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: rgba(52, 73, 94, 0.9);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #808080, #696969);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: translateX(0);
}

.card:hover {
    transform: translateY(-5px);
    border-color: #808080;
    box-shadow: 0 10px 30px rgba(128, 128, 128, 0.3);
    background: rgba(52, 73, 94, 0.9);
}

.card h3 {
    color: #A0A0A0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card .price {
    font-size: 1.2rem;
    color: #f39c12;
    font-weight: bold;
    margin-top: 1rem;
}

.card .specs {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.3);
}

.card .specs h4 {
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.card .specs ul {
    list-style: none;
    padding: 0;
}

.card .specs li {
    color: #bdc3c7;
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 1rem;
}

.card .specs li::before {
    content: '▪';
    color: #808080;
    position: absolute;
    left: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #A0A0A0;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(52, 73, 94, 0.8);
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 5px;
    color: #ecf0f1;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #808080;
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    background: linear-gradient(45deg, #696969, #5A5A5A);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(105, 105, 105, 0.4);
    border-color: #ecf0f1;
}

.btn-secondary {
    background: linear-gradient(45deg, #34495e, #2c3e50);
    border-color: #34495e;
}

.btn-secondary:hover {
    border-color: #808080;
    background: linear-gradient(45deg, #808080, #696969);
}

/* Product Tables */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: rgba(52, 73, 94, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.product-table th,
.product-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}

.product-table th {
    background: rgba(128, 128, 128, 0.8);
    color: white;
    font-weight: bold;
}

.product-table tr:hover {
    background: rgba(128, 128, 128, 0.1);
}

/* Footer */
footer {
    background: rgba(44, 62, 80, 0.95);
    padding: 3rem 0 1rem;
    border-top: 3px solid #808080;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #A0A0A0;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #A0A0A0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(128, 128, 128, 0.3);
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header mobile optimizations */
    header {
        padding: 0.6rem 0;
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.98) 0%, rgba(52, 73, 94, 0.98) 100%);
        border-bottom: 1px solid rgba(128, 128, 128, 0.4);
        min-height: 75px;
    }
    
    nav {
        padding: 0 1rem;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .logo {
        font-size: 1.4rem;
        max-width: 65%;
        flex-shrink: 1;
    }
    
    .logo .tagline {
        font-size: 0.65rem;
        line-height: 1.1;
        margin-top: 1px;
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    /* Navigation optimizations */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.98) 0%, rgba(52, 73, 94, 0.98) 100%);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(128, 128, 128, 0.3);
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        width: 100%;
        padding: 1rem 2rem;
        border-radius: 0;
        justify-content: flex-start;
        min-height: 48px; /* Improved touch target */
        display: flex;
        align-items: center;
        color: #ecf0f1;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        padding-left: 2.5rem;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    /* Logo scaling for mobile */
    .logo {
        font-size: 1.5rem;
        max-width: 60%;
    }
    
    .logo .tagline {
        font-size: 12px;
        line-height: 1.2;
    }
    
    /* Better touch targets and spacing */
    .hero {
        padding: 3rem 1rem 2rem 1rem;
        min-height: auto; /* Allow content to determine height */
        align-items: flex-start;
        padding-top: 4rem;
    }
    
    main {
        margin-top: 75px;
        min-height: auto; /* Allow content to determine height */
        padding-bottom: 2rem; /* Ensure space before footer */
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* Container adjustments */
    .container {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Card optimizations */
    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Grid adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    /* Button improvements */
    .btn, .cta-button {
        min-height: 48px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        touch-action: manipulation; /* Prevents 300ms click delay */
    }
    
    /* Image gallery mobile optimizations */
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    
    .gallery-image {
        will-change: auto; /* Remove will-change for better performance */
    }
    
    /* Trailer grid mobile optimization */
    .trailer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .trailer-item {
        padding: 1rem;
    }
    
    .trailer-image {
        height: auto;
        max-height: 300px;
    }
}
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo .tagline {
        font-size: 12px;
    }
    
    .hero {
        height: auto; /* Allow content to determine height */
        padding: 2rem 1rem 3rem; /* Add bottom padding */
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem 0;
        margin: 1rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 44px;
        padding: 0.8rem 1.5rem;
    }
    
    .cta-button {
        min-height: 44px;
    }


@media (max-width: 480px) {
    /* Ultra-small screen header optimizations */
    header {
        min-height: 60px;
        padding: 0.3rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
        max-width: 60%;
    }
    
    .logo .tagline {
        font-size: 0.6rem;
        display: none; /* Hide tagline on very small screens */
    }
    
    .mobile-menu-toggle {
        min-width: 40px;
        min-height: 40px;
        padding: 0.3rem;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
    
    nav {
        padding: 0 0.8rem;
    }
    
    /* Other mobile optimizations */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .container {
        padding: 1rem;
    }
    
    /* Image gallery for small screens */
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.3rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2c3e50;
}

::-webkit-scrollbar-thumb {
    background: #808080;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #696969;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.highlight {
    color: #A0A0A0;
    font-weight: bold;
}

.company-name {
    color: silver;
    font-weight: bold;
}

.card.center-text {
    text-align: center;
}


.logo {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
}

.logo .tagline {
    font-size: 14px;
    color: #ccc; /* subtle contrast */
    font-weight: normal;
    margin-top: 4px;
    letter-spacing: 0.5px;
}


.tagline {
    font-size: 14px;
    color: #ccc;
    margin-top: 4px;
    line-height: 1.3;
}

.tagline .bold {
    font-weight: bold;
    color: #fff; /* optional for more contrast */
}

.map-link {
    color: #4CAF50; /* green example */
    font-weight: bold;
    text-decoration: none;
}

.map-link:hover {
    color: #2E7D32;
    text-decoration: underline;
}

/* ===== TRAILER SPECIFICATIONS STYLES ===== */
/* Consolidated styling for all trailer specification pages */

.trailer-details {
    width: 100%;
}

.trailer-details h1 {
    text-align: center;
    color: #ecf0f1;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.trailer-specifications {
    background: rgba(44, 62, 80, 0.95);
    border-radius: 10px;
    padding: 30px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #34495e;
    text-align: center;
}

.spec-section {
    background: rgba(52, 73, 94, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-section h3 {
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: left;
}

.spec-list {
    color: #bdc3c7;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.spec-list li strong {
    color: #ecf0f1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .trailer-details h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .trailer-specifications {
        margin: 20px 10px;
        padding: 20px;
        max-width: calc(100% - 20px);
    }
    
    .spec-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .spec-section h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    /* Better image handling on mobile */
    .trailer-details img {
        max-width: 100% !important;
        height: auto !important;
        margin: 10px 0 !important;
        border-radius: 8px;
    }
    
    /* Fix flex layout on mobile */
    .trailer-details div[style*="display: flex"] {
        display: block !important;
        text-align: center;
    }
    
    .logo-container {
        display: block !important;
        text-align: center !important;
        margin: 15px 0 !important;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .trailer-details h1 {
        font-size: 1.7rem;
        padding: 0 0.5rem;
    }
    
    .trailer-specifications {
        margin: 15px 5px;
        padding: 15px;
        max-width: calc(100% - 10px);
    }
    
    .spec-section {
        padding: 12px;
        margin: 10px 0;
    }
    
    .spec-list li {
        padding: 8px 0;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Ultra-mobile image optimization */
    .trailer-details img {
        max-width: 95% !important;
        margin: 10px auto !important;
        display: block !important;
    }
}

/* Services Grid Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.9) 0%, rgba(44, 62, 80, 0.9) 100%);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(128, 128, 128, 0.5);
}

.service-card h3 {
    color: #ecf0f1;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.available {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.status.coming-soon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

/* Mobile Gallery Styles - Simplified for normal display */
.image-gallery, .trailer-gallery {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 1rem 0;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
}

.image-gallery .image-item,
.image-gallery img {
    display: block !important;
}

/* Force remove any navigation dots that might exist */
.gallery-nav-dots,
.nav-dot,
.mobile-swipe-gallery .gallery-nav-dots,
.image-gallery + .gallery-nav-dots,
.trailer-gallery + .gallery-nav-dots {
    display: none !important;
    visibility: hidden !important;
}

/* Remove any pseudo-elements that might create dots */
.image-gallery::after,
.trailer-gallery::after,
.image-gallery::before,
.trailer-gallery::before {
    content: none !important;
    display: none !important;
}

/* Removed mobile gallery styles - using normal grid display for all devices */

/* Desktop Gallery - Keep original grid layout */
@media (min-width: 769px) {
    .image-gallery {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
        position: static !important;
        min-height: auto !important;
    }
    
    .image-gallery .image-item,
    .image-gallery img {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
    }
}

/* Mobile Responsive for Services and Gallery */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* Mobile Gallery - Keep grid layout but adjust sizing */
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 0.5rem !important;
    }
    
    .image-gallery img, .trailer-gallery img {
        width: 100% !important;
        height: auto !important;
        max-height: 300px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .status {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Mobile Gallery - smaller grid on very small screens */
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 0.3rem !important;
    }
    
    .image-gallery img, .trailer-gallery img {
        max-height: 250px;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    border-top: 2px solid rgba(128, 128, 128, 0.6);
    margin-top: 4rem;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #A0A0A0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    border-top: 1px solid rgba(128, 128, 128, 0.3);
    padding-top: 1.5rem;
    text-align: center;
    color: #bdc3c7;
}

.footer-bottom .company-name {
    color: #A0A0A0;
    font-weight: bold;
}

.btn.map-btn:hover {
    background: #2c3e50 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0;
    }
    
    .btn.map-btn {
        display: block !important;
        max-width: 300px;
        margin: 8px auto !important;
    }
}

@media (max-width: 480px) {
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        font-size: 0.9rem;
    }
}

/* Very Small Screens - Under 320px */
@media (max-width: 320px) {
    body {
        background-size: 200% 200%;
        font-size: 14px;
    }
    
    /* Header adjustments */
    header {
        min-height: 60px;
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.4rem;
        max-width: 75%;
    }
    
    .logo .tagline {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    /* Main content */
    main {
        margin-top: 70px;
        padding-bottom: 1rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    /* Grid layouts - force single column */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Cards and sections */
    .card {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .section {
        padding: 2rem 0;
        margin: 1rem 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .section p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    footer {
        padding: 1.5rem 0 0.5rem;
        margin-top: 1rem;
    }
    
    .footer-content {
        padding: 0 0.5rem;
    }
    
    .footer-grid {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section li {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
    }
    
    .btn.map-btn {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
        max-width: 95% !important;
    }
    
    /* Navigation */
    .nav-links a {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Buttons */
    .cta-button {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        min-width: auto !important;
        max-width: 95% !important;
    }
    
    /* Ensure no horizontal overflow */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Images and media */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Prevent text overflow */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Force single column for all grids */
    [style*="grid-template-columns"],
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Override any minmax that's too wide */
    .grid,
    [class*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* Ensure all sections can shrink properly */
    .product-section,
    .steel-section,
    .trailers-section,
    .hopper-section {
        min-width: auto !important;
        max-width: 100% !important;
        margin: 0.5rem 0 !important;
        padding: 15px 5px !important;
    }
}

/* Trailer Detail Pages Styles */
.trailer-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(52, 73, 94, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.trailer-details h1 {
    color: #A0A0A0;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.trailer-specifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.spec-section {
    background: rgba(44, 62, 80, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.spec-section h3 {
    color: #A0A0A0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(128, 128, 128, 0.3);
    padding-bottom: 0.5rem;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    color: #ecf0f1;
    font-size: 0.95rem;
}

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

.spec-list li strong {
    color: #A0A0A0;
    font-weight: 600;
}

/* Ironclad Title Styling */
.ironclad-title {
    color: #A0A0A0;
    font-size: 2.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

/* Mobile responsive for trailer details */
@media (max-width: 768px) {
    .trailer-details {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .trailer-details h1 {
        font-size: 2rem;
    }
    
    .trailer-specifications {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .spec-section {
        padding: 1rem;
    }
    
    .spec-section h3 {
        font-size: 1.1rem;
    }
    
    .spec-list li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .ironclad-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 320px) {
    .trailer-details {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .trailer-details h1 {
        font-size: 1.6rem;
    }
    
    .spec-section {
        padding: 0.8rem;
    }
    
    .spec-section h3 {
        font-size: 1rem;
    }
    
    .spec-list li {
        font-size: 0.85rem;
    }
    
    .ironclad-title {
        font-size: 1.5rem;
    }
}
