/* =============================================
   Hà Linh Software - Public Marketing Site
   ============================================= */

:root {
    --primary: #1976d2;
    --primary-dark: #0d47a1;
    --primary-light: #5bb6ef;
    --accent: #ff9800;
    --accent-dark: #f57c00;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f5f8fc;
    --bg-dark: #0d1b2a;
    --border: #e5e7eb;
    --success: #10b981;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow: 0 6px 18px rgba(15,55,97,0.10);
    --shadow-lg: 0 18px 40px rgba(15,55,97,0.18);
    --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
    scroll-behavior: smooth;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.public-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--bg-dark);
    color: #c8d6e5;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .public-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar a { color: #c8d6e5; }
.top-bar a:hover { color: #fff; }
.top-bar .info-item { margin-right: 18px; }
.top-bar .info-item i { margin-right: 6px; color: var(--primary-light); }

/* ---------- Header ---------- */
.public-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.public-header .public-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand img { height: 44px; }
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-text .brand-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: .3px;
}
.brand-text .brand-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    color: var(--text);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all .2s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--primary); }
.main-nav a.active { color: var(--primary); background: var(--bg-soft); }

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 14px;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: #fff !important;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent {
    background: var(--accent);
    color: #fff !important;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff !important; }
.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-lg { padding: 14px 30px; font-size: 15px; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 26px;
    color: var(--primary-dark);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #5bb6ef 100%);
    color: #fff;
    padding: 80px 0 90px;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1600&q=70');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}
.hero .public-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 18px;
    letter-spacing: .5px;
}
.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 18px;
}
.hero h1 span { color: #ffd54f; }
.hero p.lead {
    font-size: 17px;
    color: rgba(255,255,255,0.92);
    margin: 0 0 28px;
    max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-image-wrap {
    position: relative;
}
.hero-image-wrap img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hero-stat {
    position: absolute;
    background: #fff;
    color: var(--text);
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-stat-1 { left: -18px; top: 30px; }
.hero-stat-2 { right: -10px; bottom: 26px; }
.hero-stat .num { font-size: 22px; font-weight: 800; color: var(--primary); }
.hero-stat .lbl { font-size: 12px; color: var(--text-muted); }

/* ---------- Section base ---------- */
.section { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #d8e3f0; }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}
.section-head .eyebrow {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
}
.section-head h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--text);
}
.section-dark .section-head h2 { color: #fff; }
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }
.section-dark .section-head p { color: #adc0d4; }

/* ---------- Feature/stat strip ---------- */
.stats-strip {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: -50px;
    position: relative;
    z-index: 5;
    padding: 26px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item { text-align: center; padding: 0 18px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: 0; }
.stat-item .stat-num {
    font-size: 30px; font-weight: 800; color: var(--primary-dark);
}
.stat-item .stat-lbl { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Cards grid ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all .25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 16px;
}
.feature-card h3 {
    margin: 0 0 8px; font-size: 18px; color: var(--primary-dark);
}
.feature-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ---------- Product cards ---------- */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all .25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.product-card .product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.product-card .product-tag {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}
.product-card .product-body {
    padding: 22px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card h3 {
    margin: 0 0 10px; font-size: 19px; color: var(--primary-dark);
}
.product-card p { color: var(--text-muted); font-size: 14.5px; margin: 0 0 14px; flex: 1; }
.product-card ul {
    padding: 0; margin: 0 0 16px; list-style: none; font-size: 14px;
}
.product-card ul li {
    padding: 4px 0 4px 22px;
    position: relative;
    color: var(--text);
}
.product-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--success);
    position: absolute; left: 0; top: 5px;
    font-size: 12px;
}

/* ---------- Solution showcase ---------- */
.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-row.reverse { direction: rtl; }
.showcase-row.reverse > * { direction: ltr; }
.showcase-row img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; }
.showcase-row h3 { font-size: 26px; color: var(--primary-dark); margin: 0 0 14px; }
.showcase-row .label {
    color: var(--accent-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 12.5px;
    margin-bottom: 10px;
    display: block;
}
.showcase-row p { color: var(--text-muted); margin-bottom: 16px; }
.showcase-row ul {
    padding: 0; list-style: none; margin: 0 0 22px;
}
.showcase-row ul li {
    padding: 6px 0 6px 28px;
    position: relative;
}
.showcase-row ul li::before {
    content: "\f138";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    position: absolute; left: 0; top: 8px;
}

/* ---------- Customers / logos ---------- */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}
.customer-grid .logo-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 12px;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    transition: all .2s;
}
.customer-grid .logo-box:hover {
    border-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ---------- CTA banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: 18px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: 28px; margin: 0 0 8px; }
.cta-banner p { margin: 0; opacity: .9; }

/* ---------- About page ---------- */
.about-hero {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    padding: 90px 0 70px;
    text-align: center;
}
.about-hero h1 { font-size: 42px; margin: 0 0 14px; }
.about-hero p { font-size: 17px; opacity: .9; max-width: 700px; margin: 0 auto; }

.value-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
    transition: all .25s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card .num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}
