/* ==========================================================================
   HADYAI CONSTRUCTION 1442 — Design System
   Tone: Navy + White + Gold accent
   Mobile-first, responsive, accessible
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand colors */
  --navy-900: #061a30;
  --navy-800: #0a2540;
  --navy-700: #0e3057;
  --navy-600: #14315f;
  --navy-500: #1c4a82;
  --navy-400: #2e6bb0;
  --navy-300: #6f9ad0;
  --navy-100: #e3edf7;
  --navy-50: #f2f7fc;

  --gold-600: #b8902f;
  --gold-500: #c9a24b;
  --gold-400: #d9b86a;
  --gold-200: #f0e2bc;

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --green: #2f8f5f;
  --red: #c0392b;

  /* Semantic */
  --c-bg: #ffffff;
  --c-bg-alt: var(--navy-50);
  --c-bg-dark: var(--navy-800);
  --c-text: var(--gray-800);
  --c-text-muted: var(--gray-500);
  --c-text-light: var(--gray-300);
  --c-heading: var(--navy-800);
  --c-accent: var(--gold-500);
  --c-accent-hover: var(--gold-600);
  --c-primary: var(--navy-600);
  --c-primary-hover: var(--navy-700);
  --c-border: var(--gray-200);

  /* Typography */
  --font-thai: "Noto Sans Thai", "Sukhumvit Set", "Thonburi", system-ui, sans-serif;
  --font-sans: "Inter", "Sora", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", "Noto Sans Thai", system-ui, sans-serif;
  --fs-base: 16px;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 1px 3px rgba(10, 37, 64, 0.05);
  --sh-md: 0 4px 12px rgba(10, 37, 64, 0.08), 0 2px 4px rgba(10, 37, 64, 0.04);
  --sh-lg: 0 14px 40px rgba(10, 37, 64, 0.12), 0 4px 10px rgba(10, 37, 64, 0.06);
  --sh-xl: 0 28px 70px rgba(10, 37, 64, 0.18);

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.4s;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
[lang="th"], [lang="th"] body { font-family: var(--font-thai); }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--c-heading);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
}
[lang="th"] h1, [lang="th"] h2, [lang="th"] h3, [lang="th"] h4 {
  font-family: var(--font-thai);
  font-weight: 700;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }
strong { color: var(--c-heading); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--c-text-muted); line-height: 1.75; }

/* ---------- 4. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: var(--gray-200); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: rgba(255, 255, 255, 0.78); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-600);
  margin-bottom: var(--space-3);
}
.section--dark .eyebrow { color: var(--gold-400); }
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: currentColor; display: inline-block;
}
.section-head.center .eyebrow { justify-content: center; }

.grid { display: grid; gap: var(--space-5); }
.text-center { text-align: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--c-primary);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.9rem 1.7rem;
  font-weight: 600; font-size: 0.98rem;
  border-radius: var(--r-full);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  box-shadow: var(--sh-sm);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--gold-500); --btn-fg: var(--navy-900); }
.btn--primary:hover { --btn-bg: var(--gold-600); }
.btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--gray-300); box-shadow: none; }
.btn--ghost:hover { background: var(--navy-50); border-color: var(--navy-400); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-900); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- 6. Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--gray-200);
  box-shadow: var(--sh-sm);
}
.topbar {
  background: var(--navy-800); color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem; padding: 0.4rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-400); }
.topbar-info { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info .icon { width: 14px; height: 14px; opacity: 0.9; }
.topbar .lang-switch { display: flex; gap: 4px; }
.topbar .lang-switch button {
  color: rgba(255,255,255,0.7); font-weight: 700; font-size: 0.78rem; padding: 2px 8px;
  border-radius: var(--r-full); transition: all var(--dur) var(--ease);
}
.topbar .lang-switch button.active { background: var(--gold-500); color: var(--navy-900); }

.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
}
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand-logo { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--navy-800); letter-spacing: -0.01em; }
[lang="th"] .brand-name { font-family: var(--font-thai); }
.brand-sub { font-size: 0.66rem; color: var(--gray-500); letter-spacing: 0.06em; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 0; }
.nav-menu a {
  padding: 0.55rem 0.8rem; border-radius: var(--r-full);
  font-size: 0.9rem; font-weight: 500; color: var(--gray-700);
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--navy-700); background: var(--navy-50); }
/* The CTA inside the menu only shows in the mobile drawer */
.nav-menu .nav-menu-cta { display: none; }
.nav-menu .nav-menu-cta .btn { margin-left: 0.4rem; }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center; border-radius: var(--r-sm);
}
.nav-toggle:hover { background: var(--navy-50); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy-800);
  position: relative; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
