/*
Theme Name: HPIT Vietnam - IT Solutions
Theme URI: https://hpit.vn
Author: HPIT Vietnam / TechTrade Hub
Author URI: https://hpit.vn
Description: Theme WordPress chuyên nghiệp cho HPIT Vietnam - Giải pháp CNTT hàng đầu. Tích hợp Showroom 3D, AI Chatbot, Landing Page hiện đại với 4 Zone: Phần cứng, Phần mềm, Giải pháp, Blog.
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hpit-theme
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
*/

/* ═══ CSS VARIABLES ═══ */
:root {
    --hpit-primary: #0066FF;
    --hpit-cyan: #00D4FF;
    --hpit-dark: #060B18;
    --hpit-dark2: #0D1B2A;
    --hpit-dark3: #1A2744;
    --hpit-green: #00E5A0;
    --hpit-purple: #7B61FF;
    --hpit-orange: #FF6B35;
    --hpit-red: #E24B4A;
    --hpit-text: #E8F0FE;
    --hpit-text-muted: rgba(255,255,255,0.5);
    --hpit-border: rgba(255,255,255,0.08);
    --hpit-glass: rgba(255,255,255,0.03);
    --hpit-radius: 16px;
    --hpit-radius-sm: 10px;
    --hpit-font: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    --zone-a: #00D4FF;
    --zone-b: #7B61FF;
    --zone-c: #00E5A0;
    --zone-d: #FF6B35;
    --zone-e: #E24B4A;
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

a { color: var(--hpit-cyan); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--hpit-primary); }

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

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

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
    50% { box-shadow: 0 0 0 14px rgba(0,212,255,0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes scanline {
    0% { top: -20%; }
    100% { top: 120%; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ HEADER / NAV ═══ */
.hpit-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6,11,24,0.88);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--hpit-border);
    transition: all 0.4s;
}
.hpit-header.scrolled {
    background: rgba(6,11,24,0.96);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.hpit-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.hpit-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hpit-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--hpit-cyan), var(--hpit-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
}
.hpit-logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hpit-logo-text span { color: var(--hpit-cyan); font-size: 11px; font-weight: 600; display: block; margin-top: -2px; }

.hpit-nav { display: flex; align-items: center; gap: 6px; }
.hpit-nav a {
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hpit-text-muted);
    transition: all 0.3s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.hpit-nav a:hover, .hpit-nav a.active {
    color: var(--hpit-cyan);
    border-color: rgba(0,212,255,0.2);
    background: rgba(0,212,255,0.06);
}
.hpit-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--hpit-border);
    color: var(--hpit-text);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* Mobile Nav */
@media (max-width: 900px) {
    .hpit-nav-toggle { display: flex; align-items: center; justify-content: center; }
    .hpit-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(6,11,24,0.98);
        backdrop-filter: blur(24px);
        padding: 16px;
        flex-direction: column;
        gap: 4px;
        border-bottom: 1px solid var(--hpit-border);
        transform: translateY(-120%);
        transition: transform 0.4s;
    }
    .hpit-nav.open { transform: translateY(0); }
    .hpit-nav a { width: 100%; text-align: center; padding: 12px; }
}

/* ═══ HERO SECTION ═══ */
.hpit-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}
.hpit-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hpit-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0,212,255,0.08), transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(123,97,255,0.06), transparent 60%);
}
.hpit-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hpit-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}
.hpit-hero-text { animation: slideInLeft 1s ease; }
.hpit-hero-text h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hpit-hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--hpit-cyan), var(--hpit-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hpit-hero-text p {
    font-size: 17px;
    color: var(--hpit-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}
.hpit-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hpit-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 1s ease;
}

@media (max-width: 900px) {
    .hpit-hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hpit-hero-text p { margin-left: auto; margin-right: auto; }
    .hpit-hero-cta { justify-content: center; }
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--hpit-font);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--hpit-cyan), var(--hpit-primary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,212,255,0.4);
    color: #fff;
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--hpit-text);
}
.btn-outline:hover {
    border-color: var(--hpit-cyan);
    color: var(--hpit-cyan);
    background: rgba(0,212,255,0.05);
}

/* ═══ MARKET TICKER ═══ */
.hpit-ticker {
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--hpit-border);
    overflow: hidden;
    padding: 8px 0;
    position: relative;
}
.hpit-ticker-track {
    display: flex;
    gap: 40px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.hpit-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}
.hpit-ticker-item .label { color: var(--hpit-text-muted); }
.hpit-ticker-item .value { color: var(--hpit-text); }
.hpit-ticker-item .up { color: var(--hpit-green); }
.hpit-ticker-item .down { color: var(--hpit-red); }

