/*
Theme Name: WiseTech Enterprise
Theme URI: https://www.tongdaidoanhnghiep.vn/
Author: Wise Tech
Author URI: https://www.tongdaidoanhnghiep.vn/
Description: Giao dien WordPress hien dai, responsive cho giai phap tong dai doanh nghiep. Toi uu SEO, toc do cao, thiet ke chuyen nghiep.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wt-enterprise
Tags: business, custom-colors, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, blog
*/

/* =============================
   CSS VARIABLES
============================== */
:root {
    --primary:       #0057B8;
    --primary-dark:  #003d8f;
    --primary-light: #e8f0fb;
    --secondary:     #FF6600;
    --secondary-dark:#cc5200;
    --accent:        #00B4D8;
    --dark:          #0a0f1e;
    --dark2:         #111827;
    --gray:          #6B7280;
    --gray-light:    #F3F4F6;
    --white:         #ffffff;
    --success:       #10B981;
    --border:        #E5E7EB;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow:        0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
    --radius:        8px;
    --radius-lg:     16px;
    --radius-xl:     24px;
    --font:          'Be Vietnam Pro', 'Inter', system-ui, sans-serif;
    --transition:    .25s cubic-bezier(.4,0,.2,1);
}

/* =============================
   RESET & BASE
============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    color: var(--dark2);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =============================
   TYPOGRAPHY
============================== */
h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { color: var(--gray); line-height: 1.75; }

/* =============================
   LAYOUT
============================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* =============================
   BUTTONS
============================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0,87,184,.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 28px rgba(0,87,184,.4);
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255,102,0,.3);
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}
.btn-white:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-ghost {
    background: rgba(255,255,255,.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* =============================
   BADGES & TAGS
============================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-secondary { background: rgba(255,102,0,.1); color: var(--secondary); }
.badge-accent { background: rgba(0,180,216,.1); color: var(--accent); }
.badge-success { background: rgba(16,185,129,.1); color: var(--success); }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* =============================
   SECTION HEADERS
============================== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 56px;
}
.section-title { margin-bottom: 16px; }
.section-title span { color: var(--primary); }
.section-desc { font-size: 1.05rem; color: var(--gray); }

/* =============================
   TOPBAR
============================== */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar-item svg { opacity: .6; flex-shrink: 0; }

/* =============================
   HEADER
============================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1rem;
}
.logo-text { line-height: 1.2; }
.logo-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -.02em;
}
.logo-text span { font-size: .72rem; color: var(--gray); font-weight: 500; }

/* NAV */
.primary-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--dark2);
    border-radius: 8px;
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-arrow {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* MEGA MENU */
.mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    border: 1px solid var(--border);
    z-index: 999;
    animation: dropIn .2s ease;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-item:hover .mega-menu { display: block; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background var(--transition);
}
.mega-item:hover { background: var(--primary-light); }
.mega-item-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.mega-item h4 { font-size: .85rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.mega-item p  { font-size: .78rem; color: var(--gray); }

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: all var(--transition);
}
.header-phone:hover { background: var(--primary); color: var(--white); }

/* HAMBURGER */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    background: var(--gray-light);
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* =============================
   HERO
============================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0f1e 0%, #0d1b3e 40%, #0a1628 100%);
    overflow: hidden;
    padding: 80px 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .25;
}
.hero-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -200px; right: -100px;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -100px; left: -100px;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--secondary), transparent);
    top: 50%; left: 40%;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    color: rgba(255,255,255,.9);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity:1; transform: scale(1); }
    50%  { opacity:.5; transform: scale(1.3); }
}
.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}
.hero-title .highlight {
    background: linear-gradient(135deg, #FFD600, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    color: rgba(255,255,255,.65);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-btns { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat { text-align: center; }
.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-num span { color: var(--secondary); }
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.5); font-weight: 500; }