body.menu-open .nav-toggle .bars { background: transparent; }
body.menu-open .nav-toggle .bars::before { transform: rotate(45deg); top: 0; }
body.menu-open .nav-toggle .bars::after { transform: rotate(-45deg); top: 0; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  padding-top: calc(var(--header-h) + 1rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(120deg, rgba(6, 26, 48, 0.92) 0%, rgba(10, 37, 64, 0.78) 45%, rgba(14, 48, 87, 0.55) 100%),
    url("../img/hero/hero-fallback.jpg") center/cover no-repeat;
  will-change: transform;
  transform: translate3d(0, var(--hero-shift, 0), 0);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 50%; z-index: 1;
  background: linear-gradient(to top, rgba(6, 26, 48, 0.85), transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-block: var(--space-9) var(--space-8); }
.hero-grid { max-width: 880px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.5rem 1rem; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: var(--space-5); backdrop-filter: blur(6px);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.25); }
.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero h1 .accent { color: var(--gold-400); }
.hero-subtitle { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, 0.9); max-width: 660px; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
  padding: var(--space-5) var(--space-4);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-lg); backdrop-filter: blur(10px); max-width: 880px;
}
.hero-stat .num { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--gold-400); line-height: 1.1; }
.hero-stat .lbl { font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); margin-top: 4px; white-space: nowrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.scroll-cue .mouse {
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.5); border-radius: 12px; position: relative;
}
.scroll-cue .mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px;
  background: #fff; border-radius: 2px; transform: translateX(-50%);
  animation: scrollDot 1.6s var(--ease) infinite;
}
@keyframes scrollDot { 0%, 100% { opacity: 0; top: 6px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } }

/* ---------- 8. About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-text p { margin-bottom: var(--space-4); }
.about-badges { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.about-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.55rem 1rem; background: var(--navy-50); border: 1px solid var(--navy-100);
  border-radius: var(--r-full); font-size: 0.86rem; font-weight: 600; color: var(--navy-700);
}
.about-badge .icon { width: 16px; height: 16px; color: var(--gold-600); }

.about-cards { display: grid; gap: var(--space-4); }
.about-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: var(--space-5); box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.about-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.about-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-500); }
.about-card .ic { width: 38px; height: 38px; color: var(--gold-600); margin-bottom: var(--space-3); }
.about-card h4 { margin-bottom: 6px; }
.about-card p { font-size: 0.92rem; color: var(--c-text-muted); margin: 0; }

/* ---------- 9. Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.service-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: var(--space-6); box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-600), var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: var(--space-4);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.service-card p { font-size: 0.94rem; color: var(--c-text-muted); margin: 0; }

/* ---------- 10. Projects ---------- */
.projects-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-6); }
.filter-btn {
  padding: 0.55rem 1.2rem; border-radius: var(--r-full); font-size: 0.88rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-600);
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--navy-400); color: var(--navy-700); }
.filter-btn.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.project-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.project-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--navy-100); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-thumb-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); color: rgba(255,255,255,0.85);
}
.project-status {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 0.3rem 0.7rem; border-radius: var(--r-full); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; backdrop-filter: blur(6px);
}
.project-status.completed { background: rgba(47, 143, 95, 0.92); color: #fff; }
.project-status.ongoing { background: rgba(201, 162, 75, 0.92); color: var(--navy-900); }
.project-count {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  padding: 0.3rem 0.7rem; border-radius: var(--r-full); font-size: 0.74rem; font-weight: 600;
  background: rgba(6, 26, 48, 0.78); color: #fff; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; line-height: 1;
}
.project-count .icon { width: 13px; height: 13px; flex-shrink: 0; }
.project-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.08rem; margin-bottom: var(--space-2); line-height: 1.3; }
.project-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 0.84rem; color: var(--c-text-muted); margin-bottom: var(--space-3); }
.project-meta span { display: inline-flex; align-items: center; gap: 5px; }
.project-meta .icon { width: 14px; height: 14px; color: var(--gold-600); }
.project-desc { font-size: 0.9rem; color: var(--c-text-muted); margin-bottom: var(--space-4); flex: 1; }
.project-open {
  align-self: flex-start; font-size: 0.88rem; font-weight: 700; color: var(--navy-700);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.project-open:hover { color: var(--gold-600); gap: 10px; }

/* ---------- 11. Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5);
  position: relative;
}
.process-step {
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--space-4);
}
.process-step .num {
  width: 64px; height: 64px; margin: 0 0 var(--space-4); border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  position: relative; box-shadow: var(--sh-md); flex-shrink: 0;
}
.process-step .num::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px dashed var(--gold-400); opacity: 0.5;
}
.process-step .step-body { width: 100%; }
.process-step h4 { margin-bottom: var(--space-2); font-size: 1.02rem; }
.process-step p { font-size: 0.86rem; color: rgba(255,255,255,0.72); margin: 0; }
.section--dark .process-step .num { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

/* connector line behind the numbers */
.process-line {
  position: absolute; top: 46px; left: 14%; right: 14%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 15%, var(--gold-500) 85%, transparent);
  z-index: 0; opacity: 0.35; pointer-events: none;
}

