/*
 Theme Name:   GeneratePress Child - Joshua Smith Digital
 Theme URI:    https://www.joshuasmithdigital.com
 Description:  Custom child theme for Joshua Smith Digital. Applies the prayer-flag
               color palette, Source Serif 4 + DM Sans typography, and full component
               design system on top of GeneratePress + GP Premium.
 Author:       Joshua Smith
 Author URI:   https://www.joshuasmithdigital.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepress-child
*/


/* ==========================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   Palette derived from Himalayan prayer flag photography.
   ========================================================================== */

:root {
  /* Primary: deep slate-blue (mountain shadows) */
  --slate: #2C3E5A;
  --slate-light: #4A6080;
  --slate-pale: #E8ECF2;
  --slate-dark: #1B2A42;

  /* Accent: warm gold (yellow prayer flag) */
  --gold: #C49A2A;
  --gold-light: #D4B04E;
  --gold-pale: #e8eaef;
  --gold-dark: #A17E1C;

  /* Secondary: forest green (green prayer flag) */
  --forest: #3D7A5A;
  --forest-light: #5A9B76;
  --forest-pale: #E4F0EA;

  /* Tertiary: muted crimson (red prayer flag) */
  --crimson: #B8453A;
  --crimson-muted: #C4635A;
  --crimson-pale: #F5E4E2;

  /* Neutrals */
  --charcoal: #1A1F2A;
  --dark: #232833;
  --text: #2E3440;
  --text-light: #5C6370;
  --text-lighter: #8B929E;
  --bg: #FAFBFC;
  --white: #FFFFFF;
  --border: #E2E5EA;
  --warm-white: #F7F8FA;

  /* Layout */
  --container-width: 1200px;
  --nav-height: 72px;
  --section-padding: 100px 48px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med: 0.25s ease;

  /* Shadows */
  --shadow-card: 0 8px 30px rgba(44, 62, 90, 0.08);
  --shadow-card-light: 0 8px 30px rgba(44, 62, 90, 0.06);
  --shadow-elevated: 0 12px 40px rgba(44, 62, 90, 0.08);
  --shadow-dark: 0 12px 40px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   2. BASE / RESET OVERRIDES
   ========================================================================== */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

/* --- Headings: Source Serif 4 --- */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.site-title {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  font-weight: 400;
}

h1,
.entry-title {
  font-size: 3.5rem;
  line-height: 1.12;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.15;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Italic emphasis in headings uses gold */
h1 em,
h2 em,
.entry-title em {
  font-style: italic;
  color: var(--gold);
}

/* Body text */
p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}

a {
  color: var(--slate);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--slate-dark);
}


/* ==========================================================================
   4. SECTION LABEL (uppercase gold label above headings)
   ========================================================================== */

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* ==========================================================================
   5. SECTION HEADING (shared pattern)
   ========================================================================== */

.section-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.5rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.15;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.7;
}


/* ==========================================================================
   6. NAVIGATION (GeneratePress header overrides)
   Uses !important on key properties to override GP's dynamic
   inline CSS output, which has equal or higher specificity.
   ========================================================================== */

/* Dark frosted glass fixed nav */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 15, 16, 0.95) !important;
  background-color: rgba(14, 15, 16, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none !important;
  height: var(--nav-height);
}

/* Offset body content for fixed nav */
body {
  padding-top: var(--nav-height);
}

/* GP one-container layout: remove default content background/padding
   so full-bleed sections (hero, trust bar, about, CTA) work. */
body.one-container .site-content,
body .site-content {
  background-color: transparent !important;
}

body.one-container .inside-article,
body.one-container .site-main>.post,
body.one-container .site-main {
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
}

/* Remove GP's separate content container box styling */
.separate-containers .inside-article,
.separate-containers .site-main>.post {
  padding: 0 !important;
  background: transparent !important;
}

/* Ensure page content uses full width (no sidebar gap) */
.site-content .content-area {
  width: 100% !important;
  max-width: 100% !important;
}

/* Inner container */
.site-header .inside-header {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 48px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent !important;
}

/* Navigation wrapper: override GP's background color output */
.main-navigation,
.main-navigation .main-nav,
.menu-toggle {
  background-color: transparent !important;
  background: transparent !important;
}

/* Logo / site title — must match GP's .main-title a selector */
.site-title,
.site-title a,
.main-title a,
.main-title a:hover {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white) !important;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* "Digital" portion via custom logo markup or GP Elements */
.site-title .site-title-light {
  color: var(--slate-light) !important;
  font-weight: 400;
}

/* Nav links: light text for dark header */
.main-navigation a,
.main-navigation .main-nav ul li a {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  padding: 0;
  background: transparent !important;
  background-color: transparent !important;
}

.main-navigation a:hover,
.main-navigation .main-nav ul li a:hover {
  color: var(--white) !important;
  background: transparent !important;
}

