/* Import a classic, high-quality serif font to evoke the Victorian/Steampunk era */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');

/* --- THEME COLORS (Enhanced Nautical Steampunk Palette) --- */
:root {
    --primary-brass: #C79A49; /* Brighter, richer brass */
    --secondary-teal: #008080; /* Teal accent (deep ocean) */
    --dark-ship-hull: #384953; /* Dark Blue-Grey (Ship Hull/Logo Background) */
    --dark-navy: #293444; /* Defined: Used for the deepest blue/background of final CTA */
    --light-grey: #a0a0a0; /* Defined: Used for subtle text (e.g., contact info) */
    --white: #ffffff;
    --dark-text: #293444; /* Used for body text on light backgrounds */
    --accent-red: #8B0000; /* Subtle Deep Red for emphasis/buttons */
    --clean-energy-green: #228B22; /* Forest Green for sustainability bar */
}

/* --- GENERAL STYLES & FONT --- */
body {
    /* Use Merriweather for a classic, readable serif font */
    font-family: 'Merriweather', serif; 
    color: var(--white); 
    margin: 0;
    padding: 0;
    /* Main website background color (deep ship hull) */
    background-color: var(--dark-ship-hull); 
    /* CRITICAL FIX: Ensure page doesn't exceed screen width and prevent horizontal scrolling */
    max-width: 100vw; 
    overflow-x: hidden; 
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    padding: 60px 20px;
    border-bottom: 8px double var(--primary-brass); /* Added a double brass line for sophistication */
}

/* --- LOGO PLACEMENT --- */
.hero-logo {
    width: 450px; /* Large logo size */
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.15));
}

.steampunk-h1 { /* LASTERNIGHT */
    font-family: Arial, sans-serif; 
    font-size: 3.5em;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 3px; 
    line-height: 1; 
    color: var(--white); 
}

/* Subtitle/Tagline */
.tagline {
    font-size: 1.6em;
    font-weight: 400;
    color: var(--secondary-teal);
    margin: 5px auto 20px auto; 
}

/* Contact Info */
.contact-info {
    margin-bottom: 25px;
    font-weight: bold;
    color: var(--light-grey); 
    font-style: normal; 
}

.contact-info .contact-email {
    color: var(--white);
    text-decoration: none;
}

/* --- BUTTON/CTA STYLE --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-red); 
    color: var(--white);
    padding: 14px 35px; 
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    transition: background-color 0.3s;
    border: 2px solid var(--primary-brass); 
}
.cta-button:hover {
    background-color: var(--primary-brass); 
    color: var(--dark-ship-hull);
}

/* --- BADGE SECTION --- */
.badge-section {
    text-align: center; 
    padding: 30px 20px; 
    background-color: #3f515c; 
    border-top: 2px solid var(--secondary-teal);
    border-bottom: 2px solid var(--secondary-teal);
}
.badge-container {
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    align-items: center;
}


/* --- SERVICE GRID TITLE --- */
.section-title {
    color: var(--primary-brass); 
    font-size: 2.2em;
    text-align: center; 
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px dashed var(--secondary-teal); 
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 50px;
}


/* --- SERVICE ITEM LAYOUT (Single Column Flow) --- */
.services-grid {
    /* Enforcing block flow */
    margin-top: 40px;
}

.service-item {
    background-color: #f3f3f3; 
    padding: 25px 15px;
    border-radius: 12px; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.4); 
    text-align: center;
    border: 2px solid var(--primary-brass); 
    color: var(--dark-text); 
    
    /* Center and constrain items in a single column layout */
    max-width: 500px; 
    margin: 20px auto; 
}

.service-item h3 {
    color: var(--dark-text);
    font-size: 1.3em;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Service item icon styling removed as icons were deleted from HTML */

.service-item p {
    color: var(--dark-text); 
    font-size: 0.95em;
}

/* Service Tags */
.service-tag {
    color: var(--secondary-teal); 
    font-weight: bold; 
    display: block; 
    margin-top: 10px; 
}


/* --- FINAL CTA STYLE (footer) --- */
.final-cta-section {
    background-color: var(--dark-navy); 
    padding: 60px 20px; 
    text-align: center; 
    margin-top: 50px;
}
.final-cta-section h2 {
    color: var(--primary-brass); 
    margin-bottom: 15px;
}
.final-cta-section p {
    color: var(--light-grey); 
    margin-bottom: 30px;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 600px) {

    /* Responsive adjustment for the large logo on small screens */
    .mobile-logo {
        width: 300px; 
        max-width: 90vw; /* Ensures the logo never overflows the viewport width */
        margin-bottom: 5px; 
    }

    /* Reduce the size of the main title (H1) and tagline to fit better */
    .steampunk-h1 {
        font-size: 2.5em;
        letter-spacing: 2px;
    }
    .tagline {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    /* Reduce padding/margins on large sections */
    .hero, .final-cta-section {
        padding: 40px 10px;
    }

    /* Force the badge container to stack vertically instead of side-by-side */
    .mobile-stack {
        flex-direction: column;
        gap: 20px; /* Tighter gap when stacked */
    }

    /* Make the CTA button slightly less tall on mobile */
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    
    /* Center text within the service items better for small screens */
    .service-item h3 {
        font-size: 1.2em;
    }
}
