/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a242c;
    --accent-green: #2e6930;
    --accent-green-hover: #235225;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;
    --text-primary: #2d3748;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

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

/* ==========================================================================
   Header & Navigation (Dark Scheme)
   ========================================================================== */
.site-header {
    background-color: var(--primary-dark);
    border-bottom: 3px solid var(--accent-green);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #ffffff;
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #e2e8f0;
    padding: 8px 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background-color: var(--accent-green);
}

/* ==========================================================================
   Hero Section (White / Seamless Scheme)
   ========================================================================== */
.hero {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 60px 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.hero-logo {
    width: 280px;
    height: auto;
    display: block;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.25;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-green);
    color: #ffffff;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: var(--accent-green-hover);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.bg-alt {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-card, .history-box {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.bg-alt .history-box {
    border: none;
    padding: 0;
}

h2 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--accent-green);
    display: inline-block;
    padding-bottom: 4px;
}

p {
    margin-bottom: 15px;
}

p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    padding: 40px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3, .footer-links h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design / Mobile Styles
   ========================================================================== */
@media (max-width: 850px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .hero-logo {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .main-nav ul {
        gap: 8px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
    }
}

/* ==========================================================================
   Page Banner Component
   ========================================================================== */
.page-banner {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 50px 20px;
    border-bottom: 3px solid var(--accent-green);
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
}

.banner-container h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.banner-container p {
    font-size: 1.1rem;
    color: #cbd5e1;
}

/* ==========================================================================
   Leadership Layout & Cards
   ========================================================================== */

/* Prominent Managing Director Card */
.md-featured {
    max-width: 820px;
    margin: 0 auto 50px auto;
    border: 2px solid var(--accent-green);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .md-featured {
        flex-direction: row;
        align-items: stretch;
    }

    .md-featured .photo-placeholder {
        width: 280px;
        height: auto;
        flex-shrink: 0;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }

    .md-featured .team-card-content {
        padding: 35px;
        justify-content: center;
    }

    .md-featured .team-card-content h2 {
        font-size: 1.6rem;
    }
}

/* 6-Card Executive Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.photo-placeholder {
    height: 220px;
    background-color: #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.photo-placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.team-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-card-content h2 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
    border-bottom: none;
    padding-bottom: 0;
}

.job-title {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bio {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 0;
}

/* ==========================================================================
   Product Page Styles
   ========================================================================== */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.product-header h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: 8px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.product-category {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--bg-light);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Badges */
.product-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
}

.badge-flagship {
    background-color: rgba(46, 105, 48, 0.12);
    color: var(--accent-green);
}

.badge-service {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.badge-standard {
    background-color: #f1f5f9;
    color: #475569;
}

.badge-eco {
    background-color: #ecfdf5;
    color: #047857;
}

.badge-rnd {
    background-color: #fef3c7;
    color: #b45309;
}

/* Descriptions & Features */
.product-description {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.product-features li {
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Special Styling for R&D Card */
.rnd-card {
    border-left: 4px solid #b45309;
    background-color: #fffdfa;
}

@media (max-width: 600px) {
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
}