:root {
  --navy: #071c33;
  --navy-2: #0c2c4e;
  --blue: #0878d1;
  --blue-2: #29a9e8;
  --cyan: #dff5ff;
  --ink: #102238;
  --muted: #607086;
  --line: #dce6ef;
  --soft: #f4f8fb;
  --white: #fff;
  --green: #14865f;
  --shadow: 0 16px 44px rgba(7, 28, 51, .10);
  --radius: 22px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans Thai", "Sarabun", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -70px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(220,230,239,.8); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--blue); font-size: 14px; letter-spacing: -.5px; box-shadow: 0 8px 20px rgba(8,120,209,.25); }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy small { font-size: 10px; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; padding: 0; margin: 0; font-size: 14px; font-weight: 650; }
.nav-links a { padding: 10px 0; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }
.nav-links .nav-cta { color: #fff; background: var(--blue); padding: 10px 18px; border-radius: 999px; }
.menu-button { display: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 12px; font-size: 23px; color: var(--navy); }

.hero { min-height: 690px; position: relative; display: grid; align-items: center; color: #fff; background: var(--navy); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("assets/images/hero-waterworks.jpg") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,21,40,.98) 0%, rgba(5,27,52,.88) 42%, rgba(5,27,52,.22) 72%, rgba(5,27,52,.08) 100%); }
.hero-content { position: relative; z-index: 1; width: min(680px, 100%); padding-block: 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #8edaff; font-weight: 750; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.12; letter-spacing: -.045em; margin: 0 0 20px; }
.hero h1 span { color: #70d2ff; }
.hero p { max-width: 610px; color: #d9e8f4; font-size: clamp(17px, 2vw, 20px); margin: 0 0 30px; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #fff; }
.button-light { background: #fff; color: var(--navy); }
.button-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.button-line { background: #18a659; color: #fff; }
.hero-trust { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #d7e6f2; font-size: 14px; }
.hero-trust span::before { content: "✓"; color: #70d2ff; font-weight: 900; margin-right: 8px; }

section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-heading { max-width: 760px; margin-bottom: 40px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.22; letter-spacing: -.035em; margin: 0 0 14px; }
.section-heading p { color: var(--muted); font-size: 17px; margin: 0; }
.section-dark .section-heading p { color: #b9ccdc; }

.trust-strip { padding: 0; background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { min-height: 112px; display: flex; align-items: center; gap: 14px; padding: 22px; border-right: 1px solid var(--line); }
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: #e8f5fd; font-size: 20px; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item small { display: block; color: var(--muted); font-size: 12px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service-number { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 42px; border-radius: 12px; color: var(--blue); background: #e8f5fd; font-weight: 800; }
.service-card h3 { font-size: 21px; margin: 0 0 10px; }
.service-card p { color: var(--muted); margin: 0 0 18px; }
.clean-list { list-style: none; padding: 0; margin: 0; color: #41536a; font-size: 14px; }
.clean-list li { padding: 7px 0 7px 22px; position: relative; }
.clean-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); position: absolute; left: 0; top: 15px; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card img { aspect-ratio: 4/3; object-fit: cover; background: #e9f0f5; }
.category-card-body { padding: 22px; }
.category-card h3 { font-size: 20px; margin: 0 0 7px; }
.category-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; gap: 8px; color: var(--blue); font-weight: 750; font-size: 14px; }

.proof-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.proof-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proof-card { min-height: 170px; padding: 24px; border-radius: 18px; background: #102f50; border: 1px solid rgba(255,255,255,.10); }
.proof-card strong { display: block; font-size: 18px; margin-bottom: 6px; }
.proof-card span { color: #aac4d8; font-size: 14px; }
.awaiting { border-style: dashed; }
.awaiting strong::after { content: "รอข้อมูล"; display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; color: #ffd479; background: rgba(255,212,121,.12); font-size: 10px; vertical-align: middle; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: steps; }
.process-step { position: relative; padding: 26px; border-top: 3px solid var(--blue); background: #fff; border-radius: 0 0 18px 18px; box-shadow: 0 10px 28px rgba(7,28,51,.07); }
.process-step::before { counter-increment: steps; content: "0" counter(steps); color: var(--blue); font-weight: 850; font-size: 13px; }
.process-step h3 { margin: 22px 0 7px; font-size: 18px; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 30px; }
.contact-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.contact-row i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #e8f5fd; color: var(--blue); }
.contact-row strong { display: block; }
.contact-row span, .contact-row a { color: var(--muted); font-size: 14px; }
.contact-form { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cddae6; border-radius: 11px; padding: 12px 13px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(41,169,232,.20); border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 17px 0; color: var(--muted); font-size: 12px; }
.consent input { margin-top: 4px; }
.form-status { min-height: 24px; margin-top: 12px; font-size: 13px; color: var(--green); }

.page-hero { padding: 76px 0 58px; background: var(--navy); color: #fff; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.04em; }
.page-hero p { max-width: 720px; margin: 0; color: #c5d7e5; }
.catalog-note { padding: 17px 20px; margin: 24px 0 0; border: 1px solid rgba(112,210,255,.25); background: rgba(112,210,255,.08); border-radius: 14px; color: #cfe8f6; font-size: 13px; }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.catalog-sidebar { position: sticky; top: 96px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.catalog-sidebar h2 { font-size: 17px; margin: 0 0 14px; }
.filter-list { display: grid; gap: 7px; }
.filter-button { display: flex; justify-content: space-between; width: 100%; border: 0; border-radius: 10px; padding: 10px 12px; background: transparent; color: #41536a; text-align: left; }
.filter-button:hover, .filter-button.active { background: #e8f5fd; color: var(--blue); font-weight: 750; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.catalog-toolbar h2 { margin: 0; font-size: 24px; }
.search-box { width: min(360px, 100%); position: relative; }
.search-box input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid #cddae6; border-radius: 12px; }
.search-box i { position: absolute; left: 15px; top: 50%; translate: 0 -50%; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: flex; flex-direction: column; }
.product-card img { aspect-ratio: 4/3; object-fit: cover; background: #edf3f7; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.product-kicker { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.product-card h3 { font-size: 17px; line-height: 1.35; margin: 7px 0; }
.product-card p { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { padding: 4px 8px; border-radius: 8px; background: var(--soft); color: #506277; font-size: 10px; }
.product-action { margin-top: auto; width: 100%; border: 0; padding: 10px 12px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 750; }
.empty-state { display: none; grid-column: 1/-1; padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }

.site-footer { background: #041423; color: #c6d5e1; padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.site-footer .brand { color: #fff; }
.footer-copy { max-width: 480px; color: #91a8ba; font-size: 14px; margin-top: 18px; }
.site-footer h2 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; }
.footer-links a:hover { color: #70d2ff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.10); color: #7f97a9; font-size: 12px; }
.sticky-contact { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.sticky-contact a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.20); font-size: 20px; }
.sticky-line { background: #15b75e; }
.sticky-phone { background: var(--blue); }

@media (max-width: 980px) {
  .menu-button { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 68px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); align-items: stretch; }
  .nav-links.open { display: grid; }
  .nav-links a { display: block; padding: 10px 12px; }
  .hero::after { background: linear-gradient(90deg, rgba(5,21,40,.96), rgba(5,27,52,.70)); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .service-grid, .category-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid, .contact-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .filter-list { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1180px); }
  .brand-copy span { font-size: 13px; }
  .brand-copy small { display: none; }
  .hero { min-height: 620px; }
  .hero::before { background-position: 62% center; }
  .hero::after { background: rgba(5,21,40,.82); }
  .hero-content { padding-block: 68px; }
  .hero h1 { font-size: 42px; }
  section { padding: 68px 0; }
  .trust-grid, .service-grid, .category-grid, .proof-panel, .process-grid, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .filter-list { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .sticky-contact { bottom: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
