/*
 * MetalsGate CSS
 * Version: 2.0 (Unique Redesign)
 * Author: AI
 * Description: A unique, high-performance, mobile-first stylesheet with a graphite and bronze theme.
 */

/* --- CSS Variables & Root --- */
:root {
    --color-primary: #2c3e50; /* Graphite/Dark Slate */
    --color-secondary: #34495e; /* Wet Asphalt */
    --color-accent: #c89b3c; /* Muted Bronze/Gold */
    --color-text-dark: #2c3e50; /* Graphite text on light backgrounds */
    --color-text-light: #ecf0f1; /* Light grey text on dark backgrounds */
    --color-background: #f4f4f9; /* Very light, clean grey */
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --border-radius: 4px;
    --shadow: 0 5px 15px rgba(44, 62, 80, 0.15);
    --transition: all 0.3s ease-in-out;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-dark);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    padding: 14px 35px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #dab358; /* Brighter accent on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Header --- */
.site-header {
    padding: 1rem 0;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.header-cta {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
}

.header-cta:hover {
    color: var(--color-accent);
}

/* --- Hero Section --- */
.hero {
    padding: 4rem 0;
    background-color: #fff;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-secondary);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* --- Services Section --- */
.services {
    padding: 4rem 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--color-accent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.2);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

/* --- Why Us Section --- */
.why-us {
    padding: 4rem 0;
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.why-us .section-title {
    color: #fff;
}

.why-us ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.why-us li {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    padding-left: 2.5rem;
    position: relative;
}

.why-us li::before {
    content: '✓';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.5rem;
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 4rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial {
    background-color: #fff;
    border-left: 5px solid var(--color-accent);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.testimonial cite {
    font-weight: bold;
    color: var(--color-primary);
    font-style: normal;
}

/* --- Final CTA Section --- */
.final-cta {
    padding: 5rem 0;
    background-color: var(--color-secondary);
    text-align: center;
    color: #fff;
}

.final-cta h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-hidden-link {
    font-size: 0.75rem;
    color: #4e6a85; /* Low contrast but readable on this background */
    text-decoration: none;
    transition: var(--transition);
}

.footer-hidden-link:hover {
    color: var(--color-accent);
}

/* --- Media Queries for Responsiveness --- */
@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }

    .hero .container {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }

    .hero-content {
        flex: 1.2;
        margin-bottom: 0;
    }
    
    .hero-image {
        flex: 1;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .site-footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}
