/* ============================================================
   af-pages.css — shared chrome + content styles for the
   hand-coded (non-Elementor) inner pages:
   About, Contact, Parental Alienation, Privacy Policy, Terms.

   Chrome (tokens/header/footer/buttons/section/responsive) is
   copied from template-homepage.php so these pages match the
   homepage pixel-for-pixel. Page-content styles follow below.

   Enqueued by functions.php only on the af-* page templates.
   Source of truth: Obsidian vault
   2. Areas/AFLLC/Marketing/assets/website-theme/andrewfolkler-child/
   ============================================================ */

:root {
  --indigo: #0A054D; --indigo-600: #08043B; --indigo-700: #05032A;
  --indigo-400: #2A2471; --indigo-200: #8A85B7; --indigo-100: #BFBCDA;
  --blue: #00EEFF; --blue-link: #008E99; --blue-dark: #005F66;
  --paper: #FBF8F1; --paper-edge: #E5DECB; --white: #FEFFFE;
  --canvas: #FAF7F2;
  --gray-700:#2B2B3D; --gray-600:#43435A; --gray-500:#606079; --gray-300:#B5B5C7; --gray-200:#D7D7E3;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --serif: "Lora", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--canvas); }
body.afpage {
  font-family: var(--sans); color: var(--indigo); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.afpage a { color: var(--blue-link); text-decoration: none; transition: color 200ms; }
.afpage a:hover { color: var(--indigo); }
.afpage *:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.afpage img { max-width: 100%; height: auto; }

/* ---------- HEADER (matches homepage) ---------- */
header.site {
  background: var(--indigo); position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--indigo-600);
}
header.site .inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 32px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
}
.lockup { display: flex; align-items: center; gap: 10px; }
.lockup .mark {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: url('https://andrewfolkler.com/wp-content/uploads/2022/02/Bubble.png') center/cover no-repeat;
}
.lockup .name {
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--white);
}
header.site nav { display: flex; gap: 36px; justify-content: center; align-items: center; }
.nav-item { position: relative; }
.nav-item > a {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--white); letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 0;
}
.nav-item > a:hover { color: var(--blue); }
.nav-item .caret { width: 8px; height: 8px; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(11,4,76,0.16);
  padding: 8px; min-width: 240px;
  opacity: 0; visibility: hidden; transition: opacity 200ms, transform 200ms; z-index: 40;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 6px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--indigo);
}
.dropdown a:hover { background: var(--paper); color: var(--indigo); }
.dropdown a small {
  display: block; font-weight: 400; font-size: 11.5px; color: var(--gray-500); margin-top: 2px;
}
.dropdown .divider { height: 1px; background: var(--gray-200); margin: 8px 6px; }
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--indigo-600); border: 1px solid var(--indigo-200);
  border-radius: 999px; padding: 8px 14px; min-width: 180px;
}
.nav-search svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
.nav-search input {
  background: transparent; border: none; outline: none;
  font-family: var(--sans); font-size: 13px; color: var(--white); width: 100%;
}
.nav-search input::placeholder { color: var(--indigo-100); }

/* ---------- BUTTONS (match homepage) ----------
   Scoped under .afpage (specificity 0,2,x) so the generic `.afpage a`
   link-color rule (0,1,1) can't override the button text colors. */
.afpage .btn-primary {
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  padding: 15px 28px; background: var(--blue); color: var(--indigo);
  border-radius: 6px; letter-spacing: 0.02em; transition: background 200ms; display: inline-block;
}
.afpage .btn-primary:hover { background: var(--white); color: var(--indigo); }
.afpage .btn-ghost {
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  padding: 15px 28px; background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.4); border-radius: 6px; letter-spacing: 0.02em;
  transition: background 200ms, border-color 200ms; display: inline-block;
}
.afpage .btn-ghost:hover { background: rgba(0,238,255,0.1); border-color: var(--blue); color: var(--white); }
.afpage .btn-indigo {
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  padding: 14px 26px; background: var(--indigo); color: var(--white);
  border-radius: 6px; letter-spacing: 0.02em; transition: background 200ms; display: inline-block;
}
.afpage .btn-indigo:hover { background: var(--indigo-600); color: var(--white); }

/* ---------- SECTION SHELL (match homepage) ---------- */
section.block { padding: 88px 0; }
section.block .inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.block--tight { padding: 64px 0; }

