/*
Theme Name:   Shield Finance
Theme URI:    https://theshieldfinance.com
Description:  Child theme for The Shield Finance — Financial Coaching for First Responders. Built on Twenty Twenty-Four.
Author:       The Shield Finance
Author URI:   https://theshieldfinance.com
Template:     twentytwentyfour
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  shield-finance
Tags:         financial, coaching, first-responders
*/

/* ============================================================
   CSS Custom Properties — Brand Tokens
   ============================================================ */
:root {
  --sf-navy:        #1B2A4A;
  --sf-navy-dark:   #0f1a30;
  --sf-navy-mid:    #243561;
  --sf-gold:        #C9A84C;
  --sf-gold-light:  #e8c96a;
  --sf-gold-pale:   #FBF0D9;
  --sf-cream:       #F9F5ED;
  --sf-off-white:   #f4f0e8;
  --sf-light:       #e8e4db;
  --sf-gray:        #6b7280;
  --sf-gray-light:  #9ca3af;
  --sf-white:       #ffffff;

  /* Typography */
  --sf-font-display: 'Bebas Neue', sans-serif;
  --sf-font-serif:   'Playfair Display', serif;
  --sf-font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --sf-section-pad:  100px 8%;
  --sf-nav-height:   72px;

  /* Transitions */
  --sf-transition: 0.22s ease;

  /* Shadows */
  --sf-shadow-sm:  0 2px 8px rgba(27,42,74,0.08);
  --sf-shadow-md:  0 8px 30px rgba(27,42,74,0.12);
  --sf-shadow-lg:  0 20px 60px rgba(27,42,74,0.16);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sf-font-body);
  background-color: var(--sf-navy-dark);
  color: var(--sf-white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Remove default WP margins that fight our layout */
.wp-site-blocks,
.wp-block-group,
main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sf-gold);
  text-decoration: none;
  transition: color var(--sf-transition);
}

a:hover {
  color: var(--sf-gold-light);
}

/* ============================================================
   Typography Scale
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sf-font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--sf-white);
  margin: 0 0 1rem;
}

.sf-display {
  font-family: var(--sf-font-display);
  letter-spacing: 0.03em;
  line-height: 0.95;
}

p {
  margin: 0 0 1rem;
}

/* ============================================================
   Utility Classes
   ============================================================ */
.sf-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.sf-section {
  padding: 100px 8%;
}

.sf-section--dark {
  background: var(--sf-navy);
  color: var(--sf-white);
}

.sf-section--navy-dark {
  background: var(--sf-navy-dark);
  color: var(--sf-white);
}

.sf-section--cream {
  background: var(--sf-navy);
}

.sf-section--off-white {
  background: var(--sf-navy-mid);
}

.sf-section--white {
  background: var(--sf-navy);
}

/* Section labels */
.sf-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sf-gold);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

