:root{--font:'Kanit';--text:#1f2937;--heading:#111827;--maxw:1200px;--brand:#ffcc00;--brand-ink:#111;--brand-text:#d9a800;--topbar-bg:#b3261e;--topbar-fg:#fde3e1;--topbar-dot:#ffcc00;--topbar-link:#fff;--nav:#1f2937;--nav-hover:#b3261e;--nav-hover-bg:#fff6d1;--cta-bg:#e02424;--cta-fg:#fff;--dark:#212121;--link:#1d4ed8;--th-bg:#fff6d1;}
:root{--global-palette1:#f0e000;--global-palette2:#e02424;--global-palette3:#1f2937;--global-palette4:#111827;--global-palette5:#4b5563;--global-palette6:#6b7280;--global-palette7:#f3f4f6;--global-palette8:#f9fafb;--global-palette9:#ffffff;--global-content-width:1200px;--global-content-edge-padding:1.25rem;--global-kb-gap-sm:1rem;--global-kb-gap-md:2rem;--global-kb-gap-lg:3rem;--global-kb-spacing-xxs:.25rem;--global-kb-spacing-xs:.5rem;--global-kb-spacing-sm:1.5rem;--global-kb-spacing-md:2rem;--global-kb-spacing-lg:3rem;--global-kb-spacing-xl:4rem;--global-kb-spacing-xxl:5rem;--global-kb-spacing-3xl:6.5rem;--global-kb-spacing-4xl:8rem;--global-kb-spacing-5xl:5rem;}
/* ===== DLS shared Astro theme base (per-site palette injected via :root block) ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font), 'Kanit', 'Prompt', 'Sarabun', sans-serif;
  color: var(--text); background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,h5 { font-family: var(--font), 'Kanit', sans-serif; color: var(--heading); line-height: 1.35; font-weight: 600; }
.container { width: 100%; max-width: var(--maxw, 1200px); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.top-bar { background: var(--topbar-bg); color: var(--topbar-fg); font-size: .82rem; padding: .4rem 0; }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top-bar__tagline { display: flex; align-items: center; gap: .5rem; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--topbar-dot); flex: none; }
.top-bar__contact { display: flex; gap: 1.25rem; align-items: center; }
.top-contact-item { color: var(--topbar-link); display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.top-contact-item:hover { text-decoration: none; opacity: .85; }
.top-contact-line { color: #4ade80; }
.top-contact-item svg { flex: none; }
.main-bar { background: #fff; }
.main-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 72px; }
.brand-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--heading); flex: none; }
.brand-logo:hover { text-decoration: none; }
.brand-badge { background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: .95rem; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 6px; white-space: nowrap; }
.brand-badge--red { background: #e02424; color: #fff; }
.brand-badge--coral { background: #f26a1b; color: #fff; }
.brand-text { font-weight: 700; font-size: 1.15rem; color: var(--heading); white-space: nowrap; }
.brand-dot { color: var(--brand-text); }
.desktop-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; flex-wrap: nowrap; }
.nav-item { position: relative; list-style: none; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; color: var(--nav); font-weight: 500; font-size: .94rem; border-radius: 6px; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--nav-hover); background: var(--nav-hover-bg); text-decoration: none; }
.nav-cta { background: var(--cta-bg) !important; color: var(--cta-fg) !important; font-weight: 700; border-radius: var(--cta-radius, 8px); padding: .55rem 1.1rem; margin-left: .5rem; }
.nav-cta:hover { filter: brightness(.95); }
.header-action { display: inline-flex; margin-left: .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.3rem; font-weight: 700; font-size: .95rem; border-radius: var(--cta-radius, 8px); border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; filter: brightness(.95); }
.btn--quote, .btn--call, .btn--red, .btn--coral { background: var(--cta-bg); color: var(--cta-fg); }
.btn--line { background: #06c755; color: #fff; }
.has-dropdown > .nav-link svg { flex: none; }
.nav-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff; border: 1px solid #e5e7eb; border-top: 3px solid var(--brand); border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px rgba(0,0,0,.14); padding: .4rem 0; z-index: 1100; }
.has-dropdown:hover > .nav-dropdown, .has-dropdown:focus-within > .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: .6rem 1.1rem; color: var(--nav); font-size: .9rem; }
.nav-dropdown a:hover { background: var(--nav-hover-bg); color: var(--nav-hover); text-decoration: none; }
.mobile-toggle { display: none; background: none; border: 0; color: var(--heading); cursor: pointer; padding: .4rem; }
.mobile-drawer { display: none; }

/* ---------- Page content ---------- */
main { min-height: 50vh; }
.page-content { padding: 2.25rem 1.25rem; }
.prose { color: var(--text); font-size: 1.04rem; line-height: 1.85; max-width: var(--maxw, 1200px); margin: 0 auto; }
.prose h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: .5rem 0 1rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 2.2rem 0 .9rem; padding-bottom: .4rem; border-bottom: 3px solid var(--brand); display: inline-block; }
.prose h3 { font-size: 1.3rem; margin: 1.8rem 0 .7rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: 10px; margin: 1rem 0; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid #e5e7eb; padding: .7rem .9rem; text-align: left; }
.prose th { background: var(--th-bg); font-weight: 600; }
.prose blockquote { border-left: 4px solid var(--brand); background: #fafafa; margin: 1.4rem 0; padding: .8rem 1.2rem; }
.prose iframe { max-width: 100%; }
.prose svg:not([width]):not([height]) { width: 1.1em; height: 1.1em; vertical-align: -.15em; }
.prose a svg { max-width: 1.4em; max-height: 1.4em; }
.prose button, .prose .wp-block-button__link { font-family: inherit; }
.prose .wp-block-button__link, .prose a.button, .prose .btn-cta { display: inline-block; background: var(--cta-bg); color: var(--cta-fg); padding: .7rem 1.4rem; border-radius: var(--cta-radius, 8px); font-weight: 700; text-decoration: none; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--dark); color: #fff; padding: 3.2rem 0; margin-top: 3rem; border-top: 4px solid var(--brand); }
.cta-banner__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-banner__content { flex: 1 1 480px; }
.cta-banner__title { color: #fff; font-size: 1.75rem; margin: 0 0 .6rem; }
.cta-banner__desc { color: #cbd5e1; margin: 0 0 1rem; }
.cta-banner__badges { display: flex; gap: .6rem; flex-wrap: wrap; }
.cta-badge { background: rgba(255,255,255,.1); color: var(--brand); padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; border: 1px solid rgba(255,255,255,.15); }
.cta-banner__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #aab4c3; padding-top: 3.5rem; }
.site-footer a { color: #aab4c3; }
.site-footer a:hover { color: var(--brand); text-decoration: none; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { display: inline-flex; align-items: center; gap: .6rem; }
.footer-logo .brand-text { color: #fff; }
.footer-desc { margin-top: 1rem; font-size: .9rem; line-height: 1.7; }
.footer-meta { margin-top: 1rem; font-size: .82rem; color: #7b8799; }
.footer-title { color: #fff; font-size: 1.02rem; margin: 0 0 1.1rem; font-weight: 600; border: 0; display: block; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; font-size: .9rem; }
.footer-col--contact p { margin: 0 0 .5rem; font-size: .9rem; }
.footer-phone a { color: var(--brand); font-size: 1.2rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; font-size: .82rem; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-bottom__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-drawer.is-open { display: block; }
}
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; } .top-bar__tagline span:last-child { display: none; } }
@media (max-width: 600px) { .footer__inner { grid-template-columns: 1fr; } .brand-text { font-size: 1rem; } }

/* ---------- Kadence block compatibility (content imported from the original WordPress/Kadence sites) ---------- */
.prose .kb-row-layout-wrap { position: relative; overflow: hidden; }
.prose .kt-row-column-wrap { display: grid; position: relative; z-index: 1; width: 100%; }
.prose .kt-row-layout-overlay { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.prose .kb-blocks-bg-video-container { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.prose .kb-bg-video-iframe { position: absolute; top: 50%; left: 50%; width: 100%; min-width: 177.78vh; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%); }
.prose .kb-bg-video-iframe iframe { width: 100%; height: 100%; border: 0; }
.prose .kt-inside-inner-col { display: flex; flex-direction: column; }
.prose .wp-block-kadence-column { position: relative; min-width: 0; }
.prose .kb-button, .prose .kt-button { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; padding: .7rem 1.4rem; border-radius: var(--cta-radius, 8px); background: var(--global-palette1); color: var(--global-palette9); }
.prose .kb-button:hover { text-decoration: none; }
.prose .kt-btn-inner-text { color: inherit; }
.prose .kt-btn-svg-icon svg, .prose .kb-svg-icon-wrap svg { width: 1em; height: 1em; }
.prose .wp-block-kadence-navigation, .prose nav.header-navigation, .prose .kb-nav-wrap, .prose [class*="kadence-navigation"], .prose .wp-block-kadence-header { display: none !important; }
