/* ทีที ทองแสน — corporate site
   หลีกเลี่ยง AI slop: ไม่ใช้ Inter, ไม่ gradient ม่วง, ไม่ 3-card grid เท่ากัน */

:root {
  --green: #008062;
  --green-dark: #005a45;
  --green-soft: #e6f4ef;
  --orange: #f4811f;
  --orange-dark: #c86512;
  --red: #ed2525;
  --ink: #1a2421;
  --ink-muted: #5c6b66;
  --paper: #f3f0e8;
  --paper-warm: #ebe6db;
  --white: #fffdf9;
  --line: #c9d5d0;
  --serif: "Noto Serif Thai", "Times New Roman", serif;
  --sans: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --mono: "IBM Plex Sans Thai", ui-monospace, monospace;
  --max: 68rem;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--orange-dark);
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--white);
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 253 249 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  background:
    linear-gradient(135deg, var(--green) 0 45%, var(--orange) 45% 70%, var(--red) 70% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text small {
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
}

.nav a:hover {
  color: var(--ink);
}

.nav-staff {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink) !important;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.menu-btn[aria-expanded="true"] .menu-btn-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.65rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--paper-warm);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* —— hero —— */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  background:
    linear-gradient(165deg, var(--white) 0%, var(--paper) 55%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6.5vw, 4.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.lead {
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 14rem;
}

.stripe-block {
  border-radius: 2px;
  opacity: 0.95;
}

.s1 {
  grid-row: span 2;
  background: repeating-linear-gradient(
    -12deg,
    var(--green) 0 14px,
    var(--green-dark) 14px 28px
  );
}

.s2 {
  background: var(--orange);
}

.s3 {
  background: var(--red);
}

.s4 {
  background: var(--green-soft);
  border: 1px solid var(--line);
}

.stripe-field {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  height: 100%;
  min-height: 14rem;
}

/* —— sections —— */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 4rem;
  }
}

.about-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.about-body p {
  margin: 0 0 1rem;
  max-width: 52ch;
}

.fact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.fact-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-k {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.fact-v {
  font-weight: 500;
}

.contact {
  background: var(--green-dark);
  color: var(--white);
}

.contact a {
  color: var(--white);
}

.contact a:hover {
  color: var(--orange);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-lead {
  margin: 0.75rem 0 0;
  max-width: 38ch;
  color: rgb(255 255 255 / 78%);
}

.contact-dl {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-dl dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 55%);
}

.contact-dl dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

/* —— footer —— */
.site-footer {
  padding: 1.75rem 0 2.5rem;
  background: var(--ink);
  color: rgb(255 255 255 / 72%);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.footer-inner p {
  margin: 0;
}

.footer-meta {
  color: rgb(255 255 255 / 45%);
  letter-spacing: 0.04em;
}
