/*
Theme Name: FamilyVest
Theme URI: https://familyvest.com
Author: FamilyVest
Author URI: https://familyvest.com
Description: Custom theme matching the FamilyVest static site design system. Built for blog subdirectory deployment alongside the Vercel/InMotion static site.
Version: 1.0.0
License: Private
Text Domain: familyvest
*/

/* ========================================
   Design System Variables
   (Mirrors /styles.css on the static site)
   ======================================== */

:root {
  --navy-deep: #0A1628;
  --navy: #0F2140;
  --navy-mid: #1A3158;
  --accent: #21A0DB;
  --accent-hover: #1B8ABF;
  --accent-muted: rgba(33, 160, 219, 0.12);
  --cream: #FFFEF4;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --sand: #F0EDE6;
  --sand-dark: #E3DED3;
  --warm-gray: #A89F91;
  --text: #1E1E1E;
  --text-muted: #6B6560;
  --text-light: rgba(255, 255, 255, 0.75);

  --font-display: 'ABC Arizona Text', Georgia, serif;
  --font-body: 'Fakt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-pad: clamp(4rem, 6vw, 6rem);
  --content-max: 1200px;
  --content-narrow: 780px;
  --radius: 6px;
}

/* ========================================
   Font Faces (served from /fonts/ on root domain)
   ======================================== */

@font-face {
  font-family: 'ABC Arizona Text';
  src: url('/fonts/ABCArizonaText-Light.woff2') format('woff2'),
       url('/fonts/ABCArizonaText-Light.woff') format('woff'),
       url('/fonts/ABCArizonaText-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ABC Arizona Text';
  src: url('/fonts/ABCArizonaText-LightItalic.woff2') format('woff2'),
       url('/fonts/ABCArizonaText-LightItalic.woff') format('woff'),
       url('/fonts/ABCArizonaText-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fakt';
  src: url('/fonts/Fakt-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fakt';
  src: url('/fonts/Fakt-Normal.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fakt';
  src: url('/fonts/Fakt-NormalItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fakt';
  src: url('/fonts/Fakt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fakt';
  src: url('/fonts/Fakt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fakt';
  src: url('/fonts/Fakt-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fakt';
  src: url('/fonts/Fakt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0;
  background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); }

p { line-height: 1.7; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Typography Utilities
   ======================================== */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* ========================================
   Buttons
   ======================================== */

.btn,
.btn-primary,
.btn-ghost {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ========================================
   Navigation (identical to static site)
   ======================================== */

nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background-color: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

nav.navbar.scrolled {
  background-color: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  z-index: 1001;
}

.navbar .logo img {
  height: 48px;
  width: auto;
}

.navbar .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  list-style: none;
}

.navbar .dropdown {
  position: relative;
}

.navbar .nav-links > li > a,
.navbar .nav-links > li > a:visited,
.navbar .nav-links > li > a:active {
  color: var(--white) !important;
  font-size: 0.99rem;
  transition: color 0.3s ease;
}

.navbar .nav-links > li > a:hover {
  color: var(--accent) !important;
}

.navbar .dropdown > a:hover {
  color: var(--accent);
}

.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(10, 22, 40, 0.98);
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

.navbar .dropdown:hover .dropdown-menu,
.navbar .dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar .dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--white);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.navbar .dropdown-menu li a:hover {
  color: var(--accent);
}

.navbar .nav-cta {
  background-color: #1276a5;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  align-self: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.navbar .nav-cta:hover {
  background-color: var(--accent-hover);
  color: var(--white);
}

/* ========================================
   Hamburger (Mobile)
   ======================================== */

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: rgba(10, 22, 40, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .navbar .nav-links.active {
    max-height: 600px;
  }

  .navbar .dropdown {
    width: 100%;
  }

  .navbar .dropdown > a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    background-color: rgba(33, 160, 219, 0.1);
  }

  .navbar .dropdown:hover .dropdown-menu,
  .navbar .dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }

  .navbar .dropdown-menu li a {
    padding: 0.75rem 2rem 0.75rem 3rem;
  }

  .navbar .nav-cta {
    margin: 1rem 2rem;
    display: block;
    text-align: center;
  }
}

/* ========================================
   Blog Hero
   ======================================== */

.blog-hero {
  position: relative;
  min-height: 400px;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, #0F2140 0%, #1A3158 100%);
  margin-top: 0;
  padding-top: 80px;
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.blog-hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
}

/* ========================================
   Blog Content Area
   ======================================== */

.blog-content-area {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-pad) 2rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Blog Post Cards (Archive / Index)
   ======================================== */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.post-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--sand-dark);
  transition: all 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.post-card-meta {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.post-card-meta .category {
  background: var(--accent-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.post-card h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card .excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.post-card .read-more {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-card .read-more:hover {
  color: var(--accent-hover);
}

/* ========================================
   Blog Sidebar
   ======================================== */

.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sand);
}

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget ul li {
  margin-bottom: 0.5rem;
}

.sidebar-widget ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.sidebar-widget ul li a:hover {
  color: var(--accent);
}

/* Sidebar CTA */
.sidebar-cta {
  background: var(--navy-deep);
  border: none;
  color: var(--white);
  text-align: center;
}

.sidebar-cta h3 {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.15);
}

.sidebar-cta p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ========================================
   Single Post
   ======================================== */

.single-post-content {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) 2rem;
}

.single-post-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.single-post-header .eyebrow {
  margin-bottom: 1rem;
}

.single-post-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.single-post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Post body (WordPress content) */
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.post-body h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.post-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-muted);
  text-underline-offset: 2px;
}

.post-body a:hover {
  text-decoration-color: var(--accent);
}

/* Post navigation */
.post-navigation {
  border-top: 1px solid var(--sand-dark);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-navigation a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.post-navigation a:hover {
  color: var(--accent);
}

.post-nav-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-gray);
  display: block;
  margin-bottom: 0.25rem;
}

/* ========================================
   Pagination
   ======================================== */

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand-dark);
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.blog-pagination a {
  color: var(--text-muted);
  border: 1px solid var(--sand-dark);
}

.blog-pagination a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.blog-pagination .current {
  background: var(--navy-deep);
  color: var(--white);
  border: 1px solid var(--navy-deep);
}

/* ========================================
   Footer (identical to static site)
   ======================================== */

footer {
  background: linear-gradient(180deg, #0d1f38 0%, var(--navy-deep) 100%);
  color: var(--text-light);
  padding: clamp(3rem, 5vw, 4.5rem) 2rem clamp(2rem, 3vw, 2.5rem);
}

.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 28px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}

.footer-brand p + p { margin-top: 0.25rem; }

.footer-brand a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.footer-brand a:hover { color: var(--accent); }

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 28ch;
}

