/* sections.css */

/* ————————————— Scope of Service ————————————— */
.scope-service {
  background: var(--primary-bg);
  padding: 4rem 1rem;
}
.scope-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}
.scope-text h2 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.service-intro {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.service-intro .icon {
  font-size: 2rem;
}
.service-intro h3 {
  font-size: 1.5rem;
  margin: 0;
}
.scope-text p {
  margin: 0 0 2rem;
  line-height: 1.6;
}
.accordion-item + .accordion-item {
  margin-top: 1rem;
}
.accordion-toggle {
  width: 100%;
  text-align: left;
  background: var(--accent-color);
  color: white;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}
.accordion-toggle::before {
  content: '►';
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}
.accordion-toggle.active::before {
  content: '▼';
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
  padding: 0 1rem;
  border-left: 3px solid var(--accent-color);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.accordion-toggle.active + .accordion-content {
  max-height: 200px;
}

/* Scope Images */
.scope-images img:first-child {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.thumbnail-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.thumbnail-row img {
  flex: 1;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}


/* ————————————— About Us / VDO Presentation ————————————— */
.about-vdo {
  background: #fff;
  padding: 4rem 1rem;
}
.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}
.about-text h2 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.vdo-presentation h2 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.underline {
  width: 50px;
  height: 4px;
  background: var(--accent-color);
  margin-bottom: 1.5rem;
}
.about-text p {
  margin: 0 0 1rem;
}
.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.btn-link {
  background: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-link:hover {
  background: #a17543;
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ————————————— Contact Section ————————————— */
.contact-section {
  background-color: #f4eee3;
  padding: 2rem 1rem;
  margin-top: 2rem;
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.contact-btn {
  display: block;
  width: 100%;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-weight: bold;
}
.contact-form input[type="text"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.contact-form button {
  background-color: var(--accent-color);
  color: white;
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}


/* ————————————— References Section ————————————— */
/* หัวข้อ Vendor */ 
.refs-vendor-title {
  margin: 2rem 0 0.5rem;
  font-size: 1.3rem;
  text-transform: capitalize;
  color: var(--accent-color);
}

/* มาร์กู (marquee) */
.refs-marquee {
  overflow: hidden;
  background: #fff;
  padding: 1rem 0;
}
.refs-track {
  display: flex;
  width: calc(2 * 100%);
  animation: scroll-left 30s linear infinite;
  will-change: transform;
}
.refs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 1rem;
}
.refs-item img {
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}
.refs-caption {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-color);
  white-space: nowrap;
}
@keyframes scroll-left {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ————————————— Clients Logos Section ————————————— */
.clients {
  background: var(--primary-bg);
  padding: 2rem 1rem;
  text-align: center;
}
.clients h2 {
  margin-bottom: 1rem;
  color: var(--accent-color);
}
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.clients-logos img {
  /* ย้ายจากบังคับ height 48px ให้เป็น max-height เพื่อให้แสดงตามสัดส่วนไฟล์จริง */
  max-height: 80px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.clients-logos img:hover {
  opacity: 1;
}

/* ปรับขนาดโลโก้ให้ “auto resize” ตาม container โดยไม่บังคับสูงคงที่ */
.clients-logos img {
  max-height: 48px;    /* สูงไม่เกิน 48px */
  max-width: 120px;    /* กว้างไม่เกิน 120px (ปรับได้ตามต้องการ) */
  width: auto;         /* ให้กว้างปรับตามสัดส่วนภาพ */
  height: auto;        /* ให้สูงปรับตามสัดส่วนภาพ */
  object-fit: contain; /* ย่อ/ขยายให้อยู่ในกรอบ โดยไม่เสียสัดส่วน */
  opacity: 0.8;
  transition: opacity 0.2s;
}
.clients-logos img:hover {
  opacity: 1;
}