/* ---------- 12. Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-bottom: var(--space-7); }
.trust-card { text-align: center; padding: var(--space-5); }
.trust-card .ic { width: 48px; height: 48px; color: var(--gold-600); margin: 0 auto var(--space-3); }
.trust-card h4 { margin-bottom: var(--space-2); font-size: 1rem; }
.trust-card p { font-size: 0.88rem; color: var(--c-text-muted); }

.company-card {
  background: var(--navy-800); color: #fff; border-radius: var(--r-lg); padding: var(--space-6);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5);
}
.company-card .item .lbl { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 6px; }
.company-card .item .val { font-weight: 700; font-size: 1.02rem; }

/* ---------- 13. FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md);
  overflow: hidden; transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq-item.open { box-shadow: var(--sh-md); border-color: var(--navy-300); }
.faq-q {
  width: 100%; text-align: left; padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  font-weight: 600; font-size: 1rem; color: var(--c-heading);
}
.faq-q .toggle { width: 24px; height: 24px; flex-shrink: 0; color: var(--gold-600); transition: transform var(--dur) var(--ease); }
.faq-item.open .faq-q .toggle { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq-a-inner { padding: 0 var(--space-5) var(--space-5); color: var(--c-text-muted); }

/* ---------- 14. CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  border-radius: var(--r-xl); padding: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-5); align-items: center;
  color: #fff;
}
.cta-banner::before {
  content: ""; position: absolute; inset: -50% -10% auto auto; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(201,162,75,0.35), transparent 70%); pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.cta-actions { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-end; position: relative; z-index: 1; }

/* ---------- 15. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-info {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: var(--space-6); box-shadow: var(--sh-md);
  min-width: 0;
}
.contact-info-list { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-item .ic {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-md);
  background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-600);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ic .icon { width: 22px; height: 22px; }
.contact-item .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-text-muted); margin-bottom: 4px; }
.contact-item .val { font-weight: 600; color: var(--c-heading); }
.contact-item a.val:hover { color: var(--gold-600); }
.contact-item .val-list { display: flex; flex-direction: column; gap: 2px; }

.map-embed { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--gray-200); min-height: 360px; min-width: 0; }
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.map-embed-link {
  position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.55rem 1rem; border-radius: var(--r-full); font-size: 0.82rem; font-weight: 700;
  background: var(--white); color: var(--navy-700); box-shadow: var(--sh-md);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.map-embed-link:hover { background: var(--gold-500); color: var(--navy-900); }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.7); padding-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3rem); padding-bottom: var(--space-7); }
.footer-brand .brand { margin-bottom: var(--space-4); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,0.5); }
.footer-tagline { font-size: 0.9rem; line-height: 1.7; margin-bottom: var(--space-4); max-width: 320px; }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-2px); }
.footer-social .icon { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a, .footer-col li { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--gold-400); }
.footer-col .ic-row { display: flex; gap: 8px; align-items: flex-start; }
.footer-col .ic-row .icon { width: 16px; height: 16px; color: var(--gold-400); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-block: var(--space-5);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}

/* ---------- 17. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(6, 16, 30, 0.94); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: var(--space-5);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-stage { position: relative; max-width: 1100px; width: 100%; }
.lightbox-stage img { max-width: 100%; max-height: 84vh; margin-inline: auto; border-radius: var(--r-md); box-shadow: var(--sh-xl); }
.lightbox-caption { text-align: center; color: rgba(255,255,255,0.85); margin-top: var(--space-3); font-size: 0.9rem; }
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease); backdrop-filter: blur(6px);
}
.lightbox-btn:hover { background: rgba(201,162,75,0.9); color: var(--navy-900); }
.lightbox-btn .icon { width: 26px; height: 26px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: background var(--dur) var(--ease);
}
.lightbox-close:hover { background: var(--red); }
.lightbox-counter { position: absolute; top: 26px; left: 26px; color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 600; }

/* ---------- 18. Reveal animations ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }

/* ---------- 19. Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-lg); opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: all var(--dur) var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--gold-500); color: var(--navy-900); }
.to-top .icon { width: 22px; height: 22px; }

/* ---------- 20. Loading state ---------- */
.app-loading { opacity: 0; transition: opacity 0.4s var(--ease); }
body.loaded .app-loading, body.loaded > * { opacity: 1; }
body:not(.loaded) [data-i18n] { visibility: hidden; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .company-card { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
  .process-step .num { width: 54px; height: 54px; font-size: 1.2rem; }
  .process-step h4 { font-size: 0.94rem; }
  .process-step p { font-size: 0.8rem; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: var(--space-4) var(--space-5) var(--space-7);
    box-shadow: var(--sh-lg); border-bottom: 1px solid var(--gray-200);
    transform: translateY(-130%); transition: transform 0.45s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  body.menu-open .nav-menu { transform: translateY(0); }
  .nav-menu a { padding: 0.9rem 1rem; border-radius: var(--r-md); font-size: 1rem; border-bottom: 1px solid var(--gray-100); }
  .nav-menu a:hover { background: var(--navy-50); }
  /* In the mobile drawer, show the CTA and hide the separate desktop button */
  .nav-menu .nav-menu-cta { display: block; margin-top: 0.5rem; border-bottom: 0; }
  .nav-menu .nav-menu-cta .btn { display: inline-flex; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .nav-actions .nav-toggle { display: inline-flex; }

  .topbar-info span:nth-child(3) { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: var(--space-6); }
  .cta-actions { align-items: stretch; }
  .process-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .process-line { display: none; }
  .process-step {
    text-align: left; padding: var(--space-4);
    display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: center;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-md);
  }
  .process-step .num { margin: 0; width: 48px; height: 48px; font-size: 1.1rem; }
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
  .services-grid, .projects-grid, .trust-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); padding: var(--space-4); }
  .hero-actions .btn { width: 100%; }
  .company-card { grid-template-columns: 1fr 1fr; padding: var(--space-5); }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .topbar { font-size: 0.74rem; }
  .topbar-info { gap: var(--space-3); }
  .topbar-info span:nth-child(2) { display: none; }
  .lightbox-btn { width: 42px; height: 42px; }
  .lightbox-btn .icon { width: 20px; height: 20px; }
}