/* ═══ SECTION COMMON ═══ */
.hpit-section {
    padding: 100px 0;
    position: relative;
}
.hpit-section-header {
    text-align: center;
    margin-bottom: 60px;
}
.hpit-section-header .badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid;
}
.hpit-section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.hpit-section-header p {
    font-size: 16px;
    color: var(--hpit-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ═══ ZONE NAVIGATION ═══ */
.hpit-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.hpit-zone-card {
    background: var(--hpit-glass);
    border: 1px solid var(--hpit-border);
    border-radius: var(--hpit-radius);
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.hpit-zone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--zone-color);
    opacity: 0;
    transition: opacity 0.4s;
}
.hpit-zone-card:hover {
    border-color: var(--zone-color);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.hpit-zone-card:hover::before { opacity: 1; }
.hpit-zone-card:hover { color: var(--hpit-text); }

.hpit-zone-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    background: rgba(var(--zone-color-rgb), 0.1);
    border: 1px solid rgba(var(--zone-color-rgb), 0.2);
}
.hpit-zone-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hpit-zone-card h3 .zone-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--zone-color);
    color: #000;
}
.hpit-zone-card p {
    font-size: 14px;
    color: var(--hpit-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}
.hpit-zone-card .zone-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--zone-color);
    letter-spacing: 0.04em;
}

/* Zone color customizations */
.hpit-zone-card[data-zone="a"] { --zone-color: var(--zone-a); --zone-color-rgb: 0,212,255; }
.hpit-zone-card[data-zone="b"] { --zone-color: var(--zone-b); --zone-color-rgb: 123,97,255; }
.hpit-zone-card[data-zone="c"] { --zone-color: var(--zone-c); --zone-color-rgb: 0,229,160; }
.hpit-zone-card[data-zone="d"] { --zone-color: var(--zone-d); --zone-color-rgb: 255,107,53; }

/* ═══ FEATURED PRODUCTS ═══ */
.hpit-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.hpit-product-card {
    background: var(--hpit-glass);
    border: 1px solid var(--hpit-border);
    border-radius: var(--hpit-radius);
    padding: 24px 20px;
    transition: all 0.3s;
}
.hpit-product-card:hover {
    border-color: rgba(0,212,255,0.2);
    transform: translateY(-4px);
}
.hpit-product-card .product-img {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(123,97,255,0.05));
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
}
.hpit-product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.hpit-product-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.hpit-product-card .product-spec {
    font-size: 12px;
    color: var(--hpit-text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}
.hpit-product-card .product-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--hpit-cyan);
}

/* ═══ STATS BAR ═══ */
.hpit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 40px 0;
}
.hpit-stat {
    text-align: center;
    padding: 24px 16px;
    background: var(--hpit-glass);
    border: 1px solid var(--hpit-border);
    border-radius: var(--hpit-radius);
}
.hpit-stat .stat-number {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--hpit-cyan), var(--hpit-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}
.hpit-stat .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--hpit-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ═══ PARTNERS LOGO ═══ */
.hpit-partners {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 0;
    opacity: 0.5;
}
.hpit-partners img {
    height: 36px;
    filter: grayscale(100%) brightness(2);
    transition: all 0.3s;
}
.hpit-partners img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* ═══ AI CONSULTANT SECTION ═══ */
.hpit-consultant {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}
.hpit-consultant-avatar {
    position: sticky;
    top: 100px;
    background: var(--hpit-glass);
    border: 1px solid var(--hpit-border);
    border-radius: var(--hpit-radius);
    padding: 24px;
    text-align: center;
}
.hpit-avatar-img {
    width: 200px;
    height: 260px;
    border-radius: 16px;
    margin: 0 auto 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(123,97,255,0.1));
    position: relative;
}
.hpit-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hpit-avatar-img .scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(transparent, rgba(0,212,255,0.04), transparent);
    animation: scanline 4s linear infinite;
    pointer-events: none;
}
.hpit-consultant-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--hpit-cyan);
    margin-bottom: 4px;
}
.hpit-consultant-role {
    font-size: 12px;
    color: var(--hpit-text-muted);
}
.hpit-consultant-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--hpit-green);
}
.hpit-consultant-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hpit-green);
    animation: pulse 2s infinite;
}
.hpit-consultant-chat {
    background: var(--hpit-glass);
    border: 1px solid var(--hpit-border);
    border-radius: var(--hpit-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}
.hpit-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
}
.hpit-chat-msg {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    animation: fadeInUp 0.3s ease;
}
.hpit-chat-msg.assistant {
    background: rgba(255,255,255,0.06);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.hpit-chat-msg.user {
    background: linear-gradient(135deg, var(--hpit-primary), var(--hpit-cyan));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.hpit-chat-input {
    padding: 16px;
    border-top: 1px solid var(--hpit-border);
    display: flex;
    gap: 10px;
}
.hpit-chat-input input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--hpit-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--hpit-text);
    font-size: 14px;
    font-family: var(--hpit-font);
    outline: none;
    transition: border-color 0.3s;
}
.hpit-chat-input input:focus { border-color: rgba(0,212,255,0.4); }
.hpit-chat-input input::placeholder { color: var(--hpit-text-muted); }
.hpit-chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--hpit-cyan), var(--hpit-primary));
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hpit-chat-input button:hover { transform: scale(1.05); }
.hpit-chat-suggestions {
    padding: 0 16px 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.hpit-chat-suggestions button {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--hpit-border);
    background: transparent;
    color: var(--hpit-text-muted);
    font-size: 12px;
    font-family: var(--hpit-font);
    cursor: pointer;
    transition: all 0.3s;
}
.hpit-chat-suggestions button:hover {
    border-color: var(--hpit-cyan);
    color: var(--hpit-cyan);
}

