/*
  styles.css
  Unique Design for metalsgates.org.uk
*/

/* 1. Global Styles & Variables */
:root {
    --primary-color: #1a2a4c; /* Deep, trustworthy blue */
    --secondary-color: #b8860b; /* Dark goldenrod for accents */
    --background-color: #f4f7f9; /* Light grey background */
    --text-color: #333333;
    --heading-font: 'Teko', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --container-width: 1100px;
    --border-radius: 5px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* 2. Header & Navigation */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-main {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0 0.5rem;
    border-radius: var(--border-radius);
    margin-right: 0.5rem;
}

.logo-sub {
    font-family: var(--body-font);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 700;
    color: var(--primary-color);
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.button-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-primary:hover {
    background-color: #2c478a;
    color: #fff;
    transform: translateY(-2px);
}

/* 3. Hero Section */
.hero {
    background: linear-gradient(rgba(26, 42, 76, 0.8), rgba(26, 42, 76, 0.8)), url('metal-gates.webp') no-repeat center center/cover;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
    font-weight: 400;
}

.button-cta {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.button-cta:hover {
    background-color: #daa520; /* Lighter gold */
    color: #fff;
    transform: scale(1.05);
}

/* 4. Services Section */
.services-section {
    padding: 4rem 0;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}

/* 5. Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background-color: #fff;
}

.gallery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.gallery-text ul {
    list-style: none;
    padding-left: 0;
}

.gallery-text li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.gallery-text li::before {
    content: '✔';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* 6. Contact Section */
.contact-section {
    padding: 4rem 0;
    text-align: center;
}

.contact-details {
    margin-top: 2rem;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

/* 7. Footer */
.site-footer {
    background-color: var(--primary-color);
    color: #a9b4d2;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: #a9b4d2;
}

.site-footer a:hover {
    color: #fff;
}

/* 8. Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.footer-hidden-link {
    /* Make the link very subtle */
    font-size: 0.1px;
    color: transparent;
    text-shadow: none;
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0.01;
}

/* 9. Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .gallery-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-contact {
        display: none; /* Hide on smallest screens to save space */
    }

    .hero {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }

    .hero-text .subtitle {
        font-size: 1.2rem;
    }
}