/* HERO VISUAL */
.hero-visual { position: relative; }
.hero-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-xl);
    padding: 32px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}
.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.hero-card-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.hero-card-title { color: white; font-size: 1.1rem; font-weight: 700; }
.hero-card-sub { color: rgba(255,255,255,.5); font-size: .8rem; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.hero-tag {
    padding: 4px 12px;
    background: rgba(255,255,255,.1);
    border-radius: 20px;
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.15);
}

/* FLOATING CARDS */
.float-card {
    position: absolute;
    background: var(--white);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}
.float-card-1 { top: -20px; right: -20px; animation-delay: 0s; }
.float-card-2 { bottom: 20px; left: -20px; animation-delay: 2s; }
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.float-label { font-size: .72rem; color: var(--gray); font-weight: 600; margin-bottom: 2px; }
.float-value { font-size: 1.3rem; font-weight: 800; color: var(--dark); line-height: 1; }
.float-value.green { color: var(--success); }
.float-value.orange { color: var(--secondary); }
.float-sub { font-size: .72rem; color: var(--gray); margin-top: 2px; }

/* =============================
   CLIENTS / PARTNERS STRIP
============================== */
.clients-section {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--gray-light);
}
.clients-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    overflow: hidden;
}
.clients-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
    flex-shrink: 0;
}
.clients-track {
    display: flex;
    gap: 40px;
    animation: marquee 20s linear infinite;
    flex-shrink: 0;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.client-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 700;
    font-size: .9rem;
    color: var(--gray);
    opacity: .6;
    transition: opacity var(--transition);
}
.client-item:hover { opacity: 1; }

/* =============================
   SERVICES
============================== */
.services-section { padding: 96px 0; }
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: var(--primary-light);
    transition: all var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); transform: scale(1.1); }
.service-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-desc { font-size: .88rem; color: var(--gray); line-height: 1.65; margin-bottom: 16px; }
.service-link {
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}
.service-card:hover .service-link { gap: 8px; }

/* =============================
   WHY US
============================== */
.why-section {
    padding: 96px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}
.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,87,184,.15), transparent);
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.why-section .section-tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.why-section .section-title { color: var(--white); }
.why-section .section-desc { color: rgba(255,255,255,.6); }
.why-features { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.why-feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.08);
    transition: all var(--transition);
}
.why-feature:hover { background: rgba(255,255,255,.09); transform: translateX(6px); }
.why-feature-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.why-feature h4 { color: var(--white); font-size: .95rem; margin-bottom: 4px; }
.why-feature p  { color: rgba(255,255,255,.55); font-size: .85rem; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-stat-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all var(--transition);
}
.why-stat-card:hover { background: rgba(255,255,255,.1); }
.why-stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}
.why-stat-num span { color: var(--secondary); }
.why-stat-label { font-size: .82rem; color: rgba(255,255,255,.5); font-weight: 600; }

/* =============================
   SOLUTIONS / TABS
============================== */
.solutions-section { padding: 96px 0; background: var(--gray-light); }
.tabs-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 8px;
    display: inline-flex;
    gap: 4px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}
.tab-btn {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray);
    transition: all var(--transition);
}
.tab-btn:hover { color: var(--primary); background: var(--primary-light); }
.tab-btn.active { background: var(--primary); color: var(--white); box-shadow: 0 4px 12px rgba(0,87,184,.3); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.solution-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
    align-items: flex-start;
}
.solution-item:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.solution-icon {
    width: 42px; height: 42px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.solution-item h4 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.solution-item p  { font-size: .82rem; color: var(--gray); }

/* =============================
   PROCESS
============================== */
.process-section { padding: 96px 0; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; }
.process-grid::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 80px; right: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.process-item {
    text-align: center;
    position: relative;
    z-index: 1;
}
.process-num {
    width: 88px; height: 88px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 auto 20px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-light), var(--white));
    box-shadow: 0 0 0 6px rgba(0,87,184,.08);
}
.process-item h3 { font-size: 1rem; margin-bottom: 8px; }
.process-item p  { font-size: .85rem; color: var(--gray); }