/* Headings in context */
.sf-heading-xl {
  font-family: var(--sf-font-display);
  font-size: clamp(52px, 6.5vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.sf-heading-lg {
  font-family: var(--sf-font-serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
}

.sf-heading-md {
  font-family: var(--sf-font-serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
}

.sf-body-lg {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
}

.sf-body {
  font-size: 15px;
  line-height: 1.75;
}

.sf-body-sm {
  font-size: 13px;
  line-height: 1.65;
}

/* Color modifiers */
.sf-text-white     { color: var(--sf-white); }
.sf-text-gold      { color: var(--sf-gold); }
.sf-text-navy      { color: var(--sf-navy); }
.sf-text-muted     { color: var(--sf-gray); }
.sf-text-muted-w   { color: rgba(255,255,255,0.55); }

/* ============================================================
   Buttons
   ============================================================ */
.sf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--sf-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background var(--sf-transition), color var(--sf-transition),
              border-color var(--sf-transition), transform var(--sf-transition);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.sf-btn--primary {
  background: var(--sf-gold);
  color: var(--sf-navy);
}

.sf-btn--primary:hover {
  background: var(--sf-gold-light);
  color: var(--sf-navy);
  transform: translateY(-2px);
}

.sf-btn--ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}

.sf-btn--ghost-light:hover {
  border-color: var(--sf-gold);
  color: var(--sf-gold);
}

.sf-btn--ghost-dark {
  background: transparent;
  color: var(--sf-navy);
  border: 1px solid var(--sf-light);
}

.sf-btn--ghost-dark:hover {
  border-color: var(--sf-navy);
  color: var(--sf-navy);
}

.sf-btn--lg {
  padding: 18px 40px;
  font-size: 14px;
}

.sf-btn--full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   Navigation
   ============================================================ */
#sf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--sf-nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(15, 26, 48, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: box-shadow var(--sf-transition);
}

#sf-nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.sf-nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.sf-nav__shield {
  width: 36px;
  height: 36px;
  background: var(--sf-gold);
  clip-path: polygon(50% 0%, 100% 20%, 100% 65%, 50% 100%, 0% 65%, 0% 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--sf-transition);
}

.sf-nav__logo:hover .sf-nav__shield {
  transform: scale(1.08);
}

.sf-nav__shield-letter {
  font-family: var(--sf-font-display);
  font-size: 17px;
  color: var(--sf-navy);
  line-height: 1;
}

.sf-nav__wordmark {
  line-height: 1.1;
}

.sf-nav__name {
  display: block;
  font-family: var(--sf-font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--sf-white);
}

.sf-nav__tagline {
  display: block;
  font-size: 9px;
  color: var(--sf-gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.sf-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-nav__links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color var(--sf-transition);
}

.sf-nav__links a:hover,
.sf-nav__links a.active {
  color: var(--sf-gold);
}

.sf-nav__links .sf-btn--primary {
  font-size: 11px;
  padding: 9px 18px;
}

.sf-nav__links .sf-btn--primary:hover {
  transform: none;
}

/* Mobile hamburger */
.sf-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.sf-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sf-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.sf-nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sf-nav__toggle.open span:nth-child(2) { opacity: 0; }
.sf-nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.sf-nav__mobile {
  display: none;
  position: fixed;
  top: var(--sf-nav-height);
  left: 0; right: 0;
  background: var(--sf-navy-dark);
  border-bottom: 2px solid var(--sf-gold);
  padding: 24px 5%;
  z-index: 9998;
}

.sf-nav__mobile.open {
  display: block;
}

.sf-nav__mobile a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.sf-nav__mobile a:last-child {
  border-bottom: none;
  color: var(--sf-gold);
  margin-top: 8px;
  font-weight: 700;
}

/* ============================================================
   Hero Section
   ============================================================ */
.sf-hero {
  min-height: 100vh;
  background: var(--sf-navy-dark);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  position: relative;
  overflow: hidden;
  padding-top: var(--sf-nav-height);
}

/* Grid texture overlay */
.sf-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Diagonal accent line */
.sf-hero__accent {
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(44% - 2px);
  width: 4px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--sf-gold) 15%,
    var(--sf-gold) 85%,
    transparent 100%
  );
  opacity: 0.4;
  transform: skewX(-3deg);
  z-index: 1;
}

.sf-hero__left {
  padding: 80px 6% 80px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.sf-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--sf-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 2px;
  margin-bottom: 32px;
  width: fit-content;
}

.sf-hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--sf-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.sf-hero__headline {
  font-family: var(--sf-font-display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.93;
  color: var(--sf-white);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.sf-hero__headline .sf-gold {
  color: var(--sf-gold);
}

.sf-hero__sub {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin-bottom: 44px;
  font-weight: 300;
}

.sf-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.sf-hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.sf-hero__stat-num {
  font-family: var(--sf-font-display);
  font-size: 34px;
  color: var(--sf-gold);
  line-height: 1;
  display: block;
}

.sf-hero__stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
  line-height: 1.5;
}

.sf-hero__right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 8% 80px 4%;
}

/* SHIELD Card */
.sf-hero__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 8px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(8px);
}

