/* =========================================================
   iAdvice — Blog / Insights styles
   (loads after styles.css; reuses brand tokens)
   ========================================================= */

/* ---- shared dark header band so the transparent nav reads ---- */
.blog-hero {
  position: relative;
  background: var(--ink);
  padding: clamp(140px, 20vh, 220px) 0 clamp(60px, 9vh, 96px);
  overflow: hidden;
}
.blog-hero .aura {
  position: absolute; right: -8%; top: -40%; width: 55%; height: 150%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(200,162,74,.16), transparent 68%);
}
.blog-hero .wrap { position: relative; }
.blog-hero .overline { margin-bottom: 22px; }
.blog-hero h1 { color: var(--cream); max-width: 16ch; }
.blog-hero .sub { color: var(--muted-d); font-size: clamp(17px,1.5vw,20px); max-width: 56ch; margin-top: 22px; line-height: 1.6; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--muted-d); margin-bottom: 30px;
  transition: color .3s var(--ease);
}
.back-link:hover { color: var(--gold-bright); }
.back-link .arr { transition: transform .4s var(--ease); }
.back-link:hover .arr { transform: translateX(-4px); }

/* ---- category filter row ---- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: var(--muted-d); background: transparent;
  border: 1px solid var(--hair); border-radius: 100px; padding: 8px 16px; cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.chip-btn:hover { color: var(--cream); border-color: rgba(239,233,220,.4); }
.chip-btn.active { color: #20180a; background: var(--gold); border-color: var(--gold); }

/* =========================================================
   POST GRID (index + homepage teaser)
   ========================================================= */
.post-section { background: var(--paper); padding: clamp(64px, 9vh, 110px) 0 clamp(80px, 12vh, 140px); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 32px; }