/* =============================
   TESTIMONIALS
============================== */
.testimonials-section { padding: 96px 0; background: var(--gray-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px; right: 24px;
    font-size: 5rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-stars { color: #FBBF24; font-size: 1rem; margin-bottom: 14px; }
.testimonial-text { color: var(--gray); font-size: .9rem; line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
}
.testimonial-name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.testimonial-role { font-size: .78rem; color: var(--gray); }

/* =============================
   CTA SECTION
============================== */
.cta-section {
    padding: 96px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #001a4d 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    z-index: 1;
}
.cta-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--white); margin-bottom: 12px; }
.cta-desc { color: rgba(255,255,255,.7); font-size: 1rem; }
.cta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* =============================
   CONTACT
============================== */
.contact-section { padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contact-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    align-items: flex-start;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.contact-card:hover { border-color: var(--primary); background: var(--primary-light); }
.contact-card-icon {
    width: 44px; height: 44px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-card h4 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact-card p  { font-size: .85rem; color: var(--gray); }
.contact-card a  { color: var(--primary); font-weight: 600; }

/* FORM */
.contact-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .85rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .9rem;
    font-family: var(--font);
    color: var(--dark);
    background: var(--gray-light);
    transition: all var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,87,184,.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
#cf-result {
    display: none;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    margin-top: 16px;
}
#cf-result.success { background: rgba(16,185,129,.1); color: #065f46; border: 1px solid rgba(16,185,129,.3); }
#cf-result.error   { background: rgba(239,68,68,.1); color: #991b1b; border: 1px solid rgba(239,68,68,.3); }

/* =============================
   NEWS / BLOG
============================== */
.news-section { padding: 96px 0; background: var(--gray-light); }
.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-img { aspect-ratio: 16/9; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-img-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-light), rgba(0,180,216,.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.post-card-body { padding: 24px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post-category {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 20px;
}
.post-date { font-size: .8rem; color: var(--gray); }
.post-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.post-title a { color: var(--dark); transition: color var(--transition); }
.post-title a:hover { color: var(--primary); }
.post-excerpt { font-size: .85rem; color: var(--gray); margin-bottom: 16px; line-height: 1.65; }
.post-read-more {
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}
.post-card:hover .post-read-more { gap: 8px; }

/* =============================
   FOOTER
============================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.65);
}
.footer-top { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand {}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}
.footer-logo-text strong { display: block; color: white; font-size: 1rem; font-weight: 800; }
.footer-logo-text span { font-size: .72rem; color: rgba(255,255,255,.4); }
.footer-desc { font-size: .88rem; line-height: 1.75; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,.1);
}
.social-btn:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }
.footer-col h4 { color: white; font-size: .9rem; font-weight: 700; margin-bottom: 20px; letter-spacing: .03em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover { color: white; }
.footer-links a::before { content: '→'; font-size: .7rem; opacity: .5; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: .85rem; }
.footer-contact-item svg { opacity: .5; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
}

/* =============================
   FLOATING BUTTONS
============================== */
.floating-btns {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.float-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    color: white;
}
.float-action:hover { transform: translateX(-4px) scale(1.03); }
.float-action.phone { background: var(--primary); }
.float-action.zalo  { background: #0068FF; }
.float-action.email { background: var(--secondary); }
.float-label { display: none; }
.float-action:hover .float-label { display: block; }
.float-icon { width: 22px; height: 22px; flex-shrink: 0; }
.scroll-top {
    width: 44px; height: 44px;
    background: rgba(0,0,0,.6);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--primary); transform: translateY(-3px); }

/* =============================
   PAGE HERO (inner pages)
============================== */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    padding: 64px 0;
    text-align: center;
}
.page-hero h1 { color: white; margin-bottom: 12px; }
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: .85rem;
    color: rgba(255,255,255,.55);
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: white; }

/* =============================
   INNER PAGE CONTENT
============================== */
.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding: 64px 0;
}
.content-area.no-sidebar { grid-template-columns: 1fr; }
#primary { min-width: 0; }
.sidebar-widget {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}
.sidebar-widget .widget-title { font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }

/* SINGLE POST */
.post-content { line-height: 1.85; }
.post-content h2 { font-size: 1.6rem; margin: 40px 0 16px; }
.post-content h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.post-content p  { margin-bottom: 20px; color: var(--dark2); }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; color: var(--dark2); }
.post-content li { margin-bottom: 8px; line-height: 1.75; }
.post-content img { border-radius: var(--radius-lg); margin: 24px 0; }
.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    background: var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--dark);
}

