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

body {
  font-family: "Prompt","Helvetica Neue",Helvetica,Arial,sans-serif;
  background: #f4f6f9;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


/* HERO */
.hero {
  position: relative;
  height: 650px;
  background: url('images/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 10%;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.hero-content {
  position: relative;
  max-width: 600px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* BUTTON */
.btn {
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.btn-primary {
    background-color: #0d6efd;
    border-radius: 30px;
    padding: 8px 20px;
}

.btn-dark {
  background: #1f2937;
  color: white;
}

.btn-dark:hover {
  background: #111827;
}

.btn-blue {
  background: #2563eb;
  color: white;
}

.btn-blue:hover {
  background: #1e40af;
}

.small {
  padding: 8px 16px;
  font-size: 14px;
}

/* PRODUCTS */
.products {
  padding: 80px 10%;
  text-align: center;
}

.products h2 {
  margin-bottom: 50px;
  font-size: 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
  gap: 30px;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
  text-align: left;
}

.hand {
  position: relative;
  height: 450px;
  background: url('images/hand.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 10%;
  color: #111827;
}

.card h3 {
  margin-bottom: 15px;
}

.card ul {
  margin-bottom: 20px;
  line-height: 1.7;
}

.card.dark {
  background: #111827;
  color: white;
}

.card.dark.machine {
  position: relative;
  height: 450px;
  background: url('images/machine.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 10%;
  color: #fff;
}

/* WHY */
.why-choose {
  background: #f5f6f8;
  padding: 80px 0;
  text-align: center;
}

.why-choose h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 60px;
}

.why-choose h2 span {
  font-weight: 800;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: auto;
}

.why-item {
  padding: 30px 20px;
  position: relative;
}

.why-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #ddd;
}

.icon-box {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  background: linear-gradient(145deg, #2f3542, #1e2228);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    25% 6.7%, 
    75% 6.7%, 
    100% 50%, 
    75% 93.3%, 
    25% 93.3%, 
    0% 50%
  );
}

.icon-box i {
  color: #fff;
  font-size: 32px;
}

.why-item p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .why-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* INDUSTRIES */
.industries {
  padding: 80px 10%;
  text-align: center;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 25px;
}

.industry-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.industry-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.industry-card span {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: white;
  font-weight: bold;
  background: rgba(0,0,0,0.6);
  padding: 6px 12px;
  border-radius: 6px;
}

/* FACTORY */
.factory {
  position: relative;
  height: 450px;
  background: url('images/factory.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.factory-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.factory-content {
  position: relative;
}

.factory h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .hero {
    height: auto;
    padding: 80px 5%;
  }

  .hero h1 {
    font-size: 32px;
  }

  .product-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

}

/* =========================
   HEADER - 2 COLUMN VERSION
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  transition: all 0.3s ease;
}

/* Shrink shadow on scroll */
.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* 2 Column Layout */
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 15px 5%;
}

/* Column 1 - Logo */
.header-left {
  display: flex;
  align-items: center;
}

.header-left img {
  height: clamp(50px, 5vw, 75px);
  width: auto;
  object-fit: contain;
}

/* Column 2 - Company Name */
.header-right {
  display: flex;
  justify-content: center;   /* Center inside column */
  align-items: center;
}

.company-name {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #1f2937;
  margin: 0;
  text-align: center;
}

/* Subtle Gradient Divider */
.header-divider {
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(37, 99, 235, 0.4),
    rgba(17, 24, 39, 0.6),
    rgba(37, 99, 235, 0.4),
    transparent
  );
}

/* Responsive */
@media (max-width: 768px) {

  .header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .header-left {
    justify-content: center;
  }

}


/* =========================
   FOOTER
========================= */

.site-footer {
  background: #111827;
  color: white;
  padding: 60px 10% 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 40px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 20px;
}

.footer-col p {
  line-height: 1.7;
  margin-bottom: 10px;
  color: #d1d5db;
}

.footer-col.center {
  text-align: center;
}

.qr-code {
  width: 180px;
  margin-top: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.line-id {
  font-weight: 700;
  font-size: 16px;
  margin-top: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: #9ca3af;
}

/* Container helper */
.container {
  max-width: 1200px;
  margin: auto;
}


/* =========================
   Quotations
========================= */

.quote-hero {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.quote-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.quote-hero p {
  font-size: 18px;
  font-weight: 400;
}

.quote-form-section {
  padding: 80px 20px;
  background: #f4f6f9;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.quote-form {
  background: #fff;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

label {
  margin-bottom: 8px;
  font-weight: 500;
}

input, select, textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: "Prompt","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 14px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #111;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

button {
  background: #111;
  color: #fff;
  padding: 14px 40px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #333;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .quote-form {
    padding: 30px;
  }
}


/* ===== PRODUCT PAGE ===== */

.product-hero {
    padding: 80px 0;
    background: #f4f6f9;
}

.product-container {
    width: 1200px;
    max-width: 95%;
    margin: auto;
}

/* .product-grid {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
} */

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    border-radius: 16px;
}

.product-content {
    flex: 1;
}

.product-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.product-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.product-content li {
    margin-bottom: 10px;
}

.product-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1f3c88;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
}

.product-btn:hover {
    background: #16306b;
}

@media(max-width: 768px){
    .product-grid {
        flex-direction: column;
    }

    .product-content h1 {
        font-size: 28px;
    }
}

/* ===== PAGE HERO SECTION ===== */

/* .page-hero {
    background: linear-gradient(135deg, #1f3c88, #0d1f4d);
    color: #fff;
    padding: 100px 0 80px 0;
    text-align: center;
} */

.page-hero {
    position: relative;
    background: url('images/industry3.jpg') center/cover no-repeat;
    padding: 140px 0 100px 0;
    text-align: center;
    overflow: hidden;
}

/* Overlay */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1;   /* ให้อยู่ชั้นล่าง */
}

/* ข้อความ */
.page-hero .hero-inner {
    position: relative;
    z-index: 2;   /* ให้อยู่เหนือ overlay */
    color: #fff;  /* บังคับเป็นสีขาว */
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.breadcrumb-custom {
    margin-top: 20px;
    font-size: 14px;
}

.breadcrumb-custom a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb-custom a:hover {
    opacity: 1;
}

/* ===== CATALOG PAGE ===== */

.catalog-section {
    padding: 80px 0;
    background: #f4f6f9;
}

.catalog-intro {
    text-align: center;
    margin-bottom: 60px;
}

.catalog-intro h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.catalog-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.catalog-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.catalog-card:hover {
    transform: translateY(-10px);
}

.catalog-card h3 {
    margin-bottom: 15px;
}

.catalog-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #1f3c88;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s;
}

.catalog-btn:hover {
    background: #16306b;
}

/* CTA */

.cta-section {
    padding: 80px 0;
    background: #1f3c88;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    margin-bottom: 30px;
}


.cookie-banner{
position:fixed;
bottom:0;
left:0;
width:100%;
background:#0f2b46;
color:#fff;
padding:15px;
z-index:9999;
display:none;
}

.cookie-content{
max-width:1200px;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;
}

.cookie-banner button{
background:#4da6ff;
border:none;
padding:10px 20px;
color:#fff;
cursor:pointer;
border-radius:5px;
}

/* Policy Page Layout */

.policy-page{
max-width:900px;
margin:80px auto;
/* padding:30px 20px; */
line-height:1.9;
color:#333;
font-size:16px;
}

/* Title */

.policy-page h1{
font-size:32px;
margin-bottom:35px;
font-weight:700;
}

/* Section */

.policy-page h2{
font-size:22px;
margin-top:40px;
margin-bottom:15px;
font-weight:600;
}

/* Paragraph */

.policy-page p{
margin-bottom:18px;
}

/* List */

.policy-page ul{
margin:20px 0;
padding-left:20px;
}

.policy-page li{
margin-bottom:10px;
}

/* Responsive */

@media(max-width:768px){

  .policy-page{
  padding:20px 10px;
  margin:50px auto;
  }

  .policy-page h1{
  font-size:26px;
  }

  .policy-page h2{
  font-size:20px;
  }

}

/* =========================
   NAVBAR
========================= */

.main-nav{
background:#ffffff;
/* border-top:1px solid #eee; */
}

.nav-menu{
list-style:none;
display:flex;
justify-content:center;
gap:40px;
padding:0 0 14px 0;
margin:0;
}

.nav-menu li{
position:relative;
}

.nav-menu a{
text-decoration:none;
color:#1f2937;
font-weight:500;
font-size:16px;
transition:0.25s;
}

.nav-menu a:hover{
color:#2563eb;
}

/* ===== Dropdown ===== */

.has-dropdown:hover .dropdown{
opacity:1;
visibility:visible;
transform:translateY(0);
}

.dropdown{
position:absolute;
top:35px;
left:0;
background:#fff;
list-style:none;
padding:10px 0;
min-width:220px;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
border-radius:6px;

opacity:0;
visibility:hidden;
transform:translateY(10px);
transition:0.25s;
}

.dropdown li{
padding:0;
}

.dropdown a{
display:block;
padding:10px 20px;
font-size:15px;
color:#374151;
}

.dropdown a:hover{
background:#f3f4f6;
color:#2563eb;
}

/* ===== Responsive ===== */

@media(max-width:768px){

  .nav-menu{
  flex-direction:column;
  gap:15px;
  padding:20px;
  }

  .dropdown{
  position:static;
  opacity:1;
  visibility:visible;
  transform:none;
  box-shadow:none;
  }

}


/* ===== Page Banner ===== */

.page-banner{
background:#f3f4f6;
padding:60px 20px;
text-align:center;
}

.page-banner h1{
font-size:36px;
margin-bottom:10px;
}

.page-banner p{
color:#6b7280;
}

/* ===== Section Layout ===== */

.container{
max-width:1100px;
margin:auto;
padding:40px 20px;
}

.about-section p,
.vision-section p{
line-height:1.8;
font-size:17px;
margin-top:10px;
color:#374151;
}


/* ===== Mission Grid ===== */

.mission-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
margin-top:30px;
}