.sf-hero__card-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sf-gold);
  font-weight: 700;
  margin-bottom: 24px;
}

.sf-shield-pillars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 32px;
}

.sf-pillar {
  display: flex;
  border-radius: 3px;
  overflow: hidden;
}

.sf-pillar__letter {
  background: var(--sf-gold);
  color: var(--sf-navy);
  font-family: var(--sf-font-display);
  font-size: 24px;
  width: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sf-pillar__text {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.82);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 11px 14px;
  flex: 1;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.sf-hero__card-note {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 18px;
}

.sf-hero__card-note strong {
  color: var(--sf-gold);
  display: block;
  margin-bottom: 4px;
}

/* ============================================================
   Trust Bar
   ============================================================ */
.sf-trust-bar {
  background: var(--sf-navy);
  border-top: 1px solid rgba(201,168,76,0.18);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.sf-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sf-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--sf-gold);
  flex-shrink: 0;
}

/* ============================================================
   Who We Serve
   ============================================================ */
.sf-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 56px;
}

.sf-who-card {
  padding: 36px 40px;
  border-right: 1px solid rgba(201,168,76,0.18);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  transition: background var(--sf-transition);
  position: relative;
  overflow: hidden;
}

.sf-who-card:hover {
  background: rgba(255,255,255,0.06);
}

.sf-who-card:nth-child(2n) {
  border-right: none;
}

.sf-who-card:nth-last-child(-n+2) {
  border-bottom: none;
}

.sf-who-card__icon {
  font-size: 30px;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}

.sf-who-card__name {
  font-family: var(--sf-font-display);
  font-size: 21px;
  letter-spacing: 0.05em;
  color: var(--sf-white);
  margin-bottom: 9px;
}

.sf-who-card__desc {
  font-size: 13.5px;
  color: var(--sf-gray);
  line-height: 1.65;
}

.sf-who-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--sf-gold);
  transition: width 0.35s ease;
}

.sf-who-card:hover::after {
  width: 100%;
}

/* ============================================================
   Problem Section
   ============================================================ */
.sf-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
}

.sf-problem-card {
  background: rgba(255,255,255,0.04);
  padding: 36px 32px;
  border-top: 3px solid var(--sf-gold);
  transition: background var(--sf-transition);
}

.sf-problem-card:hover {
  background: rgba(255,255,255,0.07);
}

.sf-problem-card__num {
  font-family: var(--sf-font-display);
  font-size: 52px;
  color: var(--sf-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}

.sf-problem-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--sf-white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.sf-problem-card__text {
  font-size: 13.5px;
  color: rgba(255,255,255,0.48);
  line-height: 1.7;
}

/* ============================================================
   SHIELD Framework
   ============================================================ */
.sf-framework-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sf-steps {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sf-step {
  display: flex;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--sf-transition);
}

.sf-step:hover {
  transform: translateX(8px);
}

.sf-step__letter {
  background: var(--sf-navy);
  color: var(--sf-gold);
  font-family: var(--sf-font-display);
  font-size: 30px;
  width: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sf-step__content {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  border-left: none;
  padding: 16px 20px;
  flex: 1;
}

.sf-step__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--sf-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.sf-step__desc {
  font-size: 12px;
  color: var(--sf-gray);
  line-height: 1.5;
}

/* Pricing Card */
.sf-pricing-card {
  background: var(--sf-navy);
  border-radius: 8px;
  padding: 48px;
  color: var(--sf-white);
  position: sticky;
  top: 90px;
}

.sf-pricing-card__price {
  font-family: var(--sf-font-display);
  font-size: 72px;
  color: var(--sf-gold);
  line-height: 1;
  margin: 20px 0 6px;
}

.sf-pricing-card__price-note {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
  margin-bottom: 30px;
}

.sf-pricing-card__title {
  font-family: var(--sf-font-serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--sf-white);
  margin-bottom: 0;
}

.sf-includes {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
}

.sf-includes li {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.sf-includes li::before {
  content: '✓';
  color: var(--sf-gold);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* ============================================================
   About Section
   ============================================================ */
.sf-about-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}

.sf-about-img-wrap {
  position: relative;
}

.sf-about-img-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

/* Fallback placeholder if no image */
.sf-about-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, var(--sf-navy) 0%, var(--sf-navy-mid) 100%);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sf-about-placeholder__initials {
  font-family: var(--sf-font-display);
  font-size: 80px;
  color: var(--sf-gold);
  opacity: 0.6;
  line-height: 1;
}

.sf-about-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--sf-gold);
  padding: 12px 18px;
  border-radius: 0 0 4px 4px;
}

