
:root{
  --navy:#071522; --navy2:#0b1c2d; --navy3:#132f4c;
  --gold:#d4af37; --gold2:#f0c66e;
  --text:#f5f7fa; --muted:#cbd7e3;
  --line:rgba(42,74,106,.55);
  --card:rgba(19,47,76,.62); --card2:rgba(19,47,76,.45);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  color:var(--text);
  background: radial-gradient(1100px 560px at 50% -10%, rgba(240,198,110,.16), rgba(0,0,0,0)),
              linear-gradient(180deg,var(--navy), #06111c 55%, #050e17 100%);
  overflow-x:hidden;
}
a{color:var(--gold2); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1120px; margin:0 auto; padding:0 18px}
.small{font-size:13px; color:var(--muted); opacity:.9}
.badge{display:inline-flex; gap:8px; align-items:center; padding:7px 10px; border-radius:999px; border:1px solid rgba(212,175,55,.28); background:rgba(19,47,76,.38); color:var(--gold2); font-size:13px}
.badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px}
.navwrap{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(140%) blur(10px);
  background:rgba(5,14,23,.78);
  border-bottom:1px solid var(--line);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px}
.brand{display:flex; flex-direction:column; line-height:1.1}
.brand .name{font-weight:800; letter-spacing:.10em}
.brand .tag{font-size:12px; letter-spacing:.24em; text-transform:uppercase; color:var(--gold2); margin-top:4px}
.links{display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:flex-end}
.links a{color:var(--text); opacity:.92}
.links a:hover{opacity:1}
.cta{
  display:inline-block; padding:10px 14px; border-radius:10px;
  background:linear-gradient(180deg,var(--gold2), var(--gold));
  color:#06111c !important; font-weight:800;
}
.lang{
  display:inline-flex; gap:6px; align-items:center;
  padding:8px 10px; border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
}
.lang button{
  cursor:pointer; border:none; background:transparent;
  color:var(--text); font-weight:800; opacity:.7;
  padding:2px 6px; border-radius:8px;
}
.lang button.active{opacity:1; background:rgba(240,198,110,.18); color:var(--gold2)}
.lang .icon{width:18px; height:18px; display:inline-block; opacity:.9}
.hero{position:relative; padding:78px 0 58px; isolation:isolate; border-bottom:1px solid var(--line)}
.hero h1{margin:0 0 12px; font-size:44px; letter-spacing:.01em}
.hero .subline{margin:0; font-size:18px; color:var(--muted); max-width:980px}
.hero .ctaRow{margin-top:18px; display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.hero .clock{margin-top:14px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; color:var(--muted)}
.hero .clock .pill{padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06)}
.motion-bg{
  position:absolute; inset:-60px -60px -80px -60px; z-index:-2;
  background: radial-gradient(900px 500px at 30% 20%, rgba(240,198,110,.20), rgba(0,0,0,0)),
              radial-gradient(900px 520px at 70% 30%, rgba(18,110,255,.18), rgba(0,0,0,0)),
              linear-gradient(120deg, rgba(19,47,76,.55), rgba(7,21,34,.55));
  filter:saturate(120%) contrast(105%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift{
  0%{transform:translate3d(-12px, -10px, 0) scale(1.02)}
  50%{transform:translate3d(10px, 8px, 0) scale(1.04)}
  100%{transform:translate3d(-6px, 14px, 0) scale(1.03)}
}
.wave{position:absolute; left:0; right:0; bottom:-1px; height:280px; z-index:-1; opacity:.95; pointer-events:none}
.wave::before,.wave::after{
  content:""; position:absolute; inset:0;
  background-repeat:repeat-x; background-size:1400px 280px;
  animation:waves 22s linear infinite; opacity:.9
}
.wave::before{background-image:var(--wave1); filter:drop-shadow(0 8px 16px rgba(0,0,0,.28))}
.wave::after{background-image:var(--wave2); animation-duration:34s; opacity:.55; mix-blend-mode:screen}
@keyframes waves{from{background-position:0 0} to{background-position:1400px 0}}
.drone{position:absolute; top:42px; right:10%; width:82px; height:48px; opacity:.7;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.35)); animation:droneFly 10s ease-in-out infinite alternate}
@keyframes droneFly{
  0%{transform:translate3d(0,0,0) rotate(-2deg)}
  50%{transform:translate3d(-18px,14px,0) rotate(2deg)}
  100%{transform:translate3d(-8px,-8px,0) rotate(-1deg)}
}
.drone svg{width:100%; height:100%}
.drone path{fill:rgba(240,198,110,.85)}
.section{padding:54px 0; border-bottom:1px solid var(--line)}
.section h2{margin:0 0 12px; font-size:26px; color:var(--gold2)}
.kicker{margin:0; color:var(--muted); max-width:960px; font-size:16px}
.grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; margin-top:18px}
.card{background:var(--card); border:1px solid rgba(42,74,106,.6); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow)}
.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px}
.split{display:grid; grid-template-columns:1.15fr .85fr; gap:18px}
@media (max-width: 920px){ .split{grid-template-columns:1fr} .hero h1{font-size:36px} }
.service-item{position:relative; overflow:hidden; border-radius:var(--radius);
  border:1px solid rgba(42,74,106,.65); background:rgba(19,47,76,.55);
  box-shadow:var(--shadow); padding:16px}
