/* --- V6 Style: Slate & Moss Theme with Justified Text --- */

/* --- General Setup & Variables --- */
:root {
    --bg-cream: #f5f5f0;          /* Warm Off-White Background */
    --bg-white: #ffffff;          /* White for Cards & Header */
    --text-primary: #36454F;      /* Dark Slate Grey for Headings */
    --text-secondary: #5A6650;    /* Muted Moss Green for Sub-content */
    --accent-primary: #BC7862;    /* Sophisticated Terracotta for Accents */
    --border-color: #e0e0d1;      /* Light, Warm-Toned Border */
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-secondary);
    background-color: var(--bg-cream);
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.logo {
    height: 45px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* --- Hero Section --- */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 60px;
    background-color: var(--bg-cream);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1.2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-align: justify;
    hyphens: auto;
    line-height: 1.8;
}

.cta-button {
    padding: 16px 32px;
    background-color: var(--accent-primary);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-4px);
    background-color: #a96650; /* Slightly darker terracotta */
    box-shadow: 0 12px 24px -5px rgba(188, 120, 98, 0.3);
}

.hero-image {
    flex: 0.8;
    text-align: center;
}

.hero-image img {
    max-width: 350px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- General Content Section Styling --- */
.content-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.5px;
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
}

#about .about-details p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    hyphens: auto;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* --- Card Styling (Vision & Benefits) --- */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.card {
    background-color: var(--bg-white);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 16px 32px -10px rgba(54, 69, 79, 0.15);
}

.card .icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
}

/* --- Team Section --- */
#team h3 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-weight: 600;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-member-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s;
}

.team-member-card:hover {
    transform: scale(1.05);
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-primary);
}

.team-member-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-member-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Tender Section Styling --- */
.tender-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.tender-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.tender-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 25px -8px rgba(54, 69, 79, 0.1);
}

.tender-icon {
    flex-shrink: 0;
    background-color: #f0f3f5;
    color: var(--accent-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.tender-details {
    flex-grow: 1;
}

.tender-details h4 {
    font-family: var(--heading-font);
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.tender-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
}

.tender-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.tender-button {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tender-button.download {
    background-color: var(--accent-primary);
    color: var(--bg-white);
}

.tender-button.download:hover {
    background-color: #a96650;
    box-shadow: 0 4px 10px rgba(188, 120, 98, 0.2);
    transform: translateY(-2px);
}

.tender-button.submit-quote {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.tender-button.submit-quote:hover {
    background-color: var(--text-primary);
    color: var(--bg-white);
    border-color: var(--text-primary);
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 2.5rem 5%;
    background-color: var(--bg-white);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 1.5rem;
}

footer .logo {
    height: 40px;
    opacity: 0.8;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/*
==============================================
---               Responsive Design          ---
==============================================
*/

/* --- Tablet View --- */
@media (max-width: 992px) {
    /* Adjust Hero Layout */
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem auto;
    }

    .hero-image img {
        max-width: 300px;
    }

    /* Adjust Team Grid for Tablets */
    .team-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* --- Mobile View --- */
@media (max-width: 768px) {
    /* Adjust Spacing for Mobile */
    .content-section {
        padding: 60px 5%;
    }

    #hero {
        padding: 100px 5% 40px;
    }

    /* Mobile Navigation Menu */
    .nav-links {
        position: fixed;
        right: 0;
        top: 70px; /* Header height */
        background-color: var(--bg-white);
        border-left: 1px solid var(--border-color);
        width: 60%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: block;
    }
    
    /* Adjust Typography for Mobile */
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .content-section h2 {
        font-size: 2.2rem;
    }
    
    .hero-image img {
        max-width: 250px;
    }

    /* Team Section on Mobile */
    .team-container {
        grid-template-columns: 1fr;
    }

    /* Tender Section on Mobile */
    .tender-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tender-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .tender-button {
        justify-content: center;
    }
}