/* Active nav item */
.main-navigation .main-nav ul li.current-menu-item>a,
.main-navigation .main-nav ul li.current_page_item>a {
  color: var(--white) !important;
  font-weight: 600;
}

/* Nav CTA button ("Work With Me") — stands out on dark header */
.main-navigation .main-nav ul li.nav-cta>a,
.menu-item.nav-cta>a {
  background: var(--gold) !important;
  background-color: var(--gold) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background var(--transition-fast);
}

.main-navigation .main-nav ul li.nav-cta>a:hover,
.menu-item.nav-cta>a:hover {
  background: var(--gold-dark) !important;
  background-color: var(--gold-dark) !important;
  color: var(--white) !important;
}

/* Nav spacing between items */
.main-navigation .main-nav ul li {
  margin: 0 0 0 36px;
}

/* Dropdown menus */
.main-navigation ul ul {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 8px 0;
}

.main-navigation ul ul a {
  padding: 8px 20px;
  font-size: 0.85rem;
}


/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

/* Primary button (slate) */
.btn-primary,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  background: var(--slate);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  display: inline-block;
  line-height: 1.4;
}

.btn-primary:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--slate-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* CTA button (gold) */
.btn-cta,
.wp-block-button.is-style-cta .wp-block-button__link {
  background: var(--gold);
  color: var(--white);
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-cta:hover,
.wp-block-button.is-style-cta .wp-block-button__link:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Secondary button (text link with arrow) */
.btn-secondary {
  color: var(--gold-dark);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition-fast);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-secondary:hover {
  gap: 12px;
  color: var(--gold-dark);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   8. HERO SECTIONS
   ========================================================================== */

/* --- Homepage hero --- */
.hero {
  padding: 60px 48px 100px;
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-photo {
  position: relative;
}

.hero-photo .photo-frame {
  width: 340px;
  height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-photo .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo .accent-bar {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--gold-light);
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* --- Page hero (light variant, e.g. About) --- */
.page-hero {
  padding: 152px 48px 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

.page-hero-text h1 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.page-hero-text .lead {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* --- Page hero (dark variant, e.g. Services) --- */
.page-hero-dark {
  padding: 152px 48px 88px;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.page-hero-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 90, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-dark .page-hero-inner {
  position: relative;
}

.page-hero-dark h1 {
  color: var(--white);
}

.page-hero-dark .lead {
  color: rgba(255, 255, 255, 0.65);
}

/* --- Hero stat cards (dark hero) --- */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.hero-stat-card .number {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1;
}

.hero-stat-card .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}


/* ==========================================================================
   9. TRUST BAR
   ========================================================================== */

.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px;
}

.trust-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.trust-stat {
  text-align: center;
}

.trust-stat .number {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.5rem;
  color: var(--slate);
  line-height: 1;
  margin-bottom: 4px;
  font-weight: 600;
}

.trust-stat .label {
  font-size: 0.8rem;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.trust-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}


/* ==========================================================================
   10. SERVICES SECTION + CARDS
   ========================================================================== */

.services {
  padding: var(--section-padding);
  max-width: var(--container-width);
  margin: 0 auto;
}

.services-grid,
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.offerings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card,
.offering-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition-med);
}

.service-card:hover,
.offering-card:hover {
  border-color: var(--slate-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.card-icon,
.offering-icon {
  width: 44px;
  height: 44px;
  background: var(--slate-pale);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg,
.offering-icon svg {
  color: var(--slate);
  width: 22px;
  height: 22px;
}

/* Gold icon variant */
.offering-icon.gold {
  background: var(--gold-pale);
}

.offering-icon.gold svg {
  color: var(--gold-dark);
}

/* Forest icon variant */
.offering-icon.forest {
  background: var(--forest-pale);
}

.offering-icon.forest svg {
  color: var(--forest);
}

.service-card h3,
.offering-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.service-card p,
.offering-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}


/* ==========================================================================
   11. SERVICE SECTIONS
   ========================================================================== */

/* Standard service section (transparent bg, contained) */
.service-section {
  padding: var(--section-padding);
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Alt section inner container (white bg wraps to edges, content contained) */
.service-section-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

.service-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 56px;
}

.service-header h2 {
  font-size: 2.25rem;
}

.service-header .service-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  padding-top: 8px;
}

/* Alternating background section */
.service-section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-section-alt .offering-card {
  background: var(--bg);
}


/* ==========================================================================
   12. PROCESS STEPS
   ========================================================================== */

.process {
  background: var(--gold-pale);
  padding: var(--section-padding);
}

.process-inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.process-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--slate);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 auto 20px;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Connector lines between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--border);
}


/* ==========================================================================
   13. COMMITMENT / CALLOUT BANNER
   ========================================================================== */

.commitment {
  background: var(--slate);
  padding: 72px 48px;
}

.commitment-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.commitment h2 {
  font-size: 2rem;
  color: var(--white);
  line-height: 1.25;
}

.commitment p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}


