/* ============================================================
   ADS Advisors — design system
   Aesthetic: Institutional, editorial, understated confidence
   ============================================================ */

:root {
  /* palette */
  --ink: #141e30;
  --ink-soft: #2a3548;
  --ink-muted: #5a6479;
  --paper: #f5f1e8;
  --paper-deep: #ebe5d4;
  --cream: #faf6ec;
  --bone: #fdfbf6;
  --accent: #b08454;
  --accent-deep: #8a6539;
  --rule: #d8d0bd;
  --rule-soft: #e8e1d0;
  --success: #3a6b4a;
  --shadow: 20, 30, 48;

  /* type */
  --serif: "Fraunces", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* rhythm */
  --max: 1240px;
  --prose: 68ch;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7rem);

  /* motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at top right, rgba(176, 132, 84, 0.04), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(20, 30, 48, 0.03), transparent 50%);
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-deep); }

/* typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 420;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.08;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.25; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 500; line-height: 1.35; }

p { max-width: var(--prose); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.2rem;
  display: inline-block;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 380;
  font-style: italic;
  max-width: 52ch;
}

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); }

section { padding: var(--section-y) 0; position: relative; }

.divider {
  height: 1px;
  background: var(--rule);
  border: none;
  margin: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 1.1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
  display: flex; align-items: center; gap: 0.6rem;
}
.brand-mark {
  display: inline-block; width: 28px; height: 28px;
  background: var(--ink); color: var(--cream);
  font-family: var(--serif); font-size: 0.85rem; font-style: italic;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.nav-links { display: flex; gap: 2rem; align-items: center; font-size: 0.95rem; }
.nav-links a { color: var(--ink-soft); font-weight: 450; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  padding: 0.5rem 0.7rem; border-radius: 3px; cursor: pointer;
  font-family: var(--sans); font-size: 0.85rem; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--rule); gap: 1.2rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  border-radius: 2px; cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}
.btn:hover { background: var(--ink-soft); color: var(--cream); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(var(--shadow), 0.15); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--cream); }

.btn-text {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  color: var(--accent-deep); letter-spacing: 0.01em;
  padding-bottom: 0.25rem; border-bottom: 1px solid var(--accent);
  transition: gap 0.25s var(--ease);
}
.btn-text:hover { gap: 0.75rem; color: var(--accent-deep); }
.btn-text::after { content: "→"; font-size: 1.1em; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: 0; right: -10%; width: 55%; height: 100%;
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(176, 132, 84, 0.06) 40%, rgba(176, 132, 84, 0.02) 70%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: end;
  position: relative; z-index: 1;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

.hero h1 { margin-bottom: 1.8rem; }
.hero h1 em { font-style: italic; color: var(--accent-deep); font-weight: 380; }

.hero-meta {
  border-top: 1px solid var(--rule);
  padding-top: 1.8rem; margin-top: 2.5rem;
  font-family: var(--sans); font-size: 0.88rem; color: var(--ink-muted);
  letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; gap: 2rem;
}
.hero-meta strong { color: var(--ink-soft); font-weight: 500; }

.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ============================================================
   "Who we work with" — feature grid
   ============================================================ */
.feature-list {
  list-style: none; display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .feature-list { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2rem; }
}
.feature-list li {
  position: relative; padding: 0.3rem 0 0.3rem 2.2rem;
  font-size: 1.02rem; color: var(--ink-soft); line-height: 1.5;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.75rem;
  width: 1.3rem; height: 1px; background: var(--accent);
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
.service-card {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--cream);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s var(--ease);
  position: relative;
}
.service-card:hover { background: var(--bone); }
.service-card-number {
  font-family: var(--mono); font-size: 0.75rem; color: var(--accent-deep);
  letter-spacing: 0.15em; margin-bottom: 1.5rem; display: block;
}
.service-card h3 { margin-bottom: 1rem; }
.service-card p { color: var(--ink-soft); margin-bottom: 1.8rem; font-size: 0.98rem; }

