/* =========================================================
   Advisory Update Hub — shared stylesheet
   Palette: civic navy + teal (not finance-gold on purpose —
   this needs to read as a credible public-sector vendor too)
   ========================================================= */

:root {
  --navy-900: #12213a;
  --navy-800: #1b2e4d;
  --navy-700: #24406b;
  --teal-600: #1c7c74;
  --teal-700: #146059;
  --teal-100: #e3f2f0;
  --bg: #f6f7f9;
  --white: #ffffff;
  --ink: #1b222c;
  --ink-muted: #5b6472;
  --border: #e2e6eb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 18px rgba(18, 33, 58, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(18, 33, 58, 0.14);
  --max-width: 1160px;
  --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-muted); }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 2px;
}

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--navy { background: var(--navy-900); color: #cfd8e3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #b8c4d4; }
.section--tint { background: var(--teal-100); }
.section--white { background: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-600);
  margin-bottom: 12px;
}
.lede { font-size: 1.125rem; max-width: 640px; }
.text-center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head.align-left { margin: 0 0 36px; text-align: left; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-card-hover); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: inherit; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--navy-800); }
.btn-ghost:hover { background: var(--teal-100); color: var(--navy-800); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--navy-900); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--navy-800); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--teal-600); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy-900); }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 71px 0 0 0; background: #fff; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; overflow-y: auto; }
  .nav-links a { display: block; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: 0.85rem; }
}

/* Hero */
.hero { padding: 60px 0 80px; background: linear-gradient(180deg, #f6f7f9 0%, #eaf4f2 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 20px; }
.hero-note { font-size: 0.88rem; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.hero-art { position: relative; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* Page intro (non-home pages) */
.page-hero { padding: 52px 0 44px; background: linear-gradient(180deg, #f6f7f9, #eaf4f2); }
.page-hero .lede { margin-top: 10px; }

/* Who-we-serve split */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); transition: box-shadow .2s ease, transform .2s ease; }
.split-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.split-icon { width: 46px; height: 46px; color: var(--teal-600); margin-bottom: 16px; }
.split-card ul { margin: 16px 0 0; color: var(--ink-muted); }
.split-card li { margin-bottom: 8px; padding-left: 22px; position: relative; }
.split-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-600); font-weight: 700; }
@media (max-width: 760px) { .split-grid { grid-template-columns: 1fr; } }

/* Card grid (services) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-card); transition: box-shadow .2s ease, transform .2s ease; }
.service-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.service-icon { width: 38px; height: 38px; color: var(--teal-600); margin-bottom: 14px; }
.service-card h3 { margin-bottom: 8px; }
.service-tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.tag { font-size: 0.7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--teal-100); color: var(--teal-700); }
.tag.navy { background: #e7ecf3; color: var(--navy-800); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* Comparison / why us */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.compare-col { padding: 32px; }
.compare-col + .compare-col { border-left: 1px solid var(--border); }
.compare-col.is-us { background: var(--teal-100); }
.compare-col h3 { display: flex; align-items: center; gap: 10px; }
.compare-col ul { margin: 18px 0 0; }
.compare-col li { padding: 9px 0; border-bottom: 1px dashed var(--border); color: var(--ink-muted); display: flex; gap: 10px; }
.compare-col li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } .compare-col + .compare-col { border-left: none; border-top: 1px solid var(--border); } }

/* Stats bar */
.stats-bar { background: var(--navy-900); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding: 48px 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: #fff; }
.stat-label { font-size: 0.85rem; color: #9fb1c6; margin-top: 4px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); padding: 30px; box-shadow: var(--shadow-card); }
.stars { color: var(--teal-600); letter-spacing: 2px; margin-bottom: 12px; font-size: 1rem; }
.testimonial-quote { font-size: 1.02rem; color: var(--ink); }
.testimonial-attr { margin-top: 16px; font-weight: 700; font-family: var(--font-display); font-size: 0.9rem; color: var(--navy-800); }
.testimonial-attr span { display: block; font-weight: 400; font-family: var(--font-body); color: var(--ink-muted); font-size: 0.85rem; }
@media (max-width: 760px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* Update / blog cards */
.update-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.update-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.update-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.update-thumb { height: 110px; background: linear-gradient(135deg, var(--navy-900), var(--teal-600)); display: flex; align-items: center; justify-content: center; }
.update-thumb svg { width: 38px; height: 38px; color: rgba(255,255,255,0.85); }
.update-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.update-pillar { font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 8px; }
.update-date { font-size: 0.8rem; color: var(--ink-muted); margin-top: auto; padding-top: 14px; }
.update-card h3 { font-size: 1.05rem; }
@media (max-width: 900px) { .update-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .update-grid { grid-template-columns: 1fr; } }

/* Article */
.article-header { padding: 52px 0 30px; background: var(--navy-900); color: #fff; }
.article-header .update-pillar { color: #7fd7cc; }
.article-header h1 { color: #fff; }
.article-meta { color: #9fb1c6; font-size: 0.9rem; }
.article-body { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.article-body h2 { margin-top: 1.5em; font-size: 1.4rem; }
.article-body p, .article-body li { color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 1em; }
.article-body li { margin-bottom: 8px; }
.callout { background: var(--teal-100); border-left: 4px solid var(--teal-600); border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.article-footer-cta { background: var(--teal-100); border-radius: var(--radius-lg); padding: 32px; text-align: center; margin-top: 40px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy-800); }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); }
.radio-option input { width: auto; }
.form-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 36px; box-shadow: var(--shadow-card); }
.form-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 4px; }
.form-success { display: none; background: var(--teal-100); border-radius: var(--radius-md); padding: 20px; color: var(--teal-700); font-weight: 600; margin-top: 16px; }
.form-success.is-visible { display: block; }
.form-fallback { display: none; background: #fdf3e3; border-radius: var(--radius-md); padding: 20px; color: #8a5a12; font-weight: 500; margin-top: 16px; }
.form-fallback.is-visible { display: block; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: flex-start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Newsletter */
.newsletter { background: var(--teal-600); border-radius: var(--radius-lg); padding: 36px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter h3 { color: #fff; margin-bottom: 4px; }
.newsletter p { color: rgba(255,255,255,0.88); margin-bottom: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { width: 240px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b8c4d4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 60px 0 32px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #b8c4d4; }
.footer-grid a:hover { color: #fff; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-row .brand-mark { width: 30px; height: 30px; }
.footer-brand-row span { font-family: var(--font-display); font-weight: 700; color: #fff; }
.footer-grid p { color: #8fa0b8; font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 0.82rem; color: #7d8ea3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-disclaimer { max-width: 720px; margin: 0 auto 18px; text-align: center; font-size: 0.78rem; color: #6b7c93; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-md);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); max-width: 720px; margin: 0 auto;
  transform: translateY(140%); transition: transform .3s ease; opacity: 0;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner p { color: #cfd8e3; margin: 0; font-size: 0.85rem; }
.cookie-banner .btn { flex-shrink: 0; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; } }

/* Badge strip */
.badge-strip { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; opacity: 0.6; filter: grayscale(1); }
.badge-strip span { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--navy-800); }

/* FAQ accordion */
.faq-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-question::after { content: "+"; font-size: 1.4rem; color: var(--teal-600); flex-shrink: 0; transition: transform .2s ease; }
.faq-item.is-open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 24px; }
.faq-item.is-open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p { margin: 0; }

/* 404 */
.not-found { padding: 110px 0 130px; text-align: center; }
.not-found .code { font-family: var(--font-display); font-size: 5rem; font-weight: 700; color: var(--teal-600); line-height: 1; }
