/* ================================================================
   Eksiam Corporate Law — style.css  v2
   Design: Playfair Display + Inter + Sarabun · Navy & Gold
   ================================================================ */

/* ── COLOR TOKENS ─────────────────────────────────────────── */
:root {
  --navy:    #0d1b3e;
  --navy2:   #162447;
  --navy3:   #1a2d5a;
  --gold:    #c9a84c;
  --gold2:   #e8c97a;
  --gold-dim: rgba(201,168,76,0.15);
  --light:   #f5f5f0;
  --white:   #ffffff;
  --gray:    #6b7280;
  --border:  #e2e4e9;
  --text:    #1a1a2e;
  --nav-h:   74px;
  --radius:  6px;
  --shadow:  0 12px 40px rgba(13,27,62,0.10);
  --transition: .25s ease;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Sarabun', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* Thai text: use Sarabun */
:lang(th), .th { font-family: 'Sarabun', 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.heading-xl {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
.heading-lg {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
.heading-md {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}
/* ── Gold accent for key words in headings ── */
.heading-xl .accent,
.heading-lg .accent { color: var(--gold); }
/* ── Section label above heading ── */
.section-label {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.subtext { font-size: 16px; color: var(--gray); line-height: 1.8; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.divider { width: 52px; height: 3px; background: var(--gold); margin: 18px 0 28px; border-radius: 2px; }
.divider-center { margin: 18px auto 28px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 3px;
  font-family: 'Inter', 'Sarabun', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-gold   { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-white  { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--light); transform: translateY(-2px); }
.btn-navy   { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-sm { padding: 10px 22px; font-size: 11px; }

/* ================================================================
   NAVBAR
   ================================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(13,27,62,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo { display: flex; flex-direction: row; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 21px; font-weight: 700;
  color: var(--white); letter-spacing: 0.3px;
}
.nav-logo .logo-main span { color: var(--gold); }
.nav-logo .logo-sub {
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.72); margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, var(--navy3) 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero::before {
  content: ''; position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 90px 0;
}
.hero-text .badge { color: var(--gold); }
.hero-text .heading-xl { color: var(--white); }
/* ── Hero heading: first part white, last part gold ── */
.hero-text .heading-xl span:first-child { color: var(--white); }
.hero-text .heading-xl span:last-child  { color: var(--gold); }
.hero-text .subtext { color: rgba(255,255,255,0.62); margin: 24px 0 38px; max-width: 500px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px;
  margin-top: 52px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 34px; font-weight: 700; color: var(--gold);
}
.stat-item .label {
  font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.48); margin-top: 4px;
}
/* Hero right card */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px; padding: 38px;
  backdrop-filter: blur(10px);
}
.hero-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px; color: var(--gold);
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.hero-service-list { display: flex; flex-direction: column; gap: 13px; }
.hero-service-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.78);
}
.hero-service-list li::before {
  content: '▸'; color: var(--gold); font-size: 11px; flex-shrink: 0;
}
/* Floating badge */
.hero-badge-float {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: var(--navy);
  padding: 18px 22px; border-radius: var(--radius);
  text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.hero-badge-float .big {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; line-height: 1;
}
.hero-badge-float .small {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-top: 5px;
}

/* ================================================================
   TRUST BAR
   ================================================================ */
.trust-bar {
  background: var(--light);
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex; align-items: center;
  justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--gray); letter-spacing: 0.3px;
}
.trust-item .icon {
  width: 30px; height: 30px;
  background: var(--navy); color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}

/* ================================================================
   PRACTICE AREAS (Services)
   ================================================================ */
.practice { background: var(--white); }
.practice-header { margin-bottom: 56px; }
.practice-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.practice-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: all .3s ease;
  position: relative; overflow: hidden;
}
.practice-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 4px; height: 0;
  background: var(--gold); transition: height .3s ease;
}
.practice-card:hover {
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 14px 44px rgba(13,27,62,0.09);
  transform: translateY(-4px);
}
.practice-card:hover::before { height: 100%; }
.practice-icon {
  width: 50px; height: 50px;
  background: rgba(13,27,62,0.06); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.practice-card h3 {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: 17px; font-weight: 600;
  color: var(--navy3); margin-bottom: 10px;
}
.practice-card p { font-size: 13.5px; color: #555770; line-height: 1.7; margin-bottom: 18px; }
.practice-link {
  font-size: 12px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition);
}
.practice-link:hover { gap: 10px; color: var(--navy); }

/* ================================================================
   WHY US  (dark navy bg)
   ================================================================ */
.why { background: var(--navy); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-text .badge { color: var(--gold); }
.why-text .heading-lg { color: var(--white); }
.why-text .subtext { color: rgba(255,255,255,0.58); margin: 18px 0 34px; }
.why-points { display: flex; flex-direction: column; gap: 20px; }
.why-point { display: flex; gap: 16px; align-items: flex-start; }
.why-point-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.why-point-text h4 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.why-point-text p { font-size: 13px; color: rgba(255,255,255,0.52); line-height: 1.6; }
/* Credential cards */
.cred-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cred-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 8px; padding: 26px 22px; text-align: center;
}
.cred-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 700; color: var(--gold);
}
.cred-card .desc {
  font-size: 12px; color: rgba(255,255,255,0.5);
  margin-top: 6px; line-height: 1.5; letter-spacing: 0.5px;
}
.cred-card.full { grid-column: 1 / -1; }

/* ================================================================
   PROCESS
   ================================================================ */
.process { background: var(--white); }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative; margin-top: 56px;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 31px; left: 12.5%; right: 12.5%; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold));
  z-index: 0;
}
.step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 0 20px; position: relative; z-index: 1;
}
.step-num {
  width: 62px; height: 62px;
  background: var(--navy); border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--gold);
  margin-bottom: 22px;
}
.step h4 {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px;
}
.step p { font-size: 13px; color: var(--gray); line-height: 1.65; }

