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

/* ── DARK THEME (only theme) ──
   Color notes:
   - --text-muted was lightened from #646973 to #9AA4AD to meet WCAG AA
     (4.5:1) contrast on the #0C0C0C background. Same hue family, just lighter.
   - Brand accent now matches the palette you shared: a light seafoam
     (#97CECD) and a deep teal (#128F8E). Buttons use a slightly darker
     variant of that teal so white button text still clears 4.5:1 contrast;
     the exact swatch teal is kept for hover states, and the light seafoam
     is used for text-on-dark (links, active states, small labels).
   - --accent-bright (#97CECD) is the tint used for TEXT on dark backgrounds
     (links, active states, small labels) because --accent-2 alone doesn't
     reach 4.5:1 on #0C0C0C for normal text. --accent-2 itself is unchanged
     and still used for buttons, gradients, and borders where it already
     passes or isn't text.
*/
:root {
  --bg:          #0C0C0C;
  --bg-2:        #101817;
  --surface:     #F4F7F6;
  --surface-text:#0C0C0C;
  --surface-text-muted: rgba(12,12,12,0.72);
  --text:        #DCE6E3;
  --text-2:      #BFCDCA;
  --text-muted:  #93A4A0;
  --border:      rgba(220,230,227,0.15);
  --border-card: rgba(12,12,12,0.12);
  --nav-bg:      rgba(12,12,12,0.85);
  --callout-bg:  rgba(14,122,120,0.1);
  --pro-note-bg: transparent;
  --card-hover-border: rgba(14,122,120,0.45);
  --card-hover-shadow: rgba(14,122,120,0.12);
  --toggle-bg:   rgba(220,230,227,0.1);
  --toggle-color:#DCE6E3;
  --accent-1: #0B5250;
  --accent-2: #0E7A78;
  --accent-3: #128F8E;
  --accent-bright: #97CECD;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: 'Inter', 'Kanit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
}

/* Headings and UI chrome (nav, buttons, labels, short titles) keep Kanit. */
h1, h2, h3, h4, h5, h6,
.nav-logo,
.nav-links a,
.drawer-links a,
.hamburger,
.section-label,
.btn-primary,
.btn-secondary,
.ps-label,
.card-title,
.service-card strong,
.back-link,
footer,
.contact-item,
.chat-header-info strong,
.chat-avatar,
.chat-qr-btn,
.chat-result-card a,
.chat-form button {
  font-family: 'Kanit', sans-serif;
}

/* ── GRADIENT TEXT ──
   Removed the gradient/background-clip effect on real heading copy: at low
   contrast points the gradient dropped below AA. Headings now use a single
   solid, high-contrast color. (Decorative elements like the big step
   numbers keep their gradient since they're large, non-essential accents.) */
.grad-text {
  color: var(--text);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px,2vw,22px) clamp(20px,4vw,48px);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-weight: 800;
  font-size: clamp(1rem,1.6vw,1.3rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
  flex-shrink: 0;
}

.nav-links {
  display: flex; list-style: none;
  gap: clamp(16px,3vw,40px);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(0.8rem,1.1vw,1rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a:active { opacity: 1; color: var(--accent-bright); }

.nav-right {
  display: flex; align-items: center; gap: clamp(10px,1.5vw,16px);
  flex-shrink: 0;
}

/* ── HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: var(--toggle-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer; padding: 4px;
  flex-shrink: 0;
  transition: border-color 0.2s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.hamburger:focus { outline: none; }

.hamburger:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }

.hamburger:hover { border-color: var(--accent-2); }

.hamburger span {
  display: block;
  height: 2px; width: 20px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s;
}

.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); }

/* ── MOBILE DRAWER */
.nav-drawer {
  position: fixed;
  top: 60px;
  right: 16px;
  width: min(260px, calc(100vw - 32px));
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease,
              visibility 0s linear 0.22s;
}

.nav-drawer.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition: opacity 0.22s ease, transform 0.22s ease,
              visibility 0s linear 0s;
}

/* hide unused elements */
.drawer-header { display: none; }
.drawer-close  { display: none; }

/* Links inside dropdown */
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  border-radius: 10px;
  opacity: 0.85;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.drawer-links a:hover,
.drawer-links a:focus-visible,
.drawer-links a:active {
  opacity: 1;
  background: rgba(14,122,120,0.1);
  color: var(--accent-bright);
}

/* Dim overlay behind dropdown */
.drawer-overlay {
  position: fixed; inset: 0;
  background: transparent;
  z-index: 299;
  display: none;
}
.drawer-overlay.open { display: block; }

/* ── SHARED ── */
section { padding: clamp(80px,10vw,140px) clamp(24px,5vw,80px); }
.container { max-width: 1080px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: clamp(0.75rem,1vw,0.9rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-bright);
  margin-bottom: clamp(12px,2vw,20px);
}

/* ── FOCUS STATES (site-wide) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.gallery-card-inner:focus-visible,
.gallery-nav-btn:focus-visible,
.gallery-dot:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: calc(clamp(60px,8vw,100px) + 64px);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px,5vw,64px);
  align-items: center;
  min-height: 70vh;
}

.hero-text { display: flex; flex-direction: column; }

#hero h3 {
  font-size: clamp(1.5rem,3.2vw,2.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: clamp(16px,2.5vw,28px);
  color: var(--text);
}

.hero-image-wrap {
  border-radius: clamp(20px,3vw,32px);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--border);
  width: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.hero-image-wrap:hover .hero-image { transform: scale(1.07); }

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem,1.5vw,1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(220,230,227,0.9);
  max-width: 560px;
  margin-bottom: clamp(32px,4vw,48px);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.btn-primary {
  background: var(--accent-2);
  box-shadow: 0 4px 12px rgba(11,82,80,0.35);
  color: #fff; text-decoration: none; display: inline-block;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: clamp(0.75rem,1vw,0.9rem);
  padding: clamp(12px,1.5vw,16px) clamp(28px,3.5vw,44px);
  border-radius: 999px; transition: background 0.2s, transform 0.15s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-3); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  color: var(--text-2); text-decoration: none; display: inline-block;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: clamp(0.8rem,2.5vw,0.9rem);
  padding: clamp(10px,2.5vw,14px) clamp(20px,5vw,40px);
  border-radius: 999px; border: 2px solid var(--text-2); transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { background: rgba(220,230,227,0.08); border-color: var(--text); color: var(--text); }

/* ── ABOUT ── */
#about { background: var(--bg); border-bottom: 1px solid var(--border); }

#about h2 {
  font-size: clamp(1.9rem,4.6vw,3.4rem);
  font-weight: 900; letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: clamp(20px,3vw,28px);
  color: var(--text);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px);
  align-items: start;
}

