/* ============================================
   SAIM INNOTECH FARMS — technology.css
   Scoped styles สำหรับหน้า Technology เท่านั้น
   ใช้ CSS variables จาก styles.css ทั้งหมด
   ไม่มีการ redeclare :root หรือตัวแปรซ้ำ
   ============================================ */


/* ===========================================
   1. PAGE HERO
   =========================================== */
.tech-hero {
  margin-top: 68px;
  min-height: 340px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 60px 80px 52px;
  background:
    linear-gradient(120deg, rgba(26,55,26,0.92) 40%, rgba(45,90,39,0.5) 100%),
    url('src/Images/หน้าอาคาร01.png') center/cover no-repeat;
  overflow: hidden;
}

.tech-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  /* [แก้ไข] white hardcode → var(--white) */
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}

.tech-hero-content {
  position: relative;
  z-index: 2;
}

.tech-hero-breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tech-hero-breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.tech-hero-breadcrumb a:hover { color: var(--green-light); }

.tech-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* [แก้ไข] เปลี่ยนจาก var(--green-light) → var(--red-brand)
   ให้ consistent กับ about.html และ index.html ที่ใช้ red สำหรับ "SAIM" */
.tech-hero h1 span { color: var(--red-brand); }

/* [แก้ไข] เพิ่ม class ใหม่แทน inline style ที่อยู่ใน HTML เดิม */
.tech-hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-top: 12px;
  letter-spacing: 0.5px;
}


/* ===========================================
   2. SEEDLING SECTION
   =========================================== */
.seedling-section {
  padding: 80px;
  background: var(--white);
}

.seedling-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Photo collage grid */
.seedling-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px 200px 200px;
  gap: 8px;
}

.seedling-photos .photo-main {
  grid-column: 1 / -1;
  border-radius: 8px;
  overflow: hidden;
}

.seedling-photos .photo-sm {
  border-radius: 8px;
  overflow: hidden;
}

.seedling-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.seedling-photos .photo-main:hover img,
.seedling-photos .photo-sm:hover img {
  transform: scale(1.04);
}

/* Text side */
.seedling-text .section-label { margin-bottom: 10px; }

.seedling-desc {
  /* [แก้ไข] ระบุ font-family ชัดเจน ให้ตรง convention: Open Sans = body text */
  font-family: 'Open Sans', 'Noto Sans Thai', sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 32px;
}

/* Mini step list */
.seed-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seed-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--gray-light);
  border-left: 3px solid var(--green-accent);
  transition: background 0.2s, border-color 0.2s;
}

.seed-step:hover {
  background: rgba(74,140,63,0.08);
  border-left-color: var(--green-mid);
}

.seed-step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--green-accent);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}

.seed-step-body h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.seed-step-body p {
  /* [แก้ไข] ระบุ font ชัดเจน */
  font-family: 'Open Sans', 'Noto Sans Thai', sans-serif;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}


/* ===========================================
   3. FIELD & TESTING SECTION
   =========================================== */
.field-section {
  padding: 80px;
  /* [แก้ไข] #c8a882 hardcode นอก palette → var(--gray-light)
     ให้ตรงกับ theme หลัก สลับ white / gray-light ระหว่าง section */
  background: var(--gray-light);
}

.field-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Text side */
.field-text .section-label { color: var(--green-accent); }

.field-text .section-title { color: var(--navy); }

.field-paragraph {
  /* [แก้ไข] Montserrat → Open Sans ให้ตรง convention body text */
  font-family: 'Open Sans', 'Noto Sans Thai', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}

/* Cert cards */
.field-certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.field-cert-card {
  background: var(--white);
  border-radius: 8px;
  padding: 18px 16px;
  border-top: 3px solid var(--green-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}

.field-cert-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.field-cert-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.field-cert-card p {
  /* [แก้ไข] ระบุ font ชัดเจน */
  font-family: 'Open Sans', 'Noto Sans Thai', sans-serif;
  font-size: 11px;
  color: var(--text-mid);
  line-height: 1.55;
}

/* Photo side */
.field-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field-photos .photo-top {
  grid-column: 1 / -1;
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
}

.field-photos .photo-bot {
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
}

.field-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.field-photos .photo-top:hover img,
.field-photos .photo-bot:hover img {
  transform: scale(1.04);
}


/* ===========================================
   4. CTA STRIP
   =========================================== */
.tech-cta {
  padding: 64px 80px;
  background: var(--navy);
  text-align: center;
}

.tech-cta .section-label { color: var(--green-light); }

.tech-cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tech-cta p {
  /* [แก้ไข] ระบุ font ชัดเจน */
  font-family: 'Open Sans', 'Noto Sans Thai', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.tech-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ===========================================
   5. RESPONSIVE — TABLET (max-width: 1024px)
   =========================================== */
@media (max-width: 1024px) {
  .tech-hero        { padding: 60px 40px 52px; }
  .seedling-section { padding: 60px 40px; }
  .seedling-inner   { gap: 40px; }
  .field-section    { padding: 60px 40px; }
  .field-inner      { gap: 40px; }
  .tech-cta         { padding: 48px 40px; }
}


/* ===========================================
   6. RESPONSIVE — MOBILE (max-width: 925px)
   =========================================== */
@media (max-width: 925px) {
  .tech-hero            { padding: 48px 20px 52px; min-height: 260px; }
  .tech-hero h1         { font-size: 32px; }
  .tech-hero-subtitle   { font-size: 14px; margin-top: 8px; }

  .seedling-section     { padding: 48px 20px; }
  .seedling-inner       { grid-template-columns: 1fr; gap: 36px; }
  .seedling-photos      { grid-template-rows: 220px 160px 160px; }

  .field-section        { padding: 48px 20px; }
  .field-inner          { grid-template-columns: 1fr; gap: 36px; }
  .field-photos .photo-top { height: 200px; }
  .field-photos .photo-bot { height: 140px; }

  .tech-cta             { padding: 48px 20px; }
  .tech-cta h2          { font-size: 24px; }
}


/* ===========================================
   7. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {
  .tech-hero h1             { font-size: 24px; }
  .tech-hero-subtitle       { font-size: 12px; }
  .seedling-photos          { grid-template-rows: 180px 130px 130px; gap: 6px; }
  .field-certs              { grid-template-columns: 1fr; }
  .field-photos .photo-top  { height: 160px; }
  .field-photos .photo-bot  { height: 120px; }
  .tech-cta h2              { font-size: 20px; }
}