/* ==========================================================================
   14. ABOUT SECTION (gold-pale background)
   ========================================================================== */

.about,
.bio {
  background: #e8eaef;
  padding: var(--section-padding);
}

.about-inner,
.bio-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.bio-inner {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.about-text h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text p {
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-text p:last-of-type {
  margin-bottom: 32px;
}


/* ==========================================================================
   15. APPROACH CARDS
   ========================================================================== */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.approach-card {
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-med);
}

.approach-card:hover {
  border-color: var(--slate-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.approach-number {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1;
}

.approach-card h3 {
  margin-bottom: 10px;
}

.approach-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}


/* ==========================================================================
   16. CREDENTIALS BLOCK (About sidebar)
   ========================================================================== */

.credentials-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.credentials-block h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-lighter);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.credential-item:last-child {
  margin-bottom: 0;
}

.credential-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.credential-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.credential-text .sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-top: 2px;
}


/* ==========================================================================
   17. EXPERTISE CARDS
   ========================================================================== */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  transition: all var(--transition-med);
}

.expertise-card:hover {
  border-color: var(--slate-light);
  box-shadow: var(--shadow-card-light);
}

.expertise-icon {
  width: 52px;
  height: 52px;
  background: var(--slate-pale);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-icon svg {
  color: var(--slate);
  width: 24px;
  height: 24px;
}

.expertise-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.expertise-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}


/* ==========================================================================
   18. PERSONAL / QUOTE BANNER (slate background)
   ========================================================================== */

.personal {
  background: var(--slate);
  padding: 80px 48px;
}

.personal-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.personal-quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  line-height: 1.5;
  max-width: 200px;
  font-weight: 400;
  font-style: italic;
}

.personal-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  max-width: 700px;
}


/* ==========================================================================
   19. CTA SECTION (charcoal background)
   ========================================================================== */

.cta-section {
  padding: var(--section-padding);
  background: var(--charcoal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 90, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--text-lighter);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}


/* ==========================================================================
   20. ARTICLE / BLOG POST TYPOGRAPHY
   ========================================================================== */

/* Article hero */
.article-hero {
  padding: 140px 48px 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.article-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumb,
.entry-meta .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--text-lighter);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--slate);
}

/* Article category label */
.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 16px;
}

.article-category .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* Article meta (date, read time, author) */
.article-meta,
.entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-lighter);
}

.meta-divider {
  width: 3px;
  height: 3px;
  background: var(--text-lighter);
  border-radius: 50%;
}

/* Author block */
.author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-pale);
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  color: var(--text);
  font-weight: 500;
}

/* Article layout (content + sidebar) */
.article-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 48px 100px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  align-items: start;
}

/* Article body content (scoped to single posts only) */
.article-content,
.jsd-single-post .entry-content {
  max-width: 720px;
}

.article-content p,
.entry-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.article-content p.lead-paragraph {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
}

.article-content h2,
.entry-content h2 {
  font-size: 1.75rem;
  margin: 48px 0 16px;
  line-height: 1.25;
}

.article-content h3,
.entry-content h3 {
  font-size: 1.15rem;
  margin: 36px 0 12px;
}

.article-content ul,
.article-content ol,
.entry-content ul,
.entry-content ol {
  margin: 0 0 24px 20px;
}

.article-content li,
.entry-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 8px;
  padding-left: 8px;
}

.article-content li::marker,
.entry-content li::marker {
  color: var(--gold);
}

.article-content strong,
.entry-content strong {
  font-weight: 600;
  color: var(--charcoal);
}


/* ==========================================================================
   21. CALLOUT BOX (blog content)
   ========================================================================== */

.callout,
.wp-block-group.is-style-callout {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 32px 0;
}

.callout p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0;
}

.callout strong {
  color: var(--gold-dark);
}


/* ==========================================================================
   22. STAT HIGHLIGHT (blog content)
   ========================================================================== */

.stat-highlight,
.wp-block-group.is-style-stat-highlight {
  background: var(--slate-pale);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
}

.stat-highlight .number {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 3rem;
  color: var(--slate);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-highlight .label {
  font-size: 0.9rem;
  color: var(--text-light);
}


/* ==========================================================================
   23. BLOCKQUOTES
   ========================================================================== */

blockquote,
.wp-block-quote {
  border-left: 3px solid var(--slate-light);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
}

blockquote p,
.wp-block-quote p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--slate);
  line-height: 1.65;
}


/* ==========================================================================
   24. ARTICLE SIDEBAR
   ========================================================================== */

.article-sidebar {
  position: sticky;
  top: 104px;
}

.sidebar-block {
  margin-bottom: 28px;
}

