:root {
  --green-900: #082f20;
  --green-800: #0d462e;
  --green-700: #145f3b;
  --green-100: #e9f5ed;
  --orange: #f25a10;
  --orange-dark: #d94708;
  --ink: #15211c;
  --muted: #5f6d67;
  --line: #e4e9e5;
  --paper: #ffffff;
  --soft: #f7faf8;
  --shadow: 0 12px 32px rgba(8, 47, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
  line-height: 1.65;
  font-weight: 500;
}

a {
  text-decoration: none;
}

.site-container {
  max-width: 1480px;
  padding-left: clamp(18px, 3vw, 42px);
  padding-right: clamp(18px, 3vw, 42px);
}

.navbar {
  min-height: 96px;
  box-shadow: 0 8px 24px rgba(16, 35, 28, 0.05);
}

.brand-logo {
  display: block;
  width: 118px;
  height: 68px;
  object-fit: contain;
  border-radius: 3px;
  background: #fff;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  color: #111;
  font-size: 18px;
  font-weight: 900;
}

.brand-text small {
  color: #111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.navbar .nav-link {
  position: relative;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 13px;
  white-space: nowrap;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--orange);
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
}

.nav-contact {
  gap: 9px;
  color: #111;
  white-space: nowrap;
}

.phone-dot {
  color: var(--orange);
  font-size: 20px;
}

.btn-orange,
.btn-green {
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(242, 90, 16, 0.22);
}

.btn-orange {
  background: linear-gradient(180deg, #ff6b1a, var(--orange));
}

.btn-orange:hover {
  color: #fff;
  background: var(--orange-dark);
}

.btn-green {
  background: linear-gradient(180deg, #ff6b1a, var(--orange));
  box-shadow: 0 10px 24px rgba(242, 90, 16, 0.22);
}

.btn-green:hover {
  color: #fff;
  background: var(--orange-dark);
}

.hero-section {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background: #eaf5ef;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 34%, rgba(255,255,255,0.44) 58%, rgba(255,255,255,0.08) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(227,245,230,0.36));
}

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

.min-vh-lg-hero {
  min-height: 630px;
  padding-top: 58px;
  padding-bottom: 58px;
}

.section-kicker {
  margin: 0 0 8px;
  color: #111;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.1;
}

.hero-section h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(42px, 5.8vw, 76px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-section h1 span {
  color: var(--green-800);
}

.hero-lead {
  max-width: 680px;
  margin: 28px 0 28px;
  color: #24322d;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
}

.feature-mini {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.feature-mini span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid #9cc58f;
  border-radius: 50%;
  color: var(--green-700);
  background: rgba(255, 255, 255, 0.72);
  font-size: 28px;
  font-weight: 900;
}

.feature-mini strong {
  color: var(--green-900);
  font-size: 14px;
}

.feature-mini small {
  color: #26342f;
  font-size: 12px;
}

.eco-badge {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 6vw, 88px);
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px 50% 50% 50%;
  color: #fff;
  background: linear-gradient(145deg, #6faf33, #358c35);
  font-size: 34px;
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  box-shadow: var(--shadow);
}

.eco-badge small {
  font-size: 14px;
}

.section-pad {
  padding: clamp(42px, 5vw, 72px) 0;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-intro {
  max-width: 920px;
  margin: -4px 0 28px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
}

h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.2;
}

.title-line {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 10px;
  background: var(--orange);
}

.section-title-row a {
  color: var(--green-800);
  font-weight: 800;
  white-space: nowrap;
}

.section-title-row a span {
  color: var(--orange);
  font-size: 30px;
  vertical-align: -3px;
}

.card {
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(16, 35, 28, 0.07);
}

.product-card {
  overflow: hidden;
}

.product-card .card-body {
  padding: 18px 18px 20px;
}

.product-card h3,
.innovation-card h3,
.article-card h3 {
  margin: 0 0 9px;
  color: #111;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.product-card p,
.innovation-card p {
  min-height: 96px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.product-card a,
.innovation-card a,
.article-card a {
  color: var(--orange);
  font-weight: 900;
}

.product-visual {
  position: relative;
  height: 178px;
  overflow: hidden;
  background: #fff;
}

.product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  transition: transform 0.28s ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.04);
}

.seo-faq-section {
  padding: clamp(46px, 5vw, 76px) 0;
  background:
    linear-gradient(180deg, #f7faf7, #fff),
    radial-gradient(circle at right top, rgba(255, 91, 17, 0.08), transparent 36%);
}

.seo-faq-section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
}

.seo-faq-accordion {
  display: grid;
  gap: 12px;
}

.seo-faq-accordion .accordion-item {
  overflow: hidden;
  border: 1px solid rgba(8, 47, 32, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 35, 28, 0.06);
}

.seo-faq-accordion .accordion-button {
  color: var(--green-900);
  background: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  box-shadow: none;
}

.seo-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--orange);
  background: #fff7f2;
}

.seo-faq-accordion .accordion-button:focus {
  border-color: rgba(255, 91, 17, 0.25);
  box-shadow: 0 0 0 0.18rem rgba(255, 91, 17, 0.15);
}

.seo-faq-accordion .accordion-body {
  color: #26342f;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.innovation-band {
  padding: clamp(54px, 6vw, 88px) 0;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(16, 115, 65, 0.35), transparent 35%),
    linear-gradient(135deg, #072719, #082f20 60%, #021910);
}

.innovation-band .row {
  align-items: stretch;
}

.innovation-copy {
  height: 100%;
  display: grid;
  align-content: center;
  gap: 18px;
  padding-right: clamp(0px, 2vw, 24px);
}

.innovation-copy h2 {
  color: #fff;
}

.innovation-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.innovation-feature-list {
  display: grid;
  gap: 18px;
}

.innovation-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.innovation-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 92px;
  background: linear-gradient(135deg, var(--orange) 0 50%, transparent 50% 100%);
}