/* PAGINATION */
.pagination { display: flex; align-items: center; gap: 8px; margin-top: 48px; justify-content: center; }
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9rem;
    border: 1.5px solid var(--border);
    color: var(--dark);
    transition: all var(--transition);
}
.pagination a:hover, .pagination span.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* =============================
   ANIMATIONS
============================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .topbar-left .topbar-item:not(:first-child) { display: none; }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { display: none; }
    .why-grid { grid-template-columns: 1fr; gap: 48px; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .process-grid::before { display: none; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    .content-area { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .primary-nav, .header-phone { display: none; }
    .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
    .hero { min-height: 80vh; padding: 64px 0; }
    .hero-stats { gap: 24px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { justify-content: center; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
    .why-stats { grid-template-columns: 1fr 1fr; }
    .topbar { display: none; }
    .float-action .float-label { display: none !important; }
}

/* =============================
   MOBILE NAV
============================== */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
}
.mobile-nav.active { display: block; }
.mobile-nav-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(400px, 90vw);
    height: 100%;
    background: white;
    overflow-y: auto;
    padding: 80px 32px 32px;
    animation: slideIn .3s ease;
    box-shadow: var(--shadow-lg);
}
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.mobile-nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--primary); }

/* =============================
   WORDPRESS ALIGNMENT
============================== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.wp-caption-text { font-size: .82rem; color: var(--gray); text-align: center; margin-top: 8px; }

/* ============================================================
   PAGE LAYOUT (sidebar + main)
============================================================ */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    margin-top: 32px;
}
@media (max-width: 900px) { .page-layout { grid-template-columns: 1fr; } .page-sidebar { display: none; } }
.page-main { min-width: 0; }
.page-sidebar { }

