:root {
  --navy: #0a2356;
  --navy-deep: #061737;
  --blue: #0a5be0;
  --blue-dark: #0b3f9e;
  --blue-soft: #8dbcff;
  --sky: #e8f1fd;
  --page: #f4f7fc;
  --line: #e0e8f3;
  --text: #1b2a44;
  --muted: #56647c;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(13, 45, 105, .08);
  --shadow-hover: 0 10px 26px rgba(13, 45, 105, .16);
  --font-head: "Prompt", "Sarabun", system-ui, sans-serif;
  --font-body: "Sarabun", "Prompt", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--page);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.icon { flex-shrink: 0; vertical-align: middle; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 24px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font-head); font-size: 15px; font-weight: 500; line-height: 1.3;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn-lg { padding: 13px 30px; font-size: 16px; }
.btn-primary { background: linear-gradient(180deg, #1668ee, var(--blue)); color: var(--white); box-shadow: 0 6px 16px rgba(10, 91, 224, .32); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255, 255, 255, .9); color: var(--white); background: rgba(6, 23, 55, .35); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-dark { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }

/* Social buttons */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social a { display: block; border-radius: 50%; transition: transform .15s; }
.social a:hover { transform: translateY(-2px) scale(1.06); }
.social img { width: 36px; height: 36px; object-fit: contain; }
.social-top { gap: 8px; flex-wrap: nowrap; }
.social-top img { width: 26px; height: 26px; }
.social-contact { margin-top: 18px; }
.social-contact img { width: 40px; height: 40px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 12px rgba(13, 45, 105, .08); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); min-width: 0; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; font-family: var(--font-head); min-width: 0; }
.brand-text strong { font-size: 15.5px; font-weight: 600; color: var(--navy); }
.brand-text span { font-size: 13.5px; color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a:not(.btn) {
  position: relative; padding: 24px 13px; font-family: var(--font-head); font-size: 15px; color: var(--text); white-space: nowrap;
}
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 14px; height: 3px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transition: transform .2s;
}
.site-nav > a:not(.btn):hover, .site-nav > a.active { color: var(--blue); }
.site-nav > a:not(.btn):hover::after, .site-nav > a.active::after { transform: scaleX(1); }
.site-nav > a.active { font-weight: 600; }
.nav-cta { margin-left: 14px; white-space: nowrap; padding: 10px 26px; }
.nav-toggle { display: none; margin-left: auto; padding: 8px; background: none; border: 0; color: var(--navy); cursor: pointer; }

/* Hero: wide picture across the section, darkened on the left where the text sits */
.hero { position: relative; overflow: hidden; color: var(--white); background: linear-gradient(100deg, var(--navy-deep) 0%, #0a2a66 60%, #0d3f95 100%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgba(5, 18, 45, .88) 0%, rgba(5, 18, 45, .5) 14%, rgba(5, 18, 45, 0) 30%),
    linear-gradient(90deg, rgba(6, 23, 55, .92) 0%, rgba(6, 23, 55, .78) 30%, rgba(6, 23, 55, .25) 52%, rgba(6, 23, 55, 0) 66%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 50px; padding-bottom: 22px; }
.hero h1 { color: var(--white); font-size: clamp(28px, 3.9vw, 50px); font-weight: 600; line-height: 1.24; letter-spacing: .2px; text-shadow: 0 2px 14px rgba(3, 12, 32, .5); }
.hero .accent { color: #4d95ff; }
.hero .accent-soft { background: linear-gradient(90deg, #5b9dff, #a8ccff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { max-width: 560px; margin: 16px 0 24px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; font-family: var(--font-head); text-shadow: 0 1px 10px rgba(3, 12, 32, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-actions .btn { min-width: 170px; }
.hero-features { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px; margin-top: 34px; }
.hero-features li { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 15px; line-height: 1.4; text-shadow: 0 1px 8px rgba(3, 12, 32, .8); }
.hero-features .icon { width: 30px; height: 30px; fill: rgba(255, 255, 255, .18); }

/* Sections */
.section { padding: 30px 0; }
.section-white { background: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; padding-left: 14px; position: relative; }
.section-head::before { content: ""; position: absolute; left: 0; top: .28em; bottom: .28em; width: 5px; border-radius: 3px; background: var(--blue); }
.section-head h2, .section-head h1 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; }
.section-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.eyebrow { margin: 0 0 2px; color: var(--blue-dark); font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 14px; font-weight: 500; }
.more .icon { transition: transform .15s; }
.more:hover .icon { transform: translateX(3px); }
.intro { max-width: 900px; margin-bottom: 24px; font-size: 17px; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.service-card:hover, .product-card:hover, .project-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

/* Image placeholder used until a real photo is uploaded */
.ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 90px;
  color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

/* About */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: .95fr 1.4fr .62fr; gap: 26px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--sky); box-shadow: var(--shadow); }
.about-img img, .about-img .ph { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: clamp(19px, 1.75vw, 24px); font-weight: 700; margin-bottom: 10px; }
.about-text h2 span, .prose h2 span { font-weight: 500; }
.about-text p { font-size: 14.5px; line-height: 1.75; color: #33425c; margin-bottom: .6em; }
.facts { background: linear-gradient(180deg, #f3f7fd, #eaf1fb); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; }
.facts li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid #dbe5f2; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.facts li:last-child { border-bottom: 0; }
.facts .icon { color: var(--blue); fill: rgba(10, 91, 224, .16); width: 28px; height: 28px; }
.facts strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: none; border: 0; padding: 0; }
.facts-row li, .facts-row li:last-child { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.about-page { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.about-page .about-img { aspect-ratio: 16 / 10; }
.prose h2 { font-size: clamp(22px, 2.3vw, 28px); margin-bottom: 18px; }
.prose h3 { font-size: 19px; margin: 22px 0 8px; color: var(--blue-dark); }
.prose p { color: #33425c; }

/* Services */
.service-card { display: flex; flex-direction: column; padding: 16px 12px 12px; text-align: center; }
.service-icon { color: var(--blue); margin-bottom: 6px; }
.service-icon .icon { width: 34px; height: 34px; fill: rgba(10, 91, 224, .16); }
.service-card h3 { font-size: 15.5px; font-weight: 600; color: var(--blue-dark); margin-bottom: 4px; }
.service-card p { flex: 1; margin-bottom: 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.service-img { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--white); }
.service-img img, .service-img .ph { width: 100%; height: 100%; object-fit: cover; }
.service-list { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: 320px 1fr; overflow: hidden; scroll-margin-top: 90px; }
.service-row-img { min-height: 170px; background: var(--white); }
.service-row-img img, .service-row-img .ph { width: 100%; height: 100%; object-fit: cover; }
.service-row-body { padding: 22px 28px; }
.service-row-body h2 { font-size: 21px; margin-bottom: 4px; }
.service-row-body .lead { color: var(--blue-dark); font-family: var(--font-head); font-weight: 500; margin-bottom: .5em; }

/* Products */
.product-card { display: flex; flex-direction: column; padding: 14px 18px 12px; }
.product-card h3 { font-size: 15.5px; font-weight: 600; min-height: 2.6em; }
.product-card h3 a { color: var(--blue-dark); }
.product-visual { flex: 1; display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; align-items: center; margin: 4px 0 6px; }
.product-logo, .product-photo { display: flex; align-items: center; justify-content: center; height: 96px; }
.product-visual img { max-height: 96px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.brands { margin-top: 22px; padding: 16px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.brands-title { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy); margin-bottom: 10px; }
.brand-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 22px; align-items: center; }
.brand-strip li, .brand-grid li { display: flex; align-items: center; justify-content: center; }
.brand-strip img { max-height: 42px; width: auto; object-fit: contain; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-grid li { height: 120px; padding: 20px; }
.brand-grid img { max-height: 70px; width: auto; object-fit: contain; }

/* Projects */
.project-card { display: flex; flex-direction: column; padding: 5px; }
.project-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--sky); }
.project-img img, .project-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-body { padding: 9px 8px 8px; }
.project-card h3 { font-size: 14.5px; font-weight: 600; }
.project-card h3 a { color: var(--blue-dark); }
.project-card p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.grid-3 .project-card h3 { font-size: 16px; }
.grid-3 .project-card p { font-size: 13.5px; }

/* Why */
.why {
  position: relative; overflow: hidden; color: var(--white); padding: 26px 0; margin-top: 6px;
  background: linear-gradient(110deg, var(--navy-deep) 0%, #0a2a66 55%, #0d3f95 100%);
}
.why::after {
  content: ""; position: absolute; right: -80px; top: -140px; width: 520px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77, 149, 255, .28), rgba(77, 149, 255, 0)); pointer-events: none;
}
.why-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 2.7fr; gap: 30px; align-items: center; }
.why h2 { color: var(--white); font-size: clamp(22px, 2.3vw, 28px); margin-bottom: 6px; }
.why-title p { margin: 0; font-family: var(--font-head); font-size: 14.5px; line-height: 1.5; opacity: .92; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { display: flex; gap: 12px; align-items: flex-start; }
.why-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(180deg, #2b7bff, var(--blue)); box-shadow: 0 0 0 4px rgba(77, 149, 255, .22); }
.why-item h3 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.why-item p { margin: 0; font-size: 12.5px; line-height: 1.5; opacity: .86; }

/* Contact */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 28px; align-items: start; }
.contact-grid-page { grid-template-columns: 1fr 1.2fr; margin-bottom: 30px; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 10px; font-size: 14.5px; line-height: 1.6; }
.contact-list .icon { color: var(--blue); fill: rgba(10, 91, 224, .16); margin-top: 2px; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--blue); }
.form-title { font-size: 16px; font-weight: 600; color: var(--blue-dark); margin-bottom: 10px; }
.contact-form { display: grid; gap: 8px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-form label { display: block; }
.contact-form label span { display: block; margin-bottom: 2px; font-size: 12.5px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 8px 12px; border: 1px solid #cfdaea; border-radius: 8px;
  font: inherit; font-size: 15px; color: var(--text); background: #fbfcfe;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); background: var(--white); outline: 2px solid rgba(10, 91, 224, .2); }
.contact-form textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 10px; }
.alert-success { background: #e6f6ec; color: #17603a; border: 1px solid #b5e0c5; }
.alert-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f3c0c0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 250px; height: 100%; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 250px; border: 0; }
.contact-grid-page + .container .map { height: 380px; }

/* Inner pages */
.page-banner { position: relative; overflow: hidden; background: linear-gradient(110deg, var(--navy-deep), #0a2a66 55%, #0d3f95); color: var(--white); padding: 38px 0; }
.page-banner::after {
  content: ""; position: absolute; right: -60px; top: -160px; width: 520px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77, 149, 255, .3), rgba(77, 149, 255, 0)); pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); }
.page-banner p { margin: 8px 0 0; max-width: 800px; font-family: var(--font-head); opacity: .9; }
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.detail-side { display: grid; gap: 12px; padding: 22px; }
.detail-logo { display: flex; align-items: center; justify-content: center; height: 150px; }
.detail-logo img { max-height: 130px; width: auto; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 20px 0 24px; }
.gallery-lg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.detail .gallery img { object-fit: contain; }
.cta { background: var(--sky); padding: 26px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta p { margin: 0; font-family: var(--font-head); font-size: 17px; color: var(--navy); }

/* Footer */
.site-footer { background: linear-gradient(180deg, #081d47, var(--navy-deep)); color: #d5def0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 20px; padding-bottom: 14px; }
.brand-footer, .brand-footer .brand-text strong, .brand-footer .brand-text span { color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.footer-nav a, .footer-contact a { color: #d5def0; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--white); }
.footer-contact { display: grid; grid-template-columns: auto auto; gap: 4px 22px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; }
.footer-bottom span { opacity: .8; }
.social-footer img { width: 32px; height: 32px; }

/* Responsive */
@media (max-width: 1180px) {
  .site-nav a:not(.btn) { padding: 24px 9px; }
  .site-nav > a:not(.btn)::after { left: 9px; right: 9px; }
}
@media (max-width: 1100px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .brand-strip { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid .facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .why-inner { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid > .map { grid-column: 1 / -1; height: 320px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 10px 20px rgba(13, 45, 105, .12); padding: 6px 20px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .site-nav > a:not(.btn)::after { display: none; }
  .topbar-mail { display: none; }
  .nav-cta { margin: 14px 0 0; }
  .header-inner { min-height: 62px; }
  .hero-bg { object-position: 80% center; }
  .hero::before { background: linear-gradient(180deg, rgba(6, 23, 55, .8), rgba(6, 23, 55, .92)); }
  .hero-text br { display: none; }
  .about-grid, .about-page, .detail, .contact-grid, .contact-grid-page { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; }
  .service-row-img { aspect-ratio: 2 / 1; min-height: 0; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .section { padding: 26px 0; }
  .brand img { height: 32px; }
  .brand-text strong { font-size: 12.5px; }
  .brand-text span { font-size: 11px; }
  .hero-inner { padding-top: 34px; }
  .hero h1 { font-size: clamp(20px, 6.6vw, 30px); }
  .contact-form input, .contact-form textarea { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .grid-6, .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-3 { grid-template-columns: 1fr; }
  .product-visual { grid-template-columns: 1fr; }
  .product-logo, .product-photo { height: 76px; }
  .product-visual img { max-height: 76px; }
  .brand-strip { gap: 16px; }
  .about-grid .facts, .facts-row, .why-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.social a, .social img { flex-shrink: 0; }
@media (max-width: 560px) {
  .topbar-inner { min-height: 36px; }
  .topbar-contact { gap: 2px 14px; }
}

/* Floating action buttons (call / LINE), fixed to the right edge */
.float-actions {
  position: fixed; z-index: 60; right: 18px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  right: max(18px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom));
}
.float-btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  color: var(--white); box-shadow: 0 8px 22px rgba(6, 23, 55, .32); transition: transform .15s;
}
.float-btn:hover { color: var(--white); transform: scale(1.07); }
.float-call { background: linear-gradient(180deg, #22c55e, #15923f); }
.float-call::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; z-index: -1;
  animation: float-pulse 2s ease-out infinite;
}
.float-line img { width: 56px; height: 56px; border-radius: 50%; }
.float-label {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%); padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  background: var(--navy-deep); color: var(--white); font-family: var(--font-head); font-size: 14px;
  opacity: 0; visibility: hidden; transition: opacity .15s;
}
.float-btn:hover .float-label, .float-btn:focus-visible .float-label { opacity: 1; visibility: visible; }
@keyframes float-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.75); opacity: 0; }
}
/* keep the last lines of the page clear of the floating buttons */
.footer-bottom { padding-right: 76px; }
@media (hover: none) {
  .float-label { display: none; }
}
@media (max-width: 560px) {
  .float-actions { right: 14px; bottom: 16px; gap: 10px; }
  .float-btn, .float-line img { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-call::before { animation: none; display: none; }
}

/* Brands listed by name (no logo uploaded yet) */
.brands-more { margin-top: 24px; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-tags li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-family: var(--font-head); font-size: 14px; color: var(--navy); }
.brand-tags a { color: inherit; }
.brand-tags a:hover { color: var(--blue); }

/* Phones and tablets: the hero picture becomes a banner above the text, so it is never stretched past its real size */
@media (max-width: 860px) {
  .hero-bg { position: relative; inset: auto; display: block; height: auto; aspect-ratio: 2 / 1; object-position: 82% center; }
  .hero::before { inset: 0 0 auto 0; aspect-ratio: 2 / 1; background: linear-gradient(180deg, rgba(6, 23, 55, 0) 45%, #071b42 100%); }
  .hero { background: linear-gradient(180deg, #071b42, #0a2a66); }
  .hero-inner { padding-top: 8px; }
  .hero-features { margin-top: 26px; }
  /* comfortable touch targets */
  .topbar-contact .topbar-mail { display: none; }
  .topbar-contact a, .footer-nav a, .footer-contact a, .contact-list a, .more { display: inline-flex; align-items: center; min-height: 34px; }
  .contact-list li { align-items: center; margin-bottom: 4px; }
  .contact-list li:first-child { align-items: flex-start; }
  .footer-nav { gap: 0 26px; }
  .detail-logo img { max-width: 200px; }
}

/* Small supplied pictures (product photos, logos) are never drawn larger than their real size */
.detail .gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
@media (max-width: 860px) {
  .brand-grid li { height: 96px; }
  .brand-grid img { max-height: 44px; }
  .project-card h3 a, .product-card h3 a { display: block; padding: 5px 0; }
}

/* Brand logos: many brands, so a denser grid */
.brand-strip { grid-template-columns: repeat(8, 1fr); gap: 18px 22px; }
.brand-strip img { max-height: 40px; max-width: 100%; }
.brands-all { margin-top: 14px; }
.brand-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-grid li { height: 104px; padding: 16px; }
.brand-grid img { max-height: 62px; max-width: 100%; }
#brands { scroll-margin-top: 90px; }
@media (max-width: 1100px) {
  .brand-strip { grid-template-columns: repeat(4, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .brand-grid li { height: 84px; padding: 12px; }
  .brand-grid img { max-height: 44px; }
}
@media (max-width: 560px) {
  .brand-strip { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .brand-strip img { max-height: 30px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Products page: large product blocks */
.product-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.product-feature { display: grid; grid-template-columns: 44% 1fr; overflow: hidden; }
.product-feature:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pf-media {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 270px; padding: 24px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #eef4fc 70%, #e3edfa 100%); border-right: 1px solid var(--line);
}
/* supplied product photos are small files: never drawn wider than 250px so they stay sharp */
.pf-media img { max-width: min(100%, 250px); max-height: 210px; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.product-feature:hover .pf-media img { transform: scale(1.05); }
.pf-count { position: absolute; left: 12px; bottom: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(10, 35, 86, .82); color: var(--white); font-family: var(--font-head); font-size: 12px; }
.pf-body { display: flex; flex-direction: column; padding: 24px 26px; }
.pf-logo { display: flex; align-items: center; height: 54px; margin-bottom: 12px; }
.pf-logo img { max-height: 54px; max-width: 150px; width: auto; object-fit: contain; }
.pf-brand { margin: 0 0 2px; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--blue); text-transform: uppercase; }
.pf-body h2 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; margin-bottom: 8px; }
.pf-body h2 a { color: var(--navy); }
.pf-body h2 a:hover { color: var(--blue); }
.pf-text { flex: 1; margin-bottom: 18px; font-size: 15px; line-height: 1.7; color: #33425c; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.pf-actions .btn { padding: 9px 18px; font-size: 14.5px; }
@media (max-width: 1100px) {
  .product-features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .product-feature { grid-template-columns: 1fr; }
  .pf-media { min-height: 0; padding: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pf-media img { max-width: min(100%, 220px); max-height: 180px; }
  .pf-body { padding: 18px 18px 20px; }
  .pf-actions .btn { flex: 1 1 auto; }
}

/* Taller hero: capped at the picture's own height (600px) so it is never stretched */
@media (min-width: 861px) {
  .hero-inner { display: flex; flex-direction: column; min-height: clamp(480px, 41vw, 600px); padding-top: clamp(56px, 6vw, 96px); padding-bottom: 28px; }
  .hero-features { margin-top: auto; padding-top: 34px; }
  .hero-text { margin: 20px 0 30px; }
}
@media (max-width: 560px) {
  .hero-bg, .hero::before { aspect-ratio: 4 / 3; }
}

/* Phones: keep the company name readable in the header */
@media (max-width: 560px) {
  .brand { gap: 9px; }
  .brand img { height: 30px; }
  .brand-text strong { font-size: 12.5px; }
  .brand-text span { font-size: 12px; }
}

/* Nothing may push the page wider than the screen, whatever text is typed in the back office:
   long words and links wrap, and columns are allowed to shrink below their content's natural width. */
body { overflow-wrap: anywhere; }
* { min-width: 0; }
.btn { text-align: center; }
@media (max-width: 860px) {
  .nav-cta, .site-nav a:not(.btn) { white-space: normal; }
  .hero-actions .btn { min-width: 0; }
}
.nav-toggle { flex-shrink: 0; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.brand img, .social a, .why-icon, .float-btn { flex-shrink: 0; }
/* Very narrow phones: the Thai company name alone keeps the header compact */
@media (max-width: 380px) {
  .brand-text span { display: none; }
}
