/* MetalsGate UK - Unique CSS
   Theme: Professional, Trustworthy, and Modern
   Color Palette: Black (#000000), Muted Grey (#B6B09F), Beige (#EAE4D5), Off-White (#F2F2F2)
*/

/* --- Base & Typography --- */
:root {
    --slate: #000000;
    --silver-blue: #B6B09F;
    --gold: #B6B09F;
    --off-white: #F2F2F2;
    --light-grey: #EAE4D5;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--slate);
    background-color: var(--off-white);
    margin: 0;
    padding: 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, {
    font-weight: 700;
    line-height: 1.2;
    color: #eae4d5;
}


h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 15px;
}

/* Underline effect for H2 */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--slate); /* Changed from accent for better contrast */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold); /* Use accent color for hover state */
}

/* --- Header --- */
.site-header {
    background: var(--off-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    width: 100%;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate);
}

.main-nav a {
    color: var(--slate);
    margin: 0 15px;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--gold);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #9d988a; /* Darker shade of accent */
    color: white;
    transform: translateY(-2px);
}
.cta-button:hover::after {
    width: 0; /* No underline for button */
}


/* --- Hero Section --- */
.hero {
    background: var(--slate);
    color: var(--off-white);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--light-grey);
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-heavy);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta:hover {
    background-color: #9d988a;
    color: white;
    transform: translateY(-3px);
}

/* --- General Section Styling --- */
section {
    padding: 80px 0;
}

.services-section, .testimonials-section {
    background-color: var(--light-grey);
}

/* --- Services Section --- */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.card {
    background: var(--off-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card h3 {
    font-size: 1.4rem;
    color: var(--slate); /* Changed from accent for better contrast */
    margin-bottom: 15px;
}

/* --- Gallery Section --- */
.gallery-section .image-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.gallery-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Testimonials Section --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--off-white);
    padding: 30px;
    border-left: 5px solid var(--gold);
    border-radius: 0 5px 5px 0;
    box-shadow: var(--shadow);
}

.testimonial p {
    font-style: italic;
    color: var(--slate); /* Changed from accent for better contrast */
    margin-bottom: 1rem;
}

.testimonial span {
    font-weight: 700;
    color: var(--slate);
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--slate);
    color: var(--off-white);
    text-align: center;
}

.contact-section h2 {
    color: var(--off-white);
}
.contact-section h2::after {
    background-color: var(--gold);
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: var(--light-grey);
}

.contact-cta {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-heavy);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-cta:hover {
    background-color: #9d988a;
    color: white;
    transform: scale(1.05);
}

/* --- Footer --- */
.site-footer-bottom {
    background-color: var(--slate);
    color: var(--silver-blue);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer-bottom p {
    margin: 5px 0;
}

.footer-hidden-link {
    color: #555555; /* Low contrast but still readable on new black background */
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-hidden-link:hover {
    color: var(--gold);
}

/* --- Accessibility & SEO --- */
.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .container {
        padding: 0 15px; /* Slightly reduce padding for tablets */
    }

    .site-header .container {
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo {
        margin-bottom: 15px;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 15px; /* Add gap for better spacing */
    }

    .main-nav a {
        margin: 0; /* Remove margin as gap is used */
    }

    .hero {
        padding: 80px 20px; /* Adjust hero padding */
    }

    section {
        padding: 60px 0;
    }

    .service-cards, .testimonial-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px; /* Slightly smaller base font for small devices */
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .main-nav {
        flex-direction: column; /* Stack nav links vertically */
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .main-nav a {
        padding: 8px 0;
        width: 100%;
        text-align: center;
    }

    .main-nav a:not(.cta-button):hover {
        background-color: var(--light-grey);
        border-radius: 5px;
    }

    .cta-button {
        padding: 12px 25px;
    }

    .hero-cta, .contact-cta {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px; /* Give it a max-width */
        box-sizing: border-box; /* Include padding in width */
    }

    .hero {
        padding: 60px 20px;
    }
}