/* ---------- PAGE HERO (indigo band, no photo) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-600) 55%, var(--indigo-400) 100%);
  color: var(--white);
}
.page-hero .inner { max-width: 1200px; margin: 0 auto; padding: 84px 32px; }
.page-hero .eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 18px;
}
.page-hero h1 {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--white); margin: 0; max-width: 20ch;
}
.page-hero p.lead {
  font-family: var(--serif); font-size: 19px; line-height: 1.6;
  color: #D8D5EB; margin: 22px 0 0; max-width: 60ch;
}

/* ---------- PROSE (about origin, legal pages) ---------- */
.prose { max-width: 760px; }
.prose.center { margin: 0 auto; }
.prose h2 {
  font-family: var(--sans); font-weight: 900; font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15; letter-spacing: -0.02em; color: var(--indigo); margin: 0 0 20px;
}
.prose h3 {
  font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: 0.02em;
  color: var(--indigo); margin: 36px 0 10px; text-transform: none;
}
.prose p {
  font-family: var(--serif); font-size: 16.5px; line-height: 1.75;
  color: var(--gray-700); margin: 0 0 18px;
}
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--blue-link); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--indigo); }
/* Legal pages: dense caps subheadings + fine print */
.legal h3 {
  font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--indigo); margin: 32px 0 8px;
}
.legal p { font-size: 15.5px; line-height: 1.72; }
.legal ol, .legal ul { font-family: var(--serif); color: var(--gray-700); font-size: 15.5px; line-height: 1.72; padding-left: 22px; }
.legal li { margin: 0 0 6px; }

/* ---------- PRINCIPLES GRID (How I work) ---------- */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.principle {
  background: transparent; border: 1px solid var(--gray-200); border-radius: 4px;
  padding: 28px 26px;
}
.principle h3 {
  font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--indigo);
  margin: 0 0 10px;
}
.principle p { font-family: var(--serif); font-size: 15.5px; line-height: 1.7; color: var(--gray-700); margin: 0; }

/* ---------- SECTION HEADING (standalone) ---------- */
.sec-head {
  font-family: var(--sans); font-weight: 900; font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15; letter-spacing: -0.02em; color: var(--indigo); margin: 0 0 32px; max-width: 24ch;
}
.sec-lead { font-family: var(--serif); font-size: 17px; line-height: 1.7; color: var(--gray-700); margin: 0 0 32px; max-width: 62ch; }

/* ---------- FAQ (native <details>/<summary> accordion, ivory) ---------- */
.faq { max-width: 820px; }
.faq__item { border-top: 1px solid var(--gray-200); background: transparent; }
.faq__item:last-child { border-bottom: 1px solid var(--gray-200); }
.faq__q {
  font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--indigo);
  margin: 0; padding: 20px 40px 20px 0; cursor: pointer; position: relative;
  list-style: none; display: block; transition: color 200ms;
}
.faq__q::-webkit-details-marker { display: none; }   /* hide default triangle (Safari) */
.faq__q:hover { color: var(--blue-link); }
.faq__q::after {                                       /* chevron */
  content: ""; position: absolute; right: 6px; top: 24px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--blue-link); border-bottom: 2px solid var(--blue-link);
  transform: rotate(45deg); transition: transform 200ms;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); top: 28px; }
.faq__a {
  font-family: var(--serif); font-size: 15.5px; line-height: 1.72; color: var(--gray-700);
  margin: 0; padding: 0 40px 22px 0;
}

/* ---------- CARDS (resources / articles) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--2 { grid-template-columns: 1fr 1fr; }
.card {
  background: transparent; border: 1px solid var(--gray-200); border-radius: 4px;
  padding: 26px 24px; display: flex; flex-direction: column;
}
.card h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--indigo); margin: 0 0 6px; line-height: 1.3; }
.card .meta { font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-500); margin: 0 0 12px; }
.card p { font-family: var(--serif); font-size: 15px; line-height: 1.65; color: var(--gray-700); margin: 0 0 18px; flex: 1; }
.card .more {
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  color: var(--blue-link); text-decoration: none; align-self: flex-start;
}
.card .more:hover { color: var(--indigo); }

/* ---------- TESTIMONIAL ---------- */
.testi { max-width: 780px; margin: 0 auto; text-align: center; }
.testi blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5; color: var(--indigo); margin: 0 0 20px; border: 0; padding: 0;
}
.testi .cite { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--indigo); }
.testi .cite small { display: block; font-weight: 400; color: var(--gray-500); margin-top: 3px; }

