/*
Theme Name: DAFA Construction Glass Theme
Theme URI: https://dafaglass.vn/theme
Author: Antigravity AI
Description: A premium corporate and product catalog theme for Construction Glass (Kính xây dựng) companies. Tailored for the Vietnamese market. Completely SEO-ready, compatible with Elementor/10Web, and equipped with custom REST API endpoints for n8n/AI automations.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dafa-glass-theme
Tags: glassmorphism, responsive, translation-ready, custom-post-types, corporate, catalog

--------------------------------------------------------------------------------
This theme was built with custom layout engines and is designed to integrate 
seamlessly with Elementor Page Builder or 10Web Site Builder.
--------------------------------------------------------------------------------
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* RESET & BASE */
:root {
    --primary: #0b2545;
    --primary-rgb: 11, 37, 69;
    --secondary: #134074;
    --secondary-rgb: 19, 64, 116;
    --accent: #ff9f1c;
    --accent-rgb: 255, 159, 28;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(11, 37, 69, 0.08);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

li {
    list-style: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* CONTAINER */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 6rem 0;
}

.section-dark {
    background-color: var(--primary);
    color: var(--bg-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--bg-light);
}

/* GLASS EFFECT UTILITY */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    box-shadow: 0 12px 40px 0 rgba(11, 37, 69, 0.12);
    transform: translateY(-4px);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(11, 37, 69, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 37, 69, 0.35);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 159, 28, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* HEADER / NAVIGATION */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.header-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo svg {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
}

/* WP DYNAMIC MENU LIST STYLING */
.nav-menu-list {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.nav-menu-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

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

.nav-menu-list a:hover::after,
.nav-menu-list .current-menu-item > a::after,
.nav-menu-list .current_page_item > a::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--primary);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(11, 37, 69, 0.7) 50%, rgba(11, 37, 69, 0.2) 100%);
    z-index: 2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 650px;
    color: var(--bg-light);
}

.hero h1 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.15;
}

.hero h1 span {
    background: linear-gradient(135deg, #a5f3fc, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* CORE VALUES (GIÁ TRỊ CỐT LÕI) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11, 37, 69, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: rgba(19, 64, 116, 0.08);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.value-card h3 {
    margin-bottom: 1rem;
}

.value-card p {
    font-size: 0.95rem;
}

/* PRODUCT CATEGORIES SECTION */
.product-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.category-filter {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    background: var(--bg-white);
    border: 1px solid #cbd5e1;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--secondary);
    color: var(--bg-white);
    border-color: var(--secondary);
}

/* DYNAMIC CATALOG CARDS */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.catalog-card {
    border-radius: var(--radius-md);
    background: var(--bg-white);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 37, 69, 0.12);
}

.catalog-img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.catalog-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.catalog-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.catalog-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.catalog-meta {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* INTERACTIVE COST ESTIMATOR */
.estimator-wrapper {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(19, 64, 116, 0.05), rgba(11, 37, 69, 0.02));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(19, 64, 116, 0.1);
}

.estimator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.estimator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    background-color: var(--bg-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.15);
}

.estimator-result {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.calc-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 1rem 0;
}

.calc-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ABOUT US LAYOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--glass-shadow);
    text-align: center;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* SPECIFICATIONS TABLE */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.spec-table th,
.spec-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.spec-table th {
    font-weight: 700;
    color: var(--primary);
    background-color: var(--bg-light);
    width: 35%;
}

.spec-table td {
    color: var(--text-dark);
}

.features-list {
    margin-bottom: 2rem;
}

.features-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

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

/* CONTACT PAGE */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(19, 64, 116, 0.08);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

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

.map-placeholder {
    height: 250px;
    border-radius: var(--radius-md);
    background-color: #e2e8f0;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    margin-top: 1.5rem;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form-wrapper {
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(0,0,0,0.02);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* PRODUCT DETAIL LAYOUT */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(0,0,0,0.02);
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-info h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FOOTER */
footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-col p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.footer-contact-info li {
    display: flex;
    gap: 0.75rem;
}

.footer-contact-info svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.25rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .estimator-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu-list {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 6rem;
    }
    
    .hero-bg {
        width: 100%;
        height: 100%;
        opacity: 0.25;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .product-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}