/* ==========================================================================
   ACCESSIBILITY — reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero::before { transform: none !important; }
}

/* Print */
@media print {
  .site-header, .to-top, .lightbox, .scroll-cue, .hero-actions, .nav-actions { display: none !important; }
  .hero { min-height: auto; color: #000; }
  .hero::before { background: #fff !important; }
  body { color: #000; }
}

/* ==========================================================================
   22. DESIGN POLISH — world-class micro refinements
   Adds depth, type rhythm, and surface texture without breaking layout
   ========================================================================== */

/* — Body text refinement: looser, more readable line-height for Thai — */
body { line-height: 1.75; }
p { margin-bottom: 1.1rem; }

/* — Headings: tighter letter-spacing, refined display feel — */
h1, h2, h3, h4 { letter-spacing: -0.02em; }
h2 { line-height: 1.22; }

/* — Section rhythm: alternate subtle texture for depth — */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--alt {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(14, 48, 87, 0.04), transparent 60%),
    var(--navy-50);
}
.section--dark {
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(201, 162, 75, 0.10), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
}

/* — Section head: more breathing room, refined eyebrow — */
.section-head { max-width: 740px; }
.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.18em;
  padding-left: 4px;
}
.eyebrow::before { width: 24px; height: 2px; }

/* — Hero: tighter, more confident typography — */
.hero-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.06em;
  background: rgba(255,255,255,0.08);
}
.hero h1 { letter-spacing: -0.02em; }
.hero-subtitle { line-height: 1.6; max-width: 640px; }
.hero-stats { gap: var(--space-3); padding: var(--space-5) var(--space-5); }
.hero-stat .num { letter-spacing: -0.02em; }
.hero-stat .lbl { letter-spacing: 0.02em; opacity: 0.85; }

