/* ═══════════════════════════════════════════════════════════════
   Rocky Linux Thailand — style.css
   Palette:  White #FFFFFF | Off-white #F4FBF8 | Green #10B77E
             Deep Teal #0A7A56 | Charcoal #1C2B2B | Mid-grey #8BA8A0
   Fonts:    Outfit (display) · Source Code Pro (mono)
═══════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --green:        #10B77E;
  --green-deep:   #0A7A56;
  --green-pale:   #D4F5E9;
  --green-glow:   rgba(16, 183, 126, 0.10);
  --green-border: rgba(16, 183, 126, 0.22);
  --white:        #FFFFFF;
  --off-white:    #F4FBF8;
  --grey-light:   #E8F4F0;
  --grey-mid:     #8BA8A0;
  --charcoal:     #1C2B2B;
  --ink:          #2D3E3E;
  --shadow-sm:    0 2px 12px rgba(10,122,86,.08);
  --shadow-md:    0 8px 32px rgba(10,122,86,.12);
  --shadow-lg:    0 20px 60px rgba(10,122,86,.16);
  --r-sm:         8px;
  --r-md:         16px;
  --r-lg:         24px;
  --ease:         0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ───────────────────────────────────────────────────── */
html  { scroll-behavior: smooth; }
body  { font-family: 'Outfit', sans-serif; background: var(--white); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.15; color: var(--charcoal); }
h1  { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2  { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3  { font-size: 1.2rem; }
p   { color: var(--ink); font-size: 1rem; line-height: 1.75; }

code {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.83em;
  background: var(--green-glow);
  border: 1px solid var(--green-border);
  color: var(--green-deep);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container  { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }

/* ── Chip / badge label ─────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-pale);
  border: 1px solid var(--green-border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* ── Section header ─────────────────────────────────────────── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p  { color: var(--grey-mid); }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn-primary, .btn-ghost, .btn-white, .btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem;
  padding: 12px 24px; border-radius: var(--r-sm);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease), color var(--ease);
  cursor: pointer; border: none;
}
.btn-primary        { background: var(--green);  color: var(--white); }
.btn-primary:hover  { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,183,126,.35); }
.btn-ghost          { background: transparent; color: var(--green-deep); border: 2px solid var(--green-border); }
.btn-ghost:hover    { background: var(--green-pale); }
.btn-white          { background: var(--white); color: var(--green-deep); }
.btn-white:hover    { background: var(--green-pale); transform: translateY(-2px); }
.btn-outline-white  { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--green-border);
  transition: box-shadow var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; width: 100%; padding: 0 24px;
}

/* Logo */
.nav-logo        { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon   { width: 34px; height: 34px; background: var(--green); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.nav-logo-icon svg { width: 20px; height: 20px; }
.nav-logo-text   { font-weight: 800; font-size: 1rem; color: var(--charcoal); letter-spacing: -.3px; }
.nav-logo-text span { color: var(--green); }

/* Links */
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
  padding: 7px 13px; border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 4px;
  transition: background var(--ease), color var(--ease);
}
.nav-links a:hover,
.nav-links a.active { background: var(--green-pale); color: var(--green-deep); }

.nav-cta {
  background: var(--green) !important; color: var(--white) !important;
  padding: 8px 18px !important; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--green-deep) !important; transform: translateY(-1px); box-shadow: 0 5px 18px rgba(16,183,126,.3) !important; }

/* Dropdown */
.caret { transition: transform var(--ease); }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 200px; background: var(--white);
  border: 1px solid var(--green-border); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 8px;
  padding-top: 14px; /* visual gap built into padding so hover is unbroken */
  z-index: 200;
}
/* invisible bridge: fills any pixel gap between the trigger and dropdown */
.has-dropdown::after {
  content: ''; display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  height: 14px; /* matches padding-top above */
}
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown { display: flex; flex-direction: column; gap: 2px; }
.dropdown a { font-size: 0.83rem; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); }
.dropdown a:hover { background: var(--green-pale); color: var(--green-deep); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all var(--ease); }
.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 {
  padding-top: 66px; min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 65% 55% at 78% 40%, rgba(16,183,126,.09) 0%, transparent 65%),
              radial-gradient(ellipse 45% 45% at 12% 78%, rgba(16,183,126,.05) 0%, transparent 60%);
}
.hero-inner {
  flex: 1; display: flex; align-items: center; gap: 56px;
  max-width: 1180px; margin: 0 auto; padding: 80px 32px;
  width: 100%; position: relative;
}
.hero-content { flex: 1; min-width: 0; }

.hero-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--green); border-radius: 2px; }

.hero-title { margin-bottom: 20px; }
.hero-title em { color: var(--green); font-style: normal; }

