/* ==========================================================================
   BONGSHAI GROUP - PREMIER CORPORATE STYLESHEET
   Clean, Modern, Robust Design System (No Overlaps, Zero Breakages)
   ========================================================================== */

:root {
    --primary: #0f172a;         /* Deep Corporate Navy */
    --primary-light: #1e293b;   /* Medium Navy */
    --primary-accent: #2563eb;  /* Engineering Blue */
    
    --gold: #d97706;            /* Executive Gold */
    --gold-light: #f59e0b;      /* Warm Amber Gold */
    --gold-dark: #b45309;       /* Deep Antique Gold */
    
    --bg-page: #f8fafc;         /* Clean Porcelain Canvas */
    --bg-card: #ffffff;         /* Pure Card White */
    --bg-alt: #f1f5f9;          /* Subtle Section Contrast */
    --bg-dark: #0b1329;         /* Hero & Footer Dark */
    
    --text-heading: #0f172a;    /* Dark Charcoal/Navy */
    --text-body: #334155;       /* Slate 700 Body Text */
    --text-muted: #64748b;      /* Slate 500 Secondary */
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-gold: rgba(217, 119, 6, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.1);
    
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Reset & Global */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Containers & Grid */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-sm {
    padding: 3rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: #ffffff;
}

h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.section-header {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--gold-light);
    border-radius: var(--radius-full);
    margin: 1rem 0;
}

.section-divider.center {
    margin: 1rem auto;
}

/* Badges */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: #b45309;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero .badge-pill,
.page-header .badge-pill {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--gold-light);
}

/* AEO Direct Answer */
.aeo-answer-first {
    font-size: 1.05rem;
    line-height: 1.65;
    background: #ffffff;
    color: var(--text-body);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold-light);
    box-shadow: var(--shadow-sm);
    margin: 1.25rem 0;
}

.hero .aeo-answer-first {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border-left-color: var(--gold-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--gold-light);
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
    background: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: var(--primary);
    color: #ffffff;
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-heading);
    border: 1.5px solid #cbd5e1;
}

.btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 0.95rem 2rem;
    font-size: 1rem;
}

/* ==========================================================================
   NAVIGATION BAR (CLEAN & ERROR-FREE)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-symbol {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--gold-light);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.logo-title .highlight {
    color: var(--gold);
}

.logo-subtitle {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    padding: 0.25rem 0;
    position: relative;
}

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

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.2s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
    color: var(--text-white);
    padding: 5.5rem 0 4.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    color: #ffffff;
    line-height: 1.2;
    margin: 1rem 0;
}

.hero h1 .highlight-text {
    color: var(--gold-light);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.trust-badges-bar {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.trust-item i {
    color: var(--gold-light);
}

/* Sub-page Header */
.page-header {
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
    color: #ffffff;
    text-align: center;
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-header h1 {
    color: #ffffff;
    font-size: clamp(2.1rem, 3.5vw, 3rem);
    margin: 0.75rem 0 0.5rem;
}

.page-header p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   METRICS COUNTERS
   ========================================================================== */
.metrics-section {
    padding: 3rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.metric-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-light);
}

.metric-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.metric-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SUBSIDIARY CARDS
   ========================================================================== */
.subsidiary-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.subsidiary-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.subsidiary-img-wrap {
    height: 200px;
    width: 100%;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.subsidiary-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.subsidiary-card:hover .subsidiary-img-wrap img {
    transform: scale(1.05);
}

.subsidiary-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: rgba(15, 23, 42, 0.85);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

.subsidiary-content {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.subsidiary-content h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.subsidiary-domain {
    font-size: 0.82rem;
    font-family: monospace;
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: 0.85rem;
    display: inline-block;
}

.subsidiary-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.subsidiary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.subsidiary-card:hover .subsidiary-link {
    color: var(--gold-dark);
    gap: 0.65rem;
}

/* Feature Lists */
.feature-list {
    margin: 1.25rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-body);
}

.feature-list li i {
    color: var(--gold);
    margin-top: 0.2rem;
}

/* Leadership Card */
.leadership-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.leadership-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.leadership-role {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
    display: block;
}

/* News & Insights Cards */
.news-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.news-img {
    height: 190px;
    width: 100%;
    object-fit: cover;
}

.news-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-dark);
    margin-bottom: 0.4rem;
}

.news-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.news-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Contact & RFP Form */
.contact-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-info-col {
    background: var(--primary);
    color: #ffffff;
    padding: 3rem;
}

.contact-info-col h3 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-form-col {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.92rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: var(--text-heading);
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: #ffffff;
}

/* Footer */
.footer {
    background: #0b1329;
    color: #cbd5e1;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 3px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .mobile-menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { left: 0; }
    .contact-container { grid-template-columns: 1fr; }
    .contact-info-col, .contact-form-col { padding: 2rem; }
    .form-group.full-width { grid-column: span 1; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
