/*
Theme Name: The Synoptist
Theme URI: https://thesynoptist.com
Author: Eric Harrison
Author URI: https://thesynoptist.com
Description: Custom theme for The Synoptist — policy research, consulting, and government affairs. Full EB Garamond typography, deep indigo branding, compass mark identity.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: synoptist
Tags: custom-menu, editor-style, featured-images, full-width-template, custom-colors
*/

/* ============================================================
   GOOGLE FONTS — EB Garamond
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --indigo:    #1a3a52;
  --slate:     #2c3e50;
  --bg:        #f5f5f5;
  --bg-light:  #eef3f7;
  --white:     #ffffff;
  --text:      #3a3a3a;
  --muted:     #6b7280;
  --border:    #e0e0e0;
  --font:      'EB Garamond', Georgia, serif;
  --container: 1100px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; display: block; }
a     { color: var(--indigo); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.25;
  color: var(--indigo);
}
h1 { font-size: clamp(2rem, 5vw, 3rem);   letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem;  }
p  { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 72px; display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 2rem;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--indigo);
}
.nav-brand-name { font-family: var(--font); font-size: 1.25rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font); font-size: 0.9rem; color: var(--slate);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--indigo); }
.nav-links .nav-cta a {
  color: var(--white); background: var(--indigo);
  padding: 0.5rem 1.25rem; border-radius: 2px;
}
.nav-links .nav-cta a:hover { background: var(--slate); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.5rem; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--indigo); }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1.5rem 2rem; gap: 1.25rem; align-items: flex-start;
  }
  .nav-links.is-open { display: flex; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--indigo); color: rgba(255,255,255,0.75); padding: 3.5rem 0 2rem;
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand-name {
  display: block; font-family: var(--font); font-size: 1.1rem;
  color: var(--white); letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.footer-tagline { font-size: 0.9rem; font-style: italic; color: rgba(255,255,255,0.5); }
.footer-col-label {
  font-family: var(--font); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-family: var(--font); font-size: 0.9rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; }
.footer-social a {
  font-family: var(--font); font-size: 0.82rem; color: rgba(255,255,255,0.55);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.2s;
}
.footer-social a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  font-family: var(--font); font-size: 0.78rem; color: rgba(255,255,255,0.35);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ============================================================
   HOME HERO
   ============================================================ */
.home-hero {
  background: linear-gradient(150deg, var(--indigo) 0%, var(--slate) 100%);
  color: var(--white); padding: 7rem 2rem 6rem; text-align: center;
}
.home-hero svg { margin: 0 auto 2.5rem; display: block; }
.home-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.hero-tagline  { font-size: 1rem; letter-spacing: 0.05em; opacity: 0.72; font-style: italic; margin-bottom: 2.5rem; font-family: var(--font); }
.hero-intro    { font-size: 1.15rem; line-height: 1.8; opacity: 0.88; max-width: 620px; margin: 0 auto 3rem; font-family: var(--font); }
.hero-actions  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(150deg, var(--indigo) 0%, var(--slate) 100%);
  color: var(--white); padding: 5rem 2rem 4rem;
}
.page-hero .hero-inner { max-width: var(--container); margin: 0 auto; }
.page-hero .eyebrow {
  font-family: var(--font); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5); margin-bottom: 0.75rem;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { font-size: 1.1rem; opacity: 0.82; max-width: 560px; line-height: 1.8; font-family: var(--font); }

/* ============================================================
   CONTENT WRAPPER
   ============================================================ */
.page-content-wrap { max-width: var(--container); margin: 0 auto; padding: 4rem 2rem 5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font); font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.75rem 1.75rem; border-radius: 2px;
  text-decoration: none; display: inline-block; transition: all 0.2s; border: none; cursor: pointer;
}
.btn-outline-white { border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }
.btn-white   { background: var(--white); color: var(--indigo); }
.btn-white:hover { background: var(--bg); color: var(--indigo); }
.btn-indigo  { background: var(--indigo); color: var(--white); }
.btn-indigo:hover { background: var(--slate); color: var(--white); }

