/* ===================== Color Palette ===================== */
:root {
    --navy: #0F172A;          /* สีกรมเข้ม (หลัก) */
    --navy-light: #1E293B;    /* สีกรมท่ากลาง */
    --slate: #475569;         /* สีเทาเข้ม/เทาหินชนวน */
    --slate-light: #94A3B8;   /* สีเทาอ่อน */
    --light-gray: #F8FAFC;    /* สีพื้นหลังเทาอ่อนสว่าง */
    --medium-gray: #64748B;   /* สีเทาตัวหนังสือทั่วไป */
    --white: #ffffff;
    
    /* สีเน้น (Accent Colors) ปรับจากสีเขียวเป็นโทนฟ้า/น้ำเงินสว่าง */
    --accent: #2563EB;        /* สีน้ำเงินสว่างเด่น (แทนที่สีเขียวเดิม) */
    --accent-hover: #1D4ED8;  /* สีน้ำเงินสว่างตอน Hover */
    --accent-glow: rgba(37, 99, 235, 0.4);
}

/* ===================== Base ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Kanit', sans-serif;
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
}
h1,h2,h3,h4,h5,h6 {
    font-family: 'Prompt', sans-serif;
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ===================== Navbar ===================== */
.navbar {
    background: var(--navy);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.brand-logo {
    display: block;
    width: 200px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    padding: 5px 9px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: 0.3s;
}
.nav-links a:hover {
    color: var(--slate-light);
}
.btn-nav {
    background: var(--accent);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-nav:hover {
    background: var(--accent-hover);
}

/* ===================== Hero ===================== */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(15,23,42,0.85), rgba(15,23,42,0.85)),
        url('work2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}
.hero-content {
    max-width: 800px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 25px;
    line-height: 1.2;
}
.hero h1 span {
    color: var(--slate-light);
}
.hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-btns {
    display: flex;
    gap: 15px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}
.btn-line {
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-line:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-3px);
}

/* ===================== Section Titles ===================== */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    color: var(--navy);
    margin-bottom: 50px;
    position: relative;
}
.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===================== About ===================== */
.about {
    padding: 100px 20px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0 var(--light-gray);
}
.section-tag {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}
.highlight-p {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 25px 0;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--slate);
}
.target-sectors span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 10px 0 0;
    font-weight: 500;
    color: var(--navy);
}
.target-sectors i {
    color: var(--accent);
}

/* ===================== Services ===================== */
.services {
    background: var(--light-gray);
    padding: 100px 0;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    padding: 50px 40px;
    background: var(--white);
    border-radius: 15px;
    transition: 0.3s;
    border-top: 5px solid var(--navy);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15,23,42,0.08);
    border-top-color: var(--accent);
}
.service-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
}

/* ===================== Turnkey ===================== */
.turnkey {
    padding: 100px 20px;
    text-align: center;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 20px;
    margin-top: 50px;
}
.step {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-weight: 700;
    font-size: 1.2rem;
}
.process-note {
    margin-top: 20px;
    font-weight: 500;
    color: var(--navy);
}

/* ===================== Importance ===================== */
.importance {
    background: var(--navy);
    color: white;
    padding: 100px 20px;
}
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.benefit-item i {
    color: var(--accent);
    font-size: 1.3rem;
    margin-right: 12px;
}

/* ===================== Gallery ===================== */
.gallery {
    padding: 100px 20px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    grid-auto-rows: 280px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.gallery-item.large {
    grid-row: span 2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===================== Why Us ===================== */
.why-us {
    background: var(--light-gray);
    padding: 100px 0;
}
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 40px;
    text-align: center;
}
.reason i {
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 20px;
}

/* ===================== Contact ===================== */
.contact {
    padding: 100px 20px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}
.contact-form {
    background: var(--navy);
    padding: 50px;
    border-radius: 20px;
    color: white;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--navy-light);
    background: var(--navy-light);
    color: white;
    font-family: 'Kanit';
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--slate-light);
}
.form-status {
    margin-top: 12px;
    font-family: 'Kanit';
    font-size: 0.95rem;
    text-align: center;
}
.form-status.success {
    color: #4ade80;
}
.form-status.error {
    color: #f87171;
}
.contact-details a {
    color: var(--navy);
    text-decoration: none;
}
.contact-details a:hover {
    color: var(--accent);
    text-decoration: underline;
}
.contact-line-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 12px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.contact-line-link:hover { color: var(--accent-hover); }

/* ===================== Floating LINE Button ===================== */
.floating-line {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--accent);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 999;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 20px var(--accent-glow);
    transition: 0.3s;
}
.floating-line:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}
.floating-line i {
    font-size: 1.5rem;
}

/* ===================== Footer ===================== */
footer {
    background: #0a101f;
    color: var(--medium-gray);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--navy-light);
}

/* ===================== Responsive ===================== */
@media(max-width: 992px){
    .nav-links { display: none; }
    .about-grid,
    .contact-grid,
    .benefits-grid,
    .reasons-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
    .gallery-item.large { grid-row: span 1; height: 200px; }
}
@media(max-width: 768px){
    .floating-line {
        padding: 10px 20px;
        font-size: 0.95rem;
        gap: 8px;
    }
    .floating-line i {
        font-size: 1.3rem;
    }
}
