:root {
    --navy: #1a365d;
    --navy-light: #2c5282;
    --accent: #3182ce;
    --grey: #4a5568;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden; /* Fixes horizontal fragmenting */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--grey);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 2000;
    padding: 0 5%;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-grow: 1;
}

.logo {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--grey);
    font-weight: 400;
    letter-spacing: 0.5px;
}

#nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--navy);
    margin: 6px 0;
    transition: 0.3s;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent);
}

.nav-btn {
    background: var(--navy);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
}

/* --- REUSABLE COMPONENTS --- */
section {
    padding: 100px 5%;
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: var(--navy);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--navy);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
}

.btn-white {
    background: white;
    color: var(--navy);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

ul.check-list {
    list-style: none;
    margin: 20px 0;
}

ul.check-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

ul.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* --- SECTION 1: HERO WITH FORM --- */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../Images/site-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #e2e8f0;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* --- HERO FORM CARD --- */
.hero-form-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-form-card h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.hero-form-card p {
    font-size: 0.9rem;
    color: var(--grey);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--navy);
}

/* --- OTHER SECTIONS --- */
#metals {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../Images/section-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#metals .section-title {
    color: var(--white);
}

#metals p {
    color: var(--white);
}

.metals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgb(0 0 0 / 19%);
}

/* --- PROCESS CARDS --- */
.process-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.process-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.process-card .step-num {
    width: 45px;
    height: 45px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.process-card h3{
    font-size: 16px;
    margin-bottom: 12px;
    min-height: 60px;
}

.process-card p {
    color: var(--navy) !important;
     font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

#buyers {
    background: var(--navy);
    color: white;
    border-bottom: none;
}

#buyers .section-title {
    color: white;
}

#buyers .check-list li::before {
    color: #63b3ed;
}

/* ===============================
   PREMIUM FOOTER STYLE
================================ */

.site-footer {
    background: #f4f6f8;
    padding-top: 50px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #333;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    padding: 0 20px 40px;
}

.footer-col h3 {
    color: #0b2c4d;
    margin-bottom: 15px;
}

.footer-col h4 {
    margin-bottom: 10px;
    color: #111;
    font-size: 15px;
}

.footer-col p {
    margin: 6px 0;
    line-height: 1.6;
}

.payment-badges span {
    display: inline-block;
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    margin-right: 8px;
    border-radius: 6px;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.footer-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
}

.footer-links a:hover {
    color: #0b2c4d;
}

.legal-box {
    border-top: 1px solid #cbd5e1;
    padding-top: 30px;
    font-size: 0.85rem;
}

/* --- RESPONSIVE UPDATES --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 35px;
    }

    .hero-btns {
        justify-content: center;
        margin-bottom: 40px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    #home, #metals {
        background-attachment: scroll; /* Critical fix for mobile background jumping */
    }

    .hamburger {
        display: block;
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        height: calc(100vh - 80px);
        transition: 0.4s;
        padding: 40px;
        z-index: 1000;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    #nav-toggle:checked~nav ul {
        left: 0;
    }

    .hero-btns {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-links a {
        margin: 0 10px;
    }
    
    .product-filters {
        display: flex;
        overflow-x: auto; /* Allows swiping of categories on mobile */
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        width: auto;
        padding: 10px 20px;
    }
}

/* ================================
   PREMIUM V2 – PRODUCT CATEGORIES
================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.product-img {
    height: 220px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-content {
    padding: 22px;
}

.product-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-details {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
    font-size: 0.9rem;
}

.product-card.active .product-details {
    max-height: 200px;
    margin-top: 10px;
}

.quote-btn {
    margin-top: 15px;
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.quote-btn:hover {
    background: var(--navy);
}

.products-section {
    padding: 80px 20px;
}

.product-filters {
    margin: 30px 0;
}

.filter-btn {
    border: none;
    background: #eee;
    padding: 15px 18px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    max-width: 160px;
    transition: .3s;
    width: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--navy);
    color: #fff;
}

/* ===================================
   PREMIUM IMAGE OVERLAY (HOVER DETAIL)
=================================== */

.product-card {
    position: relative;
    overflow: hidden;
}

/* IMAGE AREA */
.product-img {
    position: relative;
    height: 220px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s;
}

/* DARK OVERLAY */
.product-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .8),
            rgba(0, 0, 0, .8),
            transparent);

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: #fff;

    transform: translateY(100%);
    transition: .5s ease;
}

/* SHOW ON HOVER */
.product-card:hover .product-overlay {
    transform: translateY(0);
}

/* IMAGE ZOOM */
.product-card:hover img {
    transform: scale(1.1);
}

/* TEXT STYLE */
.product-overlay h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.product-overlay p {
    font-size: .9rem;
    margin-bottom: 15px;
    opacity: .9;
}

/* BUTTON */
.overlay-btn {
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    width: max-content;
    transition: .3s;
}

.overlay-btn:hover {
    background: var(--navy);
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 0.95rem;
    }
}