:root {
  --bg: #f6f1e8;
  --bg-strong: #f0e0bf;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #fffdf9;
  --text: #20201d;
  --muted: #57564d;
  --line: rgba(32, 32, 29, 0.08);
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --accent: #bf6b2c;
  --shadow: 0 18px 50px rgba(15, 27, 24, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans Thai", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 107, 44, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 28%),
    linear-gradient(180deg, #fcfaf5 0%, var(--bg) 55%, #efe3c9 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: "IBM Plex Sans Thai", monospace;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(252, 250, 245, 0.8);
  border-bottom: 1px solid rgba(32, 32, 29, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(32, 32, 29, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-weight: 700;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy small,
.site-menu a,
.body-copy,
.hero-text,
.hero-points,
.timeline-item p,
.info-card p,
.feature-card p,
.contact-card p,
.site-footer p {
  color: var(--muted);
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-menu a {
  font-size: 0.96rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
}

.hero,
.section {
  padding: 84px 0;
}

.hero-grid,
.two-column,
.quote-grid,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "IBM Plex Sans Thai", sans-serif;
}

.hero h1,
.section-heading h2,
.section-accent h2 {
  margin: 0;
  font-family: "IBM Plex Sans Thai", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.3vw, 3.6rem);
  max-width: none;
  line-height: 1.08;
  text-align: center;
}

.headline-line,
.headline-brand {
  display: block;
  white-space: nowrap;
}

.hero-text {
  font-size: 1.04rem;
  max-width: 56ch;
  margin: 20px 0 0;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-family: "IBM Plex Sans Thai", sans-serif;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(11, 79, 74, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid rgba(32, 32, 29, 0.1);
}

.hero-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li::before {
  content: "•";
  margin-right: 10px;
  color: var(--brand);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.machine-card,
.quote-panel,
.quote-form,
.feature-card,
.info-card,
.timeline-item,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.machine-card {
  width: min(100%, 440px);
  min-height: 460px;
  padding: 28px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.machine-card::before,
.machine-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.machine-card::before {
  inset: 24px 18px auto auto;
  width: 160px;
  height: 160px;
}

.machine-card::after {
  inset: auto auto 16px 18px;
  width: 110px;
  height: 110px;
}

.machine-card__label {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(191, 107, 44, 0.12);
  color: var(--accent);
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-logo,
.material-tags span {
  display: block;
}

.hero-logo {
  width: min(100%, 320px);
  margin: 48px auto 18px;
  border-radius: 22px;
  animation: floaty 5.2s ease-in-out infinite;
}

.hero-logo--full {
  width: min(100%, 420px);
  margin-top: 10px;
  margin-bottom: 0;
  border-radius: 0;
}

.hero-photo {
  width: min(100%, 360px);
  margin-top: 18px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.machine-caption {
  margin: 10px auto 0;
  max-width: 32ch;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.line-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.contact-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.contact-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(32, 32, 29, 0.08);
}

.contact-label {
  color: var(--muted);
  font-weight: 700;
}

.contact-row a {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.contact-phone-list {
  display: grid;
  gap: 8px;
}

.material-tags span {
  display: inline-flex;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid rgba(32, 32, 29, 0.08);
  font-weight: 600;
}

.trust-strip {
  padding-bottom: 18px;
}

.trust-grid,
.card-grid,
.material-tags,
.contact-cards,
.catalog-grid,
.market-grid {
  display: grid;
  gap: 18px;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-grid article,
.contact-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(32, 32, 29, 0.06);
}

.trust-grid strong,
.contact-card h3,
.info-card h3,
.feature-card h3,
.timeline-item h3 {
  display: block;
  margin-bottom: 10px;
  font-family: "IBM Plex Sans Thai", sans-serif;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.section-accent h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card,
.market-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.catalog-card {
  transition: transform 180ms ease, border-color 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.2);
}

.catalog-kicker,
.breadcrumb {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.catalog-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.catalog-badge--muted {
  background: rgba(191, 107, 44, 0.12);
  color: var(--accent);
}

.page-title {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.04;
}

.info-card,
.feature-card,
.timeline-item,
.quote-form,
.contact-card,
.spec-card {
  border-radius: var(--radius-lg);
}

.info-card,
.feature-card,
.timeline-item,
.contact-card,
.spec-card {
  padding: 24px;
}

.card-meta {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.09);
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.section-alt {
  background: rgba(255, 255, 255, 0.34);
  border-top: 1px solid rgba(32, 32, 29, 0.06);
  border-bottom: 1px solid rgba(32, 32, 29, 0.06);
}

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

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.spec-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

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

.photo-copy {
  padding: 18px;
}

.photo-copy h3 {
  margin: 0 0 10px;
  font-family: "IBM Plex Sans Thai", sans-serif;
}

.photo-copy p {
  margin: 0;
  color: var(--muted);
}

.product-intro {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.product-intro p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline-item span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-dark);
  font-family: "IBM Plex Sans Thai", sans-serif;
  font-weight: 700;
}

.section-accent {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.94), rgba(11, 79, 74, 0.94));
  color: #fff;
}

.section-accent .eyebrow,
.section-accent .body-copy {
  color: rgba(255, 255, 255, 0.84);
}

.quote-panel {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.material-tags {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
}

.material-tags span {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.quote-form {
  padding: 26px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 16px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(32, 32, 29, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.quote-form textarea {
  resize: vertical;
  min-height: 130px;
}

.form-status {
  margin: 16px 0 0;
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.contact-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card a {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(32, 32, 29, 0.06);
}

.footer-grid {
  align-items: start;
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  .nav-shell {
    align-items: flex-start;
  }

  .brand {
    max-width: calc(100% - 88px);
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy small {
    font-size: 0.88rem;
  }

  .hero-grid,
  .two-column,
  .quote-grid,
  .contact-grid,
  .footer-grid,
  .quote-panel {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .catalog-grid,
  .photo-grid,
  .timeline,
  .spec-grid,
  .contact-cards,
  .trust-grid,
  .material-tags,
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.85rem, 5vw, 3rem);
  }

  .machine-card {
    width: 100%;
    min-height: auto;
  }

  .hero-logo--full {
    width: min(100%, 360px);
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(32, 32, 29, 0.08);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow);
  }

  .site-menu.is-open {
    display: flex;
  }

  .hero,
  .section {
    padding: 68px 0;
  }

  .brand {
    max-width: calc(100% - 74px);
    gap: 10px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 0.88rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
  }

  .brand-copy small {
    font-size: 0.8rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    line-height: 1.06;
  }

  .headline-brand {
    white-space: normal;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .card-grid,
  .catalog-grid,
  .photo-grid,
  .timeline,
  .spec-grid,
  .contact-cards,
  .trust-grid,
  .material-tags,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .machine-card {
    min-height: auto;
    padding: 20px;
  }

  .hero-logo {
    width: min(100%, 280px);
    margin-top: 24px;
  }

  .hero-logo--full {
    width: min(100%, 300px);
  }

  .hero-photo {
    width: min(100%, 300px);
  }

  .machine-caption {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header {
    position: static;
  }

  .nav-shell {
    min-height: 68px;
  }

  .hero,
  .section {
    padding: 54px 0;
  }

  .brand-copy strong {
    font-size: 0.82rem;
  }

  .brand-copy small {
    font-size: 0.76rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 9vw, 2.15rem);
  }

  .trust-grid article,
  .contact-card,
  .catalog-card,
  .market-card,
  .info-card,
  .feature-card,
  .timeline-item,
  .quote-form,
  .spec-card {
    padding: 18px;
  }
}