.value-card h4 { margin: 0 0 8px; color: var(--primary-dark); font-size: 17px; }
.value-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

.team-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all .25s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card .avatar {
    width: 100%; height: 240px;
    background-size: cover; background-position: center top;
}
.team-card .info { padding: 18px; }
.team-card h4 { margin: 0 0 4px; color: var(--primary-dark); }
.team-card .role { color: var(--text-muted); font-size: 13.5px; }

/* ---------- Page hero (compact) ---------- */
.page-hero {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}
.page-hero.products::after { background-image: url('https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?auto=format&fit=crop&w=1600&q=70'); }
.page-hero.careers::after { background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1600&q=70'); }
.page-hero.contact::after { background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1600&q=70'); }
.page-hero.about::after { background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1600&q=70'); }
.page-hero > .public-container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 38px; margin: 0 0 10px; }
.page-hero .breadcrumb { font-size: 14px; opacity: .85; }
.page-hero .breadcrumb a { color: #ffd54f; }

/* ---------- Job cards ---------- */
.job-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    transition: all .2s;
}
.job-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.job-card h3 { margin: 0 0 6px; color: var(--primary-dark); font-size: 18px; }
.job-card .meta {
    color: var(--text-muted);
    font-size: 13.5px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.job-card .meta i { color: var(--primary); margin-right: 4px; }

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.benefit-item .icon {
    width: 44px; height: 44px;
    background: var(--bg-soft);
    border-radius: 10px;
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.benefit-item h4 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.benefit-item p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
}
.contact-info h3 { margin: 0 0 18px; color: var(--primary-dark); }
.contact-info-item {
    display: flex; gap: 16px; align-items: flex-start;
    margin-bottom: 18px;
}
.contact-info-item .icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 18px;
}
.contact-info-item h5 { margin: 0 0 4px; font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; }
.contact-info-item p { margin: 0; color: var(--text); font-weight: 600; }

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.contact-form h3 { margin: 0 0 18px; color: var(--primary-dark); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .form-group { margin-bottom: 14px; }
.contact-form label {
    display: block; margin-bottom: 6px; font-size: 13.5px;
    color: var(--text); font-weight: 600;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    min-height: auto;
    min-width: auto;
    transition: border .2s, box-shadow .2s;
    background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25,118,210,0.12);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .submit-row { margin-top: 8px; }

.map-wrap {
    margin-top: 50px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.public-footer {
    background: #0d1b2a;
    color: #c8d6e5;
    padding: 60px 0 0;
    margin-top: 0;
}
.public-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 40px;
}
.public-footer h5 {
    color: #fff;
    margin: 0 0 18px;
    font-size: 15px;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.public-footer .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.public-footer .footer-brand img { height: 42px; background: #fff; padding: 4px; border-radius: 6px; }
.public-footer .footer-brand .name { font-size: 17px; font-weight: 700; color: #fff; }
.public-footer p { font-size: 14px; color: #94a3b8; }
.public-footer ul { list-style: none; padding: 0; margin: 0; }
.public-footer ul li { padding: 5px 0; }
.public-footer ul li a { color: #94a3b8; font-size: 14px; }
.public-footer ul li a:hover { color: #ffd54f; }
.public-footer .contact-line { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.public-footer .contact-line i { color: var(--primary-light); margin-top: 4px; }
.public-footer .contact-line span { color: #cdd5e0; }

.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: all .2s;
}
.social-links a:hover { background: var(--primary); transform: translateY(-2px); }

.footer-bottom {
    margin-top: 50px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 13.5px;
    color: #8395aa;
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--success);
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform .35s;
}
.toast.show { transform: translateX(0); }
.toast.error { background: #ef4444; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero .public-container { grid-template-columns: 1fr; }
    .hero-image-wrap { display: none; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .showcase-row { grid-template-columns: 1fr; gap: 25px; }
    .showcase-row.reverse { direction: ltr; }
    .public-footer .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .customer-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .job-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 30px; }
    .section-head h2 { font-size: 24px; }
    .public-header .public-container { height: 64px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        box-shadow: var(--shadow);
        display: none;
    }
    .main-nav.open { display: flex; }
    .top-bar { display: none; }
    .stats-strip { grid-template-columns: 1fr 1fr; margin-top: -30px; }
    .card-grid, .card-grid.cols-4, .card-grid.cols-2 { grid-template-columns: 1fr; }
    .customer-grid { grid-template-columns: repeat(2, 1fr); }
    .public-footer .footer-grid { grid-template-columns: 1fr; }
    .cta-banner { padding: 30px; flex-direction: column; text-align: center; }
    .section { padding: 50px 0; }
    .hero { padding: 50px 0 60px; }
}
