/* ================================================================
   LAW MARKETING STUDIO — Editorial Legal Design System
   ================================================================ */

:root {
  --forest: #1a3c34;
  --forest-deep: #0f2a24;
  --forest-soft: #2a5248;
  --copper: #b8860b;
  --copper-bright: #c99a2a;
  --terracotta: #c65d3f;
  --cream: #faf7f2;
  --cream-warm: #f5f2ec;
  --cream-darker: #ece7dc;
  --charcoal: #1a1a1a;
  --charcoal-soft: #3a3a38;
  --charcoal-muted: #6b6a66;
  --rule: #d9d4c8;
  --rule-soft: #e6e1d5;

  --serif: 'Noto Serif Thai', 'IBM Plex Serif Thai', 'IBM Plex Serif', Georgia, serif;
  --sans: 'Noto Sans Thai', 'IBM Plex Sans Thai', 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'Noto Sans Mono', ui-monospace, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.04em; text-transform: uppercase; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--copper); display: inline-block; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--forest);
  display: grid; place-items: center;
  color: var(--cream);
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: auto 4px 4px auto;
  width: 6px; height: 6px; background: var(--copper); border-radius: 50%;
}
.brand-name small { display: block; font-family: var(--mono); font-size: 10px; color: var(--charcoal-muted); font-weight: 400; letter-spacing: 0.14em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14.5px; padding: 9px 14px; border-radius: 6px;
  color: var(--charcoal-soft); font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--cream-darker); color: var(--charcoal); }
.nav-links a.active { color: var(--forest); }
.nav-links a.active::after {
  /* subtle indicator */
}

.nav-cta {
  background: var(--forest); color: var(--cream);
  padding: 11px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--forest-deep); }
.nav-cta svg { width: 14px; height: 14px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 4px;
  font-size: 15px; font-weight: 500; font-family: var(--sans);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary { background: var(--copper); color: var(--cream); }
.btn-primary:hover { background: #a0740a; transform: translateY(-1px); }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--forest-deep); }
.btn-ghost { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.btn-lg { padding: 19px 34px; font-size: 16px; }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: var(--cream-warm);
  padding: 80px 0 40px;
  margin-top: 0;
}
.site-footer a { color: var(--cream-warm); opacity: 0.75; transition: opacity 0.2s; }
.site-footer a:hover { opacity: 1; color: var(--copper-bright); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
}
.footer-brand p { font-size: 14px; opacity: 0.7; margin-top: 14px; max-width: 280px; line-height: 1.65; }
.footer-col h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--copper-bright); font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px; font-size: 13px; opacity: 0.6; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Utility atoms ---------- */
.rule { height: 1px; background: var(--rule); border: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 100px;
  background: rgba(184, 134, 11, 0.1); color: var(--copper);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
}
.pill-dot { width: 6px; height: 6px; background: var(--copper); border-radius: 50%; }

.section-label {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--charcoal-muted);
  margin-bottom: 24px;
}
.section-label .num { color: var(--copper); font-weight: 500; }

/* ---------- Placeholder image (editorial striped) ---------- */
.ph {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(26, 60, 52, 0.06) 14px 15px
    ),
    var(--cream-warm);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--charcoal-muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}
.ph-dark {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(250, 247, 242, 0.05) 14px 15px
    ),
    var(--forest);
  color: var(--cream-warm);
  border-color: rgba(250, 247, 242, 0.1);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s ease forwards; }

/* ---------- Form ---------- */
.input, .textarea, .select {
  width: 100%; padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--sans); font-size: 15px;
  color: var(--charcoal);
  transition: border-color 0.2s, background 0.2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--forest); background: #fff;
}
.textarea { resize: vertical; min-height: 120px; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--charcoal-soft); margin-bottom: 8px; }

/* ---------- Hero bg pattern ---------- */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(26, 60, 52, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 60, 52, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ---------- Page top meta strip ---------- */
.page-meta {
  background: var(--forest-deep);
  color: var(--cream-warm);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 0;
}
.page-meta-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  opacity: 0.85;
}
.page-meta .dot { width: 6px; height: 6px; background: var(--copper-bright); border-radius: 50%; display: inline-block; margin-right: 8px; }