.hero-desc { color: var(--grey-mid); font-size: 1.05rem; max-width: 520px; margin-bottom: 36px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 32px; }
.stat-item  { text-align: center; }
.stat-num   { font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--grey-mid); text-transform: uppercase; letter-spacing: 1px; }

/* Hero visual / slideshow */
.hero-visual { flex: 0 0 480px; position: relative; }
.hero-slideshow { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.slideshow-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-light); border: 2px solid var(--green-border); cursor: pointer; transition: background var(--ease), transform var(--ease); }
.dot.active { background: var(--green); transform: scale(1.25); }

.hero-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--white); border: 1px solid var(--green-border);
  border-radius: var(--r-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
}
.badge-icon   { font-size: 1.6rem; }
.badge-text   { display: flex; flex-direction: column; gap: 2px; }
.badge-text strong { font-size: 0.88rem; color: var(--charcoal); }
.badge-text span   { font-size: 0.75rem; color: var(--grey-mid); }

/* ══════════════════════════════════════════════════════════════
   MARQUEE STRIP
══════════════════════════════════════════════════════════════ */
.marquee-strip {
  background: var(--green-deep); overflow: hidden;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1);
}
.marquee-track {
  display: flex; gap: 0;
  animation: marquee 36s linear infinite;
  width: max-content;
}
.marquee-item {
  display: inline-flex; align-items: center;
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,.85);
  padding: 0 24px; white-space: nowrap; letter-spacing: .5px;
}
.marquee-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); margin-left: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════════════
   FEATURE CARDS GRID
══════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  padding: 32px 28px; border-radius: var(--r-md);
  border: 1px solid var(--green-border);
  background: var(--white);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--green); }