.footer-section h4 {
  color: var(--white);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
  font-weight: 600;
  opacity: 0.6;
}

.footer-section a {
  display: block;
  color: var(--text-light);
  font-size: 0.88rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
  margin-bottom: 0.6rem;
}

.footer-section a:hover {
  color: var(--accent);
  padding-left: 3px;
}

.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-disclosure {
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.3);
  max-width: 72ch;
}

.footer-copyright {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 1.5rem;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
  .footer-disclosure {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================
   Floating Contact Button
   ======================================== */

.floating-contact {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.floating-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(33, 160, 219, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.5rem;
}

.floating-contact a:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(33, 160, 219, 0.6);
  transform: scale(1.1);
}

.floating-contact svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .floating-contact {
    bottom: 1rem;
    right: 1rem;
  }

  .floating-contact a {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* ========================================
   WordPress Specific Overrides
   ======================================== */

/* Remove WordPress admin bar spacing conflict */
body.admin-bar nav.navbar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar nav.navbar {
    top: 46px;
  }
}

/* WordPress image alignment classes */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 1.5rem auto;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* WordPress block editor width constraints */
.wp-block-image,
.wp-block-embed {
  margin: 1.5rem 0;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10000;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.5rem;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   CTA Section Components
   Extracted from inline styles for maintainability.
   Used in index.php, single.php, 404.php.
   ======================================== */

.cta-navy {
  padding: 4rem var(--section-pad);
  text-align: center;
  color: var(--text-light);
}

.cta-cream {
  padding: var(--section-pad);
  text-align: center;
}

.cta-paragraph {
  margin: 1.5rem 0 2.5rem;
  max-width: 600px;
  margin-inline: auto;
  font-size: 1.05rem;
}


/* ========================================
   Keyboard Navigation & Focus States
   WCAG AA: visible focus indicator on all interactive elements.
   Uses :focus-visible (not :focus) so mouse clicks don't show outlines.
   ======================================== */

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

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.nav-links a:focus-visible {
  outline-offset: -2px;
}


/* ========================================
   WordPress Theme Class Overrides
   Maps actual WP template classes to design styles
   ======================================== */

/* Blog Archive Hero */
.page-hero.hero-bg-blog {
  position: relative;
  min-height: 400px;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: url(/wp-content/uploads/hero-insights.jpg) center center / cover no-repeat;
  margin-top: 0;
  padding-top: 80px;
}

/* Dark overlay on hero image for text readability */
.page-hero.hero-bg-blog::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.82) 0%, rgba(0, 81, 117, 0.78) 100%);
  z-index: 1;
}

/* Ensure hero content sits above the overlay */
.page-hero.hero-bg-blog .section-content {
  position: relative;
  z-index: 2;
}

.page-hero.hero-bg-blog h1 {
  font-size: clamp(2.2rem, 5.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.page-hero.hero-bg-blog p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
}

/* Blog Archive Content Area */
.blog-archive {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-pad) 2rem;
}

.blog-archive .section-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Blog Card Grid (3 columns) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Blog Post Cards */
article.card {
  background-color: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--sand-dark);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

article.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Card Image */
a.card-image {
  display: block;
  overflow: hidden;
  height: 200px;
  position: relative;
}

a.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

article.card:hover a.card-image img {
  transform: scale(1.03);
}

/* Card Body */
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Card Meta */
.card-meta {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Card Title */
.card-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.card-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--accent);
}

/* Card Excerpt */
.card-body > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Card Read More */
.card-body .read-more {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  margin-top: auto;
}

.card-body .read-more:hover {
  color: var(--accent-hover);
}


/* === Nav height & CTA alignment fixes (match static site) === */
nav.navbar {
  min-height: 117px;
}

.navbar .nav-links li:last-child {
  display: flex;
  align-items: center;
}

.navbar .nav-links .nav-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}