/* ================================================================
   BLOG / ARTICLES
   ================================================================ */
.blog { background: var(--light); }
.blog-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 48px; flex-wrap: wrap; gap: 16px;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: var(--white); border-radius: 8px;
  overflow: hidden; border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(13,27,62,0.10);
}
.blog-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative;
}
.blog-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 2px;
}
.blog-pdf {
  position: absolute; top: 14px; right: 14px;
  background: rgba(13,27,62,0.7); color: var(--gold2);
  font-size: 10px; font-weight: 600;
  padding: 4px 10px; border-radius: 2px;
  letter-spacing: 0.5px;
}
.blog-body { padding: 26px 22px; flex: 1; display: flex; flex-direction: column; }
.blog-date {
  font-size: 11px; color: var(--gray);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
}
.blog-body h3 {
  font-family: 'Playfair Display', 'Sarabun', serif;
  font-size: 17px; font-weight: 600; color: var(--navy);
  line-height: 1.45; margin-bottom: 10px;
}
.blog-body p { font-size: 13.5px; color: var(--gray); line-height: 1.65; flex: 1; }
.blog-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}
.read-more { font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: 0.5px; }
.read-more:hover { color: var(--navy); }

/* Filter bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 7px 18px; border-radius: 2px;
  border: 1px solid var(--border);
  font-family: 'Inter','Sarabun',sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer;
  background: var(--white); color: var(--gray);
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
  padding: 88px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::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'%3E%3Cg fill='%23c9a84c' 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-banner h2 {
  font-family: 'Playfair Display','Sarabun',serif;
  font-size: clamp(28px, 4vw, 42px); color: var(--white); margin-bottom: 16px; position: relative;
}
.cta-banner h2 span { color: var(--gold); }
.cta-banner p {
  font-size: 16px; color: rgba(255,255,255,0.62);
  max-width: 540px; margin: 0 auto 38px; position: relative;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact { background: var(--light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; align-items: start; }
.contact-info .heading-lg { color: var(--navy); margin-bottom: 14px; }
.contact-info > .subtext { margin-bottom: 34px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.contact-detail .ic {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--navy); color: var(--gold);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.contact-detail .txt strong {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--navy); margin-bottom: 3px;
}
.contact-detail .txt span { font-size: 14px; color: var(--gray); }
/* Form */
.contact-form {
  background: var(--white); padding: 44px 40px;
  border-radius: 8px; border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(13,27,62,0.06);
}
.contact-form h3 {
  font-family: 'Playfair Display','Sarabun',serif;
  font-size: 22px; color: var(--navy); margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--border); border-radius: 4px;
  font-family: 'Inter','Sarabun',sans-serif; font-size: 14px; color: var(--navy);
  background: #fafafa; outline: none; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; padding: 16px;
  background: var(--navy); color: var(--white);
  border: 2px solid var(--navy); border-radius: 4px;
  font-family: 'Inter','Sarabun',sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  transition: all var(--transition);
}
.form-submit:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: calc(var(--nav-h) + 56px) 0 60px;
  text-align: center; position: relative;
}
.page-hero::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 16px; letter-spacing: 0.5px; }
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.page-hero .heading-xl { color: var(--white); margin-bottom: 12px; }
.page-hero .subtext { color: rgba(255,255,255,0.62); max-width: 540px; margin: 0 auto; }

