/* ============================================================
   Issara Capital — Complete Stylesheet
   Modern / Sleek  |  Light Mode Only  |  EN/TH Bilingual
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Noto+Sans+Thai:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Light Palette */
  --bg:           #f9f8f6;
  --bg-alt:       #f0ede7;
  --surface:      #ffffff;
  --surface-2:    #faf9f7;
  --border:       rgba(0,0,0,0.08);
  --border-strong:rgba(0,0,0,0.14);

  --text:         #0e0e0c;
  --text-2:       #3a3832;
  --text-muted:   #7a7770;
  --text-subtle:  #aba89f;

  --gold:         #2d2d2d;   /* dark graphite */
--gold-light:     #8b8b8b;   /* muted gray */
--gold-faint:     #efefef;   /* subtle background */

  --accent:       #2d2d2d;          /* deep teal-forest for dark panels */
  --accent-hover: #444444;
  --accent-text:  #ffffff;

  --header-bg:    rgba(249,248,246,0.88);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.12);

  /* Typography */
  --font-display: 'Playfair Display', 'Noto Sans Thai', Georgia, serif;
  --font-body:    'DM Sans', 'Noto Sans Thai', system-ui, sans-serif;

  /* Spacing & Geometry */
  --max-width:    1280px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --transition:   0.28s cubic-bezier(0.4,0,0.2,1);
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* Thai font switch */
body.lang-th,
body.lang-th p,
body.lang-th li,
body.lang-th span:not(.en-inline),
body.lang-th a {
  font-family: 'Noto Sans Thai', 'DM Sans', sans-serif;
  line-height: 1.4;
  letter-spacing: 0;
  word-break: break-word;
}

