/* ==========================================================================
   Insights (blog), contact section and shared sub-page pieces
   (uses tokens from styles.css)
   ========================================================================== */

/* ---------- Article covers (typographic art, no stock photos) ---------- */
.cover {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  aspect-ratio: 16 / 10; padding: 22px 22px 20px; border-radius: 20px; color: #fff;
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 65%); mask-image: linear-gradient(200deg, #000 10%, transparent 65%);
}
.cover::after {
  content: ""; position: absolute; z-index: -1; right: -18%; top: -38%; width: 70%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 0 0 28px rgba(255, 255, 255, .04), 0 0 0 64px rgba(255, 255, 255, .03);
}
.cover-forest { background: radial-gradient(120% 90% at 100% 0%, #1F8670 0%, transparent 60%), linear-gradient(140deg, #12574D, #0B2B33); }
.cover-navy { background: radial-gradient(120% 90% at 100% 0%, #285B86 0%, transparent 60%), linear-gradient(140deg, #173246, #0C1C29); }
.cover-gold { color: var(--ink); background: radial-gradient(120% 90% at 100% 0%, #F7DB86 0%, transparent 60%), linear-gradient(140deg, #E8B52D, #CF8A33); }
.cover-gold::before { background-image: radial-gradient(rgba(10, 26, 24, .16) 1px, transparent 1px); }
.cover-gold::after { border-color: rgba(10, 26, 24, .18); box-shadow: 0 0 0 28px rgba(10, 26, 24, .04), 0 0 0 64px rgba(10, 26, 24, .03); }
.cover-kicker { margin-bottom: auto; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.cover-big { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); line-height: 1; letter-spacing: -.03em; }
.cover-sub { max-width: 30ch; font-size: 13.5px; font-weight: 600; opacity: .85; }
.cover-mark { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 10px; background: #fff; }
.cover-mark img { width: 100%; height: 100%; transform: scale(2.3); transform-origin: 50% 30%; }
.cover-mini { aspect-ratio: 1; padding: 8px; border-radius: 12px; justify-content: center; }
.cover-mini .cover-big { font-size: .95rem; letter-spacing: -.01em; }
.cover-mini::after { right: -60%; top: -60%; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.post-card {
  display: flex; flex-direction: column; gap: 0; overflow: hidden; text-decoration: none; color: var(--text);
  border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(18, 87, 77, .25); }
.post-card .cover { border-radius: 0; transition: transform .8s var(--ease); }
.post-card:hover .cover { transform: scale(1.02); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.post-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.post-title { font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: var(--navy); }
.post-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.post-go { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; background: var(--mist); color: var(--forest); transition: background-color .25s, color .25s, transform .35s var(--spring); }
.post-go .i { width: 16px; height: 16px; }
.post-card:hover .post-go { background: var(--forest); color: #fff; transform: translateX(3px); }
.post-featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.post-featured .cover { aspect-ratio: auto; min-height: 340px; }
.post-featured .cover-big { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); }
.post-featured .post-body { justify-content: center; gap: 12px; padding: clamp(24px, 3.5vw, 44px); }
.post-featured .post-title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.15; }
.post-featured .post-excerpt { -webkit-line-clamp: 4; font-size: 15.5px; }

.btn-ghost-dark { border: 1.5px solid var(--line); color: var(--navy); background: #fff; }
.btn-ghost-dark:hover { border-color: var(--forest); }
.insights-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.eyebrow-num .i { width: 13px; height: 13px; stroke-width: 2.4; }

/* ---------- Page heroes (blog index, contact) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(130px, 13vw, 168px) 0 clamp(64px, 7vw, 96px);
  background:
    radial-gradient(90% 80% at 0% 0%, #12463C 0%, transparent 60%),
    radial-gradient(70% 70% at 100% 100%, #17384F 0%, transparent 60%),
    linear-gradient(180deg, #0B2420 0%, #0B1D24 100%);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 20% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 20% 30%, #000 20%, transparent 75%); }
.page-hero .container { position: relative; }
.page-hero-title { margin-top: 22px; max-width: 18ch; font-family: var(--font-display); font-weight: 380; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.03em; }
.page-hero-title em { font-style: italic; font-weight: 320; color: var(--gold); }
.page-hero-lead { margin-top: 18px; max-width: 62ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgba(236, 243, 239, .74); }
.page-hero-sm { padding-bottom: clamp(48px, 5vw, 72px); }
.blog-list .post-featured { margin-bottom: 0; }

/* ---------- Article ---------- */
.article-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(120px, 12vw, 156px) 0 clamp(48px, 5vw, 72px);
  background:
    radial-gradient(90% 80% at 0% 0%, #12463C 0%, transparent 60%),
    radial-gradient(70% 70% at 100% 100%, #17384F 0%, transparent 60%),
    linear-gradient(180deg, #0B2420 0%, #0B1D24 100%);
}
.article-hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(236, 243, 239, .6); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.article-cat { display: inline-block; margin-top: 22px; padding: 6px 12px; border-radius: 999px; background: rgba(232, 181, 45, .16); border: 1px solid rgba(232, 181, 45, .35); color: var(--gold); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-title { margin-top: 16px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.article-dek { margin-top: 16px; max-width: 60ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgba(236, 243, 239, .75); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; font-size: 14px; color: rgba(236, 243, 239, .72); }
.brand-mark-sm { width: 30px; height: 30px; border-radius: 9px; }
.cover-hero { box-shadow: var(--shadow-lg); }

.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.article-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.toc { padding: 18px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.toc-title { margin-bottom: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.toc ol { display: grid; gap: 2px; max-height: calc(100vh - 360px); overflow-y: auto; counter-reset: toc; }
.toc a { position: relative; display: block; padding: 6px 8px 6px 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.toc a::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--line); transition: background-color .2s; }
.toc a:hover { color: var(--text); background: var(--paper); }
.toc a.is-active { color: var(--forest); font-weight: 700; }
.toc a.is-active::before { background: var(--gold); }
.aside-cta { padding: 18px 16px; border-radius: 18px; background: linear-gradient(150deg, #12574D, #0E3A44); color: #fff; }
.aside-cta p { font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.aside-cta b { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: #fff; }
.aside-cta .btn { margin-top: 14px; }

.article-main { min-width: 0; max-width: 760px; }
.article-body { font-size: 17.5px; line-height: 1.75; color: #24323B; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { margin-top: 2.2em; scroll-margin-top: 96px; font-family: var(--font-display); font-weight: 450; font-size: clamp(1.55rem, 1.25rem + 1vw, 2.05rem); line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 1.7em; scroll-margin-top: 96px; font-size: 1.12rem; font-weight: 800; line-height: 1.35; color: var(--navy); }
.article-body h2 + p, .article-body h3 + p { margin-top: .6em; }
.article-body strong { color: var(--navy); }
.article-body thead strong { color: inherit; }
.article-body ul, .article-body ol { display: grid; gap: .45em; padding-left: 0; }
.article-body ul li, .article-body ol li { position: relative; padding-left: 30px; }
.article-body ul li::before { content: ""; position: absolute; left: 8px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; }
.article-body ol li::before { content: counter(item); position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mist); color: var(--forest); font-size: 12px; font-weight: 800; }
.article-body a { color: var(--forest); font-weight: 700; text-underline-offset: 3px; }
.article-table { margin-top: 1.4em; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.article-table:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.article-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.article-table th, .article-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-table thead th { background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-bottom: 0; }
.article-table tbody th { font-weight: 700; color: var(--navy); background: #FAFBF9; }
.article-table tbody tr:last-child > * { border-bottom: 0; }
.article-table tbody tr:hover > * { background: #F4F8F6; }

.faq-list { display: grid; gap: 10px; margin-top: 1.2em; }
.faq-item { border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { border-color: rgba(18, 87, 77, .28); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--mist); transition: background-color .3s, transform .45s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--forest); transition: transform .35s var(--ease), background-color .3s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--forest); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 18px 16px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.faq-a > * + * { margin-top: .7em; }

.article-cta {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 48px; padding: clamp(24px, 3.5vw, 36px);
  border-radius: 24px; color: #fff; overflow: hidden; position: relative; isolation: isolate;
  background: radial-gradient(80% 90% at 0% 0%, #1E8570 0%, transparent 60%), radial-gradient(60% 60% at 100% 100%, rgba(232, 181, 45, .25), transparent 60%), linear-gradient(140deg, #12574D, #0B3B34 55%, #10293A);
}
.article-cta-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.article-cta h2 { margin-top: 8px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.15; }
.article-cta p:not(.article-cta-kicker) { margin-top: 8px; max-width: 56ch; color: rgba(236, 243, 239, .78); }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.article-disclaimer { display: flex; gap: 12px; margin-top: 28px; padding: 16px 18px; border-radius: 16px; background: #FFF8E6; border: 1px solid #F2DFA6; font-size: 13.5px; line-height: 1.65; color: #5C4A12; }
.article-disclaimer .i { width: 18px; height: 18px; margin-top: 2px; flex: none; color: #9A7A1A; }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-share > span { margin-right: 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article-share a, .article-share button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 12px; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 700; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .3s var(--spring);
}
.article-share a:hover, .article-share button:hover { border-color: var(--forest); transform: translateY(-2px); }
.article-share .i { width: 17px; height: 17px; }
.related-title { margin: 0 0 8px; }

/* ---------- Contact section ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-ways { display: grid; gap: 10px; margin-top: 28px; }
.contact-ways a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.contact-ways a:hover { transform: translateX(6px); border-color: rgba(18, 87, 77, .3); box-shadow: var(--shadow-sm); }
.contact-ways b { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.contact-ways span:last-child { font-size: 15.5px; font-weight: 700; }
.contact-way-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--forest); color: #fff; }
.contact-way-icon .i { width: 19px; height: 19px; }
.contact-way-wa { background: #25D366; }
.contact-way-gold { background: var(--gold); color: var(--ink); }
.contact-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.contact-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); font-size: 15px; }
.bk-field-wide { grid-column: 1 / -1; }
.cf-count { float: right; font-size: 12px; font-weight: 600; color: var(--muted); }
.contact-done { display: grid; justify-items: center; gap: 10px; padding: 28px 10px; text-align: center; }
.contact-done h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.contact-done p { max-width: 44ch; color: var(--muted); }
.contact-done .success-mark { width: 84px; height: 84px; margin: 0; }
.contact-page { padding-top: clamp(48px, 6vw, 80px); }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 24px 40px; align-items: center;
  padding: clamp(28px, 4.5vw, 56px); border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(70% 90% at 0% 0%, #1E8570 0%, transparent 60%), radial-gradient(60% 60% at 100% 100%, rgba(232, 181, 45, .22), transparent 60%), linear-gradient(140deg, #12574D, #0B3B34 55%, #10293A);
}
.cta-band-actions { display: grid; gap: 10px; }

/* ---------- Footer for sub-pages ---------- */
.footer-lite { padding-top: clamp(56px, 6vw, 80px); margin-top: 0; border-radius: 0; box-shadow: none; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr); gap: 32px; }
.footer-brand-col p { margin-top: 14px; max-width: 46ch; font-size: 14px; color: rgba(226, 236, 232, .65); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-contact a, .footer-cols nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.footer-contact a:hover, .footer-cols nav a:hover { color: var(--gold); }
.footer-cols nav { display: grid; align-content: start; gap: 10px; }
.footer-cols nav p { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-disclaimer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: rgba(226, 236, 232, .5); }
.footer-lite .footer-bottom { margin-top: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { font-weight: 700; color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Thank-you / privacy pages with the new header ---------- */
.page-shell .page-main, .page-shell .center-stage { padding-top: 140px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .cover { min-height: 260px; }
  .article-hero-inner { grid-template-columns: 1fr; }
  .cover-hero { max-width: 520px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .toc ol { max-height: none; }
  .aside-cta { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .post-grid, .post-grid-2 { grid-template-columns: 1fr; }
  .article-body { font-size: 16.5px; }
  .article-share > span { width: 100%; }
  .cta-band-actions .btn, .article-cta-actions .btn { width: 100%; }
}