.sidebar-block h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-lighter);
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Table of Contents */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-list a {
  font-size: 0.825rem;
  color: var(--text-light);
  text-decoration: none;
  line-height: 1.45;
  display: block;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.toc-list a:hover {
  color: var(--slate);
  border-left-color: var(--slate);
}

.toc-list a.active {
  color: var(--slate);
  font-weight: 600;
  border-left-color: var(--gold);
}

/* Share buttons */
.share-links {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  transition: all var(--transition-fast);
  background: var(--white);
}

.share-btn:hover {
  border-color: var(--slate);
  color: var(--slate);
  background: var(--slate-pale);
}

/* Sidebar newsletter */
.sidebar-newsletter {
  background: var(--gold-pale);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidebar-newsletter h4 {
  border: none;
  padding-bottom: 0;
  color: var(--charcoal);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.sidebar-newsletter p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 14px;
}

.sidebar-newsletter input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-family: inherit;
  margin-bottom: 8px;
  outline: none;
}

.sidebar-newsletter input:focus {
  border-color: var(--slate);
}

.sidebar-newsletter button {
  width: 100%;
  padding: 10px;
  background: var(--slate);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.sidebar-newsletter button:hover {
  background: var(--slate-dark);
}


/* ==========================================================================
   25. TAGS
   ========================================================================== */

.tag,
.wp-block-tag-cloud a {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.tag:hover,
.wp-block-tag-cloud a:hover {
  border-color: var(--slate-light);
  color: var(--slate);
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tag color variants */
.tag-marketing {
  color: var(--slate);
}

.tag-seo {
  color: var(--forest);
}

.tag-web {
  color: var(--gold-dark);
}


/* ==========================================================================
   26. AUTHOR BOX
   ========================================================================== */

.author-box {
  max-width: 720px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 64px;
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-pale) 0%, #C8D0DC 100%);
}

.author-box-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.author-box-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}


/* ==========================================================================
   27. RELATED POSTS GRID
   ========================================================================== */

.related-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.related-card,
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-med);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.related-card:hover,
.article-card:hover {
  border-color: var(--slate-light);
  box-shadow: var(--shadow-card-light);
  transform: translateY(-3px);
}

.related-thumb,
.article-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--slate-pale) 0%, #D2D8E2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-thumb img,
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Alternate thumbnail tints */
.article-card:nth-child(3n+2) .article-thumb {
  background: linear-gradient(135deg, var(--gold-pale) 0%, #E8DCC4 100%);
}

.article-card:nth-child(3n+3) .article-thumb {
  background: linear-gradient(135deg, var(--forest-pale) 0%, #C4D8CC 100%);
}

.related-body,
.article-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-tag {
  font-size: 0.675rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}

.related-body h3,
.article-body h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-body p {
  font-size: 0.825rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.article-date {
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin-top: auto;
}


/* ==========================================================================
   28. FEATURED POST CARD (Resources page)
   ========================================================================== */

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-med);
}

.featured-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.featured-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 16px;
}

.featured-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.read-link {
  color: var(--slate);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
  margin-top: 20px;
}

.read-link:hover {
  gap: 10px;
  color: var(--slate);
}


/* ==========================================================================
   29. FILTER TABS (Resources page)
   ========================================================================== */

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.filter-tab:hover {
  border-color: var(--slate-light);
  color: var(--slate);
}

.filter-tab.active {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}


/* ==========================================================================
   30. PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.page-btn,
.pagination .page-numbers {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.page-btn:hover,
.pagination .page-numbers:hover {
  border-color: var(--slate-light);
  color: var(--slate);
}

.page-btn.active,
.pagination .page-numbers.current {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}


/* ==========================================================================
   31. NEWSLETTER SECTION
   ========================================================================== */

.newsletter {
  background: var(--gold-pale);
  padding: 80px 48px;
}

.newsletter-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.newsletter-inner p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input::placeholder {
  color: var(--text-lighter);
}

.newsletter-input:focus {
  border-color: var(--slate);
}

.newsletter-btn {
  background: var(--slate);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--slate-dark);
}


/* ==========================================================================
   32. TOPIC CARDS (Resources page)
   ========================================================================== */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition-med);
  cursor: pointer;
  text-decoration: none;
}

.topic-card:hover {
  border-color: var(--slate-light);
  box-shadow: 0 6px 20px rgba(44, 62, 90, 0.06);
  transform: translateY(-2px);
}

.topic-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.topic-icon svg {
  width: 24px;
  height: 24px;
}

.topic-icon.ti-slate {
  background: var(--slate-pale);
  color: var(--slate);
}

.topic-icon.ti-gold {
  background: var(--gold-pale);
  color: var(--gold-dark);
}

.topic-icon.ti-forest {
  background: var(--forest-pale);
  color: var(--forest);
}

.topic-icon.ti-crimson {
  background: var(--crimson-pale);
  color: var(--crimson);
}

.topic-card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.topic-card .count {
  font-size: 0.75rem;
  color: var(--text-lighter);
}


/* ==========================================================================
   33. FORMS (Contact page)
   ========================================================================== */