.innovation-feature-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  height: 34px;
  background: linear-gradient(135deg, transparent 0 48%, #aee252 49% 100%);
  pointer-events: none;
}

.innovation-feature-content {
  padding: clamp(22px, 3vw, 34px);
  color: var(--ink);
}

.innovation-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: #ac1027;
  font-size: 13px;
  font-weight: 900;
}

.innovation-pill.green {
  background: var(--green-700);
}

.innovation-feature-content h3 {
  margin: 0 0 6px;
  color: #0f0f0f;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
}

.innovation-quote {
  margin-bottom: 14px;
  color: #111;
  font-size: 15px;
  font-weight: 900;
}

.innovation-feature-content ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: #202020;
  font-size: 15px;
  line-height: 1.48;
}

.innovation-feature-media {
  min-height: 285px;
  padding: 22px 24px 30px 0;
  display: grid;
  align-items: center;
  background:
    linear-gradient(145deg, transparent 0 62%, #aee252 62% 100%);
}

.innovation-feature-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 246px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.article-img,
.project-card {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.28)),
    url("assets/precast-hero.png");
  background-size: cover;
  background-position: center;
}

.project-card {
  position: relative;
  min-height: 190px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (max-width: 991.98px) {
  .innovation-feature-card {
    grid-template-columns: 1fr;
  }

  .innovation-feature-media {
    min-height: auto;
    padding: 0 22px 28px;
  }

  .innovation-feature-media img {
    height: 280px;
  }
}

@media (max-width: 575.98px) {
  .innovation-feature-content ul {
    font-size: 14px;
  }

  .innovation-feature-media img {
    height: 220px;
  }
}

.project-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 16px 16px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.project-a { background-position: 78% 45%; }
.project-b { background-position: 58% 55%; }
.project-c { background-position: 88% 58%; }
.project-d { background-position: 66% 36%; }
.project-e { background-position: 74% 70%; }

.article-card {
  overflow: hidden;
}

.article-img {
  height: 130px;
}

.article-1 { background-position: 55% 70%; }
.article-2 { background-position: 75% 48%; }
.article-3 { background-position: 60% 36%; }
.article-4 { background-position: 82% 58%; }

.article-card small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.article-card h3 {
  font-size: 18px;
}

.article-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1.2;
}