/* ============================================================
   BLOCK EDITOR CONTENT STYLES
   ============================================================ */
.entry-content { font-family: var(--font); }
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 { font-family: var(--font); font-weight: 400; color: var(--indigo); margin-top: 2.5rem; margin-bottom: 1rem; }
.entry-content h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.entry-content h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.entry-content h3 { font-size: 1.35rem; }
.entry-content p, .entry-content li { font-size: 1.05rem; line-height: 1.85; color: var(--text); font-family: var(--font); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content a { color: var(--indigo); text-decoration: underline; }
.entry-content a:hover { color: var(--slate); }
.entry-content blockquote {
  border-left: 3px solid var(--indigo); padding: 1rem 1.5rem;
  margin: 2rem 0; background: var(--bg-light); font-style: italic; font-size: 1.05rem;
}
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.entry-content img { border-radius: 2px; margin: 1.5rem 0; }
.entry-content .wp-block-button__link {
  font-family: var(--font) !important; font-size: 0.9rem !important;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-radius: 2px !important; background: var(--indigo) !important; padding: 0.75rem 1.75rem !important;
}
.entry-content .wp-block-separator { border-color: var(--border); opacity: 1; }
.entry-content .wp-block-pullquote {
  border-top: 3px solid var(--indigo); border-bottom: 3px solid var(--indigo); padding: 2rem; margin: 2.5rem 0;
}
.entry-content .wp-block-pullquote blockquote { border: none; background: none; padding: 0; }
.entry-content .wp-block-pullquote p { font-size: 1.3rem; color: var(--indigo); font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: 0.95rem; margin: 1.5rem 0; }
.entry-content th { background: var(--indigo); color: var(--white); padding: 0.65rem 1rem; text-align: left; font-weight: 500; }
.entry-content td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.entry-content tr:last-child td { border-bottom: none; }

/* ============================================================
   SERVICE CARDS (Home)
   ============================================================ */
.service-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 2px; padding: 2rem; border-top: 3px solid var(--indigo);
}
.service-card-num {
  font-family: var(--font); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--slate); opacity: 0.5; margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.3rem; color: var(--indigo); margin-bottom: 0.75rem; }
.service-card p  { font-size: 0.95rem; line-height: 1.75; color: var(--text); }
@media (max-width: 900px) { .service-cards { grid-template-columns: 1fr; } }

/* ============================================================
   SPLIT SECTION (Home — Approach)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-visual {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem; background: var(--bg-light); border: 1px solid var(--border); border-radius: 2px;
}
.feature-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.feature-item h4 { font-size: 1.1rem; color: var(--indigo); margin-bottom: 0.25rem; }
.feature-item p  { font-size: 0.92rem; color: var(--text); line-height: 1.7; margin: 0; }
@media (max-width: 768px) { .split { grid-template-columns: 1fr; } .split-visual { display: none; } }

/* ============================================================
   FOCUS AREAS (Home)
   ============================================================ */
