/* ============================================================
   Senior Advocates Group — Main Stylesheet
   Palette: Navy #1a3a5c | Green #2d7d46 | Gold #c8903a
            Cream bg #fafaf8 | Card bg #f0ede6 | Text #1c1c1c
   Base font: 18px — optimized for 60+ readability
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a3a5c;
  --navy-dark: #0f2540;
  --green:  #2d7d46;
  --green-dark: #1f5c33;
  --gold:   #c8903a;
  --gold-light: #e8b86d;
  --bg:     #fafaf8;
  --card:   #f0ede6;
  --border: #dedad2;
  --text:   #1c1c1c;
  --text-muted: #555;
  --white:  #ffffff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(26,58,92,0.10);
  --shadow-hover: 0 6px 24px rgba(26,58,92,0.16);
}

html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -- Typography -- */
h1, h2, h3, h4, h5 {
  font-family: Georgia, serif;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.1em; }
a { color: var(--green); text-decoration: underline; }
a:hover { color: var(--green-dark); }
strong { color: var(--navy); }
ul, ol { margin: 0 0 1em 1.5em; }
li { margin-bottom: 0.35em; }
blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.75em 1.25em;
  background: var(--card);
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1em;
}
code { background: var(--card); padding: 0.1em 0.4em; border-radius: 3px; font-size: 0.9em; }
pre { background: var(--card); padding: 1em; border-radius: var(--radius); overflow-x: auto; }

/* -- Layout -- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; }

/* -- Header / Nav -- */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.site-logo__name {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--white);
  line-height: 1.2;
  font-family: Georgia, serif;
}
.site-logo__tagline {
  font-size: 0.72rem;
  color: var(--gold-light);
  font-family: Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: #d0dde8;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.site-nav a.nav--active { color: var(--gold-light); }
.nav-btn {
  background: var(--green) !important;
  color: var(--white) !important;
  font-weight: bold;
  padding: 0.5rem 1.1rem !important;
}
.nav-btn:hover { background: var(--green-dark) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 26px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; }

/* -- Hero -- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4d6e 100%);
  color: var(--white);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 48px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero h1 { color: var(--white); font-size: 2.4rem; margin-bottom: 0.75rem; }
.hero p { font-size: 1.15rem; color: #c8dae8; max-width: 620px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* -- Buttons -- */
.btn {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  line-height: 1.3;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn--secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn--secondary:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn--outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: #b07a2a; color: var(--white); }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }

/* -- Section scaffolding -- */
.section { padding: 3.5rem 1.5rem; }
.section--alt { background: var(--card); }
.section__title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-family: Arial, sans-serif;
}
.section__header-rule {
  width: 56px; height: 4px;
  background: var(--gold);
  margin: 0.75rem auto 0.5rem;
  border-radius: 2px;
}

/* -- Pillar grid -- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pillar-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pillar-card:hover { box-shadow: var(--shadow-hover); border-color: var(--green); transform: translateY(-2px); color: var(--text); }
.pillar-card__icon { width: 2.25rem; height: 2.25rem; color: var(--navy); }
.pillar-card__icon svg { width: 100%; height: 100%; display: block; }
.pillar-card__title { font-size: 1rem; font-weight: bold; color: var(--navy); font-family: Arial, sans-serif; }
.pillar-card__count { font-size: 0.82rem; color: var(--text-muted); font-family: Arial, sans-serif; }

/* -- Article cards -- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.article-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.18s;
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.article-card__img { width: 100%; height: 180px; object-fit: cover; }
.article-card__img--placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, #2a5a8c 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.article-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.article-card__pillar {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-weight: bold;
}
.article-card__title { font-size: 1.05rem; font-weight: bold; color: var(--navy); line-height: 1.35; }
.article-card__title a { text-decoration: none; color: inherit; }
.article-card__title a:hover { color: var(--green); }
.article-card__excerpt { font-size: 0.9rem; color: var(--text-muted); font-family: Arial, sans-serif; line-height: 1.55; flex: 1; }
.article-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.article-card__date { font-size: 0.8rem; color: var(--text-muted); font-family: Arial, sans-serif; }
.article-card__read { font-size: 0.85rem; color: var(--green); font-weight: bold; text-decoration: none; font-family: Arial, sans-serif; }
.article-card__read:hover { color: var(--green-dark); }

/* -- Article detail -- */
.article-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
}
.article-hero__pillar {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin-bottom: 0.75rem;
}
.article-hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 0; }
.article-body { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.article-body h2 { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.article-body h3 { margin-top: 1.5rem; }
.article-body a { color: var(--green); }
.article-body img { max-width: 100%; border-radius: var(--radius); margin: 1em 0; }

.article-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.article-cta h3 { color: var(--white); margin-bottom: 0.5rem; }
.article-cta p { color: #c0d4e4; font-size: 0.95rem; margin-bottom: 1.25rem; }

.related-articles { max-width: 760px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.related-articles h2 { margin-bottom: 1.25rem; }

/* -- Breadcrumb -- */
.breadcrumb {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 0.4em; }

/* -- Professional CTA banner -- */
.pro-banner {
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.pro-banner h2 { color: var(--white); margin-bottom: 0.5rem; }
.pro-banner p { color: #c8ecd4; max-width: 600px; margin: 0 auto 1.5rem; font-family: Arial, sans-serif; }

/* -- Pill / badge -- */
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  font-weight: bold;
  padding: 0.2em 0.75em;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill--green { background: #d4f0dc; color: var(--green-dark); }
.pill--navy  { background: #d0dde8; color: var(--navy); }
.pill--gold  { background: #faecd4; color: #8a5c10; }

/* -- Forms -- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-family: Arial, sans-serif; font-size: 0.95rem; font-weight: bold; color: var(--navy); margin-bottom: 0.4rem; }
.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--green); }
.form-hint { font-size: 0.82rem; color: var(--text-muted); font-family: Arial, sans-serif; margin-top: 0.3rem; }

/* -- Messages -- */
.messages { list-style: none; padding: 0; margin: 0; }
.message {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.message--success { background: #d4f0dc; color: #1a5c2a; border: 1px solid #a8dbb4; }
.message--error   { background: #fde8e8; color: #7a1c1c; border: 1px solid #f5b0b0; }
.message--info    { background: #d0dde8; color: var(--navy); border: 1px solid #a8c0d8; }

/* -- Footer -- */
.site-footer {
  background: var(--navy-dark);
  color: #a0b8cc;
  padding: 3rem 1.5rem 1.5rem;
  font-family: Arial, sans-serif;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
.footer-brand__name { color: var(--white); font-size: 1.1rem; font-family: Georgia, serif; font-weight: bold; margin-bottom: 0.5rem; }
.footer-brand__desc { font-size: 0.85rem; line-height: 1.6; color: #8aa4b8; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: #8aa4b8; text-decoration: none; font-size: 0.88rem; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: #6a8898;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* -- Pillar filter bar -- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.filter-chip {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--green); color: var(--green); }
.filter-chip--active { background: var(--green); border-color: var(--green); color: var(--white); font-weight: bold; }

/* -- Trust bar -- */
.trust-bar {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.trust-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.trust-item strong { color: var(--navy); }

/* -- Responsive -- */
@media (max-width: 768px) {
  html { font-size: 17px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark); padding: 1rem; gap: 0.25rem; }
  .site-nav.is-open { display: flex; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