@media (max-width: 900px) {
    .hpit-consultant {
        grid-template-columns: 1fr;
    }
    .hpit-consultant-avatar {
        position: static;
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }
    .hpit-avatar-img {
        width: 80px;
        height: 100px;
        margin: 0;
        flex-shrink: 0;
    }
}

/* ═══ CTA SECTION ═══ */
.hpit-cta-section {
    background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,102,255,0.08));
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hpit-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,212,255,0.06), transparent 50%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}
.hpit-cta-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}
.hpit-cta-section p {
    color: var(--hpit-text-muted);
    margin-bottom: 28px;
    font-size: 16px;
    position: relative;
}
.hpit-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ═══ FOOTER ═══ */
.hpit-footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--hpit-border);
    padding: 60px 0 30px;
}
.hpit-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.hpit-footer-brand p {
    color: var(--hpit-text-muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 12px;
}
.hpit-footer h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--hpit-text);
}
.hpit-footer-links { list-style: none; }
.hpit-footer-links li { margin-bottom: 8px; }
.hpit-footer-links a {
    font-size: 13px;
    color: var(--hpit-text-muted);
    transition: color 0.3s;
}
.hpit-footer-links a:hover { color: var(--hpit-cyan); }
.hpit-footer-bottom {
    border-top: 1px solid var(--hpit-border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--hpit-text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

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

/* ═══ FLOATING CHAT FAB ═══ */
.hpit-chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hpit-cyan), var(--hpit-primary));
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 4px 30px rgba(0,212,255,0.4);
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.hpit-chat-fab:hover { transform: scale(1.1); }

/* ═══ LEAD FORM MODAL ═══ */
.hpit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.hpit-modal-overlay.active { display: flex; }
.hpit-modal {
    background: linear-gradient(145deg, var(--hpit-dark2), var(--hpit-dark3));
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: fadeInUp 0.4s ease;
}
.hpit-modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.hpit-modal p { color: var(--hpit-text-muted); font-size: 13px; text-align: center; margin-bottom: 24px; }
.hpit-form-group { margin-bottom: 14px; }
.hpit-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--hpit-text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}
.hpit-form-group input,
.hpit-form-group textarea,
.hpit-form-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--hpit-border);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--hpit-text);
    font-size: 14px;
    font-family: var(--hpit-font);
    outline: none;
    transition: border-color 0.3s;
}
.hpit-form-group input:focus,
.hpit-form-group textarea:focus {
    border-color: rgba(0,212,255,0.4);
}
.hpit-form-group textarea { min-height: 70px; resize: vertical; }
.hpit-form-actions { display: flex; gap: 10px; margin-top: 20px; }
.hpit-form-actions .btn { flex: 1; justify-content: center; }

/* ═══ BLOG SECTION ═══ */
.hpit-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.hpit-blog-card {
    background: var(--hpit-glass);
    border: 1px solid var(--hpit-border);
    border-radius: var(--hpit-radius);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}
.hpit-blog-card:hover {
    border-color: rgba(255,107,53,0.3);
    transform: translateY(-4px);
    color: var(--hpit-text);
}
.hpit-blog-card .blog-thumb {
    height: 180px;
    background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(0,212,255,0.08));
    overflow: hidden;
}
.hpit-blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hpit-blog-card .blog-content { padding: 20px; }
.hpit-blog-card .blog-meta {
    font-size: 12px;
    color: var(--hpit-text-muted);
    margin-bottom: 8px;
}
.hpit-blog-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}
.hpit-blog-card .blog-excerpt {
    font-size: 13px;
    color: var(--hpit-text-muted);
    line-height: 1.6;
}

/* ═══ WP CORE OVERRIDES ═══ */
.wp-block-group, .entry-content { color: var(--hpit-text); }
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--hpit-text); margin-bottom: 16px; }
.entry-content p { color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 16px; }
.entry-content a { color: var(--hpit-cyan); }
.entry-content img { border-radius: 12px; }

/* Page/Post layout */
.hpit-page-content {
    padding-top: 100px;
    min-height: 60vh;
}
.hpit-page-content .container { max-width: 800px; }
