/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', Arial, sans-serif;
    color: white;
    line-height: 1.6;
    background-color: #2a2a2a;
}

/* Industrial font for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #ff8800 0%, #ff9900 100%);
    padding: 0.8rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
}

.logo-section {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.est-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
    text-transform: uppercase;
    line-height: 1;
}

.company-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
    justify-self: center;
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.logo-phone-button,
.logo-email-button {
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #ff8800;
    border: 2px solid #ff8800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-shadow: none;
}

.logo-phone-button {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    color: white;
    border: 2px solid #28a745;
}

.logo-phone-button:hover {
    background: linear-gradient(135deg, #218838 0%, #28a745 100%);
    color: white;
    border: 2px solid #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(40,167,69,0.4);
}

.logo-phone-button:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.logo-email-button:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ff9900 100%);
    color: black;
    border: 2px solid black;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(255,136,0,0.4);
}

.nav-menu {
    justify-self: end;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: #ff8800;
}

.mobile-menu-toggle:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Mobile menu toggle animation */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-logo {
    height: 65px;
    width: auto;
    border-radius: 8px;
    border: 3px solid #ff8800;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-logo:hover {
    transform: scale(1.05);
    border-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    gap: 0.3rem;
    background: rgba(0,0,0,0.1);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.nav-menu a {
    color: black;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 0.7rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
    border: 2px solid transparent;
    flex-shrink: 0;
}

/* Current page indicator */
.nav-menu a[aria-current="page"] {
    background: rgba(255,255,255,0.3);
    color: #1a1a1a;
    border: 2px solid rgba(255,255,255,0.5);
    font-weight: 600;
}

/* Focus states for accessibility */
.nav-menu a:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
    background: rgba(255,255,255,0.2);
}

.logo-email-button:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
    color: #1a1a1a;
    transform: translateY(-3px) scale(1.05);
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-shadow: 0 1px 3px rgba(255,255,255,0.5);
}


/* Hero Section */
.hero {
    background-color: #2a2a2a;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 3px solid #ff8800;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.tagline {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.product-card {
    background-color: #1a1a1a;
    background-image: url('images/diamond_plate_background_for_website.jpg');
    background-repeat: repeat;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #444;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(255,136,0,0.3);
    border-color: #ff8800;
}

