/* ==================================================
   GLOBAL RESET
================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
}

/* ==================================================
   LANGUAGE SWITCH
================================================== */
.lang-switch {
  position: absolute; /* ❗ เปลี่ยนจาก fixed */
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.lang-switch button {
  padding: 8px 16px;
  background: rgba(10, 105, 58, 0.5);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  cursor: pointer;
}
.lang-switch .company-name {
  background: linear-gradient(135deg, #006eff, #6fdeff);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
}
.lang-switch .lang-name {
  background: linear-gradient(135deg, #085043, #43b9b2);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
}
.short-text {
  display: none;
}
.company-name {
  background: linear-gradient(135deg, #006eff, #6fdeff);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
/* ==================================================
   RESPONSIVE: COMPANY NAME
================================================== */
@media (max-width: 768px) {
  .full-text {
    display: none;
  }

  .short-text {
    display: inline;
  }

  .company-name {
    padding: 10px 18px;
    font-size: 14px;
  }

  .lang-switch {
    position: fixed;
    top: 20px;
    right: 25px;
  }
}

/* ==================================================
   NAVBAR
================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  z-index: 999;
  padding-right: 360px;
}
.lang-switch {
  display: flex;
  gap: 8px;
}
.logo img {
  height: 45px;
}

.navbar ul {
  margin: auto;
  display: flex;
  list-style: none;
  gap: 30px;
}

/* Menu underline effect */
.navbar a {
  position: relative;
  text-decoration: none;
  color: #085043;
  font-size: 14px;
  padding-bottom: 6px;
}

.navbar ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #9fd3c9;
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a.active {
  color: #43b9b2;
  font-weight: 600;
}

/* ==================================================
   BUTTONS
================================================== */
.hero-btn {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.btn.primary {
  background: linear-gradient(135deg, #085043, #43b9b2);
  color: white;
}

.btn.outline {
  border: 2px solid #085043;
  color: #085043;
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ==================================================
   HERO SECTION
================================================== */
.hero {
  height: 100vh;
  background: url("../images/home1.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
}

.home1 {
  background: rgba(255, 255, 255, 0.25);
  padding: 60px 80px;
  border-radius: 6px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.home1 h1 {
  font-size: 52px;
  color: #085043;
}

.home1 h2 {
  font-size: 26px;
  color: #25706b;
}

/* ==================================================
   FLOATING MISSION (MISSION / VISION / SLOGAN)
================================================== */
.floating-mission {
  position: relative;
  margin-top: -160px;
  z-index: 10;
}

/* เวอร์ชัน floating */
.about-content {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 15%;
}

.item {
  background: linear-gradient(135deg, #085043, #43b9b2);
  color: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.35s ease;
}

.item:hover {
  transform: translateY(-10px);
}

.icon {
  font-size: 40px;
  color: #ffffff;
  margin-bottom: 20px;
}

.item h2,
.item h3 {
  margin-bottom: 15px;
}

.item p {
  font-size: 15px;
  line-height: 1.7;
}

/* ==================================================
   ABOUT SECTION (COMPANY DETAIL)
================================================== */
#about {
  padding: 80px 10%;
  background: #ffffff;
  text-align: center;
}

.about-company {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 80px 10%;
}

.about-text {
  flex: 1.5;
}

.about-text h1 {
  color: #085043;
  font-size: 34px;
  margin-bottom: 20px;
}

.about-text p {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.about-image {
  flex: 0.75;
}

.about-image img {
  width: 150%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ==================================================
   SERVICES SECTION
================================================== */
:root {
  --primary-blue: #2a6139;
  --accent-orange: #50be35;
  --bg-light: #f8f9fa;
  --white: #ffffff;
}

.section {
  padding: 60px 20px;
  background-color: var(--bg-light);
  text-align: center;
}

#services {
  background: #ffffff;
}

.section-header .sub-title {
  color: #089471;
  font-weight: 600;
  font-size: 19px;
}

.section-header .main-title {
  font-size: 2.5rem;
  color: #085043;
  margin-top: 10px;
}

.section-header .highlight {
  color: #089471;
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1400px;
  margin: 60px auto;
}

.service-item {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-image {
  position: relative;
  height: 200px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 50px;
}

.service-icon {
  position: absolute;
  bottom: -30px;
  left: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #085043, #43b9b2);
  border: 5px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.service-content {
  padding: 52px 28px 36px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #085043;
}

.service-content p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.85;
  max-width: 320px;
  margin: auto;
  min-height: 110px;
}

/* ==================================================
   MINI CONTACT
================================================== */
#contact {
  background: #085043;
}

.contact-mini {
  padding: 50px 6%;
  background: #ffffff;
}

.contact-box {
  max-width: 820px;
  margin: auto;
  display: flex;
  gap: 24px;
  align-items: center;
  background: #f8faf9;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.contact-text {
  flex: 1;
}

.contact-text h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #2a6139;
}

.contact-text p {
  font-size: 14px;
  line-height: 1.6;
  margin: 4px 0;
  color: #444;
}

.contact-map-mini {
  flex: 1;
}

.contact-map-mini iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 14px;
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-menu {
    width: 100%;
    justify-content: center;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }
}
