/* ===== Design tokens (Web Dojo product palette — see spec) ===== */
:root {
  --bg: #15130E;
  --surface: #332D22;
  --text: #F1EDE2;
  --text-muted: #E4DECE;
  --muted: #948C79;
  --accent: #C9A227;
  --accent-hover: #AD8B21;
  --border: #332D22;
  --radius: 10px;
  --container-width: 1120px;
  --font-ui: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ===== Native cross-document page transitions (Chrome 126+; no-op elsewhere) ===== */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

/* ===== Reset (replaces Bootstrap's reset) ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; color: whitesmoke; }

/* ===== Layout (replaces Bootstrap's container/grid) ===== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.eyebrow {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* ===== Header / Nav (replaces Bootstrap navbar) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 19, 14, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); }
.site-nav { display: none; gap: 28px; }
.site-nav a { color: var(--text-muted); font-size: 0.95rem; transition: color 150ms ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 16px;
}

/* ===== Buttons (replaces Bootstrap .btn) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 150ms ease, transform 150ms ease, border-color 150ms ease, color 150ms ease;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #15130E; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 12px; }

/* ===== Badge / notice / placeholder slot ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--accent);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.notice {
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text-muted);
}
.notice strong { color: var(--accent); }
.placeholder-slot {
  border: 1px dashed var(--muted);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Feature lists ===== */
.list-check { display: flex; flex-direction: column; gap: 14px; }
.list-check li { padding-left: 28px; position: relative; color: var(--text-muted); }
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Hero ===== */
.hero { padding: 120px 0 80px; text-align: center; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 720px; margin: 0 auto 20px; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Forms (Contact page) ===== */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-field label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.form-field input, .form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-field input[disabled], .form-field textarea[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 80px; }
.footer-row { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer-row nav { display: flex; gap: 20px; }
.footer-row nav a { color: var(--muted); font-size: 0.9rem; }
.footer-row nav a:hover { color: var(--accent); }
@media (min-width: 768px) {
  .footer-row { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ===== Scroll reveal (see js/main.js) ===== */
[data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; }
}
