/* ================================================================= */
/* 1. CSS VARIABLES & BASE STYLES                                   */
/* ================================================================= */
html {
    background-color: var(--dark-bg); /* Matches your true jet black theme instantly */
    color-scheme: dark;
}

:root {
    --safety-orange: #ff6600;
    --amber-yellow: #fbbf24;
    --steel-blue: #334155;
    --dark-bg: #000000; /* True jet black background */
    --card-bg: #121212; /* Deep contrasting dark surface */
    --border-color: #27272a;
    --pure-white: #ffffff;
    --text-muted: #a1a1aa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
 /* === OPTION A: TILED BACKGROUND IMAGE (Currently ACTIVE) === */

    background: linear-gradient(rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.80)), url('/images/fence.png');
    background-repeat: repeat;
    background-size: auto;

    /* === OPTION B: SOLID JET BLACK (Currently DISABLED / COMMENTED OUT) === */
/*
    background-color: #000000;
*/    
    color: var(--pure-white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ================================================================= */
/* 2. HEADER, NAVIGATION & CONTRASTING SUB-HEADER BAR                 */
/* ================================================================= */
/* 1. Full-width sticky header wrapper */
header {
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Centers content inside the main header */
.header-main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 5% 15px 5%;
    display: flex;
    align-items: flex-end; /* Pushes the nav items and button down to the bottom */
    padding-bottom: 20px; /* Adjust this to control how close they sit to the bottom line */
}

.header-main nav,
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px; /* Adjust spacing between your nav links if needed */
    margin-left: auto; /* This pushes the whole menu over to the right edge */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid var(--steel-blue);
}

.logo-stacked-text {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--pure-white);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--amber-yellow);
    transition: color 0.2s ease;
}

nav a:hover,
nav a.nav-active {
    color: var(--safety-orange);
}

.btn-portal {
    background-color: var(--safety-orange);
    color: var(--pure-white) !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.btn-portal:hover {
    opacity: 0.9;
}

/* Contrasting Sub-Header Bar */
/* 2. Full-width background wrapper for the contact/sub-header bar */
.sub-header-bar,
.header-contact-bar {
    background-color: var(--card-bg); /* Distinct contrasting background */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%; /* Forces background to span full-screen edge-to-edge */
}

/* Centers the text content inside the sub-header bar */
.sub-header-bar-inner,
.header-contact-bar-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-left {
    display: flex;
    gap: 25px;
    align-items: center;
}

.sub-header-bar a,
.header-contact-bar a {
    color: var(--amber-yellow);
}

.sub-header-bar a:hover,
.header-contact-bar a:hover {
    text-decoration: underline;
}


/* ================================================================= */
/* 3. SHARED FOOTER STYLES                                           */
/* ================================================================= */
footer {
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

footer p + p {
    margin-top: 10px;
}

footer a {
    color: var(--amber-yellow);
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}


/* ================================================================= */
/* 4. PAGE-SPECIFIC STYLES                                           */
/* ================================================================= */

/* --- A. Home Page (index.html) --- */
.hero {
    text-align: center;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.construction-banner {
    background-color: var(--card-bg);
    color: var(--amber-yellow);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--safety-orange);
}

.hero .description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.tagline-banner {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    display: inline-block;
}

.tagline-text {
    font-size: 1.1rem;
    font-weight: bold;
}

.tagline-text span {
    color: var(--safety-orange);
}

.services-section {
    padding: 40px 5% 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--pure-white);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
/*    background-color: var(--card-bg); */
    background: linear-gradient(rgba(18, 18, 18, 0.60), rgba(18, 18, 18, 0.60)), url('/images/Plate.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    border-color: var(--safety-orange);
    transform: translateY(-3px);
}

.card h3 {
    color: var(--safety-orange);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--pure-white);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* --- B. About Page (about.html) --- */
.about-container {
    max-width: 1000px;
    margin: 40px auto 80px auto;
    padding: 0 5%;
}

.about-header h1 {
    font-size: 2.8rem;
    color: var(--safety-orange);
    margin-bottom: 30px;
}

.about-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-card h2 {
    color: var(--safety-orange);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.profile-grid {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 15px;
}

.profile-pic-container {
    flex: 0 0 250px;
    text-align: center;
}

.profile-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    border: 3px solid var(--steel-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.profile-info {
    flex: 1;
}

.profile-info p {
    margin-bottom: 15px;
}

.profile-info p:last-child {
    margin-bottom: 0;
}


/* --- C. Contact Page & Gallery Page Layout --- */
.contact-container {
    max-width: 1000px;
    margin: 60px auto 80px auto;
    padding: 0 5%;
    display: flex;
    gap: 40px;
    align-items: center;
}

.contact-left-col {
    flex: 1;
}

.contact-left-col h1 {
    font-size: 2.8rem;
    color: var(--safety-orange);
    margin-bottom: 25px;
}

.contact-block {
    margin-bottom: 20px;
}

.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--amber-yellow);
    margin-bottom: 5px;
    font-weight: 700;
}

.contact-detail {
    font-size: 1.15rem;
    color: var(--pure-white);
}

.contact-detail a {
    color: var(--amber-yellow);
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-mission-text {
    margin-top: 30px;
    font-size: 1.05rem;
    color: #d1d5db;
    line-height: 1.7;
}

.contact-right-col {
    flex: 0 0 380px;
    text-align: center;
}

.contact-right-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 8px;
    border: 3px solid var(--steel-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}


/* --- D. Services Page Layout (With Plate Images) --- */
.services-container {
    max-width: 1100px;
    margin: 40px auto 80px auto;
    padding: 0 5%;
}

.services-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-header h1 {
    font-size: 2.8rem;
    color: var(--safety-orange);
    margin-bottom: 10px;
}

.services-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.plates-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.plate-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-plate {
    background: linear-gradient(rgba(18, 18, 18, 0.60), rgba(18, 18, 18, 0.60)), url('/images/Plate.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 25px;
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    min-height: 380px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-plate:hover {
    border-color: var(--safety-orange);
    transform: translateY(-3px);
}

.plate-icon {
    font-size: 3.5rem; /* Adjust this number to make it bigger or smaller */
    line-height: 1;
    margin-bottom: 15px;
    text-align: center;
}

.plate-img-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--steel-blue);
    margin-bottom: 15px;
}

.service-plate h3 {
    color: var(--safety-orange);
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.plate-divider {
    height: 2px;
    background-color: var(--border-color);
    width: 50px;
    margin: 15px auto;
}

.service-plate p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* ================================================================= */
/* 5. RESPONSIVE MEDIA QUERIES                                      */
/* ================================================================= */
@media (max-width: 850px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
    }
    .contact-right-col {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    nav ul {
        justify-content: center;
    }

    .profile-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-pic-container {
        margin-bottom: 20px;
    }
    
    .hero h1, 
    .about-header h1, 
    .contact-left-col h1, 
    .services-header h1 {
        font-size: 2.2rem;
    }
}