/* ============================================
   Inconsl-Style: TIMI VN - Complete Rewrite
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
    --topbar-bg: #0f172a;
    --nav-bg: #ffffff;
    --hero-bg: #1e3a5f;
    --primary: #1e3a5f;
    --primary-dark: #0f2744;
    --primary-light: #2d5a8a;
    --accent: #94a3b8;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #64748b;
    --footer-bg: #0f172a;
    --border-color: #e2e8f0;
    --shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--nav-bg);
}

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

@media (min-width: 992px) {
    .container { padding: 0 32px; }
}

@media (min-width: 1200px) {
    .container { padding: 0 40px; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

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

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

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* ========== TOPBAR ========== */
.topbar {
    background: var(--topbar-bg);
    color: rgba(255,255,255,0.9);
    padding: 8px 0;
    font-size: 0.875rem;
}

.topbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.topbar a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar a:hover {
    color: #fff;
}

/* ========== NAVBAR ========== */
.navbar-header {
    background: var(--nav-bg);
    box-shadow: 0 1px 0 var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 24px;
}

.navbar-logo a {
    display: inline-block;
}

.navbar-logo img {
    max-height: 48px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-cta .btn {
    padding: 10px 24px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    padding: 8px;
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-hover);
        gap: 16px;
    }

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

    .nav-cta { margin-top: 8px; }

    .mobile-menu-toggle {
        display: block;
    }
}

/* ========== HERO ========== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.88) 0%, rgba(15, 39, 68, 0.92) 100%),
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80') center/cover no-repeat;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

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

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-stat {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 600;
}

/* ========== ADVISORY (3 cards) ========== */
.advisory {
    padding: 80px 0;
    background: #fff;
}

.advisory .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.advisory-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px 28px;
    transition: all 0.3s ease;
    position: relative;
}

.advisory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.advisory-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 16px;
}

.advisory-card h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.advisory-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.advisory-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.advisory-card a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .advisory .container {
        grid-template-columns: 1fr;
    }
}

/* ========== ABOUT (split layout) ========== */
.about-section {
    padding: 80px 0;
    background: #f8fafc;
}

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

.about-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.25;
}

.about-section .about-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.75;
}

.about-section ul {
    list-style: none;
    margin-bottom: 28px;
}

.about-section ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-dark);
}

.about-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.about-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.about-stat h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

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

@media (max-width: 992px) {
    .about-section .container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        max-height: 280px;
        aspect-ratio: 16/9;
    }
}

/* ========== SERVICES (4-card grid) ========== */
.services-section {
    padding: 80px 0;
    background: #fff;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
}

.services-section .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.services-section .section-subtitle {
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
}

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

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1;
}

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.service-card a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ========== FOOTER ========== */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.9);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
    opacity: 0.9;
}

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

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

.footer-col a {
    color: inherit;
    text-decoration: none;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-col a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
}

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

/* ========== PAGE LAYOUTS (about, contact, etc.) ========== */
.page-header {
    background: var(--hero-bg);
    color: #fff;
    padding: 60px 0 48px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    opacity: 0.95;
    font-size: 1.05rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.content-cta-box {
    text-align: center;
    padding: 40px 32px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 48px;
}

.content-cta-box h2 {
    border: none;
    padding: 0;
    margin-bottom: 8px;
}

.content-cta-box p {
    margin-bottom: 24px;
}

.content-cta-box .btn {
    margin: 0 6px;
}

.content-section {
    padding: 60px 0;
    background: #fff;
}

.content-section .container {
    max-width: 1200px;
}

.content-section .container.content-narrow {
    max-width: 800px;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.content-section h2.section-heading {
    margin-top: 40px;
}

.content-section h2:first-child,
.content-section .content-block h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 28px 0 12px;
}

.content-section p {
    margin-bottom: 16px;
    line-height: 1.75;
    color: var(--text-dark);
}

.content-block {
    max-width: 100%;
}

.page-content-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
}

.service-detail {
    margin-bottom: 48px;
}

.service-detail h2 {
    margin-top: 32px;
}

.service-detail h2:first-child {
    margin-top: 0;
}

.content-section ul, .content-section ol {
    margin: 0 0 20px 24px;
}

.content-section li {
    margin-bottom: 8px;
}

.breadcrumb {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    background: #fff;
}

.breadcrumb .container {
    max-width: 1200px;
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 8px;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--accent);
    font-weight: 400;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb li:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

/* Contact page layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.content-section .contact-info-block,
.content-section .contact-form-block {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.content-section .contact-form-block {
    background: #fff;
}

.company-info-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.company-info-card .info-row {
    padding: 20px 24px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
}

.company-info-card .info-row:last-child {
    border-bottom: none;
}

.company-info-card .info-label {
    font-size: 0.9rem;
}

.company-info-card .info-value a {
    color: var(--primary);
    text-decoration: none;
}

.company-info-card .info-value a:hover {
    text-decoration: underline;
}

.company-info-card > h2 {
    padding: 24px 24px 16px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
}

/* Form & contact page */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Company info / policies */
.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
}

.info-value {
    color: var(--text-muted);
}

@media (max-width: 576px) {
    .info-row {
        grid-template-columns: 1fr;
    }
}

/* Service features grid (contact, about, etc.) */
.service-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-feature-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.service-feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .service-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .service-features {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary);
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.modal-btn {
    margin-top: 24px;
}

.modal-note {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 404 */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

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

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
}

.error-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.error-message {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-links {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.error-links h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.error-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.error-links a {
    color: var(--primary);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.error-links a:hover {
    background: var(--primary);
    color: #fff;
}

/* Scroll-triggered animation (main.js) */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
