/*
Theme Name: Thám Tử Elite Pro
Theme URI: https://thamtu24h.com.vn
Author: Detective Agency AI
Description: Giao diện website thám tử tư cao cấp chuẩn SEO 2026, tối ưu tốc độ, responsive 100%
Version: 1.0.0
*/

:root {
    --primary: #0a0e17;
    --secondary: #121826;
    --card-bg: #1a2235;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --gold: #f59e0b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: all 0.3s; }
a:hover { opacity: 0.85; color: var(--accent-hover); }

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

/* Header */
.site-header {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}
.header-top {
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-main {
    padding: 16px 0;
}
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), #ff4757);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.35);
}
.logo-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}
.logo-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none;
}
.nav-menu a {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
}
.nav-menu a:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.05);
}
.btn-hotline {
    background: linear-gradient(135deg, var(--accent), #ff4757);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233,69,96,0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(233,69,96,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233,69,96,0); }
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(233, 69, 96, 0.18), transparent 50%),
                linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 80px 0 70px;
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(233, 69, 96, 0.15);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(233, 69, 96, 0.3);
}
.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff4757);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline {
    background: rgba(255,255,255,0.05);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid var(--border);
}
.hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.hero-card h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-list {
    list-style: none;
}
.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #e2e8f0;
}
.feature-list li:last-child {
    border-bottom: none;
}

/* Stats Bar */
.stats-bar {
    background: var(--secondary);
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item h4 {
    font-size: 34px;
    font-weight: 800;
    color: var(--gold);
}
.stat-item p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Section */
.section {
    padding: 70px 0;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}
.section-badge {
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.section-title {
    font-size: 34px;
    font-weight: 800;
    margin: 10px 0 14px;
}
.section-desc {
    color: var(--text-muted);
    font-size: 16px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.service-icon {
    font-size: 38px;
    margin-bottom: 16px;
}
.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}
.service-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Blog Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}
.post-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.post-card-body {
    padding: 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-meta {
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 600;
}
.post-card h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
}
.post-card h3 a {
    color: #fff;
}
.post-card h3 a:hover {
    color: var(--accent);
}
.post-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 18px;
    flex: 1;
    line-height: 1.6;
}
.post-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Single Post */
.single-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.single-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}
.single-header h1 {
    font-size: 34px;
    line-height: 1.3;
    margin: 12px 0;
}
.single-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 17px;
    line-height: 1.85;
}
.single-content h2 {
    font-size: 24px;
    margin: 32px 0 14px;
    color: #fff;
    border-left: 4px solid var(--accent);
    padding-left: 14px;
}
.single-content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
    color: #e2e8f0;
}
.single-content p {
    margin-bottom: 18px;
    color: #cbd5e1;
}
.single-content ul, .single-content ol {
    margin: 16px 0 18px 24px;
    color: #cbd5e1;
}
.single-content li {
    margin-bottom: 8px;
}
.single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
.single-content th, .single-content td {
    padding: 12px 16px;
    border: 1px solid var(--border);
}
.single-content th {
    background: rgba(255,255,255,0.06);
    color: var(--gold);
}

/* Floating Action Button */
.floating-call {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--accent), #ff4757);
    color: #fff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 25px rgba(233,69,96,0.5);
    z-index: 9999;
    animation: pulse 2s infinite;
}

/* Footer */
.site-footer {
    background: #06090e;
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 70px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
}
.footer-col p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.8;
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .hero-grid, .services-grid, .posts-grid, .stats-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 32px; }
    .nav-menu { display: none; }
}
