/* ============================================================
   Zenca — site styles
   Palette & type per the Zenca Visual Style Guide v1.2
   ============================================================ */

:root {
  --bg:        #000000;   /* canonical background — pure black */
  --bg-alt:    #0a0a0a;   /* charcoal, used sparingly */
  --surface:   #101010;
  --text:      #EAEAEA;   /* primary text */
  --muted:     #BDBDBD;   /* secondary text */
  --faint:     #6f6f6f;
  --gold:      #C6A15B;   /* primary gold — signal / insight only */
  --gold-2:    #A8841F;   /* secondary gold */
  --line:      rgba(234,234,234,0.10);
  --line-2:    rgba(234,234,234,0.16);

  --maxw:      1120px;
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.gold { color: var(--gold); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: #000; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.55);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(0,0,0,0.82); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 60px; width: auto; display: block; }
.brand-word { font-weight: 600; letter-spacing: 0.24em; font-size: 0.95rem; }

.site-nav ul { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.site-nav a:hover { color: var(--text); }
.nav-cta { color: var(--gold) !important; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-size: 0.92rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #000; }
.btn-primary:hover { background: #d8b673; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; padding: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(90px, 16vh, 170px) 0 clamp(70px, 12vh, 130px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 22% 8%, rgba(198,161,91,0.10), transparent 70%),
    radial-gradient(50% 60% at 90% 100%, rgba(168,132,31,0.06), transparent 70%);
}
.hero-inner { position: relative; max-width: 900px; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 500; margin: 6px 0 0; }
.hero .lede { margin-top: 26px; }
.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.32rem); color: var(--muted); font-weight: 300;
  max-width: 620px; line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vh, 130px) 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin-bottom: clamp(44px, 7vw, 72px); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-lede { margin-top: 18px; color: var(--muted); font-weight: 300; font-size: 1.08rem; }

/* ---------- Framework ---------- */
.framework {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.fw-step { padding: 30px 26px; border-right: 1px solid var(--line); }
.fw-step:last-child { border-right: none; }
.fw-num { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--gold); }
.fw-step h3 { font-size: 1.18rem; margin: 16px 0 8px; }
.fw-step p { color: var(--muted); font-weight: 300; font-size: 0.95rem; }

/* ---------- Services ---------- */
.services { display: grid; gap: 0; }
.service {
  display: grid; grid-template-columns: 72px 1fr; gap: 8px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.service:first-child { border-top: none; }
.service-index { font-size: 1.05rem; font-weight: 600; color: var(--gold-2); letter-spacing: 0.05em; padding-top: 4px; }
.service-body h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill {
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-2); border-radius: 999px; padding: 4px 10px;
}
.service-tag { color: var(--text); margin-top: 8px; font-weight: 300; font-size: 1.05rem; max-width: 820px; }
.service-points {
  margin-top: 10px;
  color: var(--muted); font-weight: 300; font-size: 0.95rem; line-height: 1.7;
}
.service-points li { display: inline; }
.service-points li:not(:last-child)::after { content: " · "; color: var(--faint); }
.service-best { margin-top: 12px; color: var(--muted); font-weight: 300; font-size: 0.96rem; }
.service-best span {
  display: inline-block; color: var(--gold); font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-right: 10px;
}

/* ---------- Principles / split ---------- */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 6vw, 80px); }
.split-col h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 28px; }
.isnot li {
  position: relative; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-weight: 300; font-size: 1.05rem;
}
.isnot li::before { content: "·"; position: absolute; left: 0; color: var(--faint); }
.isnot li.is { color: var(--text); }
.isnot li.is::before { content: "→"; color: var(--gold); }
.who { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.who li {
  padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.95rem; color: var(--text);
}
.founder {
  margin: clamp(48px, 7vw, 80px) 0 0; padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 12px;
  background: rgba(198,161,91,0.03);
}
.founder blockquote { margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.32rem); font-weight: 300; line-height: 1.55; color: var(--text); }
.founder strong { font-weight: 600; color: var(--gold); }

/* ---------- Coverage teaser ---------- */
.coverage-inner { max-width: 680px; }
.coverage-inner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 18px; }
.coverage-inner .btn { margin-top: 32px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-intro h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 18px; }
.contact-alt { margin-top: 28px; color: var(--muted); font-weight: 300; }
.contact-alt a { color: var(--gold); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact-alt a:hover { border-bottom-color: var(--gold); }

.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; border: none; padding: 0; margin: 0; }
.field label, .field legend { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0; }
input[type="text"], input[type="email"], textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--text); font: inherit; font-size: 1rem; padding: 13px 15px; transition: border-color 0.2s var(--ease), background 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); background: #141210; }
textarea { resize: vertical; min-height: 108px; }
::placeholder { color: var(--faint); }

.hp { position: absolute; left: -9999px; opacity: 0; }

/* service chips as multi-select toggles (pure CSS) */
.field.toggles { gap: 16px; }
.toggles .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); font-size: 0.85rem;
  transition: all 0.18s var(--ease); user-select: none;
}
.chip span::before { content: ""; }
.chip:hover span { border-color: var(--faint); color: var(--text); }
.chip input:checked + span { border-color: var(--gold); color: var(--gold); background: rgba(198,161,91,0.10); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.form-status { font-size: 0.92rem; min-height: 1.2em; margin: 0; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: #d98b6a; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand .brand-word { letter-spacing: 0.24em; }
.footer-logo { height: 56px; width: auto; display: block; }
.footer-brand p { color: var(--faint); font-size: 0.85rem; font-weight: 300; margin-top: 8px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--muted); transition: all 0.2s var(--ease);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.copyright { flex-basis: 100%; color: var(--faint); font-size: 0.8rem; font-weight: 300; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }

/* ---------- Reveal on scroll ---------- */
/* Only hide when JS is present; no-JS users see everything immediately. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .framework { grid-template-columns: repeat(2, 1fr); }
  .fw-step:nth-child(2n) { border-right: none; }
  .fw-step { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; background: none; border: none; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: all 0.25s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 88px; left: 0; right: 0; background: #060606;
    border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .site-nav.open { max-height: 340px; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px clamp(20px,5vw,48px) 18px; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 12px 0; font-size: 1rem; }
  .service { grid-template-columns: 1fr; gap: 0; }
  .service-index { margin-bottom: 10px; }
  .framework { grid-template-columns: 1fr; }
  .fw-step { border-right: none; }
}
