/*
Theme Name: GetFinalExpense News
Theme URI: https://news.getfinalexpense.co
Author: Letter Seven LLC
Description: Custom theme matching the GetFinalExpense.co parent site visual identity. Built for the news subdomain so users perceive a single seamless brand.
Version: 1.0.1
License: Proprietary
Text Domain: gfe-news
*/

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

:root {
  --navy: #1a2744;
  --navy-light: #2a3d5e;
  --slate: #3d4f6f;
  --gold: #c8922a;
  --gold-hover: #b07f1e;
  --gold-light: #f5e6c4;
  --warm-white: #faf8f5;
  --warm-gray: #f2efe9;
  --text-primary: #1a2744;
  --text-secondary: #5a6577;
  --text-light: #8a94a6;
  --border: #e2ddd5;
  --green: #2d8a4e;
  --green-light: #e8f5ec;
  --shadow-sm: 0 1px 3px rgba(26,39,68,0.06);
  --shadow-md: 0 4px 16px rgba(26,39,68,0.08);
  --shadow-lg: 0 8px 32px rgba(26,39,68,0.12);
  --shadow-xl: 0 16px 48px rgba(26,39,68,0.16);
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER (mirrors parent) ─── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; }
.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--gold); font-weight: 600; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
}
.header-phone svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.header-phone-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  display: block;
  line-height: 1;
  margin-bottom: 1px;
}

/* ─── PAGE HERO (mini, for post/page headers) ─── */
.page-hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 55%, var(--slate) 100%);
  padding: 64px 0 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(200,146,42,0.10), transparent 55%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 820px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 500;
}
.page-hero .meta {
  margin-top: 18px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}
.page-hero .meta a { color: rgba(255,255,255,0.9); text-decoration: none; }
.page-hero .meta a:hover { color: var(--gold-light); }

/* ─── MAIN CONTENT WRAP ─── */
.main {
  padding: 64px 0 80px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

/* ─── ARTICLE / POST CONTENT ─── */
.article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.article-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.article h1.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}
.article-featured {
  margin: 0 -48px 32px;
  border-radius: 0;
  overflow: hidden;
}
.article-featured img { width: 100%; }

.article .entry-content > * { margin-bottom: 20px; }
.article .entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}
.article .entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 10px;
}
.article .entry-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 8px;
}
.article .entry-content p,
.article .entry-content li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
}
.article .entry-content ul,
.article .entry-content ol { padding-left: 24px; }
.article .entry-content li { margin-bottom: 8px; }
.article .entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article .entry-content a:hover { color: var(--gold-hover); }
.article .entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--slate);
}
.article .entry-content img,
.article .entry-content figure {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px auto;
}
.article .entry-content figcaption {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
}
.article .entry-content code {
  background: var(--warm-gray);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.article .entry-content pre {
  background: var(--warm-gray);
  padding: 18px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.article .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.article .entry-content th,
.article .entry-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.article .entry-content th {
  background: var(--warm-gray);
  font-weight: 600;
  color: var(--navy);
}

/* ─── POST LIST (index/archive) ─── */
.post-list {
  display: grid;
  gap: 28px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card .post-meta {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.post-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 12px;
}
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--gold); }
.post-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
}
.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-card .read-more:hover { color: var(--gold-hover); }
.post-card .read-more::after { content: '→'; transition: transform 0.2s; }
.post-card .read-more:hover::after { transform: translateX(3px); }

/* ─── SIDEBAR ─── */
.sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 24px;
}
.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; }
.widget li { margin-bottom: 10px; font-size: 14px; }
.widget a { color: var(--text-secondary); text-decoration: none; }
.widget a:hover { color: var(--gold); }

.cta-widget {
  background: linear-gradient(165deg, var(--navy), var(--navy-light));
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-widget h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 8px;
  color: #fff;
}
.cta-widget p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.cta-widget .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  width: 100%;
}
.cta-widget .btn-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.pagination a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ─── SEARCH FORM ─── */
.search-form {
  display: flex;
  gap: 8px;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
}
.search-form input[type="search"]:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.search-form button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.search-form button:hover { background: var(--gold); }

/* ─── WP CORE BLOCK WIDGETS (sidebar parity) ─── */
.widget .wp-block-heading,
.widget h2.wp-block-heading,
.widget .widgettitle {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.widget .wp-block-search { display: block; }
.widget .wp-block-search__label {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: block;
  font-weight: 700;
}
.widget .wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
}
.widget .wp-block-search__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text-primary);
}
.widget .wp-block-search__input:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.widget .wp-block-search__button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.widget .wp-block-search__button:hover { background: var(--gold); }
.widget .wp-block-categories,
.widget .wp-block-archives,
.widget .wp-block-latest-posts,
.widget .wp-block-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget .wp-block-categories li,
.widget .wp-block-archives li,
.widget .wp-block-latest-posts li,
.widget .wp-block-page-list li {
  margin-bottom: 10px;
  font-size: 14px;
}
.widget .wp-block-categories a,
.widget .wp-block-archives a,
.widget .wp-block-latest-posts a,
.widget .wp-block-page-list a {
  color: var(--text-secondary);
  text-decoration: none;
}
.widget .wp-block-categories a:hover,
.widget .wp-block-archives a:hover,
.widget .wp-block-latest-posts a:hover,
.widget .wp-block-page-list a:hover {
  color: var(--gold);
}

/* ─── COMMENTS (minimal, hidden by default unless enabled) ─── */
.comments-area {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 20px;
}

/* ─── FOOTER (mirrors parent) ─── */
.site-footer {
  background: #141e30;
  padding: 40px 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  max-width: 300px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  line-height: 1.8;
  max-width: 900px;
}
.footer-disclaimer p { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 20px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .article { padding: 32px 24px; }
  .article-featured { margin: 0 -24px 24px; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 32px; }
  .article h1.article-title { font-size: 28px; }
}
@media (max-width: 768px) {
  .header-phone-label { display: none; }
  .footer-top { flex-direction: column; }
  .main { padding: 40px 0 56px; }
}
@media (max-width: 480px) {
  .article { padding: 24px 18px; }
  .article-featured { margin: 0 -18px 20px; }
  .article .entry-content p,
  .article .entry-content li { font-size: 16px; }
  .post-card { padding: 24px 20px; }
}