.sf-about-caption strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-navy);
  line-height: 1.3;
}

.sf-about-caption span {
  font-size: 11px;
  color: rgba(27,42,74,0.65);
}

.sf-about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}

.sf-about-content p strong {
  color: var(--sf-white);
}

.sf-creds {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sf-creds li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  margin: 0;
}

.sf-creds li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--sf-gold);
  border-radius: 50%;
  margin-top: 6px;
}

/* ============================================================
   Blog Cards
   ============================================================ */
.sf-blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  gap: 24px;
  flex-wrap: wrap;
}

.sf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sf-blog-card {
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.18);
  transition: transform var(--sf-transition), box-shadow var(--sf-transition);
  display: block;
  text-decoration: none;
  color: inherit;
}

.sf-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sf-shadow-md);
  color: inherit;
}

.sf-blog-card__img {
  height: 180px;
  overflow: hidden;
}

.sf-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sf-blog-card:hover .sf-blog-card__img img {
  transform: scale(1.04);
}

.sf-blog-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--sf-navy) 0%, var(--sf-navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-blog-card__img-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sf-gold);
  text-transform: uppercase;
  border: 1px solid rgba(201,168,76,0.35);
  padding: 6px 14px;
  border-radius: 2px;
  font-weight: 600;
}

.sf-blog-card__body {
  padding: 24px;
}

.sf-blog-card__tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-gold);
  font-weight: 600;
  margin-bottom: 9px;
  display: block;
}

.sf-blog-card__title {
  font-family: var(--sf-font-serif);
  font-size: 17px;
  line-height: 1.4;
  color: var(--sf-white);
  margin-bottom: 10px;
}

.sf-blog-card__excerpt {
  font-size: 13px;
  color: var(--sf-gray);
  line-height: 1.65;
  margin-bottom: 16px;
}

.sf-blog-card__meta {
  font-size: 11px;
  color: rgba(107,114,128,0.7);
  letter-spacing: 0.04em;
}

/* ============================================================
   CTA Section
   ============================================================ */
.sf-cta-section {
  background: var(--sf-navy);
  padding: 100px 8%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sf-cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.sf-cta-section .sf-heading-lg {
  color: var(--sf-white);
  max-width: 700px;
  margin: 0 auto 20px;
}

.sf-cta-section .sf-body-lg {
  color: rgba(255,255,255,0.52);
  max-width: 520px;
  margin: 0 auto 44px;
}

.sf-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.sf-cta__disclaimer {
  margin-top: 44px;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ============================================================
   Single Post / Blog
   ============================================================ */
.sf-post-header {
  background: var(--sf-navy);
  padding: 120px 8% 80px;
  text-align: center;
}

.sf-post-header h1 {
  font-family: var(--sf-font-serif);
  font-size: clamp(28px, 4vw, 52px);
  color: var(--sf-white);
  max-width: 780px;
  margin: 0 auto 20px;
}

.sf-post-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sf-post-meta span { display: flex; align-items: center; gap: 5px; }

.sf-post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 5%;
}

.sf-post-body p {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.sf-post-body h2 {
  font-family: var(--sf-font-serif);
  font-size: 28px;
  color: var(--sf-white);
  margin: 52px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sf-gold);
}

.sf-post-body h3 {
  font-size: 20px;
  color: var(--sf-white);
  margin: 36px 0 14px;
}

.sf-post-body ul, .sf-post-body ol {
  padding-left: 0;
  margin-bottom: 24px;
}

.sf-post-body ul li, .sf-post-body ol li {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  padding: 5px 0 5px 24px;
  position: relative;
}

.sf-post-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--sf-gold);
  border-radius: 50%;
}