.areas-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border: 1px solid var(--border); border-radius: 2px; overflow: hidden;
  margin-top: 2rem;
}
.area-item { padding: 2rem 1.5rem; border-right: 1px solid var(--border); text-align: center; }
.area-item:last-child { border-right: none; }
.area-item h4 { font-size: 1rem; color: var(--indigo); margin-bottom: 0.4rem; }
.area-item p  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 900px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .area-item:nth-child(2) { border-right: none; }
  .area-item:nth-child(1), .area-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 500px) {
  .areas-grid { grid-template-columns: 1fr; }
  .area-item { border-right: none; border-bottom: 1px solid var(--border); }
  .area-item:last-child { border-bottom: none; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--indigo); color: var(--white); padding: 5rem 2rem; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p  { font-size: 1rem; opacity: 0.78; max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.8; font-style: italic; font-family: var(--font); }

/* ============================================================
   EYEBROW LABEL
   ============================================================ */
.eyebrow {
  font-family: var(--font); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate); margin-bottom: 0.75rem;
}

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.section      { padding: 5rem 0; }
.section-bg   { background: var(--bg); }
.section-light { background: var(--bg-light); }
.container    { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: start; }
.about-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.about-body p  { font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.5rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.sidebar-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: 2px; padding: 1.75rem; }
.sidebar-card-label {
  font-family: var(--font); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--slate); opacity: 0.6; margin-bottom: 0.75rem;
}
.sidebar-card p, .sidebar-card li { font-size: 0.92rem; color: var(--text); line-height: 1.7; font-family: var(--font); }
.sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.sidebar-card ul li::before { content: "—"; margin-right: 0.5rem; color: var(--indigo); opacity: 0.5; }
@media (max-width: 768px) { .about-layout { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 5rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--font); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); opacity: 0.8;
}
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font); font-size: 1rem; color: var(--text);
  background: var(--white); border: 1px solid var(--border);
  border-radius: 2px; padding: 0.65rem 0.9rem; outline: none; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--indigo); }
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-aside h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.contact-aside p  { font-size: 0.98rem; line-height: 1.8; margin-bottom: 1.5rem; }
.contact-detail { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.contact-detail-label {
  font-family: var(--font); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate); opacity: 0.6; margin-bottom: 0.25rem;
}
.contact-detail a, .contact-detail span { font-size: 0.95rem; color: var(--text); font-family: var(--font); }
.contact-detail a { color: var(--indigo); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }
.contact-note { margin-top: 2.5rem; padding: 1.75rem; background: var(--bg-light); border: 1px solid var(--border); border-radius: 2px; font-size: 0.92rem; line-height: 1.75; color: var(--text); font-family: var(--font); }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; gap: 3rem; } }

/* ============================================================
   PLACEHOLDER (Tools / Data)
   ============================================================ */
.placeholder-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem; min-height: 40vh; background: var(--bg);
}
.placeholder-wrap svg { margin: 0 auto; }
.placeholder-wrap h2 { margin: 2rem 0 0.75rem; }
.placeholder-wrap p  { font-size: 1.05rem; color: var(--muted); max-width: 480px; line-height: 1.8; margin-bottom: 2rem; }

/* ============================================================
   DISPATCH / BLOG
   ============================================================ */
.dispatch-header {
  background: linear-gradient(150deg, var(--indigo) 0%, var(--slate) 100%);
  color: var(--white); padding: 5rem 2rem 4rem;
}
.dispatch-header .dispatch-inner { max-width: var(--container); margin: 0 auto; }
.dispatch-header .eyebrow { color: rgba(255,255,255,0.5); }
.dispatch-header h1 { color: var(--white); margin-bottom: 0.75rem; }
.dispatch-header p  { font-size: 1.1rem; opacity: 0.8; max-width: 520px; line-height: 1.8; font-family: var(--font); }
.posts-wrap { max-width: var(--container); margin: 0 auto; padding: 4rem 2rem; }
.post-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 2.5rem;
  padding: 2.5rem 0; border-bottom: 1px solid var(--border); align-items: start;
}
.post-card:first-child { padding-top: 0; }
.post-meta { font-family: var(--font); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); line-height: 1.7; }
.post-card h2 { font-size: 1.4rem; margin-bottom: 0.6rem; line-height: 1.3; }
.post-card h2 a { color: var(--indigo); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-excerpt { font-size: 0.98rem; color: var(--text); line-height: 1.75; margin-bottom: 0.75rem; font-family: var(--font); }
.read-more { font-family: var(--font); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--indigo); text-decoration: none; }
.read-more:hover { text-decoration: underline; }
.no-posts { padding: 4rem 0; text-align: center; color: var(--muted); }
.no-posts p { margin-top: 0.75rem; font-size: 1rem; }
.post-single-wrap { max-width: 740px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.post-single-header { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.post-single-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.post-single-meta { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font); }
.post-back {
  display: inline-block; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);
  font-family: var(--font); font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--indigo); text-decoration: none; width: 100%;
}
.post-back:hover { text-decoration: underline; }
@media (max-width: 680px) { .post-card { grid-template-columns: 1fr; gap: 0.5rem; } }
