/* HiSoServer Studio | Premium contact & unified responsive layout v2.0
   Shared by all 25 public routes and the privacy page.
   Pure CSS; no database migration, JavaScript, image copying, or external fonts.
*/
:root {
  --hiso-page-max: 1200px;
  --hiso-page-gap: 48px;
  --hiso-c-ink: #0c0d0b;
  --hiso-c-surface: #161716;
  --hiso-c-gold: #ebcc94;
  --hiso-c-muted: #cac3b8;
}

/* ONE CONTENT GRID across the site, including header, hero, articles, images
   and premium footer. Original legacy templates use .wrap or .container. */
html { max-width: 100%; -webkit-text-size-adjust: 100%; }
body { width: 100%; min-width: 0; }
body > header :where(.wrap, .container),
body > main :where(.wrap, .container),
body > main :where(.hero-grid),
.hiso-site-footer .hiso-f-inner,
.hiso-contact-panel .hiso-c-inner {
  width: min(var(--hiso-page-max), calc(100% - var(--hiso-page-gap))) !important;
  max-width: var(--hiso-page-max);
  margin-inline: auto;
}
body :where(main, main section, .hero-grid, .showcase, .split, .banner,
            .image-frame, .photo-frame, .hero-card, .cat, .card,
            .category-grid, .article, .nav, .navlinks, .contact-box) {
  min-width: 0;
}
body main :where(img, video, iframe, svg) { max-width: 100%; }
body main :where(img) { height: auto; }
body main :where(p, h1, h2, h3, h4, li, blockquote) { overflow-wrap: break-word; }
body main :where(figure, .banner, .image-frame, .photo-frame) { max-width: 100%; }
body main :where(.banner, .image-frame) { margin-inline: auto; }
body main :where(.banner, .image-frame, .photo-frame) img {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
}
/* Keep image dimensions predictable; avoid cropping valuable text in banners. */
body main :where(.banner) img { aspect-ratio: auto !important; height: auto !important; }
body main .image-frame.wide-img img { aspect-ratio: 2 / 1; object-fit: contain; }
body main .image-frame.square-img img { aspect-ratio: 1; object-fit: contain; }
body main :where(.showcase, .split) > * { min-width: 0; }
body main .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(19px, 2.7vw, 34px); }
body main .hero-grid > * { min-width: 0; max-width: 100%; }
body main .hero-grid > figure { margin: 0; }
body main .hero-grid :where(.photo-frame, figure.hero-card) img {
  width: 100% !important;
  height: clamp(340px, 41vw, 570px) !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
}
body main .hero-grid .photo-frame,
body main .hero-grid figure.hero-card { background-color: #0d0d0a; }
body main .hero h1 {
  font-size: clamp(32px, 4.05vw, 58px);
  line-height: 1.19;
  letter-spacing: -.025em;
  text-wrap: balance;
}
body main .hero .lead { font-size: clamp(16px, 1.45vw, 20px); line-height: 1.85; }
body main .hero :where(.btn, .pill, .badge) { max-width: 100%; }
body main .hero .btn { white-space: normal; text-align: center; }
body > header .nav { min-height: 82px; gap: 18px; }
body > header a.brand { display: inline-flex; align-items: center; min-width: 0; flex: 0 1 auto; }
body > header a.brand img { width: 56px !important; height: 56px !important; object-fit: contain; flex: 0 0 56px; }
body > header a.brand span { font-size: clamp(19px, 2.15vw, 30px); overflow-wrap: anywhere; }
body > header a.brand:focus-visible { outline: 3px solid #f3d59b; outline-offset: 4px; border-radius: 8px; }
body > header .navlinks { flex-wrap: wrap; justify-content: flex-end; gap: 9px 17px; }
body > header .navlinks a { min-width: 0; white-space: normal; }

/* ==============================================================
   PRIMARY CONTACT PANEL: identical HTML across all 25 legacy pages.
   Replaces the unstructured contact box & keyword-link wall.
   ============================================================== */
section.hiso-contact-panel {
  --c-text: #f8f3e9;
  --c-muted: #c7c1b7;
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(44px, 5.8vw, 80px) 0 clamp(42px, 5.6vw, 74px) !important;
  border: none !important;
  border-top: 1px solid rgba(237, 205, 149, .21) !important;
  background:
    radial-gradient(ellipse 70% 110% at 16% 5%, rgba(154, 115, 53, .11), transparent 76%),
    radial-gradient(ellipse 65% 140% at 97% 100%, rgba(30, 81, 60, .09), transparent 80%),
    linear-gradient(170deg, #0c0c0b 0%, #0e100e 51%, #0b0c0b 100%) !important;
  color: var(--c-text);
  font: 400 15px/1.7 'Noto Sans Thai', 'Sarabun', 'Leelawadee UI', Tahoma, sans-serif;
  text-align: left;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.hiso-contact-panel *,
.hiso-contact-panel *::before,
.hiso-contact-panel *::after { box-sizing: border-box; }
.hiso-contact-panel :where(p,h2,h3,ol) { margin: 0; padding: 0; }
.hiso-contact-panel a { color: inherit; text-decoration: none; }
.hiso-contact-panel a:focus-visible { outline: 3px solid #ffe0aa; outline-offset: 5px; border-radius: 6px; }
.hiso-contact-panel .hiso-c-inner { position: relative; }
.hiso-contact-panel .hiso-c-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 15px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 1.5px;
  color: #bcb6a9;
}
.hiso-contact-panel .hiso-c-status { display: inline-flex; align-items: center; gap: 10px; }
.hiso-contact-panel .hiso-c-status i,
.hiso-contact-panel .hiso-c-note-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #6fd4a0;
  box-shadow: 0 0 0 5px rgba(93,191,140,.08), 0 0 18px rgba(93,191,140,.23);
}
.hiso-contact-panel .hiso-c-topline-label { color: #bfb19a; }
.hiso-contact-panel .hiso-c-topline-label span { color: #736857; margin: 0 6px; }
.hiso-contact-panel .hiso-c-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(231, 196, 134, .33);
  border-radius: 27px;
  background: radial-gradient(ellipse 78% 140% at 1% 0%, rgba(207, 157, 83, .115), transparent 70%),
              radial-gradient(ellipse 60% 110% at 95% 100%, rgba(51, 112, 83, .13), transparent 75%),
              linear-gradient(130deg, #1b1a16 0%, #121412 56%, #121915 100%);
  box-shadow: 0 28px 85px rgba(0,0,0,.28), inset 0 1px rgba(255,249,226,.07);
}
.hiso-contact-panel .hiso-c-shell::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #c9a267 14%, #f6deb2 38%, #a17e52 65%, transparent 95%);
  opacity: .72;
}
.hiso-contact-panel .hiso-c-shell::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: -135px;
  top: -175px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(241,204,148,.085);
  border-radius: 50%;
  box-shadow: 0 0 0 63px rgba(241,204,148,.025),0 0 0 128px rgba(241,204,148,.012);
  pointer-events: none;
}
.hiso-contact-panel .hiso-c-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr);
  gap: clamp(25px, 4vw, 58px);
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
}
.hiso-contact-panel .hiso-c-copy { min-width: 0; }
.hiso-contact-panel .hiso-c-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e6c798;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: .1px;
}
.hiso-contact-panel .hiso-c-ornament { color: #ecca91; font-size: 18px; }
.hiso-contact-panel h2.hiso-c-title {
  margin: 13px 0 16px;
  max-width: 650px;
  color: #fcf7ed;
  font-size: clamp(32px, 3.9vw, 55px);
  font-weight: 850;
  line-height: 1.32;
  letter-spacing: -.7px;
  text-wrap: balance;
  text-shadow: none;
}
.hiso-contact-panel .hiso-c-title span {
  display: block;
  color: #efd09b;
  background: linear-gradient(105deg, #ffe5b4 10%, #d6ad72 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hiso-contact-panel p.hiso-c-description {
  max-width: 550px;
  color: #cbc5b8;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.95;
}
.hiso-contact-panel .hiso-c-benefits { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 29px 0 27px; }
.hiso-contact-panel .hiso-c-benefit { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.hiso-contact-panel .hiso-c-benefit-icon {
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #f3dba9;
  background: rgba(228,184,115,.08);
  border: 1px solid rgba(240,202,146,.29);
  border-radius: 50%;
  font: 800 13px/1 Tahoma, sans-serif;
}
.hiso-contact-panel .hiso-c-benefit > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.hiso-contact-panel .hiso-c-benefit strong { color: #f7f2e9; font-size: 14px; font-weight: 750; line-height: 1.4; }
.hiso-contact-panel .hiso-c-benefit small { color: #b8b3a9; font-size: 12.5px; line-height: 1.75; margin-top: 1px; }
.hiso-contact-panel .hiso-c-services {
  padding-top: 20px;
  border-top: 1px solid rgba(238,212,174,.14);
}
.hiso-contact-panel .hiso-c-services-label { display: block; color: #aaa192; font-size: 10px; font-weight: 800; letter-spacing: 1.45px; margin-bottom: 12px; }
.hiso-contact-panel .hiso-c-service-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hiso-contact-panel .hiso-c-service-list a {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  color: #e9dcc5;
  border: 1px solid rgba(232,201,160,.20);
  border-radius: 8px;
  background: rgba(242,222,186,.036);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.hiso-contact-panel .hiso-c-service-list a span { font-size: 14px; color: #c49a61; }
.hiso-contact-panel .hiso-c-service-list a[aria-current=page] { border-color: #d0a669; background: rgba(220,174,108,.10); }
.hiso-contact-panel .hiso-c-side {
  min-width: 0;
  padding: clamp(23px, 3vw, 34px);
  border: 1px solid rgba(237,210,168,.23);
  border-radius: 21px;
  background: linear-gradient(158deg, rgba(34,32,27,.93), rgba(18,21,19,.98));
  box-shadow: 0 20px 55px rgba(0,0,0,.22), inset 0 1px rgba(255,245,225,.035);
}
.hiso-contact-panel .hiso-c-side-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #c9b89a; font-size: 10px; letter-spacing: 1.6px; font-weight: 800; }
.hiso-contact-panel .hiso-c-side-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #e8c58c; border: 1px solid rgba(235,202,151,.24); font-size: 20px; font-weight: 400; }
.hiso-contact-panel .hiso-c-side h3 { margin: 13px 0 8px; font-size: clamp(24px, 2.45vw, 31px); line-height: 1.45; font-weight: 850; color: #f5f0e4; }
.hiso-contact-panel .hiso-c-side h3 span { color: #efce93; }
.hiso-contact-panel p.hiso-c-side-description { color: #bbb4a7; font-size: 13px; line-height: 1.8; }
.hiso-contact-panel .hiso-c-checklist { display: grid; gap: 10px; margin: 20px 0 22px; list-style: none; }
.hiso-contact-panel .hiso-c-checklist li { display: flex; align-items: center; gap: 12px; color: #dfd8c8; font-size: 13px; line-height: 1.55; min-width: 0; }
.hiso-contact-panel .hiso-c-checklist li span { display: inline-flex; color: #e4c18a; font: 800 11px/1.2 Tahoma,sans-serif; flex: 0 0 22px; }
.hiso-contact-panel .hiso-c-actions { display: grid; gap: 10px; }
.hiso-contact-panel a.hiso-c-action {
  display: flex;
  align-items: center;
  min-height: 66px;
  gap: 13px;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.hiso-contact-panel a.hiso-c-line { background: linear-gradient(110deg, #087b41, #159857 82%); color: #fff; border-color: rgba(157,237,187,.26); box-shadow: 0 11px 30px rgba(5,75,39,.22); }
.hiso-contact-panel a.hiso-c-call { background: linear-gradient(110deg, #f5d9a5, #e0b878 90%); color: #2e2417; border-color: #f3d8a9; box-shadow: 0 11px 30px rgba(149,101,45,.15); }
.hiso-contact-panel .hiso-c-action-icon { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.13); }
.hiso-contact-panel .hiso-c-call .hiso-c-action-icon { background: rgba(58,38,13,.09); }
.hiso-contact-panel .hiso-c-action-icon svg { display: block; width: 21px; height: 21px; }
.hiso-contact-panel .hiso-c-action-copy { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; text-align: left; }
.hiso-contact-panel .hiso-c-action-copy strong { font-size: 13.5px; font-weight: 850; line-height: 1.4; }
.hiso-contact-panel .hiso-c-action-copy small { font-size: 12px; font-weight: 750; line-height: 1.4; }
.hiso-contact-panel .hiso-c-action-arrow { font: 600 20px/1 sans-serif; }
.hiso-contact-panel p.hiso-c-side-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 17px; color: #a9b5aa; font-size: 11.5px; line-height: 1.6; }
.hiso-contact-panel .hiso-c-side-note .hiso-c-note-dot { margin-top: 5px; width: 6px; height: 6px; flex-basis: 6px; }
.hiso-contact-panel .hiso-c-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(231,207,166,.16);
  background: rgba(8,11,10,.33);
}
.hiso-contact-panel .hiso-c-step { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 21px clamp(18px, 3vw, 42px); }
.hiso-contact-panel .hiso-c-step + .hiso-c-step { border-left: 1px solid rgba(233,211,170,.14); }
.hiso-contact-panel .hiso-c-step-number { color: #cca66e; flex: 0 0 auto; font: 800 15px/1.5 Tahoma,sans-serif; letter-spacing: .7px; }
.hiso-contact-panel .hiso-c-step > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hiso-contact-panel .hiso-c-step strong { color: #f0e9dc; font-size: 13px; line-height: 1.35; font-weight: 750; }
.hiso-contact-panel .hiso-c-step small { color: #b3ad9f; font-size: 11.5px; line-height: 1.55; }
/* Location line retains the original published contact details in a calmer form. */
.hiso-contact-panel .hiso-c-address {
  display: flex;
  align-items: baseline;
  gap: 17px;
  padding: 13px clamp(18px, 3vw, 42px) 16px;
  background: rgba(6,8,7,.33);
  border-top: 1px solid rgba(233,211,170,.13);
}
.hiso-contact-panel .hiso-c-address-label {
  flex: 0 0 auto;
  color: #c5a675;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .8px;
  white-space: nowrap;
}
.hiso-contact-panel .hiso-c-address-label span { margin: 0 5px; color: #73654e; }
.hiso-contact-panel .hiso-c-address address {
  color: #b4ada2;
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.8;
  overflow-wrap: break-word;
}
.hiso-contact-panel { scroll-margin-top: 115px; }
/* Keep the first-visit privacy consent visible without stacking a floating CTA
   over the same buttons. :has() enhancement for browsers that support it. */
body:has(> .hiso-consent) .sticky-cta,
body:has(> .hiso-consent) .float-cta { display: none !important; }
@media (max-width: 520px) {
  .hiso-contact-panel .hiso-c-address { display: block; padding: 13px 19px 18px; }
  .hiso-contact-panel .hiso-c-address-label { display: block; margin-bottom: 6px; }
  .hiso-contact-panel { scroll-margin-top: 143px; }
}
@media (hover:hover) {
  .hiso-contact-panel a.hiso-c-action:hover { transform: translateY(-2px); filter: brightness(1.07); }
  .hiso-contact-panel .hiso-c-service-list a:hover { color: #fff2d7; background: rgba(218,181,121,.085); border-color: rgba(243,202,142,.55); }
}
@media (max-width: 980px) {
  :root { --hiso-page-gap: 38px; }
  body main .hero-grid { grid-template-columns: 1fr; }
  body main .hero-grid figure.hero-card { order: initial !important; }
  body main .hero-grid :where(.photo-frame, figure.hero-card) img { height: auto !important; max-height: 540px; }
  .hiso-contact-panel .hiso-c-grid { grid-template-columns: minmax(0, 1fr) minmax(290px, .9fr); gap: 22px; padding: 30px; }
  .hiso-contact-panel h2.hiso-c-title { font-size: clamp(30px,4.6vw,44px); }
}
@media (max-width: 760px) {
  :root { --hiso-page-gap: 32px; }
  body main :where(.hero-grid, .showcase, .split, .contact-box) { grid-template-columns: 1fr !important; }
  body main .hero-grid figure.hero-card { order: initial !important; }
  body main .hero-grid :where(.photo-frame, figure.hero-card) img { width: 100% !important; max-height: 520px; object-fit: contain !important; }
  body > header .nav { min-height: 0; padding: 11px 0 12px; flex-wrap: wrap; justify-content: center; gap: 10px; }
  body > header .navlinks { display: flex !important; width: 100%; justify-content: center; gap: 7px; }
  body > header .navlinks a:not(.cta-top) {
    display: inline-flex !important;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid rgba(236,202,152,.20);
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.5;
  }
  body > header a.brand img { width: 44px !important; height: 44px !important; flex-basis: 44px; }
  body > header a.brand span { font-size: clamp(20px, 5vw, 27px); }
  .hiso-contact-panel .hiso-c-grid { grid-template-columns: 1fr; gap: 24px; }
  .hiso-contact-panel .hiso-c-benefits { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .hiso-contact-panel .hiso-c-benefit { display: flex; flex-direction: column; gap: 8px; }
  .hiso-contact-panel .hiso-c-steps { grid-template-columns: 1fr; }
  .hiso-contact-panel .hiso-c-step { padding: 14px 25px; }
  .hiso-contact-panel .hiso-c-step + .hiso-c-step { border-left: none; border-top: 1px solid rgba(233,211,170,.14); }
}
@media (max-width: 520px) {
  :root { --hiso-page-gap: 24px; }
  body main :where(.wrap, .container) { max-width: var(--hiso-page-max); }
  body main .hero h1 { font-size: clamp(29px, 7.8vw, 37px); letter-spacing: -.4px; }
  body main .hero-grid :where(.photo-frame, figure.hero-card) img { max-height: 440px; }
  body > header a.brand { gap: 9px; }
  body > header .navlinks { gap: 5px; }
  body > header .navlinks a:not(.cta-top) { padding: 5px 8px; font-size: 11.5px; }
  .hiso-contact-panel .hiso-c-topline { font-size: 9px; gap: 10px; letter-spacing: .85px; }
  .hiso-contact-panel .hiso-c-topline-label { display: none; }
  .hiso-contact-panel .hiso-c-shell { border-radius: 19px; }
  .hiso-contact-panel .hiso-c-grid { padding: 25px 20px 19px; }
  .hiso-contact-panel .hiso-c-eyebrow { font-size: 11.5px; }
  .hiso-contact-panel h2.hiso-c-title { font-size: clamp(30px, 7.4vw, 38px); line-height: 1.36; letter-spacing: -.3px; }
  .hiso-contact-panel p.hiso-c-description { font-size: 14px; }
  .hiso-contact-panel .hiso-c-benefits { grid-template-columns: 1fr; gap: 11px; margin: 23px 0; }
  .hiso-contact-panel .hiso-c-benefit { flex-direction: row; align-items: flex-start; }
  .hiso-contact-panel .hiso-c-side { padding: 23px 19px; border-radius: 16px; }
  .hiso-contact-panel .hiso-c-service-list a { font-size: 11.6px; }
  .hiso-contact-panel .hiso-c-step { padding: 15px 19px; }
}
@media (max-width: 360px) {
  .hiso-contact-panel .hiso-c-grid { padding: 22px 16px 17px; }
  .hiso-contact-panel .hiso-c-side { padding: 19px 15px; }
  .hiso-contact-panel a.hiso-c-action { padding: 10px 11px; }
  .hiso-contact-panel h2.hiso-c-title { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .hiso-contact-panel *, .hiso-contact-panel *::before, .hiso-contact-panel *::after { transition: none !important; animation: none !important; }
}
