@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600;700&family=Prompt:wght@300;400;500;600&display=swap');

:root {
  --navy: #082f5f;
  --navy-900: #061f3d;
  --ink: #172235;
  --muted: #5d6b7d;
  --line: #dce3eb;
  --paper: #f5f7fa;
  --white: #fff;
  --blue: #0877be;
  --green: #178746;
  --display: 'Kanit', sans-serif;
  --body: 'Prompt', sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; background: #e8edf2; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin-top: 0; }
figure { margin-left: 0; margin-right: 0; margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; color: var(--navy-900); }
p { color: var(--muted); }
:focus-visible { outline: 3px solid rgba(8,119,190,.35); outline-offset: 3px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 80px 0; }
.section-compact { padding: 64px 0; }
.section-muted { background: var(--paper); }
.section-dark { background: var(--navy-900); color: white; }
.section-dark h2, .section-dark h3, .section-dark p { color: white; }
.section-dark p { opacity: .72; }

.topline { background: var(--navy-900); color: #dfeaf5; font-size: 13px; }
.topline-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topline a { color: white; font-weight: 500; }
.topline-contact { display: flex; gap: 24px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
}
.nav-row { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.brand img { width: 44px; height: 44px; object-fit: contain; background: transparent; }
.brand-en { display: block; font-family: var(--display); color: var(--navy); font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: .03em; }
.brand-th { display: block; color: #657387; font-size: 11px; margin-top: 5px; }
.desktop-nav { display: flex; align-items: center; gap: 27px; }
.desktop-nav a { color: #344154; font-size: 14px; font-weight: 500; padding: 28px 0 24px; border-bottom: 3px solid transparent; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--navy); border-color: var(--blue); }
.nav-actions { display: flex; gap: 9px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--navy); padding: 8px; }
.mobile-menu { display: none; position: fixed; z-index: 60; inset: 0; background: white; padding: 24px; }
.mobile-menu.open { display: block; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-menu nav { display: grid; border-top: 1px solid var(--line); }
.mobile-menu nav a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 18px; }
.mobile-menu-actions { display: grid; gap: 10px; margin-top: 24px; }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: 4px; font-weight: 600; font-size: 14px; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-900); }
.btn-line { background: var(--green); color: white; }
.btn-line:hover { background: #126d39; }
.btn-white { background: white; color: var(--navy); border-color: white; }
.btn-outline { color: var(--navy); border-color: #b9c6d4; background: white; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 15px; }

.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 32px; height: 2px; background: currentColor; }
.display { font-size: clamp(39px, 4.6vw, 62px); font-weight: 600; letter-spacing: -.025em; margin-bottom: 22px; }
.lead { max-width: 690px; font-size: 18px; line-height: 1.75; }
.section-title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; letter-spacing: -.018em; margin-bottom: 16px; }
.section-intro { max-width: 680px; font-size: 17px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-head .section-intro { margin-bottom: 0; }

.hero { min-height: 600px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 600px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 68px 72px 68px max(20px, calc((100vw - var(--max))/2)); }
.hero-copy .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cad4df; margin-top: 42px; padding-top: 24px; }
.proof-item { padding-right: 18px; border-right: 1px solid #cad4df; }
.proof-item:last-child { border: 0; padding-left: 18px; }
.proof-item:nth-child(2) { padding-inline: 18px; }
.proof-value { display: block; color: var(--navy); font-family: var(--display); font-size: 27px; font-weight: 600; }
.proof-label { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.hero-media { position: relative; min-height: 600px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 58%; }
.hero-caption { position: absolute; inset: auto 24px 24px; display: flex; justify-content: space-between; gap: 25px; padding: 17px 20px; background: rgba(6,31,61,.91); color: white; font-size: 13px; }
.hero-caption strong { font-family: var(--display); font-size: 16px; }

.business-strip { border-bottom: 1px solid var(--line); }
.business-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.business-strip-item { padding: 25px 26px; border-right: 1px solid var(--line); }
.business-strip-item:first-child { border-left: 1px solid var(--line); }
.business-strip-item strong { display: block; color: var(--navy); font-family: var(--display); margin-bottom: 3px; }
.business-strip-item span { color: var(--muted); font-size: 13px; }

.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 90px 1fr 1.1fr 34px; gap: 30px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.service-number { color: var(--blue); font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.service-row h3 { font-size: 25px; margin-bottom: 8px; }
.service-row p { margin: 0; font-size: 14px; }
.service-scope { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 22px; color: #3e4d60; font-size: 14px; }
.service-scope span::before { content: '—'; color: var(--blue); margin-right: 8px; }
.service-arrow { color: var(--navy); font-size: 24px; }

.project-feature { display: grid; grid-template-columns: 1.18fr .82fr; background: var(--navy-900); box-shadow: 0 28px 70px rgba(6,31,61,.14); }
.project-feature-media { position: relative; min-height: 0; overflow: hidden; }
.project-feature-media img { width: 100%; height: 520px; object-fit: cover; object-position: center 35%; }
.project-feature-copy { padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; }
.project-feature-copy h2 { color: white; font-size: 38px; }
.project-feature-copy p { color: #bdc9d6; }
.project-meta { display: grid; gap: 12px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; margin-top: 12px; }
.project-meta div { display: flex; justify-content: space-between; gap: 20px; color: white; font-size: 14px; }
.project-meta span { color: #8fa1b4; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-frame { position: relative; overflow: hidden; background: #dce3eb; }
.ba-frame img { width: 100%; height: 390px; object-fit: cover; object-position: center; }
.ba-label { position: absolute; left: 0; bottom: 0; background: var(--navy-900); color: white; padding: 10px 15px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.ba-label.after { background: var(--green); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.step { padding: 30px 24px; border-right: 1px solid var(--line); }
.step:last-child { border: 0; }
.step-no { color: var(--blue); font-family: var(--display); font-weight: 600; font-size: 13px; }
.step h3 { font-size: 19px; margin: 22px 0 10px; }
.step p { margin: 0; font-size: 13px; line-height: 1.65; }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.18); }
.trust-item { padding: 34px; border-right: 1px solid rgba(255,255,255,.18); }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; color: #82cfff; font-family: var(--display); font-size: 31px; font-weight: 500; }
.trust-item span { color: #c4d0dc; font-size: 14px; }

.cta-panel { display: grid; grid-template-columns: 1fr .92fr; border: 1px solid var(--line); background: white; }
.cta-copy { padding: 48px; }
.cta-copy h2 { font-size: 36px; }
.contact-form { padding: 42px; background: var(--paper); border-left: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-full { grid-column: 1 / -1; }
.field label { color: #344154; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #bcc8d5; border-radius: 3px; background: white; color: var(--ink); padding: 12px 13px; min-height: 46px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(8,119,190,.12); }
.form-note { font-size: 12px; margin: 12px 0 0; }
.estimate-result { margin-bottom: 16px; padding: 14px 16px; background: #e8f3fa; border-left: 3px solid var(--blue); color: var(--navy); font-size: 13px; }
.form-success { display: none; margin-top: 14px; padding: 13px 15px; background: #e9f6ee; color: #116b36; border-left: 3px solid var(--green); font-size: 13px; }
.form-success.show { display: block; }
.form-success.error { color: #991b1b; background: #fee2e2; border-color: #fecaca; }
.form-success a { color: inherit; font-weight: 700; text-decoration: underline; }
.form-honey { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.lead-form button:disabled { cursor: wait; opacity: .7; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.page-hero { position: relative; min-height: 350px; display: flex; align-items: end; background: var(--navy-900); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; opacity: .53; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,31,61,.96) 0%, rgba(6,31,61,.68) 52%, rgba(6,31,61,.12) 100%); }
.page-hero-content { position: relative; z-index: 1; padding: 58px 0 48px; max-width: 760px; }
.page-hero h1 { color: white; font-size: clamp(39px,5vw,60px); font-weight: 600; margin-bottom: 18px; }
.page-hero p { color: #d5e0ea; max-width: 680px; font-size: 17px; }
.breadcrumb { color: #9ecceb; font-size: 12px; letter-spacing: .08em; margin-bottom: 20px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.two-col-wide { display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; align-items: start; }
.statement { font-family: var(--display); color: var(--navy-900); font-size: clamp(27px,3vw,40px); line-height: 1.4; }
.plain-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.plain-list li { padding: 17px 0; border-bottom: 1px solid var(--line); color: #445367; }
.plain-list strong { color: var(--navy); display: block; margin-bottom: 3px; }
.policy-box { border-left: 3px solid var(--blue); padding: 8px 0 8px 22px; margin: 30px 0; }

.service-nav { position: sticky; top: 78px; z-index: 30; background: white; border-bottom: 1px solid var(--line); }
.service-nav .container { display: flex; overflow-x: auto; scrollbar-width: none; }
.service-nav a { flex: 0 0 auto; padding: 16px 22px; border-right: 1px solid var(--line); color: #4e5c6e; font-size: 13px; font-weight: 600; }
.service-nav a:first-child { border-left: 1px solid var(--line); }
.service-block { scroll-margin-top: 145px; }
.service-block-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; }
.service-block-grid figure { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #e4eaf0; border-radius: 14px; }
.service-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; }
.spec-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 14px; }
.spec-table th, .spec-table td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 400; }
.spec-table td { color: var(--navy-900); font-weight: 500; }
.diagram { padding: 34px; background: var(--paper); border: 1px solid var(--line); }
.diagram-row { display: grid; grid-template-columns: 46px 1fr; gap: 15px; padding: 15px 0; border-bottom: 1px solid #ccd6e0; }
.diagram-row:last-child { border: 0; }
.diagram-no { color: var(--blue); font-family: var(--display); font-weight: 600; }
.diagram-row strong { display: block; color: var(--navy); }
.diagram-row span { color: var(--muted); font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-btn { border: 1px solid #b9c6d3; border-radius: 3px; background: white; color: #445367; padding: 10px 16px; font-size: 13px; font-weight: 600; }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: white; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.project-card { border: 1px solid var(--line); background: white; display: flex; flex-direction: column; min-width: 0; }
.project-card.wide { grid-column: auto; }
.project-card.hidden { display: none; }
.project-card figure { margin: 0; overflow: hidden; background: #e5ebf0; }
.project-card img, .project-card.portrait img, .project-card.wide img { width: 100%; height: 250px; object-fit: cover; object-position: center; transition: transform .35s ease; }
.project-card:hover img { transform: scale(1.018); }
.project-card-body { padding: 22px; }
.project-type { color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { margin: 9px 0 8px; font-size: 20px; }
.project-card p { font-size: 13px; margin-bottom: 0; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { border: 1px solid var(--line); background: white; display: flex; flex-direction: column; }
.article-card img { width: 100%; height: 220px; object-fit: cover; object-position: center; }
.article-card-body { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.article-card h2 { font-size: 22px; margin: 10px 0; }
.article-card p { font-size: 14px; }
.article-link { color: var(--navy); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--navy); align-self: flex-start; margin-top: auto; }
.article-detail { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.article-detail h3 { font-size: 18px; }

.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; border: 1px solid var(--line); }
.contact-details { padding: 44px; background: var(--navy-900); color: white; }
.contact-details h2 { color: white; }
.contact-details p { color: #afbdca; }
.contact-method { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.17); }
.contact-method span { display: block; color: #8fa2b5; font-size: 12px; }
.contact-method a, .contact-method strong { color: white; font-family: var(--display); font-size: 20px; }
.qr { width: 150px; height: 150px; padding: 8px; background: white; margin-top: 25px; }
.map { min-height: 430px; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 430px; border: 0; }

.legal { max-width: 880px; }
.legal h2 { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 25px; }
.legal h3 { font-size: 18px; margin-top: 28px; }
.legal p, .legal li { color: #536276; }

.site-footer { background: #051a33; color: #bac7d4; padding: 66px 0 88px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 50px; }
.footer-brand .brand-en { color: white; }
.footer-brand .brand-th { color: #9fb0c2; }
.footer-brand p { color: #94a6b8; margin-top: 20px; font-size: 13px; }
.footer-title { color: white; font-family: var(--display); font-size: 16px; margin-bottom: 18px; }
.footer-links { display: grid; gap: 9px; font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 22px; margin-top: 48px; font-size: 12px; }

.mobile-contact { display: none; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; grid-template-columns: 1fr 1fr; background: white; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }

@media (max-width: 1050px) {
  .desktop-nav, .nav-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 72px max(20px, calc((100vw - 720px)/2)); }
  .hero-media { min-height: 480px; }
  .business-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature-copy { padding: 46px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line); }
  .service-block-grid, .two-col, .two-col-wide, .cta-panel, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .contact-form { border: 0; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 15px; padding-bottom: 70px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .topline-inner { justify-content: center; text-align: center; }
  .topline-contact { display: none; }
  .nav-row { height: 68px; }
  .section { padding: 70px 0; }
  .section-compact { padding: 48px 0; }
  .display { font-size: 39px; }
  .lead, .section-intro { font-size: 16px; }
  .hero, .hero-grid { min-height: 0; }
  .hero-copy { padding: 60px 20px; }
  .hero-media { min-height: 390px; }
  .hero-caption { inset: auto 12px 12px; padding: 13px; }
  .hero-proof { gap: 10px; }
  .proof-item, .proof-item:nth-child(2), .proof-item:last-child { padding: 0 10px 0 0; }
  .proof-value { font-size: 21px; }
  .business-strip-grid { grid-template-columns: 1fr 1fr; }
  .business-strip-item { padding: 19px 16px; }
  .section-head { display: block; margin-bottom: 34px; }
  .service-row { grid-template-columns: 46px 1fr 26px; gap: 15px; }
  .service-scope { display: none; }
  .project-feature-media { min-height: 0; }
  .project-feature-media img { height: 390px; min-height: 390px; max-height: 390px; }
  .project-feature-copy { padding: 36px 24px; }
  .project-feature-copy h2 { font-size: 30px; }
  .before-after { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .cta-copy, .contact-form, .contact-details { padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 320px; }
  .page-hero-content { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 39px; }
  .service-nav { top: 68px; }
  .service-nav a { padding: 14px 16px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .project-card img, .project-card.portrait img, .project-card.wide img { height: 230px; }
  .article-card img { height: 210px; }
  .service-block-grid figure { aspect-ratio: 16 / 10; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { display: block; }
  .mobile-contact { display: grid; }
}

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

@media print {
  .topline, .site-header, .mobile-contact, .site-footer { display: none !important; }
}
