:root {
    /* New Palette */
    --onyx: #0b090aff;
    --carbon-black: #161a1dff;
    --dark-garnet: #660708ff;
    --mahogany-red: #a4161aff;
    --mahogany-red-2: #ba181bff;
    --strawberry-red: #e5383bff;
    --silver: #b1a7a6ff;
    --dust-grey: #d3d3d3ff;
    --white-smoke: #f5f3f4ff;
    --white: #ffffffff;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Functional Variables */
    --primary-color: var(--onyx);
    --secondary-color: var(--mahogany-red);
    --accent-color: var(--strawberry-red);
    --text-color: var(--carbon-black);
    --light-bg: var(--white-smoke);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden; /* Prevent horizontal scroll/margins */
    width: 100%;
}

html {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .nav-links a, .btn {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1600px; /* Further Increased for wide feel */
    width: 92%;
    margin: 0 auto;
    padding: 0 15px; /* Reduced padding */
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Softer shadow */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: auto; /* Adapt to content */
    display: flex;
    flex-direction: column;
}

.top-bar {
    background-color: var(--carbon-black);
    width: 100%;
    padding: 8px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    color: var(--white);
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    height: 40px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.top-bar i {
    color: var(--secondary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px; /* Increased padding for edge spacing */
    width: 100%; /* Force full width */
    max-width: none; /* Remove centering constraint */
    height: 100px; /* Main header section height */
}

/* Adjust page padding because header is taller now (100px + 40px = 140px) */
.hero {
    padding-top: 140px; 
}
.contact-page {
    padding-top: 160px;
}
/* Replaced by main .page-header definition
.page-header {
    padding-top: 180px; 
} */

@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    header .container {
        padding: 0 20px; /* Reset padding for mobile */
        height: 80px;
    }
    
    .nav-links {
        top: 120px; /* 40 top + 80 main */
    }
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(11, 9, 10, 0.6), rgba(11, 9, 10, 0.6)), url('images/industrial-port-container-yard.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh; /* Changed from height to min-height for safer mobile rendering */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 60px; /* Offset for fixed header */
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color); /* Bourque uses primary/secondary differently, but red is key here */
    color: var(--white);
    padding: 15px 40px; /* Larger buttons */
    text-decoration: none;
    border-radius: 0; /* Boxy/Industrial look */
    transition: all 0.3s;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--secondary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Sections General */
section {
    padding: 100px 0; /* More breathing room like Bourque */
}

section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    font-size: 2.5rem; /* Larger headers */
    font-weight: 700;
}

/* About Section */
.about {
    background-color: var(--light-bg);
    text-align: center;
}

.about p {
    max-width: 1000px; /* Increased from 800px */
    margin: 0 auto;
}

/* Services Section */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    flex: 0 1 350px; /* Fixed basis, scale down only */
    min-height: 400px; /* Enforce uniform height */
    background: var(--white);
    padding: 40px 30px;
    border-radius: 2px; /* Slight radius */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--secondary-color); /* Hover accent */
}

.service-card p {
    flex-grow: 1; /* Pushes content to fill */
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--silver);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        padding: 0 20px; /* Reset padding for mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 110px; /* Adjusted for larger header height */
        right: 0;
        width: 100%;
        background-color: var(--white);
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 900;
    }

    .service-card {
        flex: 1 1 100%; /* Full width on mobile */
        min-height: auto; /* Reset height constraint */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 20px; /* Add side padding to prevent edge touching */
        max-width: 400px; /* Constrain width to force text wrapping */
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5;
    }
}

/* Stats Section */
.stats {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item {
    margin: 10px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Commitment Section */
.commitment {
    background-color: var(--carbon-black);
    color: var(--white);
    text-align: center;
    position: relative;
    padding: 120px 0; /* Huge padding for impact */
}

@media (max-width: 768px) {
    .commitment {
        padding: 60px 0;
    }
}

.commitment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px; /* Left accent bar */
    height: 100%;
    background-color: var(--secondary-color);
}

.commitment h2 {
    color: var(--white);
}

.commitment p {
    max-width: 1000px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    color: var(--silver);
}
/* Page Headers (About/Services) */
.page-header {
    background: linear-gradient(rgba(11, 9, 10, 0.7), rgba(11, 9, 10, 0.7)), url('images/industrial-port-container-yard.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    
    /* New sizing/centering */
    min-height: 60vh; /* Bigger image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 140px; /* Account for fixed header */
    padding-bottom: 50px;
}

.page-header h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.page-header p {
    color: var(--silver);
    font-size: 1.2rem;
    max-width: 800px; /* Limit text width */
}

/* History Section */
.history-section {
    padding: 60px 0;
    background-color: var(--white);
}

/* Mission/Vision Section */
.mv-section {
    background-color: var(--white-smoke);
    padding: 60px 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 5px solid var(--secondary-color);
}

.mv-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Footer Styles (Bourque Inspired) */
footer {
    background-color: var(--carbon-black); /* Darker background */
    border-top: 5px solid var(--secondary-color); /* Top accent border */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    text-align: left;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--silver);
    font-weight: 700;
}

.footer-section p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section.brand-section h3 {
    font-size: 1.2rem;
    color: var(--white);
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--white);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    margin-left: 10px;
}

.footer-bottom a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        flex: none;
        width: 100%;
        margin-bottom: 30px;
    }
}

.footer-logo {
    max-height: 100px;
    width: auto;
}

.footer-section.brand-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-section.brand-section p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* About Page Redesign (Bourque Inspired) */
.about-intro {
    padding: 80px 0;
    background-color: var(--white);
}

.about-intro h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.about-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background-color: var(--white-smoke);
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid var(--secondary-color);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .about-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Update for About Stats Grid (Full Width) */
.about-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* Language Selector */
.lang-selector-li {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-selector {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-heading);
}

.lang-selector:hover {
    color: var(--secondary-color);
}

.lang-menu {
    position: absolute;
    top: 40px; /* Adjust based on header height/padding */
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    padding: 10px 0;
    min-width: 140px;
    display: none;
    border-radius: 6px;
    z-index: 1100;
    border-top: 3px solid var(--secondary-color);
}

.lang-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.lang-menu li {
    margin: 0 !important; /* Override nav-links margin */
}

.lang-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.lang-menu a:hover {
    background-color: var(--white-smoke);
    color: var(--secondary-color);
    padding-left: 25px; /* Slide effect */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .lang-selector-li {
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    .lang-menu {
        position: static;
        box-shadow: none;
        background: var(--white-smoke);
        width: 100%;
        text-align: center;
        border-top: none;
        padding: 0;
    }
    
    .lang-selector {
        justify-content: center;
        margin: 10px 0;
    }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}