.mission-item{
background:#ffffff;
padding:25px;
border-radius:8px;
box-shadow:0 5px 15px rgba(0,0,0,0.05);
}

.mission-item h3{
margin-bottom:10px;
color:#2563eb;
}


/* CONTACT PAGE */

.contact-section{
padding:60px 20px;
}

.contact-intro{
max-width:700px;
margin:auto;
text-align:center;
font-size:18px;
line-height:1.8;
margin-bottom:40px;
color:#374151;
}

.contact-card{
max-width:600px;
margin:auto;
background:#ffffff;
padding:30px;
border-radius:8px;
box-shadow:0 10px 30px rgba(0,0,0,0.05);
font-size:17px;
line-height:1.9;
}

.contact-card a{
color:#2563eb;
text-decoration:none;
}

.contact-card a:hover{
text-decoration:underline;
}


/* Content Blog  */

.blog-content{
padding:60px 20px;
}

.blog-content h2{
margin-top:40px;
font-size:26px;
color:#1f2937;
}

.blog-content p{
line-height:1.8;
margin-top:10px;
font-size:17px;
color:#374151;
}

.blog-content ul{
margin-top:10px;
padding-left:20px;
}

.blog-content li{
margin-bottom:6px;
}

/* Content Quote */

.quote-page{
padding:60px 20px;
}

.quote-container{
max-width:700px;
margin:auto;
background:#fff;
padding:40px;
border-radius:20px;
box-shadow:0 20px 40px rgba(0,0,0,0.08);
}

.quote-container h2{
text-align:center;
margin-bottom:30px;
}

.quote-container label{
font-weight:600;
font-size:14px;
}

.quote-container input,
.quote-container textarea{
width:100%;
padding:12px;
margin-top:6px;
margin-bottom:18px;
border-radius:10px;
border:1px solid #ddd;
font-size:14px;
}

.quote-container input:focus,
.quote-container textarea:focus{
border-color:#0071e3;
outline:none;
box-shadow:0 0 0 3px rgba(0,113,227,0.1);
}

.quote-container button{
width:100%;
padding:14px;
border:none;
border-radius:10px;
background:#0071e3;
color:#fff;
font-weight:600;
font-size:16px;
cursor:pointer;
}

.quote-container button:hover{
background:#005bb5;
}

.note{
font-size:13px;
color:#777;
margin-top:-10px;
margin-bottom:15px;
}

.loading{
display:none;
text-align:center;
margin-top:10px;
}

.footer-text{
text-align:center;
font-size:13px;
color:#999;
margin-top:25px;
}