/* ================================================================
   ARTICLE PAGE
   ================================================================ */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-content {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 48px;
}
.article-content .heading-lg { margin-bottom: 18px; color: var(--navy); }
.meta-bar {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--gray);
  letter-spacing: 0.5px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border); margin-bottom: 28px;
}
.meta-bar span { display: flex; align-items: center; gap: 5px; }
.article-content h2 {
  font-family: 'Playfair Display','Sarabun',serif;
  font-size: 22px; color: var(--navy); margin: 32px 0 12px;
}
.article-content h3 {
  font-family: 'Playfair Display','Sarabun',serif;
  font-size: 17px; color: var(--navy); margin: 22px 0 8px;
}
.article-content p { font-size: 15px; color: #3d3d5c; line-height: 1.85; margin-bottom: 14px; }
.article-content ul { margin: 0 0 16px 20px; }
.article-content ul li { font-size: 15px; color: #3d3d5c; line-height: 1.8; margin-bottom: 6px; list-style: disc; }
.article-content blockquote {
  border-left: 4px solid var(--gold); padding: 14px 22px;
  background: rgba(201,168,76,0.07); border-radius: 0 6px 6px 0; margin: 24px 0;
}
.article-content blockquote p { margin: 0; font-style: italic; font-size: 14.5px; }
/* Sidebar */
.article-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.sidebar-card h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--gray); margin-bottom: 16px;
}
.toc-list li { margin-bottom: 8px; }
.toc-list a { font-size: 13px; color: var(--navy2); transition: color var(--transition); }
.toc-list a:hover { color: var(--gold); }
.pdf-box {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  border-radius: 8px; padding: 26px 22px; text-align: center;
}
.pdf-box .pdf-icon { font-size: 2.5rem; margin-bottom: 10px; }
.pdf-box h4 {
  font-family: 'Playfair Display',serif;
  font-size: 16px; color: var(--white); margin-bottom: 6px;
}
.pdf-box p { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.sidebar-cta { background: var(--navy); border-radius: 8px; padding: 24px; }
.sidebar-cta h4 {
  font-family: 'Playfair Display',serif;
  font-size: 16px; color: var(--white); margin-bottom: 8px;
}
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.58); margin-bottom: 16px; }
.related-list li { margin-bottom: 8px; }
.related-list a { font-size: 13px; color: var(--navy2); display: flex; gap: 6px; align-items: flex-start; transition: color var(--transition); }
.related-list a::before { content: '▸'; color: var(--gold); font-size: 11px; margin-top: 3px; flex-shrink: 0; }
.related-list a:hover { color: var(--gold); }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--navy); color: rgba(255,255,255,0.58);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .logo-main {
  font-family: 'Playfair Display',serif;
  font-size: 20px; font-weight: 700; color: var(--white);
}
.footer-brand .logo-main span { color: var(--gold); }
.footer-brand p { font-size: 13.5px; line-height: 1.75; margin-top: 14px; max-width: 280px; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.52); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col .fc-item { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 10px; display: flex; gap: 8px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 12px; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }
.footer-tagline {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center;
  flex: 1;
}