.contact-main {
  padding: 80px 48px 100px;
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: start;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--crimson);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(44, 62, 90, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-lighter);
}

.form-select,
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235C6370' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea,
textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  background: var(--gold);
  color: var(--white);
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-lighter);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}


/* ==========================================================================
   34. CONTACT SIDEBAR
   ========================================================================== */

.contact-sidebar {
  position: sticky;
  top: 104px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-lighter);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--slate-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  color: var(--slate);
  width: 18px;
  height: 18px;
}

.contact-detail .label {
  font-size: 0.75rem;
  color: var(--text-lighter);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-detail .value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.contact-detail a.value:hover {
  color: var(--slate);
}

/* Expect card */
.expect-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.expect-item:last-child {
  margin-bottom: 0;
}

.expect-num {
  width: 28px;
  height: 28px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.expect-text h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.expect-text p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
}


/* ==========================================================================
   35. FAQ SECTION
   ========================================================================== */

.faq {
  background: var(--gold-pale);
  padding: var(--section-padding);
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-header h2 {
  font-size: 2.25rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 16px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  padding-left: 28px;
}


/* ==========================================================================
   36. SOCIAL LINKS
   ========================================================================== */

.social-links,
.social-row {
  display: flex;
  gap: 12px;
}

.social-links a,
.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-links a:hover,
.social-link:hover {
  border-color: var(--slate);
  color: var(--slate);
  background: var(--slate-pale);
}


/* ==========================================================================
   37. FOOTER (GeneratePress footer overrides)
   ========================================================================== */

/* Override GP's dynamic CSS for .site-info and .footer-widgets.
   GP outputs background-color and color via saved Customizer values,
   so every property here needs !important to win. */
.site-footer,
.site-info {
  background: var(--charcoal) !important;
  background-color: var(--charcoal) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  padding: 0 48px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Footer widget area — GP targets .footer-widgets */
.footer-widgets,
.footer-widgets-container,
.site-footer .footer-widgets-container,
.inside-footer-widgets {
  background: var(--charcoal) !important;
  background-color: var(--charcoal) !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

.site-footer .inside-site-info {
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Footer text */
.site-footer p,
.footer-widgets p {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Footer links — GP targets .site-info a and .footer-widgets a */
.site-footer a,
.site-info a,
.footer-widgets a {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.site-footer a:hover,
.site-info a:hover,
.footer-widgets a:hover {
  color: var(--gold-light) !important;
}

/* Footer headings — GP targets .footer-widgets .widget-title */
.site-footer .widget-title,
.footer-widgets .widget-title,
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-bottom: 16px;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Footer brand */
.footer-brand .logo {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--white);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  text-decoration: none;
}

.footer-brand .logo span {
  color: var(--slate-light);
  font-weight: 400;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6) !important;
  max-width: 300px;
  line-height: 1.6;
}

/* Footer bottom bar */
.footer-bottom,
.site-footer .copyright-bar {
  max-width: var(--container-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5) !important;
}


/* ==========================================================================
   38. GUTENBERG BLOCK STYLE OVERRIDES
   ========================================================================== */

/* Columns */
.wp-block-columns {
  gap: 28px;
}

/* Group blocks */
.wp-block-group {
  max-width: var(--container-width);
}

/* Cover block */
.wp-block-cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Separator */
.wp-block-separator {
  border-color: var(--border);
  opacity: 1;
}

/* Image */
.wp-block-image img {
  border-radius: var(--radius-xl);
}

/* Table */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table th,
.wp-block-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.wp-block-table th {
  background: var(--slate-pale);
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.85rem;
}


/* ==========================================================================
   39. WORDPRESS / GP UTILITY OVERRIDES
   ========================================================================== */

/* Container width */
.grid-container,
.site-content .content-area {
  max-width: var(--container-width);
}

/* Remove default GP sidebar if set to full-width */
.no-sidebar .site-main {
  max-width: 100%;
}

/* GP widget area */
.widget-area .widget {
  margin-bottom: 32px;
}

/* Featured images */
.post-image img {
  border-radius: var(--radius-xl);
}

/* Back to top */
.generate-back-to-top {
  background: var(--slate);
  color: var(--white);
  border-radius: var(--radius-sm);
}

.generate-back-to-top:hover {
  background: var(--slate-dark);
}


/* ==========================================================================
   40. HOMEPAGE LAYOUT (hook-based sections)

   All homepage content is output via generate_after_header and
   generate_before_footer hooks (see homepage-sections.php).
   The actual WP page content area is empty, so we hide it.
   ========================================================================== */

/* Hide the empty .site-content wrapper on hook-driven pages. */
body.jsd-home .site-content,
body.jsd-page-services .site-content,
body.jsd-page-about .site-content,
body.jsd-page-resources .site-content,
body.jsd-page-contact .site-content,
body.jsd-page-work-with-me .site-content {
  display: none;
}

/* Photo placeholder styling (until real images are added). */
.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--slate-pale) 0%, #D0D6E0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.photo-placeholder svg {
  opacity: 0.25;
}

.photo-placeholder span {
  font-size: 0.8rem;
  color: var(--slate-light);
  font-weight: 500;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #E0D5C0 0%, #C8BFAA 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================================
   41. ABOUT PAGE SECTIONS
   ========================================================================== */

/* --- Social links (About hero) --- */
.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.2s;
}

.social-links a:hover {
  border-color: var(--slate);
  color: var(--slate);
  background: var(--slate-pale);
}

/* Hero photo container with accent decorations */
.hero-photo-container {
  position: relative;
}

.hero-photo-frame {
  width: 380px;
  height: 460px;
  background: linear-gradient(135deg, var(--slate-pale) 0%, #D0D6E0 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-frame svg {
  opacity: 0.2;
}

.hero-photo-frame span {
  font-size: 0.8rem;
  color: var(--slate-light);
  font-weight: 500;
}

.hero-accent {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100px;
  height: 100px;
  border: 3px solid var(--gold-light);
  border-radius: 12px;
  z-index: -1;
}

.hero-accent-2 {
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 80px;
  height: 80px;
  background: var(--gold-pale);
  border-radius: 10px;
  z-index: -1;
}

/* --- Approach Section --- */
.approach {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.approach-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.approach-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.approach-card {
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.25s;
}

.approach-card:hover {
  border-color: var(--slate-light);
  box-shadow: 0 8px 30px rgba(44, 62, 90, 0.08);
  transform: translateY(-3px);
}

.approach-number {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1;
}

.approach-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.approach-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* --- Bio Section --- */
.bio {
  background: var(--gold-pale);
  padding: 100px 48px;
}

.bio-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.bio-content h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.25rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.bio-content p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.bio-sidebar {
  padding-top: 16px;
}

.credentials-block {
  background: var(--white);
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.credentials-block h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-lighter);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.credential-item:last-child {
  margin-bottom: 0;
}

.credential-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.credential-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.credential-text .sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-top: 2px;
}

/* --- Expertise Section --- */
.expertise {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.expertise-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  transition: all 0.25s;
}

.expertise-card:hover {
  border-color: var(--slate-light);
  box-shadow: 0 8px 30px rgba(44, 62, 90, 0.06);
}

.expertise-icon {
  width: 52px;
  height: 52px;
  background: var(--slate-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-icon svg {
  color: var(--slate);
  width: 24px;
  height: 24px;
}

.expertise-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.expertise-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Personal Section --- */
.personal {
  background: var(--slate);
  padding: 80px 48px;
}

.personal-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.personal-quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold-light);
  line-height: 1.5;
  max-width: 200px;
  font-weight: 400;
  font-style: italic;
}

.personal-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  max-width: 700px;
}


/* ==========================================================================
   42. RESOURCES PAGE SECTIONS
   ========================================================================== */

/* --- Resources hero (flex layout instead of grid) --- */
.resources-hero .page-hero-inner,
.resources-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* --- Filter tabs --- */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.filter-tab:hover {
  border-color: var(--slate-light);
  color: var(--slate);
}

.filter-tab.active {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}

/* --- Featured post --- */
.featured {
  padding: 72px 48px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}

.featured-card:hover {
  box-shadow: 0 12px 40px rgba(44, 62, 90, 0.08);
  transform: translateY(-2px);
}

.featured-image {
  background: linear-gradient(135deg, var(--slate-pale) 0%, #C8D0DC 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-image svg {
  opacity: 0.15;
}

.featured-image span {
  font-size: 0.75rem;
  color: var(--slate-light);
  font-weight: 500;
}

.featured-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 16px;
}

.featured-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.featured-content h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.75rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 14px;
}

.featured-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.featured-meta {
  font-size: 0.8rem;
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  gap: 12px;
}

.featured-meta .divider {
  width: 3px;
  height: 3px;
  background: var(--text-lighter);
  border-radius: 50%;
}

.read-link {
  color: var(--slate);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  margin-top: 20px;
}

.read-link:hover {
  gap: 10px;
}

.read-link svg {
  width: 14px;
  height: 14px;
}

/* --- Articles grid --- */
.articles {
  padding: 64px 48px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.articles-header h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  color: var(--charcoal);
  font-weight: 400;
}

.articles-count {
  font-size: 0.825rem;
  color: var(--text-lighter);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--slate-light);
  box-shadow: 0 8px 30px rgba(44, 62, 90, 0.06);
  transform: translateY(-3px);
}

.article-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--slate-pale) 0%, #D2D8E2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-thumb svg {
  opacity: 0.1;
}