body.lang-th h1,
body.lang-th h2,
body.lang-th h3,
body.lang-th h4 {
  font-family: 'Noto Sans Thai', sans-serif;
  letter-spacing: 0;
  line-height: 1;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; transition: color var(--transition); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

p { margin-bottom: 1.1rem; color: var(--text-2); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section      { padding: 120px 0; }
.section-sm   { padding: 72px 0; }
.section-lg   { padding: 160px 0; }

/* ---- Alternating section backgrounds ---- */
.bg-surface   { background: var(--surface); }
.bg-alt       { background: var(--bg-alt); }
.bg-dark      { background: var(--accent); }
.bg-navy      { background: #242424; }  /* always-dark teal panel */

/* Teal band (replacing gold band) */
.bg-gold {
  background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 50%, #1f1f1f 100%);
}
.bg-gold .chip,
.bg-gold .headline,
.bg-gold h2,
.bg-gold h3,
.bg-gold p,
.bg-gold .lead { color: #fff; }
.bg-gold .chip { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.4); }
.bg-gold .chip::after { color: rgba(255,255,255,0.5); }
.bg-gold .rule::before,
.bg-gold .rule::after { background: rgba(255,255,255,0.7); }

/* Dark navy band — always dark regardless of theme */
.bg-navy .chip,
.bg-navy .headline,
.bg-navy h2,
.bg-navy h3,
.bg-navy .lead,
.bg-navy p { color: #ffffff; }
.bg-navy .chip { color: #8b8b8b; }
.bg-navy .chip::before { display: none; }
.bg-navy .chip::after { color: #8b8b8b; }
.bg-navy .text-muted,
.bg-navy .lead { color: rgba(255,255,255,0.82); }
.bg-navy .feature-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }
.bg-navy .feature-card:hover { background: rgba(255,255,255,0.09); }
.bg-navy .feature-num { color: #ffffff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.bg-navy .feature-num svg { stroke: #ffffff; }
.bg-navy .feature-card h3 { color: #ffffff; }
.bg-navy .feature-card p  { color: rgba(255,255,255,0.78); }
.bg-navy .stat-block { border-right-color: rgba(255,255,255,0.18); }
.bg-navy .stat-label { color: #ffffff; }
.bg-navy .stat-num   { color: #ffffff; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem;
  border: 1px solid currentColor;
  border-radius: 100px;
  width: fit-content;
}
.chip::before { display: none; }
.chip::after {
  content: '◈';
  font-size: 0.55rem;
  opacity: 0.7;
  flex-shrink: 0;
}
body.lang-th .chip {
  font-family: 'Noto Sans Thai', sans-serif;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.8rem;
}

.headline {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
}

.rule {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 48px;
  margin: 1.5rem 0;
}
.rule::before,
.rule::after {
  content: '';
  display: block;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
}
.rule::after { width: 60%; opacity: 0.4; }

.tc { text-align: center; }
.tc .lead, .tc .rule,
.lead.tc, .rule.tc { margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
body.lang-th .btn { font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0; font-size: 0.92rem; }

.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover { background: #1f1f1f; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(45,45,45,0.35); }

.btn-outline {
  background: transparent;
  border: 1.5px solid currentColor;
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-dark:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  padding: 0.55rem 1.2rem;
  font-size: 0.73rem;
  border-radius: 100px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   HEADER — logo left · nav spread-center · controls right
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 130px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

/* Logo — left, fixed width so nav truly centres */
.site-logo {
  display: flex; align-items: center;
  flex: 0 0 180px;
}
.site-logo img { height: 130px; width: auto; }

/* Nav — takes all remaining space, links spread evenly across it */
.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;   /* ← key: evenly space all links */
  list-style: none;
  padding: 0 2rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  height: 84px;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.login-button-mobile { display: none !important; }

/* Animated gold underline that grows from centre */
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  border-radius: 1px;
}
.main-nav a:hover,
.main-nav a.active { color: var(--text); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

body.lang-th .main-nav a {
  font-family: 'Noto Sans Thai', sans-serif;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 0.92rem;
}

/* ---- Nav Submenu ---- */
.nav-item { position: relative; }
.nav-item > a .nav-chevron {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
  transition: transform var(--transition);
}
.nav-item.open > a .nav-chevron,
.nav-item:focus-within > a .nav-chevron {
  transform: rotate(-135deg) translateY(0);
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  z-index: 9000;
  overflow: hidden;
  padding: 0.5rem 0;
}
.nav-item.open .nav-submenu,
.nav-item:focus-within .nav-submenu { display: block; }

.nav-submenu a {
  display: flex; align-items: center; gap: 10px;
  height: auto !important;
  padding: 0.7rem 1.25rem !important;
  font-size: 0.78rem !important;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}
.nav-submenu a:last-child { border-bottom: none; }
.nav-submenu a:hover { background: var(--bg-alt); color: var(--gold); }
.nav-submenu a::after { display: none !important; }
.nav-submenu a .sub-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--gold-light);
  min-width: 18px;
  font-weight: 500;
}
body.lang-th .nav-submenu a {
  font-family: 'Noto Sans Thai', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.88rem !important;
}

/* Right side controls — fixed width mirrors logo column */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 180px;
  justify-content: flex-end;
}

/* ---- Language Flag Dropdown ---- */
.lang-dropdown {
  position: relative;
}
.lang-dropdown-btn {
  display: flex; align-items: center; gap: 6px;
  background: none;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 10px 5px 8px;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
}
.lang-dropdown-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-dropdown-btn .flag { font-size: 1.1rem; line-height: 1; }
.lang-dropdown-btn .lang-label { font-size: 0.68rem; }
.lang-dropdown-btn .chevron {
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.lang-dropdown.open .lang-dropdown-btn .chevron {
  transform: rotate(-135deg) translateY(-2px);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 148px;
  overflow: hidden;
  z-index: 9999;
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }

.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  border: none; background: none; width: 100%; text-align: left;
  font-family: var(--font-body);
}
.lang-option:hover { background: var(--bg-alt); color: var(--text); }
.lang-option.active { color: var(--gold); font-weight: 500; }
.lang-option .flag { font-size: 1.25rem; }
.lang-option .lang-name { flex: 1; }
.lang-option .lang-native { font-size: 0.75rem; color: var(--text-subtle); }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; color: var(--text);
  flex-direction: column; gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: currentColor;
  transition: all var(--transition);
  transform-origin: center;
}
/* Hamburger → X when the menu is open */
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Lock background scroll while the mobile menu is open */
body.nav-locked { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* min-height: 100svh; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  position: relative;
}

.hero-left {
  padding: 80px 3rem 80px 2.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.hero-right {
  position: relative;
  height: 100%;
  /* min-height: 100svh; */
  overflow: hidden;
}
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.82);
}
.hero-right::before {
  /* content: ''; */
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 15%);
  z-index: 1;
  pointer-events: none;
}
.hero-right::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; align-items: center; }

.hero-tagline {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-family: var(--font-body);
}
body.lang-th .hero-tagline { font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0.04em; text-transform: none; }

/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.marquee-bar {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  padding: 1rem 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-body);
}
.marquee-item::after { content: '·'; color: var(--gold); font-size: 1.2em; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-block {
  padding: 4rem 3rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-block:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}
body.lang-th .stat-label { font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0.03em; text-transform: none; font-size: 0.88rem; }

/* ============================================================
   SECTION INTRO (wide centered block)
   ============================================================ */
.section-intro {
  max-width: 700px;
  margin: 0 auto 5rem;
  text-align: center;
}
/* Centre the fit-content children (chip, lead, rule) within a centered intro */
.section-intro .chip,
.section-intro .lead,
.section-intro .rule {
  margin-left: auto;
  margin-right: auto;
}
/* Same fix for the centered CTA band */
.cta-section .chip {
  margin-left: auto;
  margin-right: auto;
}
.section-intro .chip,
.cta-section .chip { display: flex; }  /* block-level flex so auto margins centre it */

/* Closing tagline beneath the pillars grid */
.pillars-closer {
  max-width: 680px;
  margin: 3.5rem auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.0rem;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.6;
}
.pillars-closer em { color: var(--gold); font-style: italic; }
body.lang-th .pillars-closer { font-family: 'Noto Sans Thai', sans-serif; font-size: 1.05rem; }

/* ============================================================
   FEATURE CARDS  (3-col)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 4rem;
}

.feature-card {
  background: var(--surface);
  padding: 2.75rem 2.5rem;
  transition: background var(--transition);
  position: relative;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 2.5rem; right: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { background: var(--surface-2); }

.feature-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gold-faint);
  border: 1.5px solid var(--gold-light);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}
.feature-num svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.875rem; }
.feature-card p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ============================================================
   SPLIT SECTION (image + text side by side)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-image {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.split:hover .split-image img { transform: scale(1.03); }

.split-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent)33 0%, transparent 60%);
}

.split-body {
  background: var(--surface);
  padding: 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-body .headline { font-size: clamp(1.8rem, 3vw, 2.6rem); }

.check-list { list-style: none; margin-top: 1.75rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: var(--gold-faint);
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2d2d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   SERVICES DETAIL ROWS — full-width, generous breathing room
   ============================================================ */
.services-stack { display: flex; flex-direction: column; }

.service-row {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 0;
  min-height: 520px;         /* ensures tall image + comfortable text */
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row.rev { grid-template-columns: 54% 46%; }
.service-row.rev .service-row-image { order: 2; }
.service-row.rev .service-row-body  { order: 1; }

.service-row-image {
  position: relative;
  overflow: hidden;
  max-height: 700px;
}
.service-row-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s cubic-bezier(0.4,0,0.2,1);
}
.service-row:hover .service-row-image img { transform: scale(1.05); }

/* Subtle dark overlay on image for polish */
.service-row-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}
.service-row.rev .service-row-image::after {
  background: linear-gradient(to left, transparent 60%, var(--bg) 100%);
}

.service-row-body {
  padding: 5rem 5.5rem;   /* generous horizontal + vertical space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  background: var(--bg);
}

/* Alternate body bg for visual rhythm */
.service-row:nth-child(even) .service-row-body { background: var(--surface); }

.service-row-body .chip { margin-bottom: 0.875rem; }
.service-row-body h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.service-row-body p  {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.85;
  max-width: 540px;
}
.service-row-body .rule { margin: 1.25rem 0; }

/* Service index number — large decorative numeral */
.service-index {
  display: none;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 0.3rem 0.8rem; border-radius: 100px;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.tag:hover { border-color: var(--gold); color: var(--gold); }
body.lang-th .tag { font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0; text-transform: none; font-size: 0.8rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 80vh;
}

.contact-left {
  position: relative;
  overflow: hidden;
}
.contact-left img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.contact-left-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #24242488 0%, #242424ee 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 3.5rem;
}
.contact-left-overlay h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff;
  margin-bottom: 0.75rem;
}
.contact-left-overlay p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 2rem; }

.contact-detail-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-detail-row:first-of-type { border-top: none; }
.contact-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid rgba(201,168,92,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 16px; height: 16px; color: var(--gold-light); }
.contact-detail-text { color: rgba(255,255,255,0.85); font-size: 0.88rem; }
.contact-detail-text strong { display: block; color: #fff; font-weight: 500; margin-bottom: 0.15rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-body); }

.contact-right {
  background: var(--surface);
  padding: 5rem 4rem;
  display: flex; flex-direction: column; justify-content: center;
}

/* Form styles */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); font-family: var(--font-body);
}
body.lang-th .form-group label { font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0; text-transform: none; font-size: 0.85rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
body.lang-th .form-group input,
body.lang-th .form-group textarea { font-family: 'Noto Sans Thai', sans-serif; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-faint);
}
.form-group textarea { min-height: 130px; resize: vertical; }

.form-honeypot { display: none !important; }

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  display: none;
}
.form-message.success { background: #f0faf4; border: 1px solid #a3d9b1; color: #1e5e35; }
.form-message.error   { background: #fdf0f0; border: 1px solid #dfa3a3; color: #6e2020; }

.form-notice { font-size: 0.77rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.6; }
.form-notice a { color: var(--gold); }
.form-notice a:hover { text-decoration: underline; }

/* ============================================================
   CTA FULLWIDTH
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: #242424;   /* match bg-navy so adjacent dark panels read as one block */
  padding: 100px 0;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto 2.5rem; font-size: 1rem; }
.cta-section .btn-primary { background: var(--gold); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  min-height: 40vh;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
}

.page-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #24242400 0%, #242424ee 100%);
}

