/*
 * Versa Novus Consulting - FINAL CSS (Structure Aligned)
 * NOTE: This CSS is built to match the final, clean HTML structure (no redundant service-card div) 
 * and includes the two-column services layout and the JavaScript scroll offset fix.
 * --primary-blue: #0A3D62 
 * --accent-gold: #C9A44B 
 * --text-dark: #333333 
 * --background-light: #FFFFFF
 * --background-mid: #F0F4F7 
*/

:root {
    --primary-blue: #0A3D62;
    --accent-gold: #C9A44B;
    --text-dark: #333333;
    --background-light: #FFFFFF;
    --background-mid: #F0F4F7; /* Light Blue-Grey for contrast */
}

/* Base Styles & Global Image Rule for Responsiveness */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* CRITICAL FOR RESPONSIVE IMAGES */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Headings */
h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 {
    font-size: 2.5em;
    color: var(--primary-blue);
    line-height: 1.2;
}

h2 {
    font-size: 2em;
    color: var(--primary-blue);
    text-align: center;
    padding-top: 30px;
    margin-bottom: 1.5em;
}

h3 {
    font-size: 1.4em;
    color: var(--accent-gold);
}

/* Buttons and Links */
.primary-cta-button, .cta-button {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 20px;
    background-color: var(--accent-gold);
    color: var(--background-light) !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: 2px solid var(--accent-gold);
}

.primary-cta-button:hover, .cta-button:hover {
    background-color: transparent;
    color: var(--accent-gold) !important;
}

/* Header/Navigation */
header {
    background-color: var(--background-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--background-mid);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* FIX: Controls the logo size */
.logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.1));
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-blue);
}

nav .cta-button {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 8px 18px;
    border: 2px solid var(--primary-blue);
}
nav .cta-button:hover {
    background-color: var(--background-light);
    color: var(--primary-blue) !important;
}

/* Hero Section */
.hero {
    background-color: var(--background-mid);
    padding: 60px 0 80px;
    text-align: center;
}

.hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 20px auto 30px;
}

.hero-image-placeholder {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* General Section Styling */
section {
    padding: 80px 0;
}

/* About Section FIX: Ensures correct offset for JavaScript scrolling */
.about-section {
    padding-top: 80px;
}

.about-section {
    background-color: var(--background-light);
    text-align: center;
}

.about-section .intro-paragraph {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
    color: var(--primary-blue);
}

/* --- SERVICES SECTION LAYOUT --- */

.services-section {
    background-color: var(--background-mid);
}

/* 1. Main Two-Column Layout */
.services-layout {
    display: flex;
    gap: 40px; 
    align-items: center; /* Vertically align image/column in the center */
}

/* 2. Left Column: Service Cards */
.services-list-column {
    flex: 1; /* Takes up 50% of the width */
    display: grid;
    gap: 20px; 
    align-items: stretch; /* Forces the cards to stretch to fill the available height */
}

/* 3. Right Column: Image */
.image-column {
    flex: 1; /* Takes up 50% of the width */
    display: flex;
    justify-content: center;
    align-items: center; 
    padding-top: 0; 
}

/* 4. Styling for Linkable Service Cards (Applied directly to the <a> tag) */
.service-card-link {
    /* **CARD STYLING** */
    background-color: var(--background-light); 
    padding: 30px;
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%; /* Allows link to fill grid cell */
    
    /* **HYPERLINK FIXES (The Bubble Look)** */
    text-decoration: none; /* Removes underline */
    color: var(--text-dark); /* Forces text color to be dark */
    display: block; 
    
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card-link:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); 
    color: var(--text-dark); /* Ensure text stays dark on hover */
}

/* Ensures the title color remains gold inside the link */
.service-card-link h3 {
    color: var(--accent-gold);
}


/* Image Card Styling */
.image-card {
    padding: 0;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%; /* Ensures image container fills 50% column width */
}

.service-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* --- END SERVICES SECTION LAYOUT --- */