/* — Buttons: refined weight + letter-spacing — */
.btn {
  letter-spacing: 0.01em; font-weight: 600;
  border-radius: var(--r-full);
}
.btn--primary { font-weight: 700; }

/* — Header: subtle bottom gradient line when scrolled — */
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(10,37,64,0.06), 0 8px 30px -12px rgba(10,37,64,0.12);
}
.brand-name { letter-spacing: -0.015em; }

/* — About cards: refined depth + left accent bar — */
.about-card {
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(10,37,64,0.04), 0 12px 32px -16px rgba(10,37,64,0.12);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.about-card::before { width: 3px; background: linear-gradient(180deg, var(--gold-500), var(--navy-600)); }
.about-card h4 { letter-spacing: -0.01em; }

/* — Service cards: refined hover lift + accent bar — */
.service-card {
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(10,37,64,0.04), 0 8px 24px -14px rgba(10,37,64,0.10);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(10,37,64,0.06), 0 30px 50px -22px rgba(10,37,64,0.22); }
.service-card h3 { letter-spacing: -0.015em; }
.service-icon {
  box-shadow: 0 8px 20px -10px rgba(14,48,87,0.6);
}

/* — Project cards: refined thumb zoom + meta legibility — */
.project-card {
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(10,37,64,0.04), 0 8px 24px -16px rgba(10,37,64,0.10);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(10,37,64,0.06), 0 30px 50px -22px rgba(10,37,64,0.22); }
.project-thumb { background: linear-gradient(135deg, var(--navy-100), var(--navy-50)); }
.project-body h3 { letter-spacing: -0.015em; }
.project-meta { letter-spacing: 0.01em; }

/* — Process: refined number ring + step body rhythm — */
.process-step .num { letter-spacing: -0.02em; }
.process-step .step-body h4 { letter-spacing: -0.01em; }

/* — Trust cards + company card: refined depth — */
.trust-card .ic { filter: drop-shadow(0 6px 14px rgba(184,144,47,0.25)); }
.company-card {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(201,162,75,0.10), transparent 55%),
    linear-gradient(135deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 30px 60px -30px rgba(6,26,48,0.4);
  border: 1px solid rgba(201,162,75,0.12);
}
.company-card .item .lbl { letter-spacing: 0.12em; }

/* — FAQ: refined accordion — */
.faq-item { border-radius: var(--r-md); transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.faq-item:hover { border-color: var(--navy-200, #d7e3f0); }
.faq-item.open { box-shadow: 0 14px 40px -20px rgba(10,37,64,0.18); }
.faq-q { letter-spacing: -0.005em; }

/* — CTA banner: refined radial glow + gradient border feel — */
.cta-banner {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(201,162,75,0.22), transparent 55%),
    linear-gradient(120deg, var(--navy-800) 0%, var(--navy-700) 100%);
  box-shadow: 0 30px 60px -30px rgba(6,26,48,0.45);
  border: 1px solid rgba(201,162,75,0.15);
}
.cta-banner h2 { letter-spacing: -0.02em; }

/* — Footer: refined top divider + link hover — */
.site-footer {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(201,162,75,0.06), transparent 60%),
    var(--navy-900);
}
.footer-bottom { border-top: 1px solid rgba(201,162,75,0.10); }

/* — Filter buttons: refined — */
.filter-btn { letter-spacing: 0.01em; transition: all 0.3s var(--ease); }
.filter-btn.active { box-shadow: 0 8px 20px -10px rgba(10,37,64,0.5); }

/* — Lightbox: refined backdrop — */
.lightbox { background: rgba(4,12,24,0.96); }

/* — Reduce motion: keep depth but disable transforms — */
@media (prefers-reduced-motion: reduce) {
  .about-card:hover, .service-card:hover, .project-card:hover { transform: none; }
}