.feature-icon { font-size: 1.9rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.feature-card p  { font-size: 0.88rem; color: var(--grey-mid); }

/* ══════════════════════════════════════════════════════════════
   SHOWCASE GRID
══════════════════════════════════════════════════════════════ */
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.showcase-card {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--green-border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.showcase-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.showcase-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.showcase-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.showcase-card:hover .showcase-img-wrap img { transform: scale(1.05); }
.showcase-overlay {
  position: absolute; inset: 0;
  background: rgba(10,122,86,.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--ease);
}
.showcase-card:hover .showcase-overlay { opacity: 1; }
.overlay-btn {
  background: var(--white); color: var(--green-deep);
  padding: 9px 20px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 0.85rem;
}
.showcase-body { padding: 20px; }
.showcase-tag  { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.showcase-body h3 { font-size: 1rem; margin-bottom: 8px; }
.showcase-body p  { font-size: 0.83rem; color: var(--grey-mid); }

/* ══════════════════════════════════════════════════════════════
   TOPIC CARDS GRID (index.php)
══════════════════════════════════════════════════════════════ */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.topic-card {
  padding: 32px; border-radius: var(--r-md);
  background: var(--off-white); border: 1px solid var(--grey-light);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.topic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--green-border); }
.topic-card-icon { font-size: 2rem; margin-bottom: 14px; }
.topic-card h4   { font-size: 1.05rem; margin-bottom: 8px; }
.topic-card p    { font-size: 0.85rem; color: var(--grey-mid); margin-bottom: 18px; }
.topic-card .more { font-size: 0.85rem; font-weight: 700; color: var(--green-deep); display: inline-flex; align-items: center; gap: 4px; }
.topic-card .more:hover { color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   SERVICES TABS
══════════════════════════════════════════════════════════════ */
.services-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.tab-btn {
  padding: 10px 22px; border-radius: var(--r-sm);
  border: 1px solid var(--green-border);
  background: var(--white); color: var(--ink);
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.tab-btn:hover  { background: var(--green-pale); color: var(--green-deep); }
.tab-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }

.service-panel { display: none; gap: 40px; align-items: flex-start; }
.service-panel.active { display: flex; }
.service-panel > img { flex: 0 0 420px; border-radius: var(--r-md); object-fit: cover; max-height: 340px; width: 420px; }
.service-content { flex: 1; }
.service-content h3 { margin: 12px 0; }
.service-content p  { margin-bottom: 24px; color: var(--grey-mid); }

.service-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.service-steps li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.9rem; }
.step-num {
  flex-shrink: 0; width: 26px; height: 26px;
  background: var(--green-pale); color: var(--green-deep);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800;
}

/* ══════════════════════════════════════════════════════════════
   SPEC TABLE
══════════════════════════════════════════════════════════════ */
.spec-table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--green-border); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.spec-table thead { background: var(--charcoal); color: var(--white); }
.spec-table th { padding: 14px 20px; text-align: left; font-size: 0.78rem; letter-spacing: .8px; font-weight: 700; }
.spec-table td { padding: 13px 20px; border-bottom: 1px solid var(--grey-light); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:nth-child(even) { background: var(--off-white); }
.spec-yes { color: var(--green-deep); font-weight: 700; }
.c-yes    { color: var(--green-deep); }
.c-no     { color: #cc3333; }

/* ══════════════════════════════════════════════════════════════
   TERMINAL BLOCK
══════════════════════════════════════════════════════════════ */
.terminal-wrap {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); font-family: 'Source Code Pro', monospace;
}
.terminal-bar {
  background: #2a3535; padding: 12px 20px;
  display: flex; align-items: center; gap: 8px;
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red    { background: #FF5F57; }
.t-dot.yellow { background: #FEBC2E; }
.t-dot.green  { background: #28C840; }
.terminal-title { margin-left: 8px; font-size: 0.78rem; color: rgba(255,255,255,.5); font-family: 'Source Code Pro', monospace; }

.terminal-body { background: #1a2424; padding: 28px 32px; overflow-x: auto; }
.t-line { font-size: 0.82rem; line-height: 2; min-height: 1.5em; }
.t-line[data-typed] { visibility: hidden; }
.t-comment { color: #4e6b6b; }
.t-prompt  { color: var(--green); }
.t-cmd     { color: #e2f0eb; }
.t-out     { padding-left: 28px; }
.t-green   { color: #28C840; }
.t-blue    { color: #5ac8fa; }
.t-cursor  { display: inline-block; width: 8px; height: 14px; background: var(--green); vertical-align: middle; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════ */
.cta-section { background: linear-gradient(135deg, var(--green-deep) 0%, var(--charcoal) 100%); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); margin-bottom: 12px; }
.cta-inner p  { color: rgba(255,255,255,.72); max-width: 480px; }
.cta-actions  { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════════════════════ */
.page-hero {
  padding-top: 66px;
  background: var(--charcoal);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(16,183,126,.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 72px 32px 80px;
  position: relative;
}
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,.45); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span:last-child { color: rgba(255,255,255,.7); }

.page-hero .chip { background: rgba(16,183,126,.15); border-color: rgba(16,183,126,.3); color: var(--green); }

.page-hero-title { color: var(--white); margin-bottom: 16px; }
.page-hero-title em { color: var(--green); font-style: normal; }
.page-hero-desc { color: rgba(255,255,255,.65); max-width: 620px; font-size: 1.05rem; margin-bottom: 24px; }

.page-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,.55); }
.meta-dot  { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   CONTENT SECTIONS (inner pages)
══════════════════════════════════════════════════════════════ */
.anchor-section { padding: 72px 0; border-bottom: 1px solid var(--grey-light); }
.anchor-section:last-child { border-bottom: none; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split-img { border-radius: var(--r-md); overflow: hidden; }
.split-img img { width: 100%; height: 280px; object-fit: cover; }
.split-text h3 { margin: 12px 0 16px; }
.split-text > p { color: var(--grey-mid); margin-bottom: 24px; }

/* Command blocks */
.cmd-group { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.cmd-block  { border-radius: var(--r-sm); overflow: hidden; font-family: 'Source Code Pro', monospace; font-size: 0.8rem; }
.cmd-label  { background: #2a3535; color: rgba(255,255,255,.55); padding: 8px 16px; font-size: 0.72rem; letter-spacing: .5px; }
.cmd-body   { background: #1a2424; color: #c8ddd8; padding: 16px 18px; line-height: 1.9; overflow-x: auto; }
.cmd-body .p { color: var(--green); }
.cmd-body .c { color: #e2f0eb; }
.cmd-body .g { color: #28C840; }
.cmd-body .o { color: #4e6b6b; }
.cmd-body .y { color: #FEBC2E; }
.cmd-body .b { color: #5ac8fa; }

/* Info boxes */
.info-box {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--r-sm);
  font-size: 0.85rem; margin-top: 16px;
}
.info-box.tip  { background: var(--green-glow); border: 1px solid var(--green-border); color: var(--green-deep); }
.info-box.warn { background: rgba(254,188,46,.08); border: 1px solid rgba(254,188,46,.3); color: #7a5e00; }
.info-box.note { background: rgba(90,200,250,.08); border: 1px solid rgba(90,200,250,.25); color: #1a5c7a; }
.info-box-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════════════════ */
.contact-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px; border: 1.5px solid var(--grey-light);
  border-radius: var(--r-sm); font-size: 0.9rem; font-family: 'Outfit', sans-serif;
  background: var(--white); color: var(--ink);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.form-group textarea { min-height: 130px; resize: vertical; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card { padding: 24px; border-radius: var(--r-md); border: 1px solid var(--green-border); background: var(--off-white); }
.contact-card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.contact-card h4   { font-size: 0.95rem; margin-bottom: 8px; }
.contact-card p    { font-size: 0.83rem; color: var(--grey-mid); }
.contact-card a    { font-size: 0.85rem; font-weight: 700; color: var(--green-deep); }
.contact-card a:hover { color: var(--green); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer { background: var(--charcoal); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand p { color: rgba(255,255,255,.5); font-size: 0.85rem; margin-top: 16px; line-height: 1.7; }
.footer-badges  { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.f-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 100px;
  border: 1px solid rgba(16,183,126,.35); color: rgba(16,183,126,.8);
}

.footer-col h4  { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a   { font-size: 0.85rem; color: rgba(255,255,255,.55); transition: color var(--ease); }
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px; display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,.3); }
.version { font-size: 0.72rem; font-weight: 700; color: var(--green); background: rgba(16,183,126,.12); padding: 4px 12px; border-radius: 100px; border: 1px solid rgba(16,183,126,.25); }

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-visual       { flex: 0 0 380px; }
  .features-grid     { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand      { grid-column: 1 / -1; }
  .service-panel > img { flex: 0 0 320px; width: 320px; }
}

@media (max-width: 768px) {
  .container  { padding: 0 20px; }
  .section    { padding: 60px 0; }

  .hamburger  { display: flex; }
  .nav-links  { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--green-border); padding: 12px 16px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .dropdown   { display: none !important; position: static; box-shadow: none; border: none; border-radius: 0; background: var(--off-white); padding: 4px 0 4px 16px; margin-top: 4px; }
  .has-dropdown.open .dropdown { display: flex !important; flex-direction: column; }

  .hero-inner  { flex-direction: column; padding: 48px 20px; gap: 36px; }
  .hero-visual { flex: none; width: 100%; }
  .hero-stats  { gap: 20px; }
  .hero-badge  { display: none; }

  .features-grid   { grid-template-columns: 1fr; }
  .showcase-grid   { grid-template-columns: 1fr; }
  .topic-grid      { grid-template-columns: 1fr; }
  .split           { grid-template-columns: 1fr; }
  .service-panel   { flex-direction: column; }
  .service-panel > img { width: 100%; flex: none; }
  .contact-wrap    { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .cta-inner       { flex-direction: column; text-align: center; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .footer-bottom   { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  h1  { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .services-tabs { flex-direction: column; }
  .footer-grid   { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
══════════════════════════════════════════════════════════════ */
.lang-switch-item { margin-left: 8px; }

.lang-switch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700;
  padding: 7px 14px; border-radius: var(--r-sm);
  background: var(--green-pale);
  border: 1.5px solid var(--green-border);
  color: var(--green-deep);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
  white-space: nowrap;
}
.lang-switch-btn:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   THAI LANGUAGE TYPOGRAPHY
══════════════════════════════════════════════════════════════ */
.lang-th body,
body.lang-th {
  font-family: 'Sarabun', 'Outfit', sans-serif;
}
body.lang-th h1,
body.lang-th h2,
body.lang-th h3,
body.lang-th h4 {
  font-family: 'Sarabun', 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.4; /* Thai text needs more line-height */
}
body.lang-th p,
body.lang-th li,
body.lang-th label,
body.lang-th .hero-desc,
body.lang-th .page-hero-desc {
  font-family: 'Sarabun', sans-serif;
  line-height: 1.9; /* Thai script needs extra line-height */
}
body.lang-th .chip,
body.lang-th .btn-primary,
body.lang-th .btn-ghost,
body.lang-th .btn-white,
body.lang-th .btn-outline-white,
body.lang-th .nav-links a,
body.lang-th .tab-btn {
  font-family: 'Sarabun', 'Outfit', sans-serif;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR FULL-WIDTH + NO-WRAP FIX
══════════════════════════════════════════════════════════════ */

/* Force all nav items to single line — no wrapping ever */
.nav-links a {
  white-space: nowrap !important;
}

/* Tighter gaps and padding in Thai mode so everything fits */
body.lang-th .nav-links {
  gap: 1px;
}
body.lang-th .nav-links a {
  font-size: 0.78rem;
  padding: 6px 9px;
  white-space: nowrap !important;
  line-height: 1.2;
}
body.lang-th .nav-cta {
  padding: 6px 13px !important;
  font-size: 0.78rem !important;
}
body.lang-th .lang-switch-btn {
  font-size: 0.75rem;
  padding: 5px 10px;
}
body.lang-th .lang-switch-item {
  margin-left: 4px;
}
body.lang-th .nav-logo-text {
  font-size: 0.92rem;
}