/* Scroll-to-top */
.scroll-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 46px; height: 46px;
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 50%; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: transform var(--transition);
}
.scroll-top:hover { transform: translateY(-4px); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .practice-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 36px; }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .practice-grid, .blog-grid, .cred-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .contact-form { padding: 28px 20px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .trust-inner { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   LANGUAGE TOGGLE BUTTON
   ================================================================ */
.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(201,168,76,0.6);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  flex-shrink: 0;
}
.lang-toggle:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ================================================================
   MOBILE MENU — open state
   ================================================================ */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy);
  padding: 20px 24px 28px;
  gap: 0;
  border-top: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 998;
  animation: slideDown 0.2s ease;
}
.nav-links.mobile-open a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 14px;
  letter-spacing: 0.5px;
}
.nav-links.mobile-open a:last-child { border-bottom: none; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   ENHANCED RESPONSIVE — Tablet (≤ 900px) + Mobile (≤ 640px) + Small (≤ 420px)
   ================================================================ */

/* ─── TABLET (≤ 900px) ─────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }

  /* Navbar → hamburger mode at tablet */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .btn.btn-gold { display: none; }

  .nav-logo .logo-sub { display: none; }
  .nav-logo .logo-main { font-size: 18px; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-text { text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; gap: 32px; }

  .practice-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .cred-cards { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── MOBILE (≤ 640px) ─────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }

  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-logo .logo-main { font-size: 16px; }
  .lang-toggle { font-size: 10px; padding: 5px 10px; }
  .btn.btn-gold { display: none; } /* ซ่อน CTA ใน nav บน mobile เพื่อให้ space */

  /* Hero */
  .hero { padding: 80px 0 48px; }
  .heading-xl { font-size: clamp(28px, 7vw, 38px); }
  .heading-lg { font-size: clamp(22px, 6vw, 30px); }
  .hero-btns { flex-direction: column; align-items: center; gap: 12px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: row; gap: 20px; flex-wrap: wrap; justify-content: center; }
  .stat-item .num { font-size: 28px; }

  /* Grids → single column */
  .practice-grid,
  .blog-grid,
  .cred-cards,
  .process-steps,
  .why-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 16px; }

  /* Trust bar */
  .trust-inner { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .trust-item { font-size: 13px; }

  /* Hero stats */
  .hero-stats { gap: 16px; }

  /* Footer */
  .footer-grid { gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* FAQ */
  details { padding: 16px !important; }
  details summary { font-size: 14px !important; }

  /* Scroll top */
  .scroll-top { right: 16px; bottom: 16px; width: 40px; height: 40px; font-size: 16px; }
}

/* ─── SMALL MOBILE (≤ 420px) ────────────────────────────────── */
@media (max-width: 420px) {
  .container { padding: 0 12px; }
  .heading-xl { font-size: 26px; }
  .heading-lg { font-size: 20px; }
  .btn { padding: 12px 20px; font-size: 12px; }
  .nav-logo .logo-main { font-size: 14px; }
  .stat-item .num { font-size: 24px; }
  .cred-card .num { font-size: 32px; }
}

/* ─── SHOW nav CTA on desktop (≥ 901px) ──────────────────────── */
@media (min-width: 901px) {
  .btn.btn-gold { display: inline-flex; }
}

/* ─── ARTICLE layout fix on mobile ──────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; top: auto; }
}

/* ─── SERVICE DETAIL sections responsive fix ────────────────── */
@media (max-width: 900px) {
  .service-detail-grid {
    grid-template-columns: 1fr !important;
  }
  .service-detail-img {
    height: 200px !important;
    order: -1;
  }
}

/* ─── FOOTER TAGLINE mobile ──────────────────────────────────── */
@media (max-width: 640px) {
  .footer-tagline {
    width: 100%;
    order: 3;
    text-align: center;
    white-space: normal;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}
