:root {
  --red: #B1151D;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --soft: #fbfbfd;
  --line: #e5e2d9;
  --font-heading: 'Kanit', sans-serif;
  --font-body: 'Lato', sans-serif;
  --font-apple: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 500; margin: 0 0 16px; line-height: 1.2; }

/* ===== HEADER (single row, sticky, frosted) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header.transparent {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.transparent.scrolled {
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo { flex-shrink: 0; display: inline-flex; }
.logo img { height: 128px; width: auto; display: block; }
.logo-fallback { font-family: var(--font-heading); font-size: 32px; font-weight: 700; letter-spacing: 2px; color: var(--red); font-style: italic; line-height: 1; }
.header-contact { display: flex; gap: 22px; }
.header-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.3px;
  transition: color 0.2s;
}
.header-contact a:hover { color: var(--red); }
.header-contact svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.header-contact svg path,
.header-contact svg rect,
.header-contact svg polyline {
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.nav-menu { display: flex; gap: 30px; list-style: none; padding: 0; margin: 0; align-items: center; }
.nav-menu > li > a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-menu > li > a:hover { color: var(--red); }
.nav-menu > li > a.current { color: var(--red); }
.header-social {
  display: flex;
  gap: 16px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.header-social a {
  color: var(--ink);
  display: inline-flex;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.header-social a:hover { opacity: 1; color: var(--red); }
.header-social svg { width: 17px; height: 17px; fill: currentColor; }

/* ===== BUTTONS ===== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
  text-decoration: none;
  transition: background 0.25s;
  font-family: var(--font-apple);
}
.btn-pill:hover { background: #333336; }
.btn-pill svg { width: 11px; height: 11px; fill: currentColor; transition: transform 0.25s; }
.btn-pill:hover svg { transform: translateX(3px); }
.btn-pill.light { background: #fff; color: var(--ink); }
.btn-pill.light:hover { background: #f0f0f0; }

/* ===== FOOTER ===== */
.footer { background: var(--red); color: #fff; padding: 80px 0 0; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px 56px; display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: start; }
.footer-logo { height: 64px; width: auto; display: block; margin-bottom: 28px; }
.footer-logo-fallback { font-family: var(--font-heading); font-size: 34px; font-weight: 700; letter-spacing: 2px; color: #fff; font-style: italic; margin-bottom: 28px; }
.footer-tagline { font-family: var(--font-body); font-size: 17px; line-height: 1.5; color: rgba(255,255,255,0.92); margin: 0 0 28px; max-width: 380px; font-weight: 400; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.footer-contact a { font-family: var(--font-heading); font-size: 18px; font-weight: 500; color: #fff; letter-spacing: -0.1px; transition: opacity 0.2s; }
.footer-contact a:hover { opacity: 0.75; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s; }
.footer-social a:hover { background: rgba(255,255,255,0.3); }
.footer-social svg { width: 13px; height: 13px; fill: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; padding-top: 8px; }
.footer-nav a { font-family: var(--font-heading); font-size: 17px; font-weight: 500; color: #fff; letter-spacing: -0.1px; transition: opacity 0.2s; }
.footer-nav a:hover { opacity: 0.75; }
.footer-hiring { border-top: 1px solid rgba(255,255,255,0.18); padding: 20px 40px; max-width: 1280px; margin: 0 auto; text-align: center; }
.footer-hiring a { font-family: var(--font-apple); font-size: 14px; font-weight: 500; color: #fff; letter-spacing: -0.1px; transition: opacity 0.2s; display: inline-block; }
.footer-hiring a:hover { opacity: 0.75; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.18); padding: 24px 40px; max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.8); gap: 20px; flex-wrap: wrap; }

/* ===== RESPONSIVE (shared) ===== */
@media (max-width: 1024px) {
  .header-inner { padding: 10px 24px; gap: 20px; }
  .header-contact { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 40px; }
  .footer-nav { flex-direction: row; gap: 24px; align-items: flex-start; flex-wrap: wrap; padding-top: 0; }
  .footer-hiring { padding: 20px 24px; }
  .footer-bottom { padding: 24px; flex-direction: column; text-align: center; gap: 8px; }
}
@media (max-width: 768px) {
  .nav-menu { gap: 20px; }
  .nav-menu > li > a { font-size: 15px; }
  .header-social { display: none; }
  .header-right { gap: 0; }
  .logo img { height: 42px; }
}
