/* --- 1. Variables & Reset --- */
:root {
    --primary: #0F172A; /* น้ำเงินเข้ม Navy */
    --secondary: #B45309; /* สีทองแดง Copper */
    --accent: #F59E0B; /* สีทอง Amber เล็กน้อย */
    --light: #F8FAFC; /* ขาวอมฟ้าจางๆ */
    --dark: #1E293B;
    --text: #334155;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* สำคัญ: ทำให้กดเมนูแล้วเลื่อนนุ่มนวล */
}

body {
    font-family: 'Kanit', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { width: 100%; display: block; }

/* --- 2. Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.bg-light { background-color: var(--light); }
.text-center { text-align: center; margin-bottom: 50px; }

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- 3. Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo span { color: var(--secondary); }

.nav-menu { display: flex; gap: 30px; align-items: center; }

.nav-menu a {
    font-weight: 400;
    color: var(--primary);
    font-size: 1rem;
}

.nav-menu a:hover { color: var(--secondary); }

.btn-contact {
    padding: 8px 20px;
    border: 1px solid var(--primary);
    border-radius: 50px;
}

.btn-contact:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* --- 4. Hero Section --- */
.hero-section {
    height: 100vh;
    background: url('https://naamuinnovation.com/image/main.webp?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
}

.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 20px; }

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    margin: 5px;
}

.btn-primary { background: var(--secondary); color: var(--white); border: 2px solid var(--secondary); }
.btn-primary:hover { background: transparent; }

.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* --- 5. About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img { border-radius: 10px; box-shadow: 20px 20px 0 var(--light); }

.about-text .section-title::after { margin: 10px 0 0; /* Align left */ }
.feature-list { margin-top: 20px; }
.feature-list li { margin-bottom: 10px; font-size: 1.1rem; }

/* --- 6. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card h3 { margin-bottom: 15px; color: var(--primary); }

/* --- 7. Portfolio Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    transition: 0.3s;
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-info { bottom: 0; }

/* --- 8. Blog List Style --- */
.blog-list {
    max-width: 800px;
    margin: 0 auto;
}

.blog-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.blog-item:hover { transform: translateX(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.blog-date {
    background: var(--primary);
    color: var(--white);
    padding: 10px 15px;
    text-align: center;
    border-radius: 6px;
    margin-right: 20px;
    min-width: 70px;
}

.blog-date span { display: block; font-size: 1.5rem; font-weight: bold; line-height: 1; }
.blog-date small { font-size: 0.8rem; }

.blog-details h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--dark); }
.blog-details p { font-size: 0.9rem; color: #666; margin: 0; }
.blog-arrow { margin-left: auto; color: var(--secondary); font-size: 1.5rem; }

/* --- 9. Footer --- */
.footer { background: var(--primary); color: #cbd5e1; padding-top: 60px; padding-bottom: 20px; }
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info h2 { color: var(--white); margin-bottom: 20px; }
.footer-info p { margin-bottom: 10px; }

.footer-form input, .footer-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* ซ่อนเมนูในมือถือเพื่อความเรียบง่าย */
    .hero-content h1 { font-size: 2.2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

/* ซ่อนแถบ Google Translate ด้านบน */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body {
    top: 0px !important;
}
/* ซ่อนโลโก้ Google ใน Widget เพื่อความคลีน */
.goog-logo-link {
    display: none !important;
}
.goog-te-gadget {
    color: transparent !important;
}