/* style.css - Dark Theme with Mobile Optimization */
:root {
    /* DARK THEME PALETTE */
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #2d2d2d;
    --accent-color: #e35205;  /* Mozy Orange */
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --border-color: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    /* Construction Texture */
    background-image: 
        radial-gradient(circle, #1a1a1a 15%, transparent 16%), 
        radial-gradient(circle, #1a1a1a 15%, transparent 16%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}

/* Header & Nav */
header {
    background: var(--bg-card);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    flex-wrap: wrap; /* Allows wrapping on mobile */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img { height: 50px; }

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text span { color: var(--accent-color); }

nav ul { display: flex; list-style: none; gap: 20px; }

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover { color: var(--accent-color); }

/* Hero Section */
.hero {
    min-height: 75vh;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-main);
    padding: 4rem 1rem;
    border-bottom: 4px solid var(--accent-color);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.btn {
    background-color: var(--accent-color);
    color: var(--text-main);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s;
    border: 1px solid var(--accent-color);
    /* Safety Stripe pattern hover effect */
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px);
}

.btn:hover { 
    background-color: #c04000;
    border-color: #c04000;
}

/* Layout */
.container { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-main);
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    /* Diagonal Caution Stripes in the underline */
    background-image: repeating-linear-gradient(45deg, var(--accent-color), var(--accent-color) 10px, #c04000 10px, #c04000 20px);
}

/* Homepage Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* CSS to make the card link behave like a block element */
.clickable-cards a.card {
    text-decoration: none;
    display: block;
    color: inherit;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.icon-placeholder {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    border: 1px solid var(--accent-color);
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(227, 82, 5, 0.1);
}

.card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-main); }
.card p { color: var(--text-muted); }

/* Detailed Services Rows (Services.html) */
.service-row {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.service-row.reverse { flex-direction: row-reverse; }

.service-image {
    flex: 1;
    min-height: 250px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback for missing images */
.img-placeholder {
    color: #333;
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
}

.service-content { flex: 1; }
.service-content h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--accent-color); }
.service-content p { margin-bottom: 1rem; color: #ddd; }
.service-list { list-style: inside square; color: var(--text-muted); }
.service-list li { margin-bottom: 0.5rem; }

/* Contact Page Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

form input, form textarea, form select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    border-radius: 2px;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #333;
}

/* Footer */
footer {
    background: #0d0d0d;
    color: var(--text-muted);
    padding: 4rem 5%;
    text-align: center;
    border-top: 5px solid var(--accent-color);
    border-image: repeating-linear-gradient(45deg, var(--accent-color), var(--accent-color) 20px, #111 20px, #111 40px) 10;
}

.footer-contact {
    margin: 1.5rem 0;
    color: #fff;
}

.footer-contact p { margin-bottom: 0.5rem; }
.footer-contact a { color: var(--accent-color); text-decoration: none; }

.license-number {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #222;
    font-family: monospace;
    letter-spacing: 1px;
    color: #666;
    font-size: 0.9rem;
}

/* --- MOBILE OPTIMIZATION (Responsive Design) --- */
@media (max-width: 768px) {
    /* Header Stack */
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }

    nav ul {
        gap: 15px;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero Text Size */
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    /* Container Padding */
    .container { padding: 3rem 1.5rem; }

    /* Stack Service Rows on Services Page */
    .service-row, .service-row.reverse {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .service-image { width: 100%; min-height: 200px; }

    /* Stack Contact Layout */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Adjust Grid columns for very small screens */
    .services-grid {
        grid-template-columns: 1fr;
    }
}