/* ==========================================================================
   CSS Variables & Reset for Premium Landing Page
   ========================================================================== */
   :root {
    --primary-color: #0b3d91;      /* Deep Blue */
    --secondary-color: #d4af37;    /* Gold */
    --accent-color: #f8c146;       /* Light Gold */
    --dark-bg: #0a0e17;            /* Dark Mode Baseline */
    --light-bg: #f9fbfd;           /* Off-White */
    --text-primary: #333333;
    --text-light: #f4f6f9;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--white);
}

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

.highlight-gold {
    color: var(--secondary-color);
}

.sub-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

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

.mt-3 {
    margin-top: 1.5rem;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header.scrolled .logo a {
    color: var(--primary-color);
    text-shadow: none;
}

.header.scrolled .nav-menu a {
    color: var(--text-primary);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.logo span.kdt-tag {
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.logo span.brand-gold {
    color: var(--secondary-color);
}

.nav-menu ul {
    display: flex;
    gap: 18px;
    white-space: nowrap;
}

.nav-menu a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.header:not(.scrolled) .mobile-toggle span {
    background-color: var(--white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('../img/bgr.jpg') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.8) 0%, rgba(10, 14, 23, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeIn 1s ease-out;
}

.hero .badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--secondary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.feature-list {
    margin-top: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==========================================================================
   Highlights
   ========================================================================== */
.card-icon {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.card-icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 61, 145, 0.08);
    border-color: var(--secondary-color);
}

.card-icon .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* ==========================================================================
   Location
   ========================================================================== */
.connect-list {
    margin-top: 30px;
}

.connect-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-left: 4px solid var(--secondary-color);
}

.connect-item h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    min-width: 80px;
}

.connect-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   Products
   ========================================================================== */
.product-card .product-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    background: var(--white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ==========================================================================
   Legal
   ========================================================================== */
.doc-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.doc-btn::before {
    content: '📄';
    margin-right: 10px;
    font-size: 1.2rem;
}

.doc-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ==========================================================================
   CTA Form
   ========================================================================== */
.cta-section {
    background: url('../img/bgr.jpg') center/cover fixed;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 61, 145, 0.9);
}

.cta-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2;
}

.cta-text h2 {
    color: var(--primary-color);
}

.contact-hotline {
    margin-top: 30px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
}

.contact-hotline span {
    display: block;
    color: var(--primary-color);
    font-weight: 500;
}

.contact-hotline a {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ==========================================================================
   Footer & Floating Elements
   ========================================================================== */
.footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
    text-align: center;
}

.footer a {
    color: var(--secondary-color);
}

.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 30px;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: bounce 2s infinite ease-in-out;
}

.phone-btn { background: #d32f2f; }
.zalo-btn { background: #0088cc; animation-delay: 1s; }

.float-btn:hover {
    transform: scale(1.05);
    color: var(--white);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 1024px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .cta-box { grid-template-columns: 1fr; padding: 30px; }
    
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        padding: 100px 40px;
        transition: 0.4s;
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu a {
        color: var(--primary-color);
        font-size: 1.2rem;
    }
    
    .mobile-toggle { display: flex; z-index: 1001; }
    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); background: var(--primary-color); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); background: var(--primary-color); }
    
    .logo a {
        font-size: 1.05rem;
        gap: 5px;
        color: var(--white) !important;
        white-space: nowrap;
    }
    
    .header.scrolled .logo a,
    .header.menu-open .logo a {
        color: var(--primary-color) !important;
        text-shadow: none !important;
    }
    
    .logo span.kdt-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .cta-group { flex-direction: column; }
    
    .floating-contact { right: 20px; left: auto; bottom: 20px; }
    
    .reverse { flex-direction: column-reverse; display: flex; }
    
    .nav-cta { display: none; }
    .article-header { padding: 100px 0 30px !important; }
    
    .section-title h2 { font-size: 1.8rem; line-height: 1.3; }
    
    .floating-contact {
        flex-direction: row;
        right: 15px; bottom: 15px;
        gap: 10px;
    }
    .float-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Fix invisible text in deeply nested WordPress grid layouts */
.article-content a.btn {
    color: var(--white) !important;
}
.article-content a.btn:hover {
    color: var(--primary-color) !important;
}
