/*
  Wend shared design system.
  Loaded on every page (plain-CSS pages link it directly; the two Tailwind-CDN
  pages also extend tailwind.config with the same tokens so both systems agree).
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --forest: #1a3b2e;
  --forest-dark: #112a21;
  --gold: #c9a961;
  --gold-light: #ddc48b;
  --cream: #faf7f0;
  --grey: #8a8077;
  --black: #0a0a0a;
  --red: #8b2635;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --max-width: 1200px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--black);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-secondary {
  background: var(--cream);
  color: var(--black);
  border-color: var(--black);
}
.btn-secondary:hover {
  background: var(--black);
  color: var(--cream);
}

/* dark-surface variant for Live Demo / Admin pages */
.btn-secondary--on-dark {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 247, 240, 0.4);
}
.btn-secondary--on-dark:hover {
  background: var(--cream);
  color: var(--forest-dark);
  border-color: var(--cream);
}

/* ─── Compliance bar (restyled — legally prominent, not alarm-styled) ──── */

.compliance-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2147483647;
  background: var(--forest-dark);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.35);
}
.compliance-bar strong {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 6px;
}
.compliance-bar-spacer { width: 100%; }

/* ─── Nav ─────────────────────────────────────────────────────────────── */

/* Full width even inside flex-column parents (e.g. the homepage hero), so
   the wordmark and links sit at opposite ends instead of touching. */
.wend-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  align-self: stretch;
  padding-top: 12px;
  padding-bottom: 12px;
}
.wend-nav .wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.wend-nav .links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}
/* 44px-tall tap targets (Apple HIG minimum) */
.wend-nav .links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  -webkit-tap-highlight-color: rgba(201, 169, 97, 0.25);
  touch-action: manipulation;
}
.wend-nav .links a[aria-current="page"] { opacity: 1; color: var(--gold-light); }
@media (hover: hover) {
  .wend-nav .links a { transition: opacity 0.2s ease; }
  .wend-nav .links a:hover { opacity: 1; }
}

/* Solid bar version, for pages without a dark hero behind the nav */
.wend-nav-bar {
  background: var(--forest-dark);
  color: var(--cream);
  font-family: var(--font-sans);
}
.wend-nav-bar .wend-nav .wordmark { font-size: 20px; }

/* ─── Footer ──────────────────────────────────────────────────────────── */

.wend-footer {
  background: var(--forest-dark);
  color: rgba(250, 247, 240, 0.72);
  font-size: 13px;
  line-height: 1.7;
  padding: 56px 0 32px;
}
.wend-footer .wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 14px;
  display: block;
}
.wend-footer a { color: var(--gold-light); text-decoration: none; }
.wend-footer a:hover { text-decoration: underline; }
.wend-footer .legal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 247, 240, 0.12);
  font-size: 12px;
  color: rgba(250, 247, 240, 0.55);
}

@media (max-width: 768px) {
  .wend-nav .links { gap: 10px; font-size: 13px; }
}
@media (max-width: 380px) {
  .wend-nav .wordmark { font-size: 19px; }
  .wend-nav .links { gap: 6px; font-size: 12.5px; }
}