/* ============================================================
   APPROACH / 3-COL
   ============================================================ */
.approach-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr; margin-top: 3rem;
}
@media (min-width: 800px) {
  .approach-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}
.approach-item {
  padding-top: 2rem; border-top: 2px solid var(--ink);
}
.approach-item h3 {
  margin-bottom: 1rem; font-family: var(--serif); font-size: 1.45rem;
}
.approach-item p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--ink); color: var(--paper);
  padding: 3rem 0;
}
.trust-strip .wrap {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .trust-strip .wrap { grid-template-columns: 1fr 2fr; gap: 4rem; }
}
.trust-strip h2 {
  color: var(--paper); font-size: 1.8rem; letter-spacing: -0.02em;
}
.trust-strip p { color: rgba(245, 241, 232, 0.78); font-size: 1rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--paper);
  padding: clamp(4rem, 7vw, 6rem) 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cta-section h2 { max-width: 22ch; margin: 0 auto 1.5rem; }
.cta-section p { max-width: 52ch; margin: 0 auto 2.5rem; color: var(--ink-soft); font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink); color: rgba(245, 241, 232, 0.75);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}
footer a { color: rgba(245, 241, 232, 0.75); }
footer a:hover { color: var(--paper); }

.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr; margin-bottom: 3rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--paper); margin-bottom: 1rem; }
.footer-col h4 { color: var(--paper); font-family: var(--sans); font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  padding-top: 2rem;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  font-size: 0.82rem; color: rgba(245, 241, 232, 0.55);
}
@media (min-width: 700px) { .footer-bottom { grid-template-columns: 1fr auto; } }

.disclaimer {
  font-size: 0.82rem; color: rgba(245, 241, 232, 0.55);
  line-height: 1.6; max-width: 75ch; margin-bottom: 1.5rem;
}

/* ============================================================
   PROSE (article / service pages)
   ============================================================ */
.prose {
  max-width: 68ch; margin: 0 auto;
  font-size: 1.02rem; line-height: 1.72;
}
.prose h2 { margin-top: 3.5rem; margin-bottom: 1.2rem; font-size: 2rem; }
.prose h3 { margin-top: 2.5rem; margin-bottom: 0.8rem; font-size: 1.35rem; font-weight: 500; }
.prose p { margin-bottom: 1.3rem; color: var(--ink-soft); max-width: none; }
.prose ul, .prose ol { margin: 1.3rem 0 1.3rem 1.5rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.6rem; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* service hero (smaller than home) */
.page-hero {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--rule);
  background: var(--bone);
}
.page-hero .eyebrow { color: var(--accent-deep); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 18ch; }
.page-hero .lede { margin-top: 1.8rem; }

/* FAQ */
.faq { margin-top: 3rem; display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.6rem; line-height: 1.35;
}
.faq-a { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form {
  max-width: 620px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.3rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
@media (min-width: 600px) {
  .form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
}
.form label {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 1rem; padding: 0.85rem 1rem;
  border: 1px solid var(--rule); background: var(--bone); color: var(--ink);
  border-radius: 2px; transition: border-color 0.2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }

.consent-row {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-size: 0.82rem; color: var(--ink-muted); line-height: 1.5;
}
.consent-row input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; }
.consent-row a { color: var(--accent-deep); border-bottom: 1px solid var(--accent); }

.honeypot { position: absolute; left: -5000px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

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

/* ============================================================
   CHATBOT WIDGET (overrides to fit aesthetic)
   ============================================================ */
#ads-chat-launcher {
  background: var(--ink) !important;
  box-shadow: 0 6px 20px rgba(20, 30, 48, 0.25) !important;
}
#ads-chat-header { background: var(--ink) !important; }
.ads-msg-user { background: var(--ink) !important; }
#ads-chat-send { background: var(--ink) !important; }