.about-grid p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem,1.4vw,1.1rem);
  font-weight: 300; line-height: 1.8;
  color: rgba(220,230,227,0.9);
  margin-bottom: 1rem;
}

.callout {
  border-left: 3px solid var(--accent-2);
  padding: clamp(14px,2vw,22px);
  background: var(--callout-bg);
  border-radius: 0 12px 12px 0;
}
.callout p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem,1.3vw,1.05rem); font-weight: 400; color: var(--text); line-height: 1.75; margin: 0;
}

/* ── SERVICES ── */
#services {
  background: var(--surface);
  border-radius: clamp(40px,5vw,60px) clamp(40px,5vw,60px) 0 0;
  color: var(--surface-text);
}
#services .section-label { color: var(--accent-2); }
#services h2 {
  font-size: clamp(3rem,10vw,9rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.03em; line-height: 1;
  color: var(--surface-text); margin-bottom: clamp(32px,5vw,56px);
}

.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,24px);
}
.service-card {
  border: 1px solid var(--border-card);
  border-radius: clamp(20px,2.5vw,28px);
  padding: clamp(24px,3vw,36px);
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover { border-color: var(--card-hover-border); box-shadow: 0 8px 32px var(--card-hover-shadow); }

.s-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-card strong { font-size: clamp(0.95rem,1.5vw,1.15rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--surface-text); }
.service-card p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem,1.2vw,1.05rem); font-weight: 400; line-height: 1.7; color: var(--surface-text-muted); margin: 0;
}

/* ── PROCESS ── */
#process {
  background: var(--bg);
  border-radius: clamp(40px,5vw,60px) clamp(40px,5vw,60px) 0 0;
  margin-top: clamp(-40px,-3vw,-56px);
  position: relative; z-index: 10;
  border-bottom: 1px solid var(--border);
}
#process h2 {
  font-size: clamp(3rem,10vw,9rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: clamp(48px,7vw,80px);
}
.process-list { display: flex; flex-direction: column; max-width: 800px; }
.process-step {
  display: grid;
  grid-template-columns: clamp(100px,14vw,180px) 1fr;
  align-items: baseline;
  gap: clamp(20px,4vw,48px);
  padding: clamp(24px,3.5vw,40px) 0;
  border-bottom: 1px solid var(--border);
}
.process-step:first-child { border-top: 1px solid var(--border); }
.ps-label { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1rem,1.8vw,1.4rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.ps-num {
  font-size: clamp(2.5rem,6vw,5rem); font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, var(--text-muted) 0%, var(--text-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ps-desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem,1.3vw,1.05rem); font-weight: 300; line-height: 1.75; color: rgba(220,230,227,0.86);
}

/* ── CONTACT ── */
#contact { border-bottom: 1px solid var(--border); text-align: center; }
#contact h2 {
  font-size: clamp(3rem,10vw,9rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 1;
  margin-bottom: clamp(16px,2vw,24px);
}
#contact .sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem,1.5vw,1.15rem); font-weight: 300; line-height: 1.8;
  color: rgba(220,230,227,0.88); margin-bottom: clamp(32px,5vw,56px);
}

.contact-details { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px,2vw,24px); margin-bottom: clamp(32px,4vw,48px); }
.contact-item {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(0.85rem,2.5vw,1rem); font-weight: 400;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px;
  transition: border-color 0.2s, background 0.2s, color 0.3s;
}
.contact-item:hover { border-color: var(--accent-bright); background: rgba(14,122,120,0.08); }

/* ── RESULTS PAGE ── */
#results-hero {
  padding-top: clamp(60px,8vw,100px);
  border-bottom: none;
  text-align: center;
}
.back-link {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: clamp(24px,3vw,36px);
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent-bright); }
#results-hero h1 {
  font-size: clamp(2.4rem,7vw,5.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: clamp(14px,2vw,20px);
  color: var(--text);
}
#results-hero .sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem,1.5vw,1.15rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(220,230,227,0.9);
  max-width: 640px;
  margin: 0 auto clamp(48px,6vw,72px);
}

.nav-links a.active,
.drawer-links a.active {
  opacity: 1;
  color: var(--accent-bright);
}

#results-gallery { border-bottom: 1px solid var(--border); }

/* ── FOOTER ──
   The tagline reads as a short description rather than a UI label, so it's
   left in normal case (as authored in the HTML) instead of forced uppercase.
   The letter-spacing is reduced to match, since wide tracking is a caps-only
   convention. */
footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: clamp(20px,3vw,32px) clamp(24px,5vw,80px);
  font-size: clamp(0.78rem,1vw,0.9rem); font-weight: 400;
  color: var(--text-muted); letter-spacing: 0.02em;
}