/* ALEK-TECH v1.6 — shared visual system, inspired by the ALEK-FIRE reference. */
:root { --ink:#111b26; --warm-white:#f4f7f7; --border:#e3e8eb; --text-muted:#5c6872; --text-faint:#687680; --red-tint:#fdf3f3; --red-tint-border:#f1dcdc; }
:root { --font-reading:'Sarabun',Tahoma,sans-serif; --font-heading:'Noto Sans Thai','Sarabun',Tahoma,sans-serif; }
body { background:#fff; font-family:var(--font-reading) !important; font-size:17px; line-height:1.8; color:var(--ink); }
h1,h2,h3,h4,.stat-value,.site-logo .name,.cert-title { font-family:var(--font-heading) !important; }
h1,h2,h3 { letter-spacing:0; }
main h1 { font-size:clamp(32px,4vw,52px) !important; font-weight:600; line-height:1.4 !important; }
.page-title { margin-top:16px; margin-bottom:24px; }
.page-shell { padding-top:clamp(38px,6vw,80px); padding-bottom:clamp(50px,7vw,96px); }
.container { padding-inline:clamp(16px,3.125vw,40px); }
.eyebrow { font-size:11px; font-weight:700; letter-spacing:1.5px; line-height:1.8; }
.btn-primary,.btn-secondary,.btn-line { border-radius:4px; padding:14px 24px; font-weight:600; font-size:15px; line-height:1.6; min-height:48px; }
.btn-secondary { border:1px solid #cbd2d8; background:#fff; }
.site-topbar { background:var(--ink); color:#e5eaed; font-size:11px; }
.site-topbar .container { padding-block:7px; }
.site-header .container { grid-template-columns:auto minmax(0,1fr) auto auto; gap:18px; padding-block:22px; }
.site-logo img { height:48px; width:auto; max-width:190px; }
.primary-nav > ul { font-size:13px; gap:8px 15px; }
.primary-nav .sub-menu { border-radius:4px; }
.header-search { position:relative; display:block; }
.header-search summary { display:flex; align-items:center; justify-content:center; width:44px; height:44px; cursor:pointer; border:1px solid transparent; border-radius:4px; list-style:none; }
.header-search summary::-webkit-details-marker { display:none; }
.header-search[open] summary { border-color:var(--border); }
.header-search-form { position:absolute; top:calc(100% + 14px); right:0; padding:10px; width:min(340px,calc(100vw - 32px)); max-width:none; background:#fff; border:1px solid var(--border); box-shadow:0 8px 24px #111b2612; border-radius:4px; z-index:120; }
.header-search-form input { width:100%; flex:1; }
.header-quote { font-size:13px; padding:10px 16px; min-height:44px; white-space:nowrap; }
.skip-link { position:fixed; top:8px; left:16px; z-index:10000; padding:10px 16px; background:#fff; color:var(--ink); transform:translateY(-150%); }
.skip-link:focus { transform:none; }
.home-hero { min-height:560px; padding-block:clamp(36px,5vw,68px); gap:clamp(28px,4vw,56px); }
.home-hero-content { text-align:left; align-items:flex-start; width:100%; max-width:550px; margin-inline:auto; gap:18px; }
.home-hero-title { font-size:clamp(34px,4.2vw,56px) !important; line-height:1.35 !important; }
.headline-dot { color:var(--red); }
.hero-tagline { margin:0; font-size:clamp(20px,2vw,27px); font-weight:600; }
.hero-intro { max-width:480px; font-size:17px; line-height:1.85; }
.hero-visual { background:#fff; min-width:0; width:100%; max-width:520px; margin-inline:auto; border-radius:4px; overflow:hidden; }
.hero-visual img { width:100%; height:clamp(320px,32vw,420px); object-fit:contain; }
.hero-caption { font-size:11px; letter-spacing:1px; color:var(--text-muted); border-top:1px solid var(--border); padding:14px 20px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.hero-surface { background:var(--warm-white); }
.home-hero-actions { gap:12px; justify-content:flex-start; }
.hero-service { font-size:12px; }
.service-strip { border-block:1px solid var(--border); background:#fff; }
.service-strip .container { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; padding-block:26px; text-align:left; }
.service-strip h3 { font-size:17px; font-weight:600; }
.service-strip p { font-size:13px; color:var(--text-muted); margin:6px 0 0; }
.section-space { padding-block:clamp(42px,6vw,84px); }
.section-heading { margin-bottom:32px; flex-direction:row; align-items:flex-end; justify-content:space-between; text-align:left; gap:16px; }
.section-heading > div { max-width:860px; }
.chips { justify-content:flex-start; }
.home-product-grid,.card-grid,.certs-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:24px; }
.home-product-grid > *,.card-grid > *,.certs-grid > * { flex:0 0 calc((100% - 48px)/3); max-width:400px; }
.home-product-body,.product-card-body,.group-card { text-align:left; }
.catalog-heading,.page-title,.page-shell > .eyebrow,.page-intro { text-align:left; }
.section-heading h2,.section-title { font-size:clamp(26px,2.8vw,36px); font-weight:600; line-height:1.5; }
.section-soft { background:var(--warm-white); }
.chip { border-radius:4px; padding:9px 16px; }
.home-product-card,.product-card,.group-card,.cert-card { border-radius:4px; border:1px solid var(--border); box-shadow:none; }
.home-product-image { aspect-ratio:4/3; padding:24px; background:#f7f9f9; }
.home-product-image img { mix-blend-mode:multiply; }
.home-product-body { padding:24px; gap:10px; }
.home-product-body h3,.product-card-body h3 { font-size:20px; font-weight:600; }
.home-product-body p { font-size:15px; line-height:1.8; }
.product-card-img { aspect-ratio:4/3; padding:20px; background:#f7f9f9; }
.product-card-body { padding:22px; }
.cert-img { border-radius:2px; }
.cert-title { font-weight:600; }
.post-card .cert-img { flex-shrink:0; }
.post-card-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:var(--red); background:#f2f5f6; }
.post-card-excerpt { font-size:15px; line-height:1.8; color:var(--text-muted); margin:12px 0 0; }
.post-card:hover { border-color:#c5cdd3; box-shadow:0 6px 20px #111b2608; }
.post-card:focus-visible { outline-offset:4px; }
.articles-grid { margin-top:32px; }
.catalog-help { background:#f7f9f9; border-color:var(--border); border-radius:4px; text-align:left; }
.why-row { gap:clamp(28px,6vw,80px); }
.why-img { border-radius:4px; }
.why-text { gap:24px; }
.why-text > div:first-child,.why-text > .link-red { text-align:left; }
.service-point h3 { font-size:18px; font-weight:600; }
.home-faq summary { font-size:18px; font-weight:500; }
.contact-band { background:var(--ink); padding-block:64px; text-align:center; }
.contact-band p { margin-inline:auto; }
.contact-band .contact-actions,.contact-band .line-contact,.catalog-help .contact-actions { justify-content:center; }
.contact-band .contact-actions { width:100%; max-width:500px; margin-inline:auto; }
.contact-band h2 { font-size:clamp(28px,3.3vw,43px); }
.contact-band .btn-secondary { background:transparent; }
.contact-band .line-contact { color:#dde5e9; }
.site-footer { background:var(--ink); color:#fff; padding-top:0; border-top:1px solid #ffffff20; }
.footer-grid { padding-top:44px; border-bottom-color:#ffffff20; }
.footer-company { font-family:var(--font-heading) !important; font-size:16px !important; }
.footer-address,.footer-tax,.footer-grid ul,.footer-bottom { color:#bbc6cf; }
.footer-links-group { border-color:#ffffff20; }
.footer-grid a:hover,.footer-bottom a { color:#fff; }
.footer-brand { max-width:180px; margin-bottom:20px; }
.product-shell { padding-top:40px; padding-bottom:80px; }
.breadcrumb { font-size:12px; line-height:1.8; }
.product-layout { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:clamp(28px,5vw,64px); }
.product-gallery { width:100%; max-width:520px; margin-inline:auto; }
.pg-main { background:#f6f8f8; border:0; border-radius:4px; padding:24px; aspect-ratio:1/1; max-height:520px; }
.pg-thumbs { justify-content:center; }
.pg-main img { mix-blend-mode:multiply; }
.pg-thumb { border-radius:3px; width:68px; height:68px; }
.product-info { text-align:left; }
.product-info h1 { margin:14px 0 22px; font-size:clamp(30px,3.2vw,44px) !important; }
.product-info .contact-actions,.product-info .line-contact { justify-content:flex-start; }
.product-summary { color:var(--text-muted); font-size:16px; line-height:1.8; }
.product-cta { background:transparent; border:0; border-top:1px solid var(--border); padding:24px 0 0; border-radius:0; }
.product-cta > div:first-child { font-size:16px; }
.product-section-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:12px 24px; border-block:1px solid var(--border); padding-block:18px; margin-top:48px; font-size:14px; font-weight:600; }
.product-section-nav a:hover { color:var(--red); }
.entry-content { max-width:960px; margin-inline:auto; }
.entry-content h2 { font-size:clamp(25px,2.5vw,34px); line-height:1.5; }
.entry-content h3 { font-size:22px; }
.entry-content table { border:1px solid var(--border); margin:24px auto 32px !important; border-spacing:0; font-size:16px; line-height:1.75; }
.entry-content th,.entry-content td { padding:14px 18px !important; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.entry-content th { background:#f5f7f8; font-weight:600; }
.entry-content tbody tr:nth-child(even) { background:#fafbfc; }
.entry-content .wp-block-table { margin:24px auto 32px; }
.entry-content .wp-block-table table { margin-block:0 !important; }
.entry-content .content-table-scroll { width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; margin:24px auto 32px; }
.entry-content .content-table-scroll > table { display:table !important; width:100% !important; min-width:560px; max-width:none !important; margin:0 !important; overflow:visible; table-layout:auto; }
.entry-content .table-scroll-hint { margin:-20px 0 28px; font-size:13px; color:var(--text-muted); }
.company-profile-panel { max-width:960px; margin:28px auto 0; padding:clamp(22px,3vw,36px); border:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:24px; border-radius:4px; }
.company-profile-panel > div { min-width:0; }
.company-profile-panel h2 { font-size:clamp(23px,2.4vw,30px); line-height:1.5; margin:8px 0 12px; }
.company-profile-panel p { font-size:16px; color:var(--text-muted); line-height:1.8; margin:0; max-width:580px; }
.company-profile-actions { display:flex; flex-direction:column; align-items:stretch; gap:12px; flex:0 0 220px; }
.entry-content iframe { border:0; }
.product-details { margin-top:48px; }
.model-selection { max-width:960px; margin:56px auto 0; padding:30px; background:var(--warm-white); border-radius:4px; text-align:left; }
.model-selection h2 { font-size:clamp(27px,3vw,38px); margin:8px 0 24px; }
.variant-buttons { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:10px; margin-bottom:24px; }
.variant-button { padding:12px 22px; border:1px solid var(--border); background:#fff; border-radius:4px; color:var(--ink); cursor:pointer; font-size:18px; font-weight:600; }
.variant-button[aria-pressed="true"] { color:#fff; background:var(--red); border-color:var(--red); }
.catalog-ready .variant-panel:not(.is-active) { display:none; }
.variant-panel { padding:20px 0 0; }
.variant-panel h3 { font-size:30px; }
.variant-panel p { color:var(--text-muted); max-width:850px; line-height:1.8; }
.variant-capacity { font-size:20px; font-weight:600; color:var(--ink) !important; }
.variant-panel .link-red { font-weight:600; }
.product-documents { max-width:960px; margin:56px auto 0; }
.product-documents > .eyebrow,.product-documents > h2,.product-documents > .contact-note { text-align:left; }
.product-documents h2 { font-size:clamp(27px,3vw,38px); margin:8px 0 20px; }
.document-list { border-top:1px solid var(--border); }
.document-row { display:grid; grid-template-columns:54px minmax(0,1fr) auto; align-items:center; gap:24px; padding:26px 0; border-bottom:1px solid var(--border); }
.document-symbol { color:var(--red); background:#fdf1f2; border-radius:4px; width:52px; height:64px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.document-kind { font-size:11px; color:var(--text-muted); }
.document-info h3 { font-size:18px; font-weight:500; line-height:1.6; margin-top:4px; }
.document-info p { font-size:12px; color:var(--text-muted); margin:6px 0 0; overflow-wrap:anywhere; }
.document-actions { display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.document-actions a,.document-preview { font-size:13px; font-weight:600; }
.document-preview:not(.btn-primary) { background:transparent; border:0; padding:10px 0; color:var(--ink); cursor:pointer; }
.document-actions a { padding:10px 12px; border-radius:4px; }
.document-actions a:not(.btn-primary) { background:var(--warm-white); }
.document-filter { display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:12px; padding-block:18px 30px; }
.page-shell > .document-list { max-width:960px; margin-inline:auto; }
.document-filter select { width:min(420px,100%); padding:10px 12px; border:1px solid var(--border); border-radius:4px; background:#fff; font-size:16px; }
.pdf-dialog { width:min(1100px,calc(100% - 24px)); max-width:none; height:min(900px,calc(100dvh - 24px)); max-height:calc(100dvh - 24px); border:1px solid var(--border); border-radius:6px; padding:0; color:var(--ink); }
.pdf-dialog[open] { display:flex; flex-direction:column; }
.pdf-dialog::backdrop { background:#111b26aa; }
.pdf-dialog-header { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:16px; padding:12px 18px; }
.pdf-dialog-header h2 { font-size:18px; line-height:1.5; min-width:0; }
.pdf-dialog-close { min-width:44px; min-height:44px; border:1px solid var(--border); background:#fff; border-radius:4px; cursor:pointer; }
.pdf-dialog-close { flex:0 0 44px; }
.pdf-reader-stage { min-height:120px; flex:1 1 auto; background:#eef2f3; overflow:hidden; }
.pdf-dialog iframe { width:100%; height:100%; border:0; display:block; }
.pdf-reader-status { padding:8px 18px; margin:0; font-size:14px; }
.pdf-dialog-foot { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 18px; font-size:13px; border-top:1px solid var(--border); }
.pdf-reader-download { padding:10px 16px; min-height:44px; font-size:14px; }
.pdf-reader-original { text-decoration:underline; }
.pdf-reader-open { overflow:hidden; }
.pdf-dialog-fallback { position:fixed; inset:12px; z-index:10000; margin:auto; box-shadow:0 0 0 100vmax #111b26aa; }
.inline-document-preview { display:inline-block; margin-right:16px; }
.contact-grid { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(28px,4vw,52px); max-width:1100px; margin-inline:auto; padding-top:20px; }
.contact-panel { border:0; padding:0; border-radius:0; }
.contact-panel h2 { font-size:26px; }
.contact-side { display:flex; flex-direction:column; gap:32px; }
.contact-side h2 { font-size:25px; margin-bottom:10px; }
.contact-side p { color:var(--text-muted); line-height:1.9; }
.contact-person h3 { font-size:17px; }
.contact-person a { display:block; margin-top:8px; }
.quotation-panel { min-width:0; }
.quotation-panel h2 { font-size:clamp(29px,3vw,40px); margin:8px 0 12px; }
.quotation-panel > p { color:var(--text-muted); line-height:1.8; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.quotation-form label { display:flex; flex-direction:column; gap:8px; font-size:14px; font-weight:500; min-width:0; }
.quotation-form input:not([type="checkbox"]),.quotation-form select,.quotation-form textarea { width:100%; border:1px solid #cdd6dc; border-radius:4px; padding:12px; background:#fff; font-size:16px; min-width:0; }
.quotation-form textarea { resize:vertical; }
.quotation-form .details-label { margin-top:20px; }
.quotation-form .quote-permission { flex-direction:row; align-items:flex-start; font-size:13px; font-weight:400; margin-block:20px; }
.quote-permission input { width:18px; height:18px; flex:0 0 18px; margin:3px 2px 0 0; }
.quote-permission a { text-decoration:underline; }
.quote-honeypot { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; }
.quote-feedback { padding:18px; margin:20px 0; border:1px solid #c4ded0; background:#f3faf6; font-size:15px; line-height:1.8; }
.quote-feedback.is-error { background:#fff6f5; border-color:#e5b8b4; }
.about-intro { max-width:960px; margin-inline:auto; border:0; padding:30px; background:var(--warm-white); border-radius:4px; text-align:left; }
.mobile-actions { display:none; }
@media(max-width:1100px) {
  .site-header .container { grid-template-columns:minmax(0,1fr) auto auto auto; padding-block:14px; gap:12px; }
  .header-search { grid-column:2; grid-row:1; }
  .header-quote { grid-column:3; grid-row:1; }
  .nav-ready .menu-toggle { grid-column:4; grid-row:1; }
  .primary-nav { grid-column:1/-1; grid-row:2; }
  .home-hero { gap:32px; }
  .contact-grid { gap:36px; }
}
@media(max-width:900px) {
  .home-hero { grid-template-columns:minmax(0,1fr); min-height:0; }
  .hero-visual { max-width:520px; width:100%; margin-inline:auto; }
  .product-layout { grid-template-columns:minmax(0,1fr); }
  .product-info { max-width:640px; margin-inline:auto; }
  .home-product-grid > *,.card-grid > *,.certs-grid > * { flex-basis:calc((100% - 24px)/2); }
  .service-strip .container { gap:18px; }
  .contact-grid { grid-template-columns:minmax(0,1fr); }
  .contact-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .contact-side > * { min-width:0; }
}
@media(max-width:767px) {
  body { font-size:16px; padding-bottom:calc(64px + env(safe-area-inset-bottom)); }
  main h1 { font-size:34px !important; }
  .site-header .container { grid-template-columns:minmax(0,1fr) auto auto; padding-block:12px; gap:8px; }
  .site-logo img { max-width:160px; }
  .header-quote { display:none; }
  .header-search { grid-column:2; grid-row:1; width:auto; }
  .header-search-form { right:-52px; margin:0; }
  .nav-ready .menu-toggle { grid-column:3; grid-row:1; }
  .primary-nav { grid-row:2; }
  .home-hero { padding-block:30px 36px; gap:18px; text-align:left; }
  .home-hero-content { display:contents; }
  .home-hero-content > .eyebrow { grid-row:1; }
  .home-hero-title { grid-row:2; font-size:36px !important; }
  .hero-tagline { grid-row:3; font-size:20px !important; }
  .hero-visual { grid-row:4; }
  .hero-visual img { height:290px; }
  .hero-caption { padding:10px 12px; font-size:10px; }
  .hero-intro { grid-row:5; font-size:16px !important; width:100%; }
  .home-hero-actions { grid-row:6; width:100%; max-width:440px; margin-inline:auto; }
  .hero-service { grid-row:7; }
  .service-strip .container { grid-template-columns:minmax(0,1fr); gap:0; padding-block:8px; }
  .service-strip .container > div { padding-block:16px; border-bottom:1px solid var(--border); }
  .service-strip .container > div:last-child { border:0; }
  .home-product-image { padding:20px; }
  .home-product-body { padding:20px; }
  .section-heading { flex-direction:column; align-items:flex-start; gap:12px; }
  .home-product-grid > *,.card-grid > *,.certs-grid > * { flex-basis:100%; max-width:440px; }
  .why-text { max-width:520px; margin-inline:auto; }
  .company-profile-panel { flex-direction:column; align-items:stretch; }
  .company-profile-actions { flex-basis:auto; align-items:flex-start; }
  .product-layout { gap:28px; }
  .pg-main { aspect-ratio:4/3; padding:18px; }
  .product-info h1 { font-size:32px !important; }
  .product-summary { font-size:15px; }
  .product-shell { padding-top:26px; }
  .model-selection { padding:20px; }
  .variant-buttons { gap:8px; }
  .variant-button { font-size:16px; padding:10px 16px; }
  .document-row { grid-template-columns:44px minmax(0,1fr); gap:14px; padding-block:22px; }
  .document-symbol { width:44px; height:56px; }
  .document-actions { grid-column:2; }
  .document-info h3 { font-size:17px; }
  .document-filter { align-items:stretch; }
  .document-filter label { flex-basis:100%; }
  .document-filter select { width:100%; }
  .contact-side { display:flex; }
  .form-grid { gap:16px; }
  .footer-links-group { border-color:#ffffff20; }
  .entry-content th,.entry-content td { padding:12px 14px !important; font-size:15px; }
  .mobile-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid var(--border); padding:6px 8px calc(6px + env(safe-area-inset-bottom)); z-index:150; }
  .mobile-actions a { text-align:center; padding:12px 2px; font-size:13px; min-height:44px; }
  .mobile-actions .mobile-quote { background:var(--red); color:#fff; border-radius:4px; }
  .cresta-facebook-messenger-box { bottom:calc(76px + env(safe-area-inset-bottom)) !important; }
  .cresta-facebook-messenger-container { bottom:calc(150px + env(safe-area-inset-bottom)) !important; }
}
@media(max-width:480px) { .form-grid { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:no-preference) { a,button { transition:color .15s,background-color .15s,border-color .15s; } }
.article-reader { max-width:960px; margin-inline:auto; }
.article-contents { display:flex; flex-direction:column; gap:12px; padding:24px; margin:32px 0; background:var(--paper,#f7f9f9); border:1px solid var(--border); }
.article-contents a { color:var(--red); }
.article-section { display:flow-root; margin:40px 0; scroll-margin-top:110px; }
.article-section-title { border-bottom:1px solid var(--border); padding-bottom:16px; margin-bottom:24px; }
