/* =====================================================================
   Four Lenses Advisory LLC — site styles
   Professional + warm. Light theme, editorial serif headings.
   ===================================================================== */

:root {
  --paper:      #faf6ef;   /* warm ivory page background */
  --paper-2:    #f3ebdd;   /* deeper warm band */
  --card:       #ffffff;
  --ink:        #20262b;   /* warm near-black */
  --ink-2:      #4b555e;
  --ink-3:      #6b7680;
  --line:       #e7dcc9;   /* warm hairline */
  --brand:      #a75d24;   /* bronze / terracotta */
  --brand-600:  #8f4d1b;
  --brand-tint: #f6e9d9;
  --gold:       #c69a4c;
  --ok:         #3f6b4f;
  --radius:     14px;
  --radius-sm:  10px;
  --container:  1120px;
  --shadow:     0 1px 2px rgba(40,24,8,.05), 0 10px 30px rgba(40,24,8,.06);
  --shadow-sm:  0 1px 2px rgba(40,24,8,.06), 0 4px 12px rgba(40,24,8,.05);
  /* System fonts only — no external requests */
  --font-serif: Georgia, "Times New Roman", "Times", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.15rem, 1.4rem + 3.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }
p  { margin: 0 0 1rem; }

::selection { background: var(--brand-tint); }

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 2rem + 7vw, 6.5rem); }
.section--alt {
  background-color: var(--paper-2);
  background-image: radial-gradient(rgba(167,93,36,.09) 1px, transparent 1px);
  background-size: 24px 24px;
}
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin: 0 0 1rem;
}

.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--ink-2); max-width: 46ch; }
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(40,24,8,.05); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .85rem;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: auto; height: 34px; }

.site-nav ul {
  list-style: none; display: flex; align-items: center; gap: 1.6rem;
  margin: 0; padding: 0;
}
.site-nav a:not(.btn) {
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding-block: .3rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--brand); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink);
  transform: translateX(-50%); transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { content: ""; top: -6px; }
.nav-toggle-bar::after  { content: ""; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .05s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 2rem + 8vw, 7rem); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60ch 40ch at 82% -10%, rgba(198,154,76,.14), transparent 70%),
    radial-gradient(50ch 40ch at -5% 110%, rgba(167,93,36,.10), transparent 70%);
}
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 52ch; margin-top: 1.25rem; }
.hero-split { grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.hero-art {
  display: flex; align-items: center; justify-content: center;
  animation: hero-art-in .8s ease-out both;
}
.hero-art svg { width: 100%; max-width: 400px; height: auto; }
@keyframes hero-art-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 780px) {
  .hero-art svg { max-width: 300px; }
}
.hero-byline { display: flex; align-items: center; gap: .75rem; margin-top: 2.25rem; }
.hero-byline img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--card); box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.hero-byline .byline-name { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; }
.hero-byline .byline-role { display: block; font-size: .82rem; color: var(--ink-3); }

/* ---------- Who we serve ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1rem; font-size: .9rem; font-weight: 500; color: var(--ink-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  list-style: none; margin: 2rem 0 0; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat-num { font-family: var(--font-serif); font-size: 1.4rem; color: var(--brand-600); }
.stat-label { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 780px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { font-weight: 600; font-size: .92rem; text-decoration: none; display: inline-flex; gap: .35rem; margin-top: .9rem; }
.card-link::after { content: "\2192"; transition: transform .15s ease; }
.card-link:hover::after { transform: translateX(3px); }

/* Lens cards (the Four Lenses Method) */
.lens {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm);
}
.lens-num {
  font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
  color: var(--brand-600); letter-spacing: .05em;
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .8rem;
}
.lens-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--brand);
  background:
    radial-gradient(circle at 38% 38%, rgba(167,93,36,.16), transparent 60%),
    radial-gradient(circle at 64% 64%, rgba(167,93,36,.10), transparent 60%);
  display: grid; place-items: center;
}
.lens-icon svg { width: 18px; height: 18px; display: block; }
.lens h3 { margin-bottom: .35rem; }
.lens p:last-child { margin-bottom: 0; }

/* ---------- Process steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 1.05rem; color: var(--brand-600);
  border: 1.5px solid var(--brand); border-radius: 50%;
  width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0;
}
.steps h3 { margin: .35rem 0 .3rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- Outcomes ---------- */
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.outcomes li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.outcomes li::before {
  content: ""; width: 22px; height: 22px; margin-top: .15rem; flex-shrink: 0;
  border-radius: 6px; background: var(--brand-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f4d1b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 15px; background-repeat: no-repeat; background-position: center;
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--narrow-media { grid-template-columns: 0.85fr 1.15fr; }
.media-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-2); box-shadow: var(--shadow);
}
.media-frame img { width: 100%; display: block; }
.portrait {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%;
}
.portrait-placeholder {
  aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center;
  color: var(--ink-3); font-size: .85rem; padding: 2rem;
  background:
    linear-gradient(135deg, rgba(198,154,76,.12), rgba(167,93,36,.08));
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #f3ede2; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d9d0c2; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose > :first-child { margin-top: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); color: var(--brand-600); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .75rem .85rem; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--brand-600); outline-offset: 1px; border-color: var(--brand-600);
}
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--ink-3); }
.form-error {
  background: #fbeae4; border: 1px solid #e7b7a6; color: #8a3c22;
  border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .92rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { height: 34px; width: auto; margin-bottom: .9rem; }
.footer-tag { color: var(--ink-2); max-width: 34ch; margin-bottom: .4rem; }
.footer-loc { font-size: .88rem; color: var(--ink-3); margin: 0; }
.site-footer h2 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .9rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-nav a, .footer-contact a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--brand); }
.footer-contact p { margin: 0 0 .5rem; font-size: .95rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-legal p { font-size: .8rem; color: var(--ink-3); margin: 0 0 .6rem; }
.footer-legal .disclaimer { max-width: 92ch; }
.muted { color: var(--ink-3); }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.stack-lg > * + * { margin-top: 1.25rem; }
.mt-0 { margin-top: 0; }

/* ---------- Scroll reveal (JS-added; content is fully visible without JS) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Insights cards ---------- */
.post { display: flex; flex-direction: column; }
.post .post-meta { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.post h3 { margin-bottom: .5rem; }
.post p { color: var(--ink-2); }

/* ---------- Brand concepts (internal page) ---------- */
.concept-set { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.concept .swatches { display: flex; gap: 1rem; align-items: center; margin: 1rem 0; }
.concept .on-light { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; display: grid; place-items: center; }
.concept .on-dark  { background: var(--ink); border-radius: 12px; padding: 1.25rem; display: grid; place-items: center; }
.concept .fav { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(40,24,8,.08);
    padding: 1rem 0 1.4rem; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
  .site-nav li { width: 100%; }
  .site-nav a:not(.btn) { display: block; padding: .8rem .25rem; border-bottom: 1px solid var(--line); }
  .site-nav a.active { border-bottom-color: var(--line); color: var(--brand-600); }
  .site-nav .btn { width: 100%; margin-top: .75rem; }
}

@media (max-width: 780px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--narrow-media { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .concept-set { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