.post-card { display: flex; flex-direction: column; cursor: pointer; }
.post-card .thumb {
  position: relative; aspect-ratio: 16/10; border-radius: 4px; overflow: hidden;
  background: linear-gradient(158deg, #15414f 0%, #0b242f 100%);
}
.post-card .thumb::before { /* warm golden-hour glow echo */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 80% at 76% 16%, rgba(224,189,110,.42), rgba(216,124,138,.12) 40%, transparent 64%);
}
.post-card .thumb::after { /* faint brand sun */
  content: ''; position: absolute; right: -34px; top: -34px; width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgba(239,233,220,.14);
}
.post-card .thumb .chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #20180a; background: var(--gold); padding: 6px 11px; border-radius: 2px;
}
.post-card .thumb .glyph {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; opacity: .9;
}
.post-card .thumb .glyph svg { width: 30%; height: 30%; opacity: .5; }
/* hue variants */
.post-card.v2 .thumb { background: linear-gradient(158deg, #1d6076 0%, #0e2c39 100%); }
.post-card.v3 .thumb { background: linear-gradient(158deg, #103442 0%, #081d26 100%); }
.post-card.v4 .thumb { background: linear-gradient(158deg, #2a2552 0%, #103442 100%); }
.post-card.v5 .thumb { background: linear-gradient(158deg, #155063 0%, #0b242f 100%); }
.post-card.v6 .thumb { background: linear-gradient(158deg, #163f4a 0%, #11233a 100%); }

.post-card .body { padding: 20px 2px 0; }
.post-card .pcat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.post-card h3 {
  font-size: 21px; font-weight: 500; color: var(--paper-ink); line-height: 1.22;
  margin: 10px 0 10px; letter-spacing: -.01em; transition: color .3s var(--ease);
}
.post-card:hover h3 { color: var(--teal); }
.post-card p { font-size: 15px; color: #56636a; line-height: 1.6; }
.post-card .pmeta { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; gap: 14px; }
.post-card .pmeta .dot { color: var(--gold); }

/* featured (first on index) */
.featured { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; margin-bottom: 64px; }
.featured .thumb {
  position: relative; aspect-ratio: 4/3; border-radius: 5px; overflow: hidden;
  background: linear-gradient(155deg, #1d6076 0%, #0b242f 100%);
}
.featured .thumb::before { content:''; position:absolute; inset:0;
  background: radial-gradient(64% 74% at 72% 18%, rgba(224,189,110,.5), rgba(216,124,138,.16) 38%, transparent 62%); }
.featured .thumb .glyph { position:absolute; inset:0; display:grid; place-items:center; }
.featured .thumb .glyph svg { width: 22%; height: 22%; opacity:.5; }
.featured .chip {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #20180a; background: var(--gold); padding: 6px 12px; border-radius: 2px;
}
.featured .f-cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px; }
.featured h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 400; color: var(--paper-ink); line-height: 1.08; letter-spacing: -.02em; }
.featured p { font-size: 17px; color: #44525a; line-height: 1.65; margin: 20px 0 24px; max-width: 46ch; }
.featured .pmeta { font-size: 13.5px; color: var(--muted); display: flex; gap: 14px; margin-bottom: 26px; }
.featured .pmeta .dot { color: var(--gold); }

.section-label { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-label .overline { color: var(--gold-deep); }
.section-label h2 { font-size: clamp(22px,2.4vw,30px); color: var(--paper-ink); font-weight: 400; }

.link-gold-d {
  display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
  color: var(--gold-deep); font-weight: 600; font-size: 15px;
}
.link-gold-d .arr { transition: transform .5s var(--ease); }
.link-gold-d:hover .arr { transform: translateX(4px); }

/* =========================================================
   ARTICLE PAGE
   ========================================================= */
.article-hero {
  position: relative; background: var(--ink); overflow: hidden;
  padding: clamp(130px, 18vh, 190px) 0 clamp(48px, 7vh, 80px);
}
.article-hero .aura { position: absolute; right: -6%; top: -50%; width: 52%; height: 170%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(200,162,74,.18), transparent 66%); }
.article-hero .wrap { position: relative; max-width: 860px; }
.article-hero .a-cat { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 20px; }
.article-hero h1 { color: var(--cream); font-size: clamp(30px, 4.4vw, 54px); font-weight: 400; line-height: 1.08; letter-spacing: -.022em; max-width: 20ch; }
.article-hero .dek { color: var(--muted-d); font-size: clamp(18px,1.7vw,22px); line-height: 1.55; margin-top: 22px; max-width: 52ch; font-weight: 300; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hair); }
.article-meta .who { display: flex; align-items: center; gap: 12px; }
.article-meta .avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg,#1d6076,#0b242f); display: grid; place-items: center; color: var(--gold-bright); font-size: 14px; font-weight: 600; border: 1px solid var(--hair); }
.article-meta .who b { color: var(--cream); font-weight: 600; font-size: 14.5px; display:block; }
.article-meta .who span { color: var(--muted-d); font-size: 13px; }
.article-meta .msep { color: rgba(239,233,220,.3); }
.article-meta .mi { color: var(--muted-d); font-size: 13.5px; }

.article-body { background: var(--paper); padding: clamp(48px, 7vh, 84px) 0 clamp(60px, 9vh, 100px); }
.prose { max-width: 680px; margin: 0 auto; }
.prose > .lead { font-size: clamp(20px,1.9vw,23px); line-height: 1.6; color: #1f2d34; margin-bottom: 30px; font-weight: 400; }
.prose p { font-size: 18.5px; line-height: 1.78; color: #36454d; margin-bottom: 24px; }
.prose h2 { font-size: clamp(24px,2.4vw,30px); font-weight: 500; color: var(--paper-ink); letter-spacing: -.012em; margin: 48px 0 16px; }
.prose h3 { font-size: 20px; font-weight: 600; color: var(--paper-ink); margin: 32px 0 12px; }
.prose strong { color: var(--paper-ink); font-weight: 600; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 22px; }
.prose li { font-size: 18px; line-height: 1.7; color: #36454d; margin-bottom: 10px; }
.prose li::marker { color: var(--gold-deep); }
.prose blockquote {
  margin: 38px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--gold);
  font-size: clamp(21px,2.1vw,25px); line-height: 1.45; color: var(--paper-ink); font-weight: 300; letter-spacing: -.01em;
}
.prose .note {
  margin: 40px 0 0; padding: 22px 26px; background: #efe9dc; border-radius: 5px;
  font-size: 14px; line-height: 1.6; color: #56636a;
}
.prose .note strong { color: var(--paper-ink); }

/* author footer + related */
.article-foot { background: var(--paper); padding: 0 0 clamp(60px,9vh,110px); }
.article-foot .inner { max-width: 680px; margin: 0 auto; }
.author-card { display: flex; gap: 18px; align-items: flex-start; padding: 30px 0; border-top: 1px solid var(--hair-d); border-bottom: 1px solid var(--hair-d); }
.author-card .avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; background: linear-gradient(150deg,#1d6076,#0b242f); display: grid; place-items: center; color: var(--gold-bright); font-size: 19px; font-weight: 600; }
.author-card b { color: var(--paper-ink); font-size: 16px; display: block; margin-bottom: 4px; }
.author-card .role { color: var(--gold-deep); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.author-card p { color: #56636a; font-size: 15px; line-height: 1.6; }

.related { max-width: 1240px; margin: 0 auto; padding: clamp(48px,7vh,80px) var(--gut) 0; }
.related .section-label { margin-bottom: 26px; }

/* article-level CTA into contact */
.read-cta { background: var(--ink-2); position: relative; overflow: hidden; padding: clamp(60px,9vh,110px) 0; text-align: center; }
.read-cta .aura { position:absolute; inset:0; pointer-events:none; background: radial-gradient(40% 70% at 50% 0%, rgba(200,162,74,.14), transparent 60%); }
.read-cta .wrap { position: relative; max-width: 680px; }
.read-cta .overline { margin-bottom: 18px; }
.read-cta h2 { color: var(--cream); font-size: clamp(26px,3vw,40px); font-weight: 300; letter-spacing: -.02em; margin-bottom: 26px; }
.read-cta .btn { margin: 0 auto; }

/* progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 90; transition: width .1s linear; }

/* =========================================================
   AEO / GEO content blocks
   (answer-engine "quick answer", key takeaways, FAQ)
   ========================================================= */

/* Quick-answer box — the liftable, self-contained answer that
   answer/generative engines quote. Sits at the very top of the body. */
.aeo-answer {
  position: relative;
  margin: 0 0 36px; padding: 26px 30px;
  background: linear-gradient(180deg, #eef1ee 0%, #eae4d7 100%);
  border: 1px solid var(--hair-d); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.aeo-answer .aeo-label {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 12px;
}
.aeo-answer .aeo-label svg { width: 14px; height: 14px; }
.aeo-answer p { font-size: 17.5px; line-height: 1.62; color: #1f2d34; margin: 0; }

/* Key takeaways — scannable recap, strong for AI summarisation */
.aeo-takeaways {
  margin: 44px 0 8px; padding: 28px 30px;
  background: #fff; border: 1px solid var(--hair-d); border-radius: 8px;
}
.aeo-takeaways h2 {
  font-size: 18px; font-weight: 600; color: var(--paper-ink); letter-spacing: 0;
  margin: 0 0 18px; padding: 0; border: none;
  display: flex; align-items: center; gap: 10px;
}
.aeo-takeaways h2 svg { width: 19px; height: 19px; color: var(--gold-deep); }
.aeo-takeaways ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.aeo-takeaways li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.55; color: #36454d; }
.aeo-takeaways li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(200,162,74,.16) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9842f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 L9 17 L4 12'/></svg>") center / 12px no-repeat;
}

/* FAQ — visible Q&A backed by FAQPage schema */
.aeo-faq { margin: 48px 0 0; }
.aeo-faq > h2 {
  font-size: clamp(24px,2.4vw,30px); font-weight: 500; color: var(--paper-ink);
  letter-spacing: -.012em; margin: 0 0 8px; padding-bottom: 16px; border-bottom: 2px solid var(--gold);
}
.aeo-faq .faq-item { border-bottom: 1px solid var(--hair-d); padding: 22px 0; }
.aeo-faq .faq-item:last-child { border-bottom: none; }
.aeo-faq .faq-q { font-size: 19px; font-weight: 600; color: var(--paper-ink); margin: 0 0 10px; line-height: 1.3; }
.aeo-faq .faq-a { font-size: 16.5px; line-height: 1.7; color: #36454d; margin: 0; }

@media (max-width: 600px) {
  .aeo-answer { padding: 22px 22px; }
  .aeo-answer p { font-size: 16.5px; }
  .aeo-takeaways { padding: 24px 22px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured .thumb { aspect-ratio: 16/9; }
}
@media (max-width: 720px) {
  /* article text needs gutters (these sections don't use .wrap) */
  .prose, .article-foot .inner { padding-left: var(--gut); padding-right: var(--gut); }
  .article-meta { gap: 8px 14px; }
  .article-meta .msep { display: none; }
  /* filters scroll sideways instead of stacking into many rows */
  .blog-filters { gap: 8px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); padding: 4px var(--gut); scrollbar-width: none; }
  .blog-filters::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; }
  .section-label { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; gap: 30px; }
  .prose blockquote { padding-left: 20px; }
  .prose > .lead { font-size: 19px; }
  .prose p, .prose li { font-size: 17px; }
  .author-card { gap: 14px; }
  .related { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .read-progress { transition: none; }
}