.page-hero-content {
  position: relative; z-index: 1; padding: 5rem 0; text-align: center;
}
.page-hero-content .chip { color: var(--gold); }
.page-hero-content h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-hero-content p  { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 560px; margin:0.75rem auto }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand img  { height: 150px; margin-bottom: 1.5rem; }
.footer-brand p    { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; max-width: 280px; }
.footer-brand .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  margin-top: 1rem;
  display: block;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
}
body.lang-th .footer-col h5 { font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0.04em; text-transform: none; }

.footer-col ul      { list-style: none; }
.footer-col ul li   { margin-bottom: 0.7rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.75rem 0;
}
.footer-copy { font-size: 0.8rem; color: var(--text-subtle); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: 0.8rem; color: var(--text-subtle); transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   PROSE (legal pages)
   ============================================================ */
.prose-wrap { padding: 80px 20px; }
.prose {
  max-width: 780px;
  margin: 0 auto;
}
.prose h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.prose h2 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 2.5rem 0 0.75rem;
}
body.lang-th .prose h2 { font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0; text-transform: none; }
.prose p, .prose li  { font-size: 0.95rem; color: var(--text-muted); line-height: 1.85; }
.prose ul, .prose ol { margin-left: 1.5rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--gold); text-decoration: underline; text-decoration-color: transparent; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose .last-updated { font-size: 0.75rem; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2rem; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
body.lang-th .prose p, body.lang-th .prose li { font-family: 'Noto Sans Thai', sans-serif; }

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  width: 100%; max-width: 400px;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-lg);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg-alt); border: none; cursor: pointer;
  color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text); background: var(--border); }