.sf-post-body blockquote {
  border-left: 4px solid var(--sf-gold);
  background: rgba(255,255,255,0.05);
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 0 4px 4px 0;
}

.sf-post-body blockquote p {
  font-family: var(--sf-font-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--sf-white);
  margin: 0;
}

/* ============================================================
   Page Hero (About, Services, Contact)
   ============================================================ */
.sf-page-hero {
  background: var(--sf-navy);
  padding: calc(var(--sf-nav-height) + 70px) 8% 80px;
  position: relative;
  overflow: hidden;
}

.sf-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.sf-page-hero__inner {
  position: relative;
  z-index: 1;
}

.sf-page-hero h1 {
  font-family: var(--sf-font-serif);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--sf-white);
  margin-bottom: 18px;
  max-width: 700px;
}

.sf-page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.58);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   Contact Form
   ============================================================ */
.sf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.sf-contact-info h3 {
  font-family: var(--sf-font-serif);
  font-size: 28px;
  color: var(--sf-white);
  margin-bottom: 16px;
}

.sf-contact-info p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 32px;
}

.sf-contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sf-contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.sf-contact-details li svg {
  width: 18px; height: 18px;
  color: var(--sf-gold);
  flex-shrink: 0;
}

/* WPForms overrides */
.wpforms-form .wpforms-field-label {
  font-family: var(--sf-font-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--sf-white) !important;
  margin-bottom: 6px !important;
}

.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form select,
.wpforms-form textarea {
  font-family: var(--sf-font-body) !important;
  font-size: 15px !important;
  border: 1.5px solid var(--sf-light) !important;
  border-radius: 3px !important;
  padding: 12px 14px !important;
  background: var(--sf-white) !important;
  color: var(--sf-navy) !important;
  transition: border-color var(--sf-transition) !important;
  width: 100% !important;
}

.wpforms-form input:focus,
.wpforms-form select:focus,
.wpforms-form textarea:focus {
  border-color: var(--sf-gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12) !important;
}

.wpforms-form .wpforms-submit {
  background: var(--sf-gold) !important;
  color: var(--sf-navy) !important;
  font-family: var(--sf-font-body) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 16px 36px !important;
  cursor: pointer !important;
  transition: background var(--sf-transition) !important;
}

.wpforms-form .wpforms-submit:hover {
  background: var(--sf-gold-light) !important;
}

/* ============================================================
   Footer
   ============================================================ */
#sf-footer {
  background: var(--sf-navy-dark);
  border-top: 1px solid rgba(201,168,76,0.14);
}

.sf-footer__top {
  padding: 70px 8% 50px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.sf-footer__brand-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.38);
  line-height: 1.75;
  margin-top: 16px;
  max-width: 300px;
}

.sf-footer__col h4 {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sf-gold);
  font-weight: 700;
  margin-bottom: 20px;
}

.sf-footer__col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-bottom: 11px;
  transition: color var(--sf-transition);
}

.sf-footer__col a:hover {
  color: rgba(255,255,255,0.85);
}