.product-image {
    height: 200px;
    background-color: transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 2px solid #ff8800;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    color: #ff8800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Description box styling */
.description-box {
    border: 2px solid #ff8800;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(255, 136, 0, 0.1);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.description-box p {
    margin: 0.5rem 0;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.description-box p:first-child {
    margin-top: 0;
    color: #ff8800;
    font-weight: bold;
    font-size: 1rem;
}

.description-box p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Product Detail Pages */
.product-detail {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.detail-image {
    width: 50%;
    max-width: 500px;
    border-radius: 8px;
    border: 2px solid #ff8800;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    color: #ff8800;
    margin-bottom: 1rem;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.size-table th {
    background-color: #ff8800;
    color: black;
    padding: 0.75rem;
    text-align: left;
}

.size-table td {
    background-color: #2a2a2a;
    color: #ccc;
    padding: 0.75rem;
    border-bottom: 1px solid #444;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: #ccc;
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
}

.feature-list li:before {
    content: "✓ ";
    color: #ff8800;
    font-weight: bold;
}

/* Size Options Styling */
.size-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.size-group {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #555;
}

.size-group h4 {
    color: #ff8800;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.size-group ul {
    list-style: none;
    padding: 0;
}

.size-group li {
    color: #ccc;
    padding: 0.3rem 0;
    border-bottom: 1px solid #444;
}

.size-group li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .size-options {
        grid-template-columns: 1fr;
    }
}

/* Classic Stands Styling */
.weight-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.weight-list li {
    color: #ccc;
    padding: 0.3rem 0;
    margin-left: 1rem;
}

.weight-list li:before {
    content: "• ";
    color: #ff8800;
    font-weight: bold;
}

.size-options-classic {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #555;
    margin-top: 1rem;
}

.classic-sizes {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.classic-sizes li {
    color: #ccc;
    padding: 0.5rem;
    background-color: #444;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .logo-section {
        justify-self: start;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .company-name {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .nav-logo {
        height: 75px;
    }
    
    .logo-phone-button,
    .logo-email-button {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    
    .contact-buttons {
        gap: 0.25rem;
        justify-self: end;
        order: 2;
    }
    
    .mobile-menu-toggle {
        display: flex;
        justify-self: end;
        order: 3;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: linear-gradient(135deg, #ff8800 0%, #ff9900 100%);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 1rem;
        gap: 0;
        grid-column: 1 / -1;
        order: 4;
        border: 2px solid #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 4px;
        border: none;
        border-bottom: 2px solid rgba(0,0,0,0.2);
        font-size: 1.2rem;
        color: #000 !important;
        background: rgba(255,255,255,0.1);
        margin-bottom: 2px;
        transition: all 0.3s ease;
        font-weight: 300;
        text-shadow: none;
    }
    
    .nav-menu a:hover {
        background: rgba(255,255,255,0.3);
        color: #1a1a1a !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .nav-menu a[aria-current="page"] {
        background: rgba(255,255,255,0.4);
        color: #1a1a1a !important;
        border-bottom: 2px solid #fff;
        font-weight: 700;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
}

/* Map container styling */
.map-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ff8800;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Ultra-small mobile devices (320px and below) */
@media (max-width: 350px) {
    .nav-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-logo {
        height: 60px;
    }
    
    .logo-phone-button,
    .logo-email-button {
        font-size: 0.7rem;
        padding: 0.2rem 0.3rem;
        letter-spacing: 0.5px;
    }
    
    .contact-buttons {
        gap: 0.2rem;
    }
    
    .logo-section {
        gap: 0.25rem;
    }
    
    .company-name {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .est-year {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }
    
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
        padding: 0.4rem;
    }
    
    .hamburger-line {
        width: 16px;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .tagline {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        line-height: 1.4;
    }
    
    .hero-container {
        padding: 0 0.5rem;
    }
    
    .main-content {
        padding: 1.5rem 0.5rem;
    }
    
    .product-grid {
        gap: 1rem;
    }
    
    .product-card {
        padding: 1.5rem 1rem;
    }
    
    .product-card h3 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .product-card p {
        font-size: 0.9rem;
    }
    
    .footer {
        margin-top: 1.5rem;
        padding: 0.8rem 0;
    }
    
    .footer-bottom {
        padding: 0.8rem 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Product detail pages on small screens */
    .product-detail {
        flex-direction: column;
        gap: 1rem;
    }
    
    .detail-image {
        width: 100%;
    }
    
    .size-table {
        font-size: 0.85rem;
    }
    
    .size-table th,
    .size-table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Fix horizontal scrolling content */
    body {
        overflow-x: hidden;
    }
    
    /* Hero section address/phone info fixes */
    .hero-container div[style*="white-space: nowrap"] {
        white-space: normal !important;
        overflow-x: visible !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .hero-container p[style*="display: inline-block"] {
        display: block !important;
        margin: 0.25rem 0 !important;
        font-size: 0.8rem !important;
        text-align: center !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }
    
    /* Contact info responsive adjustments */
    .contact-info {
        max-width: 100% !important;
        padding: 0 0.5rem !important;
    }
    
    .contact-section {
        margin-bottom: 2rem !important;
    }
    
    .contact-section h2 {
        font-size: 1.4rem !important;
    }
    
    .contact-section p {
        font-size: 1rem !important;
        word-break: break-word !important;
    }
    
    /* Map responsive adjustments */
    .map-container {
        height: 250px;
        border-width: 1px;
    }
}