/* ---------------------------------------------------- */
/* --- 6. BLOG CONTENT STYLING: IMAGE & DATE FIXES --- */
/* ---------------------------------------------------- */

.blog-content {
    /* Set a standard padding for the blog section */
    padding: 50px 0;
}

/* Blog Headline elements */
.blog-header .post-category,
.blog-header h1,
.blog-header .post-meta {
    text-align: center;
}

/* Style for the Horizontal Separator Line (The "page break" line) */
.post-separator {
    width: 100%;
    height: 1px; /* Line thickness */
    background-color: #e0e0e0; /* Light gray color */
    margin-top: 15px; /* Space above the line */
    margin-bottom: 15px; /* Space below the line */
}

/* Style for the Author/Date container */
.post-meta {
    font-size: 0.95em;
    color: #6c757d; /* Medium gray text for a subtle look */
    margin-top: 0;
    margin-bottom: 40px; /* Space before the intro paragraph starts */
}

/* Image container styling (Mobile-First: Full Width and Centered) */
.blog-hero-image-container {
    width: 100%;
    margin-bottom: 30px;
    /* Center the block element on mobile */
    margin-left: auto; 
    margin-right: auto;
}

/* Media Query: Desktop View (Applies to screens wider than 992px) */
@media (min-width: 992px) {
    .blog-hero-image-container {
        /* Restrict width to one-third of the page */
        width: 50.00%; 
        
        /* ALIGNMENT: Stick to the left edge of the parent container */
        margin-left: auto; 
        margin-right: auto;
    }
}

/* ------------------------------------------------------------------- */
/* --- 7. BLOG CONTENT STYLING: LOGISTICS GRID CARDS (FIX FOR TABLE) --- */
/* ------------------------------------------------------------------- */

/* Basic container to hold the card grid */
.logistics-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

/* Styling for each individual card (the "bubble") */
.logistics-card {
    display: flex; /* CRITICAL: Enables the two columns inside the card */
    background-color: var(--background-light);
    border: 1px solid var(--background-mid);
    border-radius: 8px; /* Creates the rounded corners (the 'bubble' look) */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Left Column Styling */
.card-column-left {
    flex: 1; /* Takes up 1/3 of the card width */
    padding: 20px;
    background-color: var(--background-mid); /* Gives a slight background tint */
    border-right: 1px solid var(--background-mid);
}

/* Right Column Styling */
.card-column-right {
    flex: 2; /* Takes up 2/3 of the card width */
    padding: 20px;
}

/* Ensures headings inside the cards use the correct colors */
.logistics-card h3 {
    font-size: 1.1em;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

/* Style for equipment list text */
.equipment-list {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

/* --- END BLOG CONTENT STYLING --- */


/* Contact Section */
.contact-section {
    background-color: var(--primary-blue);
    text-align: center;
    color: white;
}

.contact-section h2 {
    color: var(--accent-gold);
}

.contact-section p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 25px;
}

.contact-note {
    font-size: 0.85em;
    opacity: 0.8;
    margin-top: 15px;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--background-mid);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

/* Responsive Adjustments (Media Queries) */
@media (max-width: 992px) {
    /* Switch to single column stack on tablet/mobile */
    .services-layout {
        flex-direction: column;
        gap: 20px;
    }

    .image-column {
        order: -1; /* Puts the image at the top on mobile */
        padding-top: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adjustments */
    .hero {
        padding: 40px 0;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    /* Navigation Stack on Mobile */
    header .container {
        flex-direction: column;
    }

    nav {
        margin-top: 15px;
    }

    nav a {
        margin: 0 8px;
        display: inline-block;
        padding: 5px 0;
    }
    
    /* Ensure the logo isn't tiny when stacked */
    .logo {
        height: 50px;
    }
    
    /* Mobile Responsiveness for the Cards */
    .logistics-card {
        flex-direction: column; /* Stack columns vertically on small screens */
    }
    .card-column-left {
        border-right: none;
        border-bottom: 1px solid var(--background-mid);
    }
}