.service-item .bg{position:absolute; inset:-40px; z-index:-1; opacity:.9;
  background-image:var(--svcBg); background-size:1200px 420px; background-repeat:repeat-x;
  animation:svcMove 28s linear infinite; filter:saturate(120%) contrast(110%)}
@keyframes svcMove{from{background-position:0 0} to{background-position:1200px 0}}
.service-item .title{font-weight:800}
.service-item .en{margin-top:8px; color:var(--muted); font-size:14px}
.service-item .th{margin-top:8px; font-size:14px; opacity:.92}
.service-item .meta{margin-top:10px; display:flex; gap:10px; flex-wrap:wrap}
.pill2{padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06); color:var(--muted); font-size:12px}
.bizcard{background:linear-gradient(180deg, rgba(19,47,76,.7), rgba(11,28,45,.7));
  border:1px solid rgba(42,74,106,.65); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px}
.bizcard h3{margin:0 0 10px}
.bizcard .row{display:grid; grid-template-columns:1fr; gap:8px; color:var(--muted)}
.bizcard .row b{color:var(--text)}
.footer{padding:26px 0 40px; text-align:center; color:var(--muted)}
.notice{font-size:12px; color:var(--muted); opacity:.9; margin-top:10px}
[data-lang]{display:none}
body.lang-en [data-lang="en"]{display:block}
body.lang-th [data-lang="th"]{display:block}
.widget{background:rgba(19,47,76,.50); border:1px solid rgba(42,74,106,.60);
  border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden}
.widget .head{padding:14px 16px; border-bottom:1px solid rgba(42,74,106,.55);
  display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap}
.widget .head .t{font-weight:800}
.widget .head .s{color:var(--muted); font-size:13px}

/* Brand logo */
.brandwrap{display:flex; align-items:center; gap:12px}
.brandlogo{
  width:46px; height:46px; border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
  object-fit:cover;
}
@media (max-width: 520px){
  .brandlogo{width:40px;height:40px}
}

/* --- Premium header + typography --- */
:root{
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
}
body{font-family: var(--sans);}
.brand .name{font-family: var(--serif); letter-spacing:.08em}
.section h2, .hero h1{font-family: var(--serif);}

