/* ==========================================================================
   Prima Vista AI — site styles
   One file. Edit colors and spacing here; everything else inherits.
   ========================================================================== */

:root {
  /* Brand palette — Prima Vista AI Visual Identity Guide, Sept 2025.
     Do not add colors outside this set. */
  --navy:   #1C2A39;  /* Primary: text, backgrounds */
  --gold:   #A38E61;  /* Accent: logo, highlights */
  --beige:  #EFECE6;  /* Neutral: backgrounds, headers */
  --gray:   #606A73;  /* Neutral: subheadings, supporting text */
  --mint:   #7FBEAA;  /* Interactive highlights — sparingly */
  --white:  #FFFFFF;

  --rule:   rgba(28, 42, 57, 0.15);
  --rule-light: rgba(255, 255, 255, 0.22);

  --wrap:        1120px;
  --gap:         clamp(3rem, 7vw, 6rem);

  --font-display: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--beige);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 500;   /* Medium — headlines */
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 300; }  /* Light — titles */
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 300; }  /* Light — subtitles */
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 1.4rem;
}

.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--gray); }

.muted { color: var(--gray); }

/* Hand-drawn underline — the brand's signature mark */
.mark { position: relative; white-space: nowrap; }
.mark svg {
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.28em;
  overflow: visible;
  color: var(--gold);
}

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }

.section { padding: var(--gap) 0; }
.section--alt { background: var(--white); }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.82); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--mint); }
.section--navy a { color: var(--white); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--top { align-items: start; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.75rem, 3.5vw, 3rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1.75rem, 3.5vw, 3rem); }

@media (max-width: 820px) {
  .split, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Header ---------- */

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  background: var(--beige);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
/* Horizontal lockup, assembled here because no horizontal logo file exists.
   images/logo.png must be the ICON-ONLY file, not a square/stacked lockup.
   Clear space is margin, never padding — box-sizing: border-box would make
   padding shrink the rendered image instead of surrounding it.
   To resize, change .brand-mark height and .brand-word font-size together. */
.brand-mark { height: 40px; width: auto; margin: 6px 0; flex: 0 0 auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1;
}
.brand-ai { color: var(--gold); }

@media (max-width: 420px) {
  .brand-word { font-size: 0.85rem; letter-spacing: 0.1em; }
  .brand-mark { height: 34px; }
}

.site-nav { display: flex; gap: clamp(1.1rem, 2.5vw, 2rem); align-items: center; }
.site-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--gray);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--mint); border-color: var(--mint); color: var(--navy); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }

.btn--mint { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.btn--mint:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Media blocks (degrade gracefully if image is missing) ---------- */

.media {
  background-color: var(--beige);
  background-image: radial-gradient(var(--gold) 1px, transparent 1px);
  background-size: 14px 14px;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
}
.media img { width: 100%; height: 100%; object-fit: cover; }

.portrait {
  background-color: var(--beige);
  background-image: radial-gradient(var(--gold) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: 10px;
  overflow: hidden;
  width: 150px;
  aspect-ratio: 1 / 1.15;
  flex: 0 0 auto;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */

.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); text-align: center; }
.hero h1 { max-width: 16ch; margin-inline: auto; }

.page-hero { padding: clamp(3.5rem, 8vw, 5.5rem) 0; border-bottom: 1px solid var(--rule); }
.page-hero h1 { margin-bottom: 0.4em; }

/* ---------- Pillars (Purpose / Medium / Vision) ---------- */

.pillar svg { width: 52px; height: 52px; color: var(--navy); margin-bottom: 1.3rem; }
.pillar h3 { margin-bottom: 0.5em; }
.pillar p { font-size: 0.97rem; margin-bottom: 0; }

/* ---------- Values list ---------- */

.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.values h4 { margin-bottom: 0.25em; color: var(--navy); }
.values p { font-size: 0.97rem; margin: 0; }
.values li { border-left: 2px solid var(--gold); padding-left: 1.25rem; }

/* ---------- Audience blocks (Services) ---------- */

.audience {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.audience:last-of-type { border-bottom: 1px solid var(--rule); }
.audience h3 { margin-bottom: 0.5em; }
.audience-note {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--mint);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
@media (max-width: 820px) { .audience { grid-template-columns: 1fr; } }

.chips { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-size: 0.86rem;
  line-height: 1.3;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--navy);
}
.section--alt .chips li { background: var(--beige); }
.chips li { background: var(--white); }

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.card h3 { font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: 0.97rem; }

/* ---------- Bios ---------- */

.bio { display: flex; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: flex-start; padding: 2.25rem 0; border-top: 1px solid var(--rule); }
.bio:first-of-type { border-top: 0; }
.bio h3 { margin-bottom: 0.35em; }
.bio .role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.bio p { font-size: 0.97rem; }
.bio p:last-child { margin-bottom: 0; }
@media (max-width: 620px) { .bio { flex-direction: column; } }

/* ---------- Steps ---------- */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.steps li { counter-increment: step; display: flex; gap: 1rem; align-items: flex-start; }
.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}
.steps p { margin: 0; font-size: 0.97rem; }

/* ---------- Contact ---------- */

.email-block {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.email-address {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.2;
  margin: 0;
  /* Selectable so people on machines with no mail client can just copy it */
  user-select: all;
  word-break: break-word;
}
.email-address a { text-decoration: none; border-bottom: 2px solid var(--gold); }
.email-address a:hover { border-bottom-color: var(--navy); }

/* ---------- Forms (unused for now — returns with the intake form) ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.field { margin-bottom: 1.4rem; }
.field label, .fieldset-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.field .hint { font-weight: 400; letter-spacing: 0; color: var(--gray); opacity: 0.75; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--beige);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); background: var(--white); }

fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; }
legend { padding: 0; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.65rem 1.25rem; margin-top: 0.25rem; }
.checks label {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.95rem; font-weight: 400; letter-spacing: 0;
  text-transform: none; color: var(--gray); cursor: pointer; margin: 0;
}
.checks input { margin-top: 0.28rem; accent-color: var(--navy); }
@media (max-width: 620px) { .checks { grid-template-columns: 1fr; } }

.form-foot { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }
.form-foot p { margin: 0; font-size: 0.9rem; }

/* Honeypot — hidden from people, catches bots */
.gotcha { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.site-footer h3 { font-size: 1.05rem; margin-bottom: 0.9em; color: var(--white); font-weight: 500; }
.site-footer a { color: var(--white); text-decoration-color: var(--mint); }
.site-footer a:hover { text-decoration-color: var(--white); }
.site-footer .muted { color: rgba(255,255,255,0.7); }
.site-footer p, .site-footer address { font-size: 0.93rem; font-style: normal; margin: 0 0 0.4em; }
.footer-brand { font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; color: var(--white); margin-bottom: 0.5rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-light); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { margin-inline: auto; }

/* ---------- Utilities ---------- */

.stack > * + * { margin-top: 1.5rem; }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0; z-index: 10;
}
.skip-link:focus { left: 0; top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
