/* Reset & Base Variables */
:root {
    --primary: #0c2d48;
    --primary-light: #145da0;
    --accent: #008080;
    --amber: #d97706;
    --bg-body: #ffffff;
    --bg-light: #f4f7fa;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(12, 45, 72, 0.08);
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
}

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

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

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
.top-bar {
    background-color: var(--primary);
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 800;
    font-size: 1.35rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text strong {
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-light);
}

.nav-link.active {
    background-color: var(--primary);
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    padding: 64px 0;
    background: linear-gradient(180deg, #f0f6fc 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge-pill {
    display: inline-block;
    background-color: #e0f2fe;
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.hero-text h1 {
    font-size: 2.35rem;
    line-height: 1.22;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background-color: transparent;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Stats Bar */
.stats-bar {
    background-color: var(--primary);
    color: #ffffff;
    padding: 36px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.85rem;
    color: #38bdf8;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* Sections & Cards */
.section {
    padding: 64px 0;
}

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

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 42px;
}

.section-header h2 {
    font-size: 1.9rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cards-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
}

.tag-blue { background-color: #e0f2fe; color: #0369a1; }
.tag-teal { background-color: #ccfbf1; color: #0f766e; }
.tag-amber { background-color: #fef3c7; color: #b45309; }

.mfr-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.card-body h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 18px;
    flex-grow: 1;
}

.process-label {
    color: var(--text-main) !important;
    margin-bottom: 8px !important;
}

.card-link {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.92rem;
}

/* Split Box */
.split-box {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.split-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split-content h2 {
    font-size: 1.85rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.split-content p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.check-list {
    list-style: none;
}

.check-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 10px;
    font-weight: 500;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 48px 0;
}

.page-banner h1 {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.page-banner p {
    color: #dbeafe;
    max-width: 680px;
}

/* Filter Bar & Spec Table */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
}

.filter-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.search-box input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 290px;
    font-size: 0.92rem;
}

.table-wrapper {
    margin-top: 56px;
    overflow-x: auto;
}

.table-wrapper h2 {
    color: var(--primary);
    margin-bottom: 16px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
}

.spec-table th, .spec-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
}

.spec-table th {
    background-color: var(--primary);
    color: #ffffff;
}

.spec-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
}

.contact-info h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.info-card {
    background-color: #ffffff;
    padding: 18px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.info-card h4 {
    color: var(--primary);
    margin-bottom: 6px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    padding: 24px;
    border-radius: 8px;
    color: #065f46;
}

.alert-success h3 {
    margin-bottom: 8px;
}

.alert-success p {
    margin-bottom: 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 28px;
    border-radius: var(--radius);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-specs {
    margin: 18px 0;
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.modal-specs p {
    margin-bottom: 8px;
    font-size: 0.94rem;
}

/* Footer */
.site-footer {
    background-color: #091e32;
    color: #cbd5e1;
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 36px;
    padding-bottom: 42px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 1.1rem;
}

.brand-sub {
    color: #38bdf8;
    font-size: 0.82rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.65;
}

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

.footer-links, .footer-contact {
    list-style: none;
}

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

.footer-links a:hover {
    color: #38bdf8;
}

.footer-contact li {
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    font-size: 0.84rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom code {
    background-color: rgba(255, 255, 255, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    color: #38bdf8;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .split-box,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid,
    .cards-grid.two-col {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow);
    }

    .nav-menu.show {
        display: flex;
    }
}