.modal-logo { height: 80px; margin: 0px auto 1.75rem; display: block; }
.modal h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.modal-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }

.modal-notice {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--gold-faint);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
}

/* ============================================================
   LANG VISIBILITY
   ============================================================ */
.en-content, .th-content { display: none; }
body.lang-en .en-content { display: block; }
body.lang-en .en-inline  { display: inline; }
body.lang-th .th-content { display: block; }
body.lang-th .th-inline  { display: inline; }
.en-inline, .th-inline   { display: none; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { max-width: 100%; padding: 100px 2.5rem 60px; margin: 0; }
  .hero-right { min-height: 55vw; }

  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .split-image { min-height: 340px; }

  .service-row { grid-template-columns: 1fr; }
  .service-row.rev { grid-template-columns: 1fr; }
  /* On mobile the image must always come before the text, even for reversed rows */
  .service-row.rev .service-row-image { order: 0; }
  .service-row.rev .service-row-body  { order: 1; }
  .service-row-body { padding: 3rem 2.5rem; }

  .contact-split { grid-template-columns: 1fr; }
  .contact-left { min-height: 360px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --max-width: 100%; }
  .container { padding: 0 1.5rem; }
  .section { padding: 72px 0; }
  .hero-right {display: none}
  .header-inner { padding: 0 1.5rem; justify-content: space-between; }
  .site-logo { flex: 0 0 auto; }
  .login-button-mobile { display: block !important; }
  .header-actions { flex: 0 0 auto; margin-left: auto; margin-right: 10px; }
  /* backdrop-filter makes the header a containing block for fixed children,
     which would trap the menu panel inside the 84px bar — disable it on mobile */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: fixed;
    top: 130px; left: 0; right: 0;
    height: calc(100dvh - 80px);      /* fill screen below the header */
    background: var(--bg);            /* fully opaque so page behind never shows through */
    z-index: 950;                     /* above the fixed header bar */
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;      /* pack links at the top, not spread down the screen */
    border-top: 1px solid var(--border);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .main-nav a {
    height: 65px;
  }
  .main-nav a::after {
    display: none;  /* no hover underline on mobile */
  }
  .main-nav.open a {
    width: 100%; padding: 1rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.05em;
  }
  /* Mobile: nav-item submenu inline + always expanded (no toggle) */
  .nav-item { display: contents; }
  .nav-item > a .nav-chevron { display: none; }   /* no toggle affordance on mobile */
  .nav-submenu,
  .nav-item.open .nav-submenu {
    display: flex; flex-direction: column;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 1.5rem;
    min-width: 0;
  }
  .nav-submenu a {
    font-size: 0.8rem !important;
    padding: 0.6rem 0 !important;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: none;
  }
  .nav-item > a { border-bottom: 1px solid var(--border); }
  .menu-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }

  .feature-grid { grid-template-columns: 1fr !important; }
  .stats-strip { grid-template-columns: 1fr !important; }
  .stat-block { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-block:last-child { border-bottom: none; }
  .bg-navy .stat-block { border-bottom-color: rgba(255,255,255,0.18); text-align:center;}
  .form-row { grid-template-columns: 1fr !important; }
  .footer-top { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-right { padding: 3rem 2rem; }
  .split-body { padding: 3rem 2rem; }
  .hero-left { padding: 100px 1.5rem 60px; background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 1)), url('../../assets/img/hero-main.jpg') }
}