.navwrap{
  background: rgba(5,14,23,.58);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.nav{
  padding: 12px 0;
}
.links a{
  letter-spacing: .03em;
  text-transform: none;
}
.links a:hover{
  text-decoration:none;
  color: var(--gold2);
}
.links a:not(.cta)::after{
  content:"";
  display:block;
  height:2px;
  width:0;
  margin-top:6px;
  background: linear-gradient(90deg, rgba(240,198,110,0), rgba(240,198,110,.9), rgba(240,198,110,0));
  transition: width .25s ease;
}
.links a:hover::after{ width: 100%; }

/* Logo-only brand */
.brandwrap{
  display:flex; align-items:center; gap:12px;
}
.brandlogo{
  width:56px; height:56px;
  border-radius:999px;
  border:1px solid rgba(240,198,110,.35);
  box-shadow: 0 14px 32px rgba(0,0,0,.40);
  object-fit:cover;
  position:relative;
  overflow:hidden;
  background: rgba(0,0,0,.12);
}
.brandwrap:hover .brandlogo{
  transform: translateY(-1px) scale(1.02);
}
.brandlogo{
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
}
/* Wave-light shimmer over logo */
.brandlogo::after{
  content:"";
  position:absolute; inset:-40%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(240,198,110,.55) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-60%) rotate(18deg);
  animation: shimmer 3.8s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes shimmer{
  0%{ transform: translateX(-70%) rotate(18deg); opacity: 0; }
  20%{ opacity: .6; }
  50%{ opacity: .9; }
  80%{ opacity: .6; }
  100%{ transform: translateX(70%) rotate(18deg); opacity: 0; }
}

/* Fade-in logo */
.brandlogo{ opacity:0; animation: fadeInUp .9s ease forwards; }
@keyframes fadeInUp{
  from{ opacity:0; transform: translateY(6px) scale(.98);}
  to{ opacity:1; transform: translateY(0) scale(1);}
}

/* Hero background (keep original image) + subtle motion */
.hero{
  background-image:
    linear-gradient(180deg, rgba(7,21,34,.70), rgba(5,14,23,.88)),
    url('/assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero .motion-bg{ display:none; } /* use image as base */
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: url('/assets/hero-bg.png');
  background-size: 110%;
  background-position: 50% 50%;
  opacity:.25;
  filter: blur(0px) saturate(110%);
  animation: heroPan 18s ease-in-out infinite alternate;
  z-index:-1;
}
@keyframes heroPan{
  0%{ transform: translate3d(-10px,-6px,0) scale(1.02); }
  50%{ transform: translate3d(12px,4px,0) scale(1.03); }
  100%{ transform: translate3d(-6px,10px,0) scale(1.025); }
}


/* =========================
   Premium polish (typography + spacing + hero overlay)
   ========================= */
:root{
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --goldSoft: rgba(240,198,110,.55);
}
body{
  font-family: var(--sans);
  letter-spacing: .01em;
  line-height: 1.7;
}
h1,h2,.section h2,.hero h1{
  font-family: var(--serif);
  letter-spacing: .04em;
}
.hero h1{
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.hero .subline{
  font-size: 18px;
  line-height: 1.75;
  max-width: 980px;
}
@media (max-width: 920px){
  .hero h1{font-size: 40px;}
  .hero{padding: 70px 0 50px;}
}
.navwrap{
  background: rgba(5,14,23,.62);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.nav{
  padding: 14px 0;
}
.links a{
  font-weight: 600;
  letter-spacing: .02em;
}
.cta{
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.section{
  padding: 66px 0;
}
.section h2{
  font-size: 28px;
  margin-bottom: 14px;
}
.card{
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.bizcard{
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(0,0,0,.30);
}
.badge, .pill, .pill2{
  border-radius: 999px;
}
.badges{margin-top: 20px;}
/* Hero overlay refinement (keeps background image but adds premium vignette + gold rim light) */
.hero{
  position: relative;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 50% 10%, rgba(240,198,110,.14), rgba(0,0,0,0) 60%),
    radial-gradient(1000px 620px at 50% 120%, rgba(0,0,0,.55), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(7,21,34,.62), rgba(5,14,23,.90));
  mix-blend-mode: normal;
  z-index: -1;
}
/* Elevated logo glow (subtle, premium) */
.brand img, .brandlogo img{
  filter: drop-shadow(0 0 18px rgba(212,175,55,.50));
}

/* ===== Final: remove all motion globally + improve background clarity ===== */
.motion-bg, .wave, .drone { display:none !important; }
@keyframes drift{} @keyframes waves{} @keyframes droneFly{} @keyframes svcMove{} @keyframes heroPan{} @keyframes shimmer{} @keyframes fadeInUp{}
.hero::before, .service-item .bg, .brandlogo::after { animation:none !important; }
.hero::before { opacity: .10 !important; }

/* ===== Typography override: Cambria + gold headings ===== */
:root{
  --gold:#d4af37;
  --gold2:#f0c66e;
}
body{
  font-family: Cambria, "Times New Roman", serif !important;
}
h1,h2,h3,h4,.hero h1,.section h2{
  font-family: Cambria, "Times New Roman", serif !important;
  font-weight: 800 !important;
  color: var(--gold) !important;
  letter-spacing: .03em;
}
.card h3{ color: var(--gold) !important; font-weight: 800 !important; }
.links a{ font-family: Cambria, "Times New Roman", serif !important; }

/* ===== Logo visibility + layout fix (cache-bust 20260109a) ===== */
.brandwrap{display:inline-flex;align-items:center;gap:12px;text-decoration:none;}
.brandlogo{width:58px;height:58px;border-radius:999px;overflow:hidden;
  border:1px solid rgba(212,175,55,.65);
  box-shadow:0 0 26px rgba(212,175,55,.55), 0 18px 44px rgba(0,0,0,.35);
}
.brandlogo img{width:100%;height:100%;object-fit:cover;display:block;}
/* keep nav items aligned */
.nav{justify-content:space-between;}

/* ===== Remove unwanted ghost text behind service cards ===== */
.service-item .bg { display: none !important; }
.service-item{
  background: linear-gradient(180deg, rgba(19,47,76,.72), rgba(11,28,45,.78)) !important;
}
.service-item::before, .service-item::after { content: none !important; display:none !important; }
/* Also ensure no background-image on service-item */
.service-item{ background-image: none !important; }

.nav{justify-content:space-between;}

.brandwrap{z-index:60;}

/* ===== FORCE LOGO VISIBLE (all pages) ===== */
.navwrap{position:sticky !important; top:0; z-index:9998 !important;}
.nav{position:relative !important; z-index:9998 !important; align-items:center !important; min-height:74px !important;}
.brandwrap{display:inline-flex !important; align-items:center !important; visibility:visible !important; opacity:1 !important;
  position:relative !important; z-index:99999 !important; text-decoration:none !important;}
.brandlogo{display:block !important; width:64px !important; height:64px !important; border-radius:999px !important; overflow:hidden !important;
  background:rgba(7,22,34,.92) !important;
  border:2px solid rgba(240,198,110,.9) !important;
  box-shadow: 0 0 34px rgba(240,198,110,.75), 0 18px 44px rgba(0,0,0,.45) !important;
  visibility:visible !important; opacity:1 !important;}
.brandlogo img{display:block !important; width:100% !important; height:100% !important; object-fit:cover !important; opacity:1 !important; visibility:visible !important;}
.hero, header.hero{z-index:1 !important;}
.hero::before, .hero::after{z-index:0 !important;}
.nav *{filter:none !important;}

/* ===== Services: gold headings 1-9 ===== */
.service-item .title{
  color: #d4af37 !important;
  font-weight: 800 !important;
}
/* Replace globe icon with logo (services page) */
.lang-logo{
  width:18px !important;
  height:18px !important;
  border-radius:50%;
  box-shadow: 0 0 10px rgba(212,175,55,.45);
  margin-right:6px;
  vertical-align:middle;
}

/* ===== Nav buttons (Search / Enquiry) ===== */
.navbtn{
  cursor:pointer;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:var(--text, #fff);
  padding:10px 12px;
  border-radius:12px;
  font-weight:700;
}
.navbtn:hover{border-color: rgba(240,198,110,.65); color: var(--gold2, #f0c66e);}
.navbtn-gold{
  background:linear-gradient(180deg, rgba(240,198,110,.95), rgba(212,175,55,.95));
  color:#071622;
  border:none;
}
.navbtn-gold:hover{filter:brightness(1.04);}

/* ===== Search modal ===== */
.modal{position:fixed; inset:0; display:none; z-index:99999;}
.modal.open{display:block;}
.modal-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.55); backdrop-filter: blur(4px);}
.modal-panel{
  position:relative;
  width:min(720px, 92vw);
  margin:10vh auto;
  background:rgba(11,28,45,.95);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  box-shadow:0 22px 60px rgba(0,0,0,.55);
  overflow:hidden;
}
.modal-head{display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid rgba(255,255,255,.10);}
.modal-title{font-weight:800; color:var(--gold);}
.modal-close{cursor:pointer; border:none; background:transparent; color:#fff; font-size:18px; padding:6px 10px; border-radius:10px;}
.modal-close:hover{background:rgba(255,255,255,.06);}
.modal-body{padding:14px 16px;}
.search-input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  outline:none;
}
.search-input:focus{border-color: rgba(240,198,110,.65);}
.search-hint{margin-top:10px; color:rgba(255,255,255,.70); font-size:12px;}
.search-results{margin-top:12px; display:grid; gap:10px;}
.search-results .result{
  display:flex; justify-content:space-between; gap:12px;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:#fff;
}
.search-results .result span{color:rgba(255,255,255,.60); font-size:12px}
.search-results .result:hover{border-color: rgba(240,198,110,.55); text-decoration:none;}
.footer-links{margin-top:10px; display:flex; justify-content:center; gap:10px; align-items:center;}
.footer-links a{color:rgba(255,255,255,.78); font-size:12px}
.footer-links a:hover{color:var(--gold2);}
.footer-links span{opacity:.35}

.result-snippet{margin:-6px 0 10px 0; padding:0 2px 0 2px; color:rgba(255,255,255,.70); font-size:12px; line-height:1.4;}

.service-item .title{color:#d4af37;font-weight:800;}

/* ===== Services: guaranteed background rendering (JPG primary) ===== */
.service-item{position:relative; overflow:hidden; border-radius:18px;}
.service-item .bg{
  position:absolute; inset:0;
  background-image: var(--svcBg);
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
  opacity: .42;
  z-index:0;
}
.service-item::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(7,21,34,.55), rgba(7,21,34,.86));
  z-index:1;
}
.service-item > *{ position:relative; z-index:2; }
.service-item .title{ color:#d4af37; font-weight:800; }

/* ===== PRODUCTION: faint service backgrounds + text priority ===== */
.service-item{position:relative; overflow:hidden;}
.service-item .bg{
  display:block !important;
  opacity:0.11 !important;          /* very faint */
  filter: grayscale(100%) blur(2px) contrast(1.08) saturate(0.9) !important; /* hide any baked-in text */
}
.service-item::after{
  background: linear-gradient(180deg, rgba(7,21,34,0.86), rgba(7,21,34,0.94)) !important;
}
.service-item > *{position:relative; z-index:3 !important;}
.service-item .title{color:#d4af37 !important; font-weight:800 !important;}
.service-item .en, .service-item .th, .service-item p{color:rgba(255,255,255,.92) !important;}
.pill2, .pill{background:rgba(255,255,255,.05) !important; border-color:rgba(255,255,255,.12) !important;}

/* News layout */
#newsGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;}

/* Ensure service backgrounds show faintly (including service 10) */
.service-item .bg{display:block !important; opacity:0.11 !important;}
.service-item::after{background: linear-gradient(180deg, rgba(7,21,34,0.86), rgba(7,21,34,0.94)) !important;}
