/* ─────────────────────────────────────────────────────────────
   HeyZeus Brands — shared styles
   Aesthetic: refined editorial · classical serif · warm parchment
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #faf7f1;
  --bg-warm: #f3eddf;
  --ink: #1a2238;
  --ink-soft: #2a3148;
  --gold: #b8954a;
  --gold-dark: #8b6f37;
  --muted: #8b8680;
  --rule: #d8d0bd;
  --paper: #ffffff;
  --error: #a03030;
  --success: #2d6a4f;
  --shadow: 0 1px 2px rgba(26, 34, 56, 0.04), 0 8px 24px rgba(26, 34, 56, 0.06);
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(at 18% 12%, rgba(184, 149, 74, 0.06) 0px, transparent 40%),
    radial-gradient(at 82% 88%, rgba(26, 34, 56, 0.04) 0px, transparent 35%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header, footer {
  position: relative;
  z-index: 2;
}

/* ─── typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-variation-settings: 'opsz' 96;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.35rem;
  font-variation-settings: 'opsz' 36;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.1em;
  max-width: 65ch;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}

a:hover {
  color: var(--gold-dark);
  text-decoration-color: var(--ink);
}

ul, ol {
  margin-bottom: 1.1em;
  padding-left: 1.5em;
  max-width: 65ch;
}

li {
  margin-bottom: 0.4em;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

em {
  font-style: italic;
  font-family: var(--font-display);
}

hr {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 3rem 0;
}

/* ─── layout ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── header / nav ─── */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark:hover {
  color: var(--ink);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 400;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ─── hero ─── */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--rule);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero-lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 72;
}

/* ─── sections ─── */
section {
  padding: 4rem 0;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  display: block;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2rem 1.75rem;
  border-radius: 2px;
  box-shadow: var(--shadow);
  position: relative;
}

.card-mark {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--gold);
  opacity: 0.45;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ─── buttons ─── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border-radius: 1px;
}

.btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ─── form ─── */
.form-wrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 3rem;
  box-shadow: var(--shadow);
  border-radius: 2px;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 1px;
  transition: border-color 0.2s, background 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
  font-family: var(--font-body);
}

.consent-block {
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  margin: 2rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--gold-dark);
  cursor: pointer;
}

.consent-row span {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.consent-row a {
  color: var(--ink);
  font-weight: 500;
}

.form-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ─── legal pages ─── */
.legal-page {
  padding: 4rem 0 6rem;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
  font-size: 2.75rem;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  font-family: var(--font-body);
  font-style: italic;
}

.legal-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.legal-page h3 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-page .toc {
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  border-radius: 2px;
}

.legal-page .toc h4 {
  margin-bottom: 0.75rem;
}

.legal-page .toc ol {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.legal-page .toc li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.callout {
  background: var(--bg-warm);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.98rem;
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gold-dark);
}

/* ─── footer ─── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-warm);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--gold-dark);
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ─── animation on load ─── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.7s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── status messages ─── */
.form-status {
  padding: 1rem 1.25rem;
  border-radius: 2px;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.25);
  color: var(--success);
  display: block;
}

.form-status.error {
  background: rgba(160, 48, 48, 0.06);
  border: 1px solid rgba(160, 48, 48, 0.2);
  color: var(--error);
  display: block;
}

/* ─── responsive ─── */
@media (max-width: 820px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--rule);
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .form-wrap {
    padding: 2rem 1.5rem;
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .container, .container-narrow { padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