/* ---------- CTA BAND ---------- */
.cta-band { background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-600) 60%, var(--indigo-400) 100%); }
.cta-band .inner { max-width: 900px; margin: 0 auto; padding: 76px 32px; text-align: center; }
.cta-band h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; color: var(--white); margin: 0 0 18px; }
.cta-band p { font-family: var(--serif); font-size: 17px; line-height: 1.7; color: #D8D5EB; margin: 0 auto 30px; max-width: 54ch; }
.cta-band .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band .sub { font-family: var(--serif); font-size: 15px; color: var(--indigo-100); margin: 24px 0 0; }
.cta-band .sub a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- CONTACT / FORMINATOR WRAP ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-aside h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(24px,3vw,32px); letter-spacing: -0.02em; color: var(--indigo); margin: 0 0 18px; }
.contact-aside p { font-family: var(--serif); font-size: 16px; line-height: 1.7; color: var(--gray-700); margin: 0 0 16px; }
.contact-aside .direct { font-family: var(--sans); font-size: 14px; color: var(--gray-600); margin-top: 24px; }
.contact-aside .direct a { color: var(--blue-link); }
.af-formwrap {
  background: transparent; border: 1px solid var(--gray-200); border-radius: 4px; padding: 32px 30px;
}
/* Forminator layout tidy — stack, brand the labels + submit */
.af-formwrap .forminator-row { margin-bottom: 6px; }
.af-formwrap .forminator-label { font-family: var(--sans) !important; font-weight: 500 !important; color: var(--indigo) !important; }
.af-formwrap .forminator-input,
.af-formwrap .forminator-textarea {
  border-radius: 4px !important; border: 1px solid var(--gray-300) !important;
  font-family: var(--sans) !important; max-width: 100%;
}
.af-formwrap .forminator-button-submit {
  background: var(--indigo) !important; color: var(--white) !important; border-radius: 6px !important;
  font-family: var(--sans) !important; font-weight: 700 !important; letter-spacing: 0.02em;
}
.af-formwrap .forminator-button-submit:hover { background: var(--indigo-600) !important; }
.af-formwrap .select2-container { width: 100% !important; max-width: 100% !important; }

/* ---------- SINGLE POST / ARTICLE ---------- */
.page-hero .post-meta {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--indigo-100); margin: 18px 0 0;
}
.post-body { max-width: 760px; }
.post-body img {
  border-radius: 6px; margin: 24px 0; display: block; max-width: 100%; height: auto;
}
.post-body figure { margin: 24px 0; }
.post-body figcaption { font-family: var(--sans); font-size: 13px; color: var(--gray-500); margin-top: 8px; }
.post-body h2 { font-family: var(--sans); font-weight: 900; font-size: 26px; letter-spacing: -0.02em; color: var(--indigo); margin: 40px 0 16px; }
.post-body h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; color: var(--indigo); margin: 32px 0 10px; }
.post-body .speaker { font-weight: 700; color: var(--indigo); }
.post-body blockquote {
  border-left: 3px solid var(--blue); margin: 24px 0; padding: 4px 0 4px 22px;
  font-style: italic; color: var(--indigo);
}
.embed-yt {
  position: relative; width: 100%; aspect-ratio: 16/9; margin: 8px 0 28px;
  border-radius: 6px; overflow: hidden; background: #000;
}
.embed-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-back { max-width: 760px; margin: 40px 0 0; }
.post-back a { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--blue-link); }
.post-back a:hover { color: var(--indigo); }
.pagination, .nav-links { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--sans); }
.pagination .page-numbers {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--gray-200);
  border-radius: 4px; color: var(--indigo); font-weight: 500;
}
.pagination .page-numbers.current { background: var(--indigo); color: var(--white); }

/* ---------- FOOTER (matches homepage) ---------- */
footer.site {
  background: var(--indigo-700); color: var(--white); padding: 56px 0 24px;
  border-top: 1px solid var(--indigo-600);
}
footer.site .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px 32px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  border-bottom: 1px solid var(--indigo-600);
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand .mark {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: url('https://andrewfolkler.com/wp-content/uploads/2022/02/Bubble.png') center/cover no-repeat;
}
.footer-brand .fb-text { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand .fb-name, .footer-brand .fb-tag { display: inline-block; white-space: nowrap; }
.footer-brand .fb-name {
  font-family: var(--sans); font-weight: 900; font-size: 22px;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); line-height: 1.05;
}
.footer-brand .fb-tag {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--blue); margin-top: 8px; letter-spacing: 0.01em;
}
footer.site h4 {
  font-family: var(--sans); font-weight: 700; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--indigo-200);
  margin: 0 0 14px;
}
footer.site .col a {
  color: var(--white); display: block;
  font-family: var(--sans); font-size: 13px; padding: 5px 0;
}
footer.site .col a:hover { color: var(--blue); }
footer.site .social { display: flex; gap: 10px; margin-top: 6px; }
footer.site .social a {
  width: 32px; height: 32px; border-radius: 50%; background: var(--indigo-600);
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 700; font-size: 11px; color: var(--white);
  padding: 0;
}
footer.site .social a:hover { background: var(--blue); color: var(--indigo); }
.footer-legal {
  max-width: 1200px; margin: 24px auto 0; padding: 8px 32px 0;
  text-align: center; font-family: var(--sans); font-size: 12px; color: var(--indigo-200);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  header.site .inner { grid-template-columns: 1fr auto; }
  header.site nav, .nav-search { display: none; }
  .principles, .cards, .cards--2, .contact-grid { grid-template-columns: 1fr; }
  section.block { padding: 60px 0; }
  .page-hero .inner { padding: 60px 32px; }
  footer.site .inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
  footer.site .inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