/* Single post */
.single-header { margin-bottom: 32px; }
.single-title  { font-size: clamp(1.6rem,3vw,2.4rem); color: var(--dark); margin-bottom: 12px; }
.single-thumb  { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.single-img    { width: 100%; height: auto; display: block; }
.single-content { font-size: 1rem; line-height: 1.8; color: var(--body); }
.single-content h2,.single-content h3 { color: var(--dark); margin: 28px 0 14px; }
.single-content p { margin-bottom: 18px; }
.single-content ul,.single-content ol { padding-left: 24px; margin-bottom: 18px; }
.single-content a { color: var(--primary); text-decoration: underline; }
.single-content img { max-width: 100%; border-radius: var(--radius); }
.single-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-tags a { display:inline-block; background:var(--light); color:var(--gray); padding:3px 10px; border-radius:20px; font-size:.8rem; margin:2px; text-decoration:none; }
.post-tags a:hover { background:var(--primary); color:#fff; }

/* Post navigation */
.post-navigation { display:flex; justify-content:space-between; gap:20px; margin-top:40px; padding-top:24px; border-top:1px solid var(--border); }
.post-navigation a { color:var(--primary); text-decoration:none; font-weight:600; }
.post-navigation a:hover { color:var(--secondary); }

/* Widgets */
.widget { background:var(--white); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; margin-bottom:24px; }
.widget-title { font-size:1rem; font-weight:700; color:var(--dark); margin-bottom:16px; padding-bottom:12px; border-bottom:2px solid var(--primary); }
.widget-list { list-style:none; padding:0; margin:0; }
.widget-list li { padding:8px 0; border-bottom:1px solid var(--border); }
.widget-list li:last-child { border-bottom:none; }
.widget-list a { color:var(--body); text-decoration:none; font-size:.9rem; }
.widget-list a:hover { color:var(--primary); }
.search-form { display:flex; gap:8px; }
.search-field { flex:1; padding:10px 14px; border:1px solid var(--border); border-radius:var(--radius); font-size:.9rem; }
.search-submit { background:var(--primary); color:#fff; border:none; padding:10px 16px; border-radius:var(--radius); cursor:pointer; }

/* Post card image placeholder */
.post-card-img-placeholder {
    height: 180px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* form result */
.form-result { margin-top: 14px; padding: 14px; border-radius: var(--radius); font-size: .9rem; display: none; }
.form-result:not(:empty) { display: block; }
.form-result--success { background: rgba(0,180,100,.1); color: #00803a; border: 1px solid rgba(0,180,100,.3); }
.form-result--error   { background: rgba(220,30,30,.1); color: #b91c1c; border: 1px solid rgba(220,30,30,.3); }
.spinner { display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* btn-white */
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--light); }

/* fade-up */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* float-card */
.float-card { position:absolute; background:rgba(255,255,255,.12); backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.2); border-radius:var(--radius); padding:12px 16px; min-width:140px; }
.float-card-1 { top:-20px; right:-20px; }
.float-card-2 { bottom:-20px; left:-20px; }
.float-label { font-size:.72rem; color:rgba(255,255,255,.6); margin-bottom:3px; }
.float-value { font-size:1.4rem; font-weight:800; }
.float-value.green  { color:#4ade80; }
.float-value.orange { color:#fb923c; }
.float-sub { font-size:.7rem; color:rgba(255,255,255,.5); margin-top:2px; }

/* Hero orbs */
.hero-orb { position:absolute; border-radius:50%; filter:blur(80px); pointer-events:none; }
.hero-orb-1 { width:400px; height:400px; background:rgba(0,87,184,.3); top:-100px; right:10%; }
.hero-orb-2 { width:250px; height:250px; background:rgba(255,102,0,.2); bottom:10%; left:5%; }
.hero-orb-3 { width:180px; height:180px; background:rgba(0,180,216,.15); top:40%; left:40%; }

/* Header hidden on scroll down */
.site-header.hidden { transform: translateY(-100%); }

/* ============================================================
   RESPONSIVE — MOBILE FIRST IMPROVEMENTS
============================================================ */

/* ── 1280px — Large desktop ─────────────────────────────── */
@media (max-width: 1280px) {
    .mega-menu { min-width: 680px; }
    .hero-grid { gap: 40px; }
}

/* ── 1024px — Tablet landscape / small laptop ───────────── */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }

    /* Header: hide desktop nav, show hamburger */
    .main-nav { display: none !important; }
    .mobile-toggle { display: flex; }

    /* Hero */
    .hero { padding: 80px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; } /* hide card on tablet */
    .hero-title { font-size: clamp(2rem, 5vw, 3rem); }
    .hero-stats { gap: 24px; }

    /* Why grid */
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .why-stats { grid-template-columns: repeat(4, 1fr); }

    /* Contact grid */
    .contact-grid { grid-template-columns: 1fr; }

    /* Page layout: hide sidebar on tablet */
    .page-layout { grid-template-columns: 1fr; }
    .page-sidebar { display: none; }

    /* Process grid */
    .process-grid { grid-template-columns: repeat(2, 1fr); }

    /* Solutions: hide overflow tabs */
    .tabs-wrapper { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
    .tab-btn { white-space: nowrap; }
}

/* ── 768px — Tablet portrait ────────────────────────────── */
@media (max-width: 768px) {
    /* Base typography */
    html { font-size: 15px; }

    /* Topbar: hide on mobile */
    .topbar { display: none; }

    /* Header */
    .site-header { top: 0; }
    .header-inner { height: 64px; }
    .header-cta-phone span { display: none; } /* show only icon on small */

    /* Hero */
    .hero { padding: 70px 0 50px; }
    .hero-title { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.25; }
    .hero-desc { font-size: .95rem; }
    .hero-btns { flex-direction: column; gap: 12px; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .hero-stat { flex: 1 1 calc(33% - 16px); min-width: 80px; }

    /* Section titles */
    .section-title { font-size: clamp(1.5rem, 4.5vw, 2rem); }
    .section-desc { font-size: .9rem; }

    /* Services grid */
    .grid-auto { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .service-card { padding: 20px 16px; }

    /* Why stats */
    .why-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    /* Why features */
    .why-features { gap: 16px; }

    /* Solutions tab panel grid */
    .tab-panel { grid-template-columns: 1fr; }

    /* Process grid */
    .process-grid { grid-template-columns: 1fr; gap: 20px; }
    .process-item { padding: 20px; }

    /* Testimonials grid */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* CTA */
    .cta-inner { flex-direction: column; text-align: center; gap: 28px; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
    .cta-title { font-size: clamp(1.4rem, 4vw, 1.8rem); }

    /* Contact cards */
    .contact-cards { grid-template-columns: 1fr; }

    /* Form grid */
    .form-grid { grid-template-columns: 1fr; }

    /* News grid */
    .grid-3 { grid-template-columns: 1fr; gap: 20px; }

    /* Footer grid */
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }

    /* Footer bottom */
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-nav { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }

    /* Mobile nav */
    .mobile-nav { width: 100%; max-width: 100%; }

    /* Floating buttons: smaller on mobile */
    .floating-buttons { bottom: 16px; right: 12px; gap: 8px; }
    .float-btn { width: 46px; height: 46px; }
    .float-tooltip { display: none; }

    /* Breadcrumbs */
    .breadcrumbs { font-size: .8rem; margin-bottom: 20px; }
    .breadcrumb-list { flex-wrap: wrap; gap: 4px; }

    /* Pagination */
    .pagination-list { gap: 4px; }
    .pagination-list a, .pagination-list span { min-width: 36px; height: 36px; font-size: .8rem; }

    /* Post card */
    .post-card-img img { height: 180px; }

    /* Single content */
    .single-title { font-size: 1.5rem; }
    .single-content { font-size: .95rem; }
}

/* ── 480px — Large phone ─────────────────────────────────── */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 16px; }

    /* Hero */
    .hero-title { font-size: 1.75rem; }
    .hero-badge { font-size: .75rem; }
    .hero-stat-num { font-size: 1.4rem; }
    .hero-stat-label { font-size: .7rem; }

    /* Grid 2 → 1 */
    .grid-auto { grid-template-columns: 1fr; }
    .why-stats { grid-template-columns: repeat(2, 1fr); }

    /* Services section  */
    .services-section { padding: 60px 0; }
    .service-card { padding: 18px 14px; }
    .service-icon { font-size: 2rem; width: 52px; height: 52px; }

    /* Why section */
    .why-section { padding: 60px 0; }
    .why-feature-icon { font-size: 1.6rem; width: 44px; height: 44px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }

    /* Buttons */
    .btn { padding: 11px 18px; font-size: .85rem; }
    .btn-sm { padding: 7px 14px; font-size: .78rem; }

    /* Section padding */
    section { padding: 60px 0; }
    .hero { padding: 70px 0 40px; }

    /* Section header */
    .section-header { margin-bottom: 32px; }

    /* Clients */
    .clients-section { padding: 16px 0; }
    .clients-label { display: none; }

    /* Tabs */
    .tabs-wrapper { gap: 6px; }
    .tab-btn { padding: 8px 14px; font-size: .8rem; }

    /* CTA */
    .cta-section { padding: 60px 0; }
    .cta-inner { padding: 32px 24px; border-radius: 16px; }

    /* Contact */
    .contact-form { padding: 24px 18px; }

    /* Testimonials */
    .testimonial-card { padding: 24px 18px; }
    .testimonials-section { padding: 60px 0; }

    /* Process */
    .process-num { font-size: 2.5rem; }
    .process-item h3 { font-size: 1rem; }
}

/* ── 380px — Small phone ─────────────────────────────────── */
@media (max-width: 380px) {
    .hero-title { font-size: 1.55rem; }
    .hero-stats { gap: 12px; }
    .hero-stat { flex: 1 1 calc(50% - 12px); }
    .why-stats { grid-template-columns: 1fr 1fr; }
    .float-btn { width: 42px; height: 42px; }
    .floating-buttons { right: 8px; bottom: 12px; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .topbar, .site-header, .mobile-nav, .mobile-overlay,
    .floating-buttons, .hero-btns, .cta-section,
    footer .footer-socials, .clients-section { display: none !important; }
    body { font-size: 12pt; color: #000; }
    a { color: #000; text-decoration: underline; }
    .container { max-width: 100%; padding: 0; }
}

/* ── Accessibility: reduce motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-up { opacity: 1 !important; transform: none !important; }
    .clients-track { animation: none !important; }
}

/* ── Dark mode (basic) ────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --dark:  #f0f4ff;
        --body:  #c8d0e0;
        --gray:  #8899aa;
        --light: #1a2030;
        --white: #0f1520;
        --border:#1e2a3a;
    }
    .site-header { background: rgba(10,15,25,.96); border-bottom-color: rgba(255,255,255,.08); }
    .topbar { background: #050a12; }
    .service-card, .testimonial-card, .widget, .process-item, .contact-card { background: #101825; border-color: #1e2a3a; }
    .contact-form { background: #101825; }
    .footer-main { background: #050a12; }
    .footer-bottom { background: #030710; }
}

/* ============================================================
   BUG FIXES v2.1 — class name alignment with header.php HTML
============================================================ */

/* ── MAIN NAV (mapped from .primary-nav → .main-nav) ──── */
.main-nav { display: flex; align-items: center; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--dark2, #1a2035);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a[aria-current="page"] {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-list > li > a svg { transition: transform var(--transition); flex-shrink: 0; }
.nav-list > li.has-mega:hover > a svg { transform: rotate(180deg); }

/* ── MEGA MENU on .has-mega ────────────────────────────── */
.has-mega { position: relative; }
.has-mega .mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 680px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    border: 1px solid var(--border);
    z-index: 1000;
    animation: dropIn .2s ease;
    overflow: hidden;
}
.has-mega:hover .mega-menu,
.has-mega.open  .mega-menu { display: block; }

/* mega layout */
.mega-inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0;
    padding: 0;
}
.mega-col {
    padding: 24px 20px;
    border-right: 1px solid var(--border);
}
.mega-col:last-child { border-right: none; }
.mega-col.mega-highlight { background: linear-gradient(135deg,rgba(0,87,184,.04),rgba(0,180,216,.04)); min-width: 200px; }
.mega-heading {
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col ul li { margin-bottom: 2px; }
.mega-col ul a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition);
}
.mega-col ul a:hover { background: var(--primary-light); }
.mega-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.mega-col ul a strong { display: block; font-size: .85rem; color: var(--dark); font-weight: 600; line-height: 1.3; }
.mega-col ul a small  { display: block; font-size: .75rem; color: var(--gray); margin-top: 1px; }

.mega-promo { text-align: center; padding: 8px 0; }
.mega-promo-icon { font-size: 2.5rem; margin-bottom: 10px; }
.mega-promo h4 { font-size: .9rem; color: var(--dark); margin-bottom: 8px; font-weight: 700; }
.mega-promo p { font-size: .8rem; color: var(--gray); margin-bottom: 16px; line-height: 1.5; }

/* ── MOBILE TOGGLE — hide on desktop, show on mobile ─── */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 9px;
    flex-shrink: 0;
}
.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}
@media (max-width: 1024px) {
    .main-nav  { display: none !important; }
    .mobile-toggle { display: flex; }
}

/* ── MOBILE NAV — use .open class (JS adds .open) ──────── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1099;
    backdrop-filter: blur(2px);
}
.mobile-overlay.show { display: block; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 1100;
    overflow-y: auto;
    transition: right .3s ease;
    display: flex;
    flex-direction: column;
}
.mobile-nav.open { right: 0; }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.mobile-close {
    width: 36px; height: 36px;
    background: var(--light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    list-style: none;
    padding: 12px 0;
    margin: 0;
    flex: 1;
}
.mobile-menu li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}
.mobile-menu li > a:hover { color: var(--primary); }

.mobile-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: var(--light);
}
.mobile-sub li > a {
    padding: 10px 20px 10px 32px;
    font-size: .88rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    color: var(--body);
}
.mobile-has-sub.open .mobile-sub { max-height: 600px; }
.mobile-has-sub.open > a { color: var(--primary); }

.mobile-footer-cta {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* ── FLOATING ACTION BUTTONS (mapped to .float-btn) ─── */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    transition: all var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.float-btn:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.float-phone  { background: var(--primary); }
.float-zalo   { background: #0068FF; }
.float-email  { background: var(--secondary); }
.float-scroll-top {
    background: rgba(10,15,30,.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform var(--transition);
}
.float-scroll-top.show { opacity: 1; pointer-events: auto; }
.float-scroll-top:hover { background: var(--primary); }

.float-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,15,30,.85);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
}
.float-btn:hover .float-tooltip { opacity: 1; }

/* pulse animation on phone button */
.float-phone::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .3;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { transform: scale(1); opacity: .3; }
    50%      { transform: scale(1.4); opacity: 0; }
}

/* ── FOOTER SOCIAL BUTTONS ──────────────────────────── */
.footer-socials { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition);
    flex-shrink: 0;
}
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.social-fb   { background: #1877F2; }
.social-zalo { background: #0068FF; }
.social-yt   { background: #FF0000; }
.social-li   { background: #0A66C2; }

/* ── FOOTER CONTACT LIST ────────────────────────────── */
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: .88rem;
    color: rgba(255,255,255,.65);
    line-height: 1.5;
}
.footer-contact-list li:last-child { border-bottom: none; }
.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }
.footer-contact-list a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-contact-list a:hover { color: var(--secondary); }
.footer-contact-list small { color: rgba(255,255,255,.45); font-size: .78rem; }

/* ── FOOTER LOGO fix ─────────────────────────────────── */
.footer-logo { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; }
.logo-wise { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -.03em; }
.logo-tech { font-size: 1.5rem; font-weight: 900; color: var(--secondary); letter-spacing: -.03em; }
.logo-tagline { display: none; }

/* header logo */
.site-logo .logo-text { display: flex; align-items: baseline; gap: 2px; text-decoration: none; }
.site-logo .logo-wise { font-size: 1.2rem; font-weight: 900; color: var(--dark); }
.site-logo .logo-tech { font-size: 1.2rem; font-weight: 900; color: var(--primary); }
.site-logo .logo-tagline { display: block; font-size: .65rem; color: var(--gray); font-weight: 500; letter-spacing: .02em; margin-left: 4px; align-self: flex-end; }

/* ── MOBILE — mega menu fix on ≤1024px ─────────────── */
@media (max-width: 1024px) {
    .has-mega .mega-menu { display: none !important; } /* never show desktop mega on mobile */
}
