﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e86b24;
    --primary-hover: #c95a1c;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --font-family: 'Be Vietnam Pro', sans-serif;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.btn i {
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

/* Header */


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}



.nav-header,
.menu-overlay {
    display: none;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}



.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Contact Hero */
.contact-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
    z-index: 1;
}

.contact-hero .hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-hero .hero-content {
    max-width: 500px;
}

.contact-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #222;
}

.contact-hero p {
    font-size: 1.05rem;
    color: #444;
}

.hero-watermark {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 2.2rem;
    color: #444;
    opacity: 0.8;
    transform: rotate(-10deg);
    text-align: center;
    line-height: 1.2;
    position: absolute;
    top: -30px;
    right: -100px;
}

/* Contact Info Bar */
.contact-info-bar {
    background-color: var(--bg-white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-bar-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-item .text h4 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.info-item .text .highlight {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.info-item .text span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Main Contact Area */
.contact-main {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.main-container {
    display: flex;
    gap: 40px;
}

/* Form Container */
.contact-form-container {
    flex: 1;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

.contact-form-container p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group label span {
    color: red;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Sidebar (Map & Image) */
.contact-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showroom-card {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.showroom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.showroom-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    z-index: 2;
}

.showroom-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.showroom-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.view-map-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.view-map-link i {
    margin-left: 5px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Benefits Section */
.sidebar-benefits {
    margin-top: 20px;
    padding: 0;
    border: none;
    background: transparent;
}

.benefits-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    text-align: center;
}

.benefit-item {
    flex: 1;
    position: relative;
    padding: 0 10px;
}

.benefit-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 1px;
    height: 60%;
    background-color: var(--border-color);
}

.benefit-item .icon {
    width: 45px;
    height: 45px;
    background-color: #fdf2e9;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #333;
    margin: 0 auto 10px auto;
}

.benefit-item h3 {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #222;
}

.benefit-item p {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Footer */
































.legal-links a {
    margin: 0 10px;
}

.legal-links a:hover {
    color: var(--primary-color);
}

.back-to-top {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .info-bar-container {
        flex-wrap: wrap;
    }

    .info-item {
        flex: 0 0 45%;
        margin-bottom: 15px;
    }
}

@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }

    .contact-form-container {
        padding: 30px 20px;
    }






}

@media (max-width: 768px) {
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .menu-overlay.active {
        display: block;
    }

    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .close-menu-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-menu {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list a {
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-color);
    }

    .header-actions .btn-primary {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 9999;
    }

    .contact-hero::before {
        width: 100%;
        background: rgba(255, 255, 255, 0.50);
    }

    .contact-hero .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-watermark {
        display: none;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .info-item {
        flex: 0 0 100%;
    }

    .benefits-container {
        flex-wrap: wrap;
    }

    .benefit-item {
        flex: 0 0 45%;
        margin-bottom: 20px;
    }

    .benefit-item:nth-child(even)::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .benefit-item {
        flex: 0 0 45%;
    }




}
/* --- CSS ĐỂ LÀM TOÀN BỘ BOX CLICK ĐƯỢC (THẺ A FULL BOX) --- */
.product-card, .article-card, .featured-post {
  position: relative;
}
.product-card a::after, .article-card a::after, .featured-post a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}

/* Contact links hover state */
.contact-link:hover {
  text-decoration: underline !important;
  opacity: 0.8;
}
/* ============================================================== */
/* STANDARDIZED HEADER & MOBILE MENU CSS (ADDED BY AI)            */
/* ============================================================== */

/* DESKTOP LAYOUT (Default) */






.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}



.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #0d3b45;
}

.mobile-only {
    display: none;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.menu-active {
    display: block;
    opacity: 1;
}

/* MOBILE LAYOUT */
@media (max-width: 1024px) {


    /* Hide desktop actions */


    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 9999;
    }

    /* Standardize mobile Sidebar Menu */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        display: flex;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    /* Active state for Sidebar */
    .main-nav.menu-active {
        transform: translateX(0);
    }

    .mobile-only {
        display: flex !important;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-list .nav-item {
        display: block;
        padding: 16px 20px;
        width: 100%;
    }

    .mobile-nav-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid #eee;
    }

    .mobile-nav-logo {
        height: 40px;
    }

    .mobile-nav-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
    }

    .mobile-nav-footer {
        flex-direction: column;
        width: 100%;
        padding: 20px;
        gap: 12px;
        margin-top: auto;
    }

    .btn-mobile-consult {
        display: block;
        text-align: center;
        background: #ff6a00;
        color: #fff;
        padding: 12px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
    }
    
    .mobile-hotline {
        display: block;
        text-align: center;
        color: #0d3b45;
        text-decoration: none;
        font-weight: bold;
        font-size: 16px;
    }
}

/* DESKTOP ACTIONS STANDARDIZATION (ADDED BY AI) */

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 10px;
    background: #f9f9f9;
}
.search-box input {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px;
    font-size: 14px;
    width: 150px;
}
.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}
.btn-try-fit {
    background-color: #ff6a00;
    color: #fff;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-try-fit:hover {
    background-color: #e65c00;
}
.hotline {
    white-space: nowrap;
    font-weight: 700;
    color: #333;
    font-size: 14px;
}
.hotline a {
    color: inherit;
    text-decoration: none;
}
.nav-item:hover, .nav-item.active {
    color: #ff6a00;
}