.article-read-btn:hover {
  color: #fff;
}

.article-modal .modal-content {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(8, 47, 32, 0.24);
}

.article-modal-cover {
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.article-modal .modal-header {
  align-items: flex-start;
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--line);
}

.article-modal .modal-header small {
  display: block;
  margin-bottom: 8px;
  color: var(--green-700);
  font-weight: 800;
}

.article-modal .modal-title {
  color: var(--green-900);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.25;
}

.article-modal .modal-body {
  padding: 28px 32px 8px;
  color: #26342f;
  font-size: 18px;
  line-height: 1.9;
}

.article-modal .modal-body p {
  margin-bottom: 20px;
}

.article-modal .modal-footer {
  justify-content: space-between;
  padding: 18px 32px 30px;
  border-top: 0;
}

.floating-social {
  position: fixed;
  top: 68%;
  right: 16px;
  bottom: auto;
  z-index: 1040;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.floating-social-btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 29px;
  box-shadow: 0 12px 28px rgba(8, 47, 32, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.floating-social-btn:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(8, 47, 32, 0.28);
}

.floating-social-btn.facebook {
  background: #1877f2;
}

.floating-social-btn.line {
  background: #06c755;
}

.floating-social-btn.youtube {
  background: #ff0033;
}

.floating-social-btn.backtop {
  background: #2267c7;
  font-size: 28px;
}

@media (max-width: 575.98px) {
  .floating-social {
    top: auto;
    right: 10px;
    bottom: 74px;
    gap: 7px;
    transform: none;
  }

  .floating-social-btn {
    width: 52px;
    height: 52px;
    border-radius: 11px;
    font-size: 26px;
  }
}

.partners h2 {
  margin-bottom: 16px;
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(128px, 1fr));
  gap: 12px;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(16, 35, 28, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-logo:hover {
  border-color: rgba(20, 95, 59, 0.28);
  box-shadow: 0 12px 28px rgba(16, 35, 28, 0.1);
  transform: translateY(-2px);
}

.partner-logo img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.footer-section {
  padding: 48px 0 28px;
  color: rgba(255,255,255,0.9);
  background:
    radial-gradient(circle at left top, rgba(33, 117, 66, 0.35), transparent 34%),
    linear-gradient(135deg, #082f20, #031b12);
}

.footer-grid {
  row-gap: 34px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.footer-logo {
  display: block;
  width: 132px;
  height: 76px;
  object-fit: contain;
  border-radius: 4px;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.96);
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-copy,
.contact-list {
  color: rgba(255,255,255,0.78);
}

.footer-copy {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.85;
}

.footer-section h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.75;
}

.footer-cta {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(3, 27, 18, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.footer-cta > span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ffb27e;
  font-size: 14px;
  font-weight: 800;
}

.footer-cta h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.32;
  font-weight: 900;
}

.footer-cta p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 600;
}

.footer-cta-meta {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-cta-meta strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.footer-cta-meta small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1199.98px) {
  .navbar {
    min-height: 82px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    font-size: 12px;
  }
}

@media (max-width: 991.98px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.82)),
      linear-gradient(180deg, rgba(255,255,255,0.12), rgba(227,245,230,0.4));
  }

  .min-vh-lg-hero {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .eco-badge {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    width: 86px;
    height: 50px;
  }

  .brand-text strong {
    max-width: 200px;
    font-size: 14px;
    white-space: normal;
  }

  .brand-text small {
    display: none;
  }

  .navbar .nav-link.active::after {
    display: none;
  }

  .hero-bg {
    opacity: 0.45;
  }

  .hero-section h1 {
    font-size: 41px;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .feature-mini span {
    width: 56px;
    height: 56px;
  }

  .partner-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .partner-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
