/* --- 1. VARIABLES (The Design System) --- */
:root {
    --color-bg: #0a0a0a;       /* Deep Charcoal Black */
    --color-text: #e0e0e0;     /* Off-White */
    --color-accent: #c5a059;   /* Whisky Gold */
    --color-dark-accent: #8c7035;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --max-width: 1200px;
    --header-height: 160px;    /* Hamburger Header Height */
}

/* --- 2. GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

a { color: var(--color-text); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--color-accent); }

/* --- 3. HEADER LAYOUT (Hamburger Edition) --- */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 3 Columns */
    align-items: center;
    padding: 0 40px;
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid #333;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000; /* Higher than everything */
}

/* --- CENTER: LOGO --- */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}
.custom-logo-link img {
    height: 130px !important;
    width: auto !important;
}

/* --- LEFT: MENU TAB --- */
.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--color-accent);
    gap: 15px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    padding: 0;
}

/* The 3 Lines Icon */
.hamburger-box {
    width: 30px;
    height: 20px;
    position: relative;
    display: inline-block;
}

.hamburger-inner {
    top: 50%;
    margin-top: -1px;
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { bottom: -8px; }

/* Animation when Active */
.menu-toggle.is-active .hamburger-inner { background-color: transparent; }
.menu-toggle.is-active .hamburger-inner::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-active .hamburger-inner::after { bottom: 0; transform: rotate(-45deg); }

/* --- RIGHT: LOGIN --- */
.header-right {
    display: flex;
    justify-content: flex-end;
}
.btn-login {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.btn-login:hover { background-color: var(--color-accent); color: #000; }

/* --- 4. FULL SCREEN OVERLAY MENU --- */
.fullscreen-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: #000; /* Solid Black */
    z-index: 1500; /* Behind header but above content */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.fullscreen-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.menu-content ul {
    list-style: none;
    text-align: center;
}

.menu-content ul li {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease;
}

/* Staggered animation for links */
.fullscreen-menu.is-open li {
    opacity: 1;
    transform: translateY(0);
}

.menu-content a {
    font-family: var(--font-heading);
    font-size: 3rem; /* Huge Links */
    color: #fff;
    text-transform: capitalize;
}

.menu-content a:hover {
    color: var(--color-accent);
    font-style: italic;
}

/* --- 5. UTILITIES --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-main { padding-top: calc(var(--header-height) + 40px); }

/* --- 6. HERO SECTION --- */
.home-main {
    padding-top: var(--header-height); 
}

.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background-color: #000;
}

.video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

.hero-video {
    width: 100%; height: 100%; object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    z-index: 2;
}

.hero-content {
    position: relative; z-index: 3; max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px;
}

.text-gold { color: var(--color-accent); }

.hero-sub {
    font-size: 1.25rem; margin-bottom: 40px; color: #e0e0e0; max-width: 600px;
}

/* --- 7. BUTTONS --- */
.hero-buttons { 
    display: flex; 
    gap: 20px; 
    margin-top: 60px; /* This forces the gap */
}

.btn {
    display: inline-block; padding: 15px 35px;
    font-family: var(--font-body); font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.9rem; transition: all 0.3s ease; cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent); color: #000; border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: #fff; border-color: #fff; color: #000;
}

.btn-outline {
    background-color: transparent; color: #fff; border: 1px solid #fff;
}

.btn-outline:hover {
    border-color: var(--color-accent); color: var(--color-accent);
}

/* --- 8. SERVICES SECTION --- */
.services-section {
    padding: 100px 0; background-color: #0f0f0f;
}

.section-header { text-align: center; margin-bottom: 60px; }

.subtitle {
    text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem;
    color: var(--color-accent); display: block; margin-bottom: 10px;
}

.section-title { font-size: 2.5rem; color: #fff; margin-bottom: 20px; }

.gold-divider {
    width: 60px; height: 3px; background-color: var(--color-accent); margin: 0 auto;
}

/* --- 9. THE GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #1a1a1a; padding: 40px; border: 1px solid #333;
    transition: all 0.3s ease; display: flex; flex-direction: column; align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px); border-color: var(--color-accent); background-color: #222;
}

.icon-box { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 25px; }

.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }

.service-card p {
    color: #aaa; font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6;
}

.link-text {
    margin-top: auto; font-size: 0.85rem; text-transform: uppercase;
    font-weight: 700; color: #fff; letter-spacing: 1px;
}

.service-card:hover .link-text { color: var(--color-accent); }
.link-text i { margin-left: 5px; font-size: 0.7rem; transition: 0.3s; }
.service-card:hover .link-text i { margin-left: 10px; }

/* --- 10. UNIVERSAL PAGE HEADER (Deduplicated) --- */
.page-header {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-color: #111;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
}

.header-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 1;
}

.header-content { position: relative; z-index: 2; width: 100%; }

.page-title { font-size: 3rem; color: #fff; margin-bottom: 10px; }

/* Breadcrumbs */
.breadcrumbs {
    list-style: none; display: flex; padding: 0; font-size: 0.9rem;
    color: #bbb; text-transform: uppercase; letter-spacing: 1px;
}
.breadcrumbs a { color: #bbb; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { color: var(--color-accent); border-color: var(--color-accent); }
.breadcrumbs .sep { margin: 0 10px; color: #555; }
.bread-current { color: var(--color-accent); font-weight: 700; }

/* --- 11. PAGE CONTENT TYPOGRAPHY --- */
.content-wrapper {
    padding: 80px 20px; max-width: 900px; margin: 0 auto;
}

.entry-content p {
    font-size: 1.1rem; color: #ccc; margin-bottom: 25px; line-height: 1.8;
}
.entry-content h2 {
    color: var(--color-accent); font-size: 2rem; margin-top: 50px;
    margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px;
}
.entry-content h3 {
    color: #fff; font-size: 1.5rem; margin-top: 40px; margin-bottom: 15px;
}
.entry-content ul, .entry-content ol {
    margin-bottom: 30px; margin-left: 20px; color: #ccc;
}


/* =========================================================================
   12. CATALOG & WOOCOMMERCE STYLES (UPDATED - PREMIUM B2B GRID)
   ========================================================================= */

/* 1. The Grid Layout */
.woocommerce ul.products {
    display: grid;
    /* Desktop: 3 Columns by default, 4 on wide screens */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 80px;
}

/* 2. The Product Card */
.woocommerce ul.products li.product {
    background-color: #111;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* Remove default padding for edge-to-edge look */
    width: 100% !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Lift & Gold Glow */
.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 3. The Product Image (Uniform Height) */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 300px; /* Fixed height creates perfect grid lines */
    object-fit: cover; /* Crops image cleanly to fit */
    margin: 0 !important;
    border-bottom: 1px solid #222;
    transition: 0.5s;
    filter: brightness(0.9); /* Slight dim for mood */
}

.woocommerce ul.products li.product:hover a img {
    filter: brightness(1.1); /* Brighten on hover */
    transform: scale(1.05); /* Subtle zoom */
}

/* 4. Product Info Area */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    padding: 20px 20px 5px 20px; /* Padding inside the text area only */
    margin: 0;
    text-align: left; /* B2B standard */
}

/* Hide the price */
.woocommerce ul.products li.product .price {
    display: none !important;
}

/* 5. The "Request Quote" Button (Solid Bar) */
.woocommerce ul.products li.product .button {
    margin: 20px;
    background-color: transparent !important;
    border: 1px solid var(--color-accent) !important;
    color: var(--color-accent) !important;
    text-align: center;
    padding: 12px 0 !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
    border-radius: 2px !important;
    display: block;
}

.woocommerce ul.products li.product:hover .button {
    background-color: var(--color-accent) !important;
    color: #000 !important;
}

/* Mobile Fix for Grid */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr; /* Stack vertically on phones */
        gap: 30px;
    }
    
    .woocommerce ul.products li.product a img {
        height: 250px;
    }
}

/* Widen Container for Shop Pages Only */
.post-type-archive-product .container, 
.tax-product_cat .container {
    max-width: 1400px;
}


/* --- 13. CONTACT FORM STYLES --- */
.am-form {
    max-width: 800px;
    margin: 0 auto;
}

.am-form label {
    display: block;
    color: var(--color-accent); /* Gold text */
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.am-form input[type="text"],
.am-form input[type="email"],
.am-form input[type="tel"],
.am-form select,
.am-form textarea {
    width: 100%;
    background-color: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 15px;
    margin-bottom: 25px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.am-form input:focus,
.am-form textarea:focus {
    border-color: var(--color-accent); /* Gold border on click */
    background-color: #000;
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-col {
    flex: 1;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* Submit Button */
.wpcf7-submit {
    background-color: var(--color-accent);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}
.wpcf7-submit:hover {
    background-color: #fff;
}

/* --- 14. CONTACT PAGE LAYOUT --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.contact-item h3 {
    font-size: 1.2rem;
    color: var(--color-accent); /* Whisky Gold */
    margin-bottom: 10px;
}
.contact-item p {
    color: #ccc;
    font-size: 1rem;
}
.contact-item a {
    color: #ccc;
    text-decoration: underline;
}
.contact-item a:hover {
    color: var(--color-accent);
}


/* =========================================
   FOOTER STYLES
   ========================================= */
.site-footer {
    background-color: #050505; /* Slightly darker than main bg */
    border-top: 1px solid #1a1a1a;
    padding: 80px 0 40px;
    margin-top: auto; /* Pushes footer to bottom if content is short */
    color: #888;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr; /* Wider outer cols */
    gap: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.gold-text {
    color: var(--color-accent);
}

.footer-heading {
    color: #fff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a, .legal-details li, .copyright a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover, .copyright a:hover {
    color: var(--color-accent);
}

.legal-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    font-family: monospace; /* Technical feel for Reg numbers */
    color: #666;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* Social Icons */
.social-links {
    margin-top: 1.5rem;
}
.social-links a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--color-accent);
}


/* =========================================
   MOBILE RESPONSIVENESS & HEADER FIX
   ========================================= */
@media (max-width: 992px) {
    /* Stack Footer Columns on Tablet/Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-heading {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    /* 1. Header Height Reduction */
    :root {
        --header-height: 90px; /* Overrides the 160px desktop default */
    }

    /* 2. Logo Size Adjustment */
    .site-header .logo img {
        height: 60px !important; /* Force reduction */
        width: auto;
    }

    /* 3. Padding adjustments for body */
    body {
        padding-top: var(--header-height); /* Ensure content doesn't hide behind header */
    }

    /* 4. Hamburger Menu Position Adjustment */
    .menu-toggle {
        top: 25px; /* Centers it vertically in the new 90px header */
    }

    /* 5. Trade Login Button Adjustment */
    .btn-login {
        padding: 8px 15px;
        font-size: 0.75rem;
    }
}

/* --- 15. SINGLE PRODUCT: CUSTOM GRID (FINAL LAYOUT FIX) --- */

/* 1. THE GRID CONTAINER */
.woocommerce div.product {
    display: grid;
    /* Column Widths: Image (55%) | Space (5%) | Info (40%) */
    grid-template-columns: 55fr 5fr 40fr; 
    
    /* THE MAP (Now includes "related" at the bottom) */
    grid-template-areas: 
        "title title title"
        "image . short-desc"
        "image . button"
        "long-desc long-desc long-desc"
        "related related related"; /* <--- NEW BOTTOM ROW */
        
    align-items: start; 
    margin-top: 0;
    padding-bottom: 80px;
}

/* 2. UNLOCK SUMMARY */
.woocommerce div.product .summary.entry-summary { display: contents; }

/* 3. TITLE */
.woocommerce div.product .product_title {
    grid-area: title;
    font-size: 3.5rem;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
    margin-bottom: 60px;
    width: 100%;
}

/* 4. THE IMAGE (Sticky & Pulled Up) */
.woocommerce div.product .woocommerce-product-gallery {
    grid-area: image;
    position: sticky;
    top: 150px; 
    z-index: 10;
    margin-top: -150px !important; /* The alignment fix */
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    min-height: 500px; 
    max-height: 80vh; 
    object-fit: contain;
    border: 1px solid #222;
    background-color: #050505;
    display: block; 
}

/* 5. SHORT DESCRIPTION (Tech Specs) */
.woocommerce-product-details__short-description {
    grid-area: short-desc;
    background-color: #111;
    padding: 30px;
    border-left: 4px solid var(--color-accent);
    color: #ccc;
    font-family: monospace;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    margin-top: 0 !important; 
}

.woocommerce-product-details__short-description p:first-child { margin-top: 0; }
.woocommerce-product-details__short-description strong {
    color: var(--color-accent);
    min-width: 100px;
    display: inline-block;
    font-weight: 700;
}

/* 6. QUOTE BUTTON */
.quote-container {
    grid-area: button;
    width: 100%;
}

/* 7. LONG DESCRIPTION */
.woocommerce-tabs {
    grid-area: long-desc;
    margin-top: 80px;
    border-top: 1px solid #333;
    padding-top: 50px;
}
.woocommerce-tabs ul.tabs { display: none; }
.woocommerce-tabs .panel { padding: 0 !important; }
.woocommerce-tabs h2 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.woocommerce-tabs p {
    color: #bbb;
    font-size: 1.15rem;
    line-height: 1.9;
    max-width: 900px; 
}

/* 8. RELATED PRODUCTS (The Fix) */
.related.products, .upsells.products {
    grid-area: related; /* Forces it to the bottom row */
    margin-top: 80px;
    border-top: 1px solid #333;
    padding-top: 50px;
    width: 100%;
}

.related.products h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 9. HIDE META */
.product_meta { display: none; }

/* --- MOBILE LAYOUT --- */
@media (max-width: 992px) {
    .woocommerce div.product {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .woocommerce div.product .woocommerce-product-gallery {
        margin-top: 0 !important;
        position: relative;
        top: 0;
    }
    .woocommerce div.product .product_title {
        text-align: left;
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
}