@font-face {
    font-family: 'Gazpacho';
    src: url('fonts/Gazpacho-Black.woff2') format('woff2'),
         url('fonts/Gazpacho-Black.woff') format('woff'),
         url('fonts/Gazpacho-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #2478C1;
    --blue-dark: #1a5a94;
    --orange: #F5A623;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-text: #555555;
    --dark: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

.font-en {
    font-family: 'Gazpacho', Georgia, 'Times New Roman', serif;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.navbar .container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
}

.navbar .logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu li a {
    font-family: 'Gazpacho', Georgia, 'Times New Roman', serif;
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color 0.3s, background 0.3s;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--blue);
}

.nav-menu li a.active {
    border-bottom: 2px solid var(--orange);
    border-radius: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO BANNER ===== */
.hero {
    margin-top: 74px;
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== SECTIONS COMMON ===== */
section {
    /* padding: 80px 40px; */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Gazpacho', Georgia, 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--blue);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 16px;
    margin-bottom: 50px;
}

/* ===== COMPANY INFORMATION ===== */
#company {
    padding: 0;
}

.company-split {
    display: flex;
    min-height: 400px;
}

.company-left {
    flex: 1;
    background: url('image/BG02_0.png') center center / cover no-repeat;
    padding: 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.company-left h2 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
}

.company-left p {
    font-size: 18px;
    line-height: 1.9;
    color: var(--white);
    opacity: 0.95;
}

.company-right {
    flex: 1;
    line-height: 0;
}

.company-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== PRODUCT INFORMATION ===== */
#products {
    background: var(--gray-light);
    padding: 0;
}

.products-header {
    background: url('image/BG01_0.png') center center / cover no-repeat;
    padding: 50px 60px;
}

.products-header h2 {
    font-size: 52px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}

.products-header p {
    font-size: 18px;
    color: var(--white);
    line-height: 1.8;
    opacity: 0.95;
}

.product-list {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
}

.product-item {
    width: 100%;
    /* border-radius: 12px; */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== REFERENCE ===== */
#reference {
    padding: 0;
    line-height: 0;
}

#reference img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTACT US ===== */
#contact {
    background: var(--white);
    padding: 50px 60px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.contact-title {
    font-size: 52px;
    font-weight: 900;
    color: var(--blue);
    white-space: nowrap;
    margin: 0;
}

.contact-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.contact-qr {
    flex-shrink: 0;
}

.contact-qr img {
    width: 130px;
    height: auto;
    display: block;
}

.contact-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 2px;
}

.contact-info p {
    font-size: 14px;
    color: var(--blue);
    line-height: 1.5;
    margin: 0;
}

.contact-info .contact-detail {
    font-size: 15px;
    color: var(--blue);
    margin-top: 2px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--blue);
    color: var(--white);
    text-align: center;
    padding: 16px 40px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.footer p {
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .products-header {
        background: url('image/BG01_0.png') center center / cover no-repeat;
        padding: 50px 60px;
        text-align: center;
    }

    .company-split {
        flex-direction: column;
    }

    .company-left h2 {
        font-size: 40px;
    }

    .company-right img {
        height: 300px;
    }

    .reference-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 16px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 12px 40px;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    section {
        padding-top: 50px;
        /* padding: 60px 20px; */
    }

    .section-title {
        font-size: 28px;
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 10px 20px;
    }

    .navbar .logo img {
        height: 38px;
    }
}