.sf-footer__bottom {
  background: rgba(0,0,0,0.2);
  padding: 24px 8%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.sf-footer__disclaimer {
  font-size: 10.5px;
  color: rgba(255,255,255,0.18);
  line-height: 1.75;
  max-width: 680px;
}

.sf-footer__copy {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   Scroll Reveal Animations
   ============================================================ */
.sf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.sf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sf-reveal-delay-1 { transition-delay: 0.1s; }
.sf-reveal-delay-2 { transition-delay: 0.2s; }
.sf-reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .sf-framework-inner,
  .sf-about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sf-about-img-wrap {
    max-width: 320px;
  }

  .sf-pricing-card {
    position: static;
  }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --sf-section-pad: 70px 5%;
  }

  .sf-section {
    padding: 70px 5%;
  }

  /* Nav */
  .sf-nav__links {
    display: none;
  }

  .sf-nav__toggle {
    display: flex;
  }

  /* Hero */
  .sf-hero {
    grid-template-columns: 1fr;
  }

  .sf-hero__right {
    display: none;
  }

  .sf-hero__left {
    padding: 60px 5% 70px;
  }

  .sf-hero__stats {
    gap: 28px;
  }

  /* Grids */
  .sf-who-grid,
  .sf-problem-grid,
  .sf-blog-grid {
    grid-template-columns: 1fr;
  }

  .sf-who-card:nth-child(2n) {
    border-right: 1px solid var(--sf-light);
  }

  .sf-who-card:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--sf-light);
  }

  .sf-who-card:last-child {
    border-bottom: none;
  }

  .sf-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sf-trust-bar {
    gap: 22px;
  }

  .sf-trust-item {
    font-size: 10px;
  }

  /* Footer */
  .sf-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 50px 5% 36px;
  }

  .sf-footer__bottom {
    flex-direction: column;
    gap: 16px;
  }

  .sf-blog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sf-cta__actions {
    flex-direction: column;
    align-items: center;
  }
}


/* ============================================================
   Dark Theme Overrides — Force dark backgrounds on all pages
   ============================================================ */

/* Override any Gutenberg block with white/light backgrounds */
.wp-block-group.has-background[style*="background-color: #fff"],
.wp-block-group.has-background[style*="background-color: rgb(255, 255, 255)"],
.wp-block-group.has-background[style*="background-color:#fff"] {
  background-color: var(--sf-navy) !important;
  color: var(--sf-white) !important;
}

/* Override common white background WordPress blocks */
.wp-block-group.has-background,
.wp-block-cover.has-background-dim {
  color: var(--sf-white);
}

/* Ensure all text in dark blocks is readable */
.sf-section--dark p,
.sf-section--dark li,
.sf-section--navy-dark p,
.sf-section--navy-dark li {
  color: rgba(255,255,255,0.75);
}

.sf-section--dark h1,
.sf-section--dark h2,
.sf-section--dark h3,
.sf-section--dark h4,
.sf-section--navy-dark h1,
.sf-section--navy-dark h2,
.sf-section--navy-dark h3,
.sf-section--navy-dark h4 {
  color: var(--sf-white);
}

/* About page photo card placeholder */
.sf-about-placeholder {
  background: linear-gradient(145deg, var(--sf-navy-mid) 0%, var(--sf-navy) 100%);
}

/* Fix who cards on dark background */
.sf-who-card {
  background: rgba(255,255,255,0.03);
  color: var(--sf-white);
}

.sf-who-card__desc {
  color: rgba(255,255,255,0.55);
}

/* Override any inline white background styles from block editor */
.entry-content .wp-block-group[style*="background-color"],
.entry-content .wp-block-cover[style*="background-color"] {
  background-color: var(--sf-navy) !important;
}


/* ============================================================
   Page Theme Unification — Match Home Page Dark Style
   ============================================================ */

/* Inner page hero: use same dark background as home page */
.sf-page-hero {
  background: var(--sf-navy-dark) !important;
}

/* All sections: standardize to home page dark palette */
.sf-section--dark {
  background: var(--sf-navy-dark) !important;
}

/* Keep the slightly-lighter mid-navy for contrast sections */
.sf-section--navy-dark {
  background: var(--sf-navy) !important;
}

/* Post header (blog single posts) */
.sf-post-header {
  background: var(--sf-navy-dark) !important;
}

/* Post body area */
.sf-post-body {
  background: var(--sf-navy-dark);
}

/* General page wrapper */
body.page .wp-site-blocks,
body.single .wp-site-blocks {
  background: var(--sf-navy-dark);
}