/* Alternate thumbnail colors */
.article-card:nth-child(3n+2) .article-thumb {
  background: linear-gradient(135deg, var(--gold-pale) 0%, #E8DCC4 100%);
}

.article-card:nth-child(3n+3) .article-thumb {
  background: linear-gradient(135deg, var(--forest-pale) 0%, #C4D8CC 100%);
}

.article-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-tag {
  font-size: 0.675rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}

.tag-marketing {
  color: var(--slate);
}

.tag-seo {
  color: var(--forest);
}

.tag-web {
  color: var(--gold-dark);
}

.article-body h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.article-body p {
  font-size: 0.825rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.article-date {
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin-top: auto;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.page-btn:hover {
  border-color: var(--slate-light);
  color: var(--slate);
}

.page-btn.active {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}

.page-dots {
  color: var(--text-lighter);
  font-size: 0.85rem;
  padding: 0 4px;
}

/* --- Newsletter section --- */
.newsletter {
  background: var(--gold-pale);
  padding: 80px 48px;
}

.newsletter-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.25rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}

.newsletter-inner p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder {
  color: var(--text-lighter);
}

.newsletter-input:focus {
  border-color: var(--slate);
}

.newsletter-btn {
  background: var(--slate);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--slate-dark);
}

.newsletter-note {
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin-top: 12px;
}

/* --- Browse by Topic --- */
.topics {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.topics-header {
  text-align: center;
  margin-bottom: 48px;
}

.topics-header h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2rem;
  color: var(--charcoal);
  font-weight: 400;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.topic-card:hover {
  border-color: var(--slate-light);
  box-shadow: 0 6px 20px rgba(44, 62, 90, 0.06);
  transform: translateY(-2px);
}

.topic-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.topic-icon svg {
  width: 24px;
  height: 24px;
}

.topic-icon.ti-slate {
  background: var(--slate-pale);
  color: var(--slate);
}

.topic-icon.ti-gold {
  background: var(--gold-pale);
  color: var(--gold-dark);
}

.topic-icon.ti-forest {
  background: var(--forest-pale);
  color: var(--forest);
}

.topic-icon.ti-crimson {
  background: #F5E4E2;
  color: var(--crimson);
}

.topic-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.topic-card .count {
  font-size: 0.75rem;
  color: var(--text-lighter);
}


/* ==========================================================================
   43. CONTACT PAGE SECTIONS
   ========================================================================== */

/* --- Contact hero (centered variant) --- */
.contact-hero .page-hero-inner,
.contact-hero-inner {
  display: block;
  text-align: center;
}

.contact-hero .page-hero-inner .lead,
.contact-hero .lead {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* --- Contact main layout --- */
.contact-main {
  padding: 80px 48px 100px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: start;
}

/* --- Form section --- */
.form-section h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.75rem;
  color: var(--charcoal);
  font-weight: 400;
  margin-bottom: 8px;
}

.form-section .form-sub {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Gravity Forms placeholder (shown when GF not active) */
.gf-placeholder {
  background: var(--slate-pale);
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 48px 32px;
  text-align: center;
}

.gf-placeholder-msg {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.gf-placeholder-note {
  font-size: 0.825rem;
  color: var(--text-lighter);
}

.gf-placeholder-note code {
  background: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* --- Gravity Forms design system overrides --- */
.gform_wrapper.gravity-theme .gfield {
  margin-bottom: 24px;
}

.gform_wrapper.gravity-theme .gfield_label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.gform_wrapper.gravity-theme .gfield_required .gfield_required_asterisk {
  color: var(--crimson);
}

.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="url"],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.gform_wrapper.gravity-theme input:focus,
.gform_wrapper.gravity-theme select:focus,
.gform_wrapper.gravity-theme textarea:focus {
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(44, 62, 90, 0.08);
}

.gform_wrapper.gravity-theme input::placeholder,
.gform_wrapper.gravity-theme textarea::placeholder {
  color: var(--text-lighter);
}

.gform_wrapper.gravity-theme textarea {
  resize: vertical;
  min-height: 140px;
}

.gform_wrapper.gravity-theme select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235C6370' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.gform_wrapper.gravity-theme .gform_button,
.gform_wrapper.gravity-theme input[type="submit"] {
  background: var(--gold);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: all 0.2s;
  width: 100%;
}

.gform_wrapper.gravity-theme .gform_button:hover,
.gform_wrapper.gravity-theme input[type="submit"]:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.gform_wrapper.gravity-theme .gform_footer {
  margin-top: 8px;
  padding-top: 0;
}

/* Two-column field rows in Gravity Forms */
.gform_wrapper.gravity-theme .gfield--width-half {
  width: calc(50% - 10px);
}

/* --- Sidebar --- */
.contact-sidebar {
  position: sticky;
  top: 104px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-lighter);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--slate-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  color: var(--slate);
  width: 18px;
  height: 18px;
}

.contact-detail .label {
  font-size: 0.75rem;
  color: var(--text-lighter);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-detail .value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.contact-detail a.value:hover {
  color: var(--slate);
}

/* Expect card */
.expect-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.expect-item:last-child {
  margin-bottom: 0;
}

.expect-num {
  width: 28px;
  height: 28px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.expect-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.expect-text p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* Social links (sidebar) */
.social-row {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--slate);
  color: var(--slate);
  background: var(--slate-pale);
}

/* --- FAQ Section --- */
.faq {
  background: var(--gold-pale);
  padding: 100px 48px;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-header h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.25rem;
  color: var(--charcoal);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 16px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq-q-mark {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1.2;
  flex-shrink: 0;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  padding-left: 30px;
}

/* --- Map placeholder --- */
.map-section {
  height: 320px;
  background: linear-gradient(135deg, var(--slate-pale) 0%, #C8D0DC 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.map-section svg {
  opacity: 0.15;
}

.map-section span {
  font-size: 0.8rem;
  color: var(--slate-light);
  font-weight: 500;
}

.map-section .address {
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 500;
  margin-top: 4px;
}


/* ==========================================================================
   44. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 120px 32px 80px;
  }

  .hero-photo .photo-frame {
    width: 280px;
    height: 340px;
    margin: 0 auto;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .resources-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-photo-frame {
    width: 300px;
    height: 360px;
    margin: 0 auto;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .services-grid,
  .offerings-grid,
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-inner,
  .bio-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .commitment-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 32px 32px 80px;
  }

  .article-sidebar {
    position: static;
  }

  .contact-main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 32px 80px;
  }

  .contact-sidebar {
    position: static;
  }

  .related-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-inner {
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .personal-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .personal-quote {
    max-width: none;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .site-header .inside-header {
    padding: 0 32px;
  }
}


/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 20px;
    --nav-height: 64px;
  }

  h1,
  .entry-title {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .hero {
    padding: 100px 20px 64px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-photo .photo-frame {
    width: 240px;
    height: 300px;
  }

  .page-hero {
    padding: 110px 20px 56px;
  }

  .page-hero-dark {
    padding: 110px 20px 64px;
  }

  .page-hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-photo-frame {
    width: 240px;
    height: 300px;
  }

  .approach,
  .expertise,
  .bio {
    padding: 64px 20px;
  }

  .personal {
    padding: 56px 20px;
  }

  .personal-inner {
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-stat-card {
    padding: 20px 16px;
  }

  .hero-stat-card .number {
    font-size: 1.5rem;
  }

  .services-grid,
  .offerings-grid,
  .approach-grid,
  .offerings-grid-2 {
    grid-template-columns: 1fr;
  }

  .trust-inner {
    flex-direction: column;
    gap: 24px;
  }

  .trust-divider {
    width: 48px;
    height: 1px;
  }

  .trust-stat .number {
    font-size: 2rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .related-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .featured {
    padding: 48px 20px 0;
  }

  .featured-content {
    padding: 28px 24px;
  }

  .articles {
    padding: 48px 20px 64px;
  }

  .newsletter {
    padding: 56px 20px;
  }

  .topics {
    padding: 56px 20px;
  }

  .topics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-main {
    padding: 48px 20px 64px;
    gap: 40px;
  }

  .faq {
    padding: 64px 20px;
  }

  .faq-item {
    padding: 20px 24px;
  }

  .map-section {
    height: 240px;
  }

  .article-hero {
    padding: 100px 20px 40px;
  }

  .article-hero-inner h1 {
    font-size: 2rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  /* ── Mobile menu overrides ── */

  /* Make sure the mobile menu toggle (hamburger) is visible and white */
  .menu-toggle,
  .menu-toggle .gp-icon {
    color: var(--white) !important;
    fill: var(--white) !important;
  }

  /* When the mobile menu is open, give it a solid background */
  #site-navigation.toggled,
  #site-navigation.toggled .main-nav {
    background: var(--charcoal) !important;
  }

  /* Mobile nav links: override desktop white-on-dark to be readable */
  #site-navigation.toggled .main-nav ul li a,
  #site-navigation.toggled a {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  #site-navigation.toggled .main-nav ul li a:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }

  /* Active item in mobile menu */
  #site-navigation.toggled .main-nav ul li.current-menu-item>a,
  #site-navigation.toggled .main-nav ul li.current_page_item>a {
    color: var(--white) !important;
    font-weight: 600;
  }

  /* Mobile nav CTA button */
  #site-navigation.toggled .main-nav ul li.nav-cta>a {
    background: var(--gold) !important;
    color: var(--white) !important;
    border-radius: 6px;
    margin: 12px 20px;
    text-align: center;
    border-bottom: none;
  }

  /* Remove left margins on mobile nav items */
  #site-navigation.toggled .main-nav ul li,
  .main-navigation .main-nav ul li {
    margin: 0 !important;
  }

  /* Nav mobile adjustments */
  .site-header .inside-header {
    padding: 0 20px;
    height: var(--nav-height);
  }

  /* Footer mobile */
  .site-footer {
    padding: 40px 20px 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}


/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {

  h1,
  .entry-title {
    font-size: 1.875rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
}