/*
Theme Name: Hafnia Insurance Services
Theme URI: https://hafniainsurance.com
Author: Hafnia Insurance Services
Author URI: https://hafniainsurance.com
Description: Custom theme for Hafnia Insurance Services — a California-based fixed-insurance practice.
Version: 1.0.0
License: Private
Text Domain: hafnia
*/

/* =========================================================
   CSS CUSTOM PROPERTIES — BRAND DESIGN SYSTEM
   ========================================================= */
:root {
  /* Brand Colors */
  --navy: #042C53;
  --navy-mid: #185FA5;
  --blue-light: #85B7EB;
  --blue-pale: #B5D4F4;
  --coral: #993C1D;
  --teal: #0F6E56;
  --amber: #BA7517;

  /* Neutral palette */
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --gray-100: #EEF2F7;
  --gray-200: #DDE3EC;
  --gray-400: #9AA5B4;
  --gray-600: #5A6A7A;
  --gray-800: #2D3748;
  --black: #0D1117;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Font sizes — fluid */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(4, 44, 83, 0.08), 0 1px 2px rgba(4, 44, 83, 0.06);
  --shadow: 0 4px 12px rgba(4, 44, 83, 0.10), 0 2px 6px rgba(4, 44, 83, 0.06);
  --shadow-lg: 0 10px 30px rgba(4, 44, 83, 0.14), 0 4px 10px rgba(4, 44, 83, 0.08);
  --shadow-xl: 0 20px 50px rgba(4, 44, 83, 0.18);

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--navy-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
}

h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
}

h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
}

h3 {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
  font-family: var(--font-sans);
}

h6 {
  font-size: var(--text-base);
  font-family: var(--font-sans);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

blockquote {
  border-left: 4px solid var(--blue-light);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background: var(--gray-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-600);
}

strong {
  font-weight: 600;
  color: var(--navy);
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section--lg {
  padding: var(--space-32) 0;
}

.section--sm {
  padding: var(--space-12) 0;
}

.section--bg {
  background: var(--off-white);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.text-left {
  text-align: left;
}

/* =========================================================
   TYPOGRAPHY UTILITIES
   ========================================================= */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-mid);
  margin-bottom: var(--space-3);
}

.section-label--light {
  color: var(--blue-light);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  color: var(--navy);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.section-headline--white {
  color: var(--white);
}

.section-subheadline {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 680px;
  line-height: 1.7;
}

.section-subheadline--white {
  color: rgba(255, 255, 255, 0.85);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--gray-600);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.875rem 1.875rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

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

.btn--primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--blue-pale);
  border-color: var(--blue-pale);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero--tall {
  min-height: 720px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__overlay--navy {
  background: linear-gradient(135deg,
      rgba(4, 44, 83, 0.55) 0%,
      rgba(4, 44, 83, 0.35) 50%,
      rgba(4, 44, 83, 0.20) 100%);
}

.hero__overlay--dark {
  background: linear-gradient(to bottom,
      rgba(4, 44, 83, 0.20) 0%,
      rgba(4, 44, 83, 0.45) 60%,
      rgba(4, 44, 83, 0.60) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-24) 0;
}

.hero__content--center {
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 620px;
}

.hero__disclaimer {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

/* =========================================================
   BANNER HERO (Narrower, page-interior style)
   ========================================================= */
.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.page-hero--tall {
  height: 420px;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4, 44, 83, 0.60) 0%, rgba(24, 95, 165, 0.35) 100%);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: var(--white);
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.page-hero__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  line-height: 1.6;
}

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-4) 0;
  box-shadow: var(--shadow-sm);
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-8);
  flex: 0 0 auto;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}

.trust-bar__item:last-child {
  border-right: none;
}

.trust-bar__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.trust-bar__text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
}

.trust-bar__text span {
  font-size: var(--text-xs);
  color: var(--gray-600);
  line-height: 1.4;
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-light);
}

.card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  display: block;
}

.card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  flex: 1;
}

/* Text wrapper: groups title + body + link in a column */
.card .card__text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-mid);
  transition: gap var(--transition);
  margin-top: auto;
}

.card__link:hover {
  gap: var(--space-3);
  text-decoration: none;
  color: var(--navy);
}

/* Featured card (product) */
.card--featured {
  border-top: 4px solid var(--navy-mid);
  position: relative;
  overflow: hidden;
}

.card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--navy-mid), var(--blue-light));
}

.card--featured .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Agent / team card */
.card--agent {
  text-align: center;
  padding: var(--space-10);
}

.card--agent .agent-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto var(--space-6);
  border: 4px solid var(--blue-pale);
  box-shadow: var(--shadow);
}

.card--agent .agent-name {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--navy);
  margin-bottom: var(--space-1);
}

.card--agent .agent-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.agent-license {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.agent-states {
  font-size: var(--text-xs);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* Resource hub card */
.card--resource {
  padding: 1.75rem var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.card--resource:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-mid);
}

.card--resource .card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.card--resource .card__title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.card--resource .card__body {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card--resource .card__link {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-mid);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.card--resource .card__link:hover {
  color: var(--navy);
  gap: 0.625rem;
}

/* Text block: fills vertical space so link sticks to bottom */
.card--resource .card__text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* =========================================================
   PROCESS STEPS
   ========================================================= */
.process-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-light), var(--navy-mid));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Desktop: num centred above content block */
.step__content {
  /* inherits text-align: center from .step */
}

.step__num {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow);
  counter-increment: step;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-2);
  font-family: var(--font-sans);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

/* =========================================================
   CHECKLIST / BULLET LISTS
   ========================================================= */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.6;
}

.check-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 2px;
}

.check-list--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-6);
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item.is-open {
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy);
  gap: var(--space-4);
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--off-white);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--navy-mid);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--gray-100);
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.8;
}

/* =========================================================
   SECTION PHOTO DIVIDER
   ========================================================= */
.photo-divider {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.photo-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-divider--overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.80);
}

/* =========================================================
   DISCLAIMER / NOTICE BOXES
   ========================================================= */
.notice {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--navy-mid);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
  margin: var(--space-6) 0;
}

.notice--warning {
  border-left-color: var(--coral);
  background: #FEF4F1;
}

.notice--info {
  border-left-color: var(--amber);
  background: #FEF8EE;
}

/* =========================================================
   STAT / HIGHLIGHT BOXES
   ========================================================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-box__number {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-box__label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
}

/* =========================================================
   SECTION CTA BANNER
   ========================================================= */
.cta-banner {
  position: relative;
  padding: var(--space-24) 0;
  overflow: hidden;
  background: var(--navy);
  text-align: center;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 44, 83, 0.75);
  z-index: 1;
}

.cta-banner__content {
  position: relative;
  z-index: 2;
}

.cta-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-banner__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   SECTION WITH BACKGROUND PHOTO (subtle texture)
   ========================================================= */
.section-photo-bg {
  position: relative;
  overflow: hidden;
}

.section-photo-bg__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.section-photo-bg__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: 1;
}

.section-photo-bg__content {
  position: relative;
  z-index: 2;
}

/* =========================================================
   SVG VISUAL EMBEDS
   ========================================================= */
.svg-visual {
  width: 100%;
  max-width: 700px;
  margin: var(--space-8) auto;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.svg-visual--full {
  max-width: 100%;
}

.svg-visual--sm {
  max-width: 480px;
}

/* =========================================================
   ANIMATE ON SCROLL
   ========================================================= */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos-delay="100"] {
  transition-delay: 0.1s;
}

[data-aos-delay="200"] {
  transition-delay: 0.2s;
}

[data-aos-delay="300"] {
  transition-delay: 0.3s;
}

[data-aos-delay="400"] {
  transition-delay: 0.4s;
}

/* =========================================================
   TWO-COLUMN AGENT FULL BIO LAYOUT
   ========================================================= */
.agent-section {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-16);
  align-items: start;
}

.agent-section--reverse,
#jonathan-garcia .agent-section {
  grid-template-columns: 1fr 340px;
}

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

.agent-sidebar__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-6);
}

.agent-contact-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.agent-contact-card h4 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--navy);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--gray-700);
  margin-bottom: var(--space-3);
}

.contact-line a {
  color: var(--navy-mid);
  font-weight: 500;
}

.agent-bio h3 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.agent-bio__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--navy-mid);
  margin-bottom: var(--space-6);
}

.agent-bio section {
  margin-bottom: var(--space-10);
}

.agent-bio section h4 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-mid);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--blue-pale);
}

.pull-quote {
  border-left: 4px solid var(--navy-mid);
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, var(--off-white), var(--gray-100));
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
  margin: var(--space-6) 0;
}

/* =========================================================
   STATE LICENSING MAP SECTION
   ========================================================= */
.state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.state-list-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.state-list-card h4 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--navy);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--blue-pale);
}

.state-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.state-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy);
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-4) 0;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--blue-light);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cookie-accept {
  padding: var(--space-2) var(--space-5);
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-accept:hover {
  background: var(--blue-pale);
}

.cookie-decline {
  padding: var(--space-2) var(--space-5);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-decline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

/* =========================================================
   SITE HEADER
   ========================================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--space-8);
  transition: height var(--transition);
}

#site-header.scrolled .header__inner {
  height: 70px;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img {
  height: 58px;
  max-height: 60px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
  transition: height var(--transition), transform var(--transition), opacity var(--transition);
}

.header__logo:hover img {
  opacity: 0.92;
  transform: scale(1.01);
}

#site-header.scrolled .header__logo img {
  height: 50px;
  max-height: 52px;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  margin-left: var(--space-3);
}

.header__logo-text .name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
}

.header__logo-text .tagline {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

/* Primary Navigation */
.primary-nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  height: 100%;
}

.primary-nav ul li>a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-800);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.primary-nav ul li>a:hover,
.primary-nav ul li.current-menu-item>a,
.primary-nav ul li.current-page-ancestor>a {
  color: var(--navy);
  background: var(--off-white);
}

.primary-nav ul li.nav-cta>a {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-5);
}

.primary-nav ul li.nav-cta>a:hover {
  background: var(--navy-mid);
  color: var(--white);
}

/* Dropdown */
.primary-nav ul li {
  position: relative;
}

.primary-nav ul li ul {
  position: absolute;
  /* flush against the parent — visual gap is created by padding-top below */
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  /* top padding provides the visual spacing without a hover-breaking gap */
  padding: var(--space-2) var(--space-2) var(--space-2);
  padding-top: calc(var(--space-2) + 6px);
  display: none;
  z-index: 100;
}

/* Show on hover OR when focus is inside (keyboard navigation) */
.primary-nav ul li:hover>ul,
.primary-nav ul li:focus-within>ul {
  display: flex;
  flex-direction: column;
}

.primary-nav ul li ul li>a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-700);
  border-radius: var(--radius);
}

.primary-nav ul li ul li>a:hover {
  background: var(--off-white);
  color: var(--navy);
}

/* ─── Mega Menu (Resources — 2-column full-width panel) ─────── */

/* Remove relative positioning from the li so the mega-menu
   becomes positioned relative to #site-header (position:fixed) */
.primary-nav .has-mega-menu {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.mega-menu {
  position: absolute;
  top: 100%;
  /* flush below #site-header */
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

/* Invisible hover bridge between header and mega menu */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

/* Show on hover / keyboard focus-within / is-open class */
.primary-nav .has-mega-menu:hover .mega-menu,
.primary-nav .has-mega-menu:focus-within .mega-menu,
.primary-nav .has-mega-menu.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-nav .has-mega-menu:hover > a,
.primary-nav .has-mega-menu:focus-within > a,
.primary-nav .has-mega-menu.is-open > a {
  color: var(--navy);
  background: var(--off-white);
}

/* Inner wrapper — constrains to container width and creates 2 columns */
.mega-menu__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-6) var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* Each column */
.mega-menu__col {
  display: flex;
  flex-direction: column;
  padding: var(--space-2) var(--space-6);
}

.mega-menu__col:first-child {
  border-right: 1px solid var(--gray-200);
}

/* Column heading label */
.mega-menu__col-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-100);
}

/* Individual mega-menu links */
.mega-menu__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  line-height: 1.4;
}

.mega-menu__link:hover {
  color: var(--navy);
  background: var(--off-white);
  padding-left: var(--space-4);
}

/* Mobile section header style */
.mobile-nav__section-header>a {
  font-weight: 700 !important;
  color: var(--navy) !important;
  background: var(--gray-100) !important;
}

.mobile-nav__sub {
  padding-left: var(--space-6);
  background: var(--off-white);
}

.mobile-nav__sub li>a {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  transition: all var(--transition);
}

.mobile-nav__sub li>a:hover {
  color: var(--navy);
  background: var(--gray-100);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: var(--space-4) 0 var(--space-8);
}

.mobile-nav ul li>a {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  transition: all var(--transition);
}

.mobile-nav ul li>a:hover {
  color: var(--navy);
  background: var(--off-white);
}

.mobile-nav ul li.nav-cta>a {
  margin: var(--space-4) var(--space-6) 0;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  justify-content: center;
  border-bottom: none;
}

.mobile-nav ul li ul {
  padding-left: var(--space-6);
  background: var(--off-white);
}

.mobile-nav ul li ul li>a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
}

/* Body offset for fixed header */
body {
  padding-top: 80px;
}

/* =========================================================
   SITE FOOTER
   ========================================================= */
#site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--space-16);
}

.footer__top {
  display: grid;
  grid-template-columns: 320px 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer__logo-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: var(--space-5);
  border-radius: var(--radius);
}

.footer__brand img {
  height: 70px;
  width: auto;
  max-width: 290px;
  margin-bottom: var(--space-5);
  /* JPG logo — high visibility card on the dark navy footer */
  background: #ffffff;
  border-radius: var(--radius);
  padding: 8px 18px;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.footer__logo-link img {
  margin-bottom: 0;
}

.footer__logo-link:hover img,
.footer__brand a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact p,
.footer__agents p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.footer__contact a,
.footer__agents a {
  color: var(--blue-light);
}

.footer__heading {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--white);
  margin-bottom: var(--space-5);
}

.footer__agent-entry {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__agent-entry:last-child {
  border-bottom: none;
}

.footer__agent-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
  margin-bottom: var(--space-1);
}

.footer__agent-license {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.60);
  font-style: italic;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer__nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__disclaimer {
  padding: var(--space-6) 0 var(--space-10);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.40);
}

/* =========================================================
   GENERIC PAGE CONTENT
   ========================================================= */
.page-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.page-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.page-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}

.page-content ul li {
  margin-bottom: var(--space-2);
}

/* =========================================================
   CREDENTIALS SECTION
   ========================================================= */
.credentials-box {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}


.credentials-box h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.credentials-link {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-200);
}

.credentials-link:last-child {
  border-bottom: none;
}

.credentials-link__icon {
  font-size: 1.5rem;
  margin-top: 2px;
}

.credentials-link__body strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--navy);
  margin-bottom: var(--space-1);
}

.credentials-link__body a {
  font-size: var(--text-sm);
  color: var(--navy-mid);
}

.credentials-link__body p {
  font-size: var(--text-xs);
  color: var(--gray-600);
  margin-top: var(--space-2);
}

/* =========================================================
   WHERE WE'RE LICENSED — ALERT BOX
   ========================================================= */
.licensing-alert {
  background: linear-gradient(135deg, #EEF6FF, #F0F9F5);
  border: 1px solid var(--blue-pale);
  border-left: 4px solid var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
}

.licensing-alert p {
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.licensing-alert p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   BLOG — CARD GRID (Listing Page)
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--blue-light);
}

.blog-card__image-link {
  display: block;
  overflow: hidden;
  line-height: 0;
}

.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.06);
}

.blog-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-mid);
  background: rgba(24, 95, 165, 0.08);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  align-self: flex-start;
  text-decoration: none;
  transition: all var(--transition);
}

.blog-card__category:hover {
  background: rgba(24, 95, 165, 0.16);
  color: var(--navy);
  text-decoration: none;
}

.blog-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: var(--space-3);
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card__title a:hover {
  color: var(--navy-mid);
  text-decoration: none;
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-bottom: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-100);
}

.blog-card__author,
.blog-card__date {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.blog-card__author svg,
.blog-card__date svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy-mid);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
  margin-top: auto;
}

.blog-card__link:hover {
  gap: var(--space-3);
  color: var(--navy);
  text-decoration: none;
}

/* =========================================================
   BLOG — SEARCH BAR (Search Results Page)
   ========================================================= */
.blog-search-bar {
  max-width: 560px;
  margin: 0 auto var(--space-10);
}

.sidebar-search--wide {
  max-width: 100%;
}

/* =========================================================
   BLOG — PAGINATION
   ========================================================= */
.blog-pagination {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
}

.blog-pagination__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pagination__links a,
.blog-pagination__links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  background: var(--white);
  text-decoration: none;
  transition: all var(--transition);
}

.blog-pagination__links a:hover {
  background: var(--off-white);
  border-color: var(--navy-mid);
  color: var(--navy);
  text-decoration: none;
}

.blog-pagination__links span.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.blog-pagination__links .prev,
.blog-pagination__links .next {
  font-weight: 600;
  padding: 0 var(--space-5);
  color: var(--navy-mid);
  border-color: var(--navy-mid);
}

.blog-pagination__links .prev:hover,
.blog-pagination__links .next:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* =========================================================
   BLOG — SINGLE POST HERO
   ========================================================= */
.blog-single-hero {
  padding-top: var(--space-10);
  background: var(--off-white);
}

.blog-single-hero__image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   BLOG — SINGLE POST LAYOUT
   ========================================================= */
.blog-single-section {
  background: var(--off-white);
}

.blog-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}

/* Breadcrumb */
.blog-breadcrumb {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-bottom: var(--space-6);
}

.blog-breadcrumb a {
  color: var(--navy-mid);
  text-decoration: none;
  font-weight: 500;
}

.blog-breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.blog-breadcrumb__sep {
  margin: 0 var(--space-2);
  color: var(--gray-400);
}

.blog-breadcrumb__current {
  color: var(--gray-600);
}

/* Single Post Header */
.blog-single-header {
  margin-bottom: var(--space-8);
}

.blog-single-header__cats {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.blog-single-header__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: var(--space-5);
}

.blog-single-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.blog-single-header__author,
.blog-single-header__date,
.blog-single-header__reading {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.blog-single-header__author svg,
.blog-single-header__date svg,
.blog-single-header__reading svg {
  color: var(--navy-mid);
  flex-shrink: 0;
}

/* Single Post Body */
.blog-single-body {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
  color: var(--gray-800);
  font-size: var(--text-base);
}

.blog-single-body h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--navy);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.blog-single-body h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--navy);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.blog-single-body p {
  margin-bottom: var(--space-5);
}

.blog-single-body ul,
.blog-single-body ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
  list-style: disc;
}

.blog-single-body ol {
  list-style: decimal;
}

.blog-single-body li {
  margin-bottom: var(--space-2);
}

.blog-single-body img {
  border-radius: var(--radius);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-sm);
}

.blog-single-body blockquote {
  border-left: 4px solid var(--navy-mid);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
  background: linear-gradient(135deg, var(--off-white), var(--gray-100));
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
}

/* Single Post Tags */
.blog-single-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
}

.blog-single-tags__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  margin-right: var(--space-2);
}

.blog-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--navy-mid);
  background: rgba(24, 95, 165, 0.06);
  border: 1px solid rgba(24, 95, 165, 0.18);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition);
}

.blog-tag:hover {
  background: rgba(24, 95, 165, 0.14);
  border-color: var(--navy-mid);
  color: var(--navy);
  text-decoration: none;
}

/* Single Post Navigation (Prev/Next) */
.blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.blog-post-nav__link {
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-6);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
}

.blog-post-nav__link:hover {
  border-color: var(--navy-mid);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-2px);
}

.blog-post-nav__next {
  text-align: right;
  grid-column: 2;
}

.blog-post-nav__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-mid);
  margin-bottom: var(--space-2);
}

.blog-post-nav__title {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--navy);
  line-height: 1.4;
}

/* =========================================================
   BLOG — SIDEBAR
   ========================================================= */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--navy);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--blue-pale);
}

/* Sidebar Search */
.sidebar-search {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sidebar-search:focus-within {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.sidebar-search__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gray-800);
  background: var(--white);
  outline: none;
}

.sidebar-search__input::placeholder {
  color: var(--gray-400);
}

.sidebar-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  background: var(--navy);
  border: none;
  cursor: pointer;
  color: var(--white);
  transition: background var(--transition);
  flex-shrink: 0;
}

.sidebar-search__btn:hover {
  background: var(--navy-mid);
}

/* Sidebar Recent Posts */
.sidebar-recent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  transition: all var(--transition);
}

.sidebar-recent:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-recent:first-of-type {
  padding-top: 0;
}

.sidebar-recent:hover {
  text-decoration: none;
}

.sidebar-recent__thumb {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-recent__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.sidebar-recent:hover .sidebar-recent__thumb img {
  transform: scale(1.08);
}

.sidebar-recent__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.sidebar-recent__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  transition: color var(--transition);
}

.sidebar-recent:hover .sidebar-recent__title {
  color: var(--navy-mid);
}

.sidebar-recent__date {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

/* Sidebar Categories */
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories__item {
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-categories__item:last-child {
  border-bottom: none;
}

.sidebar-categories__item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.sidebar-categories__item a:hover {
  background: var(--off-white);
  color: var(--navy);
  text-decoration: none;
  padding-left: var(--space-3);
}

.sidebar-categories__count {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--white);
  background: var(--navy-mid);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 24px;
  text-align: center;
  line-height: 1.4;
}

/* Sidebar Tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* =========================================================
   BLOG — RESPONSIVE — TABLET  (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .blog-single-layout {
    grid-template-columns: 1fr 280px;
    gap: var(--space-8);
  }
}

/* =========================================================
   BLOG — RESPONSIVE — MOBILE  (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .blog-card__image {
    height: 180px;
  }

  .blog-card__body {
    padding: var(--space-5);
  }

  .blog-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .blog-single-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .blog-sidebar {
    position: static;
  }

  .blog-single-hero__image {
    border-radius: var(--radius);
    max-height: 300px;
  }

  .blog-single-body {
    padding: var(--space-6) var(--space-5);
  }

  .blog-single-header__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .blog-single-header__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .blog-post-nav {
    grid-template-columns: 1fr;
  }

  .blog-post-nav__next {
    grid-column: 1;
    text-align: left;
  }

  .blog-pagination__links a,
  .blog-pagination__links span {
    min-width: 36px;
    height: 36px;
    font-size: var(--text-xs);
  }
}

/* =========================================================
   BLOG — RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {
  .blog-card__image {
    height: 160px;
  }

  .blog-card__title {
    font-size: var(--text-base);
  }

  .blog-single-header__title {
    font-size: 1.4rem;
  }

  .blog-single-body {
    padding: var(--space-5) var(--space-4);
  }

  .sidebar-widget {
    padding: var(--space-5);
  }
}

/* =========================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-5);
  }

  /* Agent two-column → narrower side */
  .agent-section {
    grid-template-columns: 280px 1fr;
    gap: var(--space-10);
  }

  .agent-section--reverse,
  #jonathan-garcia .agent-section {
    grid-template-columns: 1fr 280px;
  }

  /* Process steps: 2×2 grid on tablet */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  /* Footer top: stack 2-col */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  /* Logo fits its column on tablet */
  .footer__brand img {
    box-sizing: border-box;
    max-width: 100%;
    width: auto;
    height: 64px;
  }

  /* Trust bar: wrap items */
  .trust-bar__inner {
    flex-wrap: wrap;
  }

  .trust-bar__item {
    flex: 1 1 calc(50% - 1px);
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .trust-bar__item:nth-child(odd) {
    border-right: 1px solid var(--gray-200);
  }

  .trust-bar__item:last-child,
  .trust-bar__item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }

  /* Resources: 3-col → 2-col on tablet */
  #resources .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Common uses / How it works: grid-4 → 2×2 on tablet */
  #common-uses .grid-4,
  #how-it-works .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   RESPONSIVE — MOBILE  (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {

  /* ── Global ── */
  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-12) 0;
  }

  /* ── Typography scale-down ── */
  h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  h4 {
    font-size: 1.05rem;
  }

  /* ── Page Hero ── */
  .page-hero {
    height: auto;
    min-height: 200px;
    padding: var(--space-12) 0;
  }

  .page-hero--tall {
    min-height: 240px;
  }

  .page-hero__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .page-hero__sub {
    font-size: var(--text-base);
    max-width: 100%;
  }

  /* ── Who-We-Are notice ── */
  .notice {
    padding: var(--space-4) var(--space-4);
  }

  /* ── Agent section: single column ── */
  .agent-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  /* Sidebar: photo centred, card full-width */
  .agent-sidebar {
    position: static;
    /* remove sticky on mobile */
    width: 100%;
  }

  .agent-sidebar__photo {
    width: 180px;
    height: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    /* circle on mobile */
    margin: 0 auto var(--space-5);
    object-fit: cover;
    object-position: center top;
  }

  .agent-contact-card {
    padding: var(--space-5);
  }

  .agent-contact-card h4 {
    font-size: var(--text-base);
    text-align: center;
    margin-bottom: var(--space-3);
  }

  .contact-line {
    font-size: var(--text-sm);
    justify-content: center;
  }

  /* Schedule button: full width */
  .agent-contact-card .btn {
    display: flex;
    width: 100% !important;
    justify-content: center !important;
    margin-top: var(--space-4) !important;
    font-size: var(--text-sm);
  }

  /* Bio */
  .agent-bio {
    width: 100%;
  }

  .agent-bio h2 {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    text-align: center;
  }

  .agent-bio__title {
    font-size: var(--text-base);
    text-align: center;
    margin-bottom: var(--space-5);
  }

  /* Ensure Jonathan section re-orders correctly */
  #jonathan-garcia .agent-section {
    flex-direction: column-reverse;
    /* photo & contact card after bio on mobile */
  }

  /* ── Photo divider ── */
  .photo-divider {
    height: 160px;
  }

  /* ── State licensing grid: single column ── */
  .state-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .state-list-card {
    padding: var(--space-5);
  }

  .state-list-card h4 {
    font-size: var(--text-lg);
  }

  .state-badges {
    gap: var(--space-2);
  }

  .state-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  /* ── Licensing alert ── */
  .licensing-alert {
    padding: var(--space-5) var(--space-4);
    margin: var(--space-6) 0;
  }

  /* ── Process steps: vertical connected cards ── */
  .process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
  }

  .process-steps::before {
    display: none;
  }

  /* Vertical connector line running through the number badges */
  .process-steps::after {
    content: '';
    position: absolute;
    top: 22px;
    /* center of first badge */
    bottom: 22px;
    /* center of last badge */
    left: 21px;
    /* half of badge width = 44px / 2 - 1px border */
    width: 2px;
    background: linear-gradient(to bottom, var(--navy-mid), var(--blue-light));
    z-index: 0;
  }

  .step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    text-align: left;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--blue-pale);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
    transition: box-shadow var(--transition), border-left-color var(--transition);
  }

  .step:last-child {
    margin-bottom: 0;
  }

  .step:hover {
    box-shadow: var(--shadow);
    border-left-color: var(--navy-mid);
  }

  .step__num {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: var(--text-lg);
    margin: 0;
    background: var(--navy);
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--blue-pale);
  }

  .step__content {
    flex: 1;
    padding-top: 2px;
  }

  .step__title {
    margin-bottom: var(--space-2);
    font-size: 1rem;
    line-height: 1.35;
    color: var(--navy);
  }

  /* ── CTA Banner ── */
  .cta-banner {
    padding: var(--space-16) 0;
  }

  .cta-banner__title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .cta-banner__sub {
    font-size: var(--text-base);
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .btn-group .btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  /* ── Credentials box ── */
  .credentials-box {
    padding: var(--space-5);
  }

  .credentials-box h3 {
    font-size: var(--text-xl);
  }

  .credentials-link {
    flex-direction: column;
    gap: var(--space-2);
  }

  /* ── Agent license badge (inline in sidebar) ── */
  .agent-license {
    font-size: 0.7rem;
    padding: var(--space-2) var(--space-3);
  }

  /* ── Trust bar: stack all ── */
  .trust-bar__inner {
    flex-direction: column;
    gap: 0;
  }

  .trust-bar__item {
    width: 100%;
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-3) var(--space-5);
    justify-content: flex-start;
  }

  .trust-bar__item:last-child {
    border-bottom: none;
  }

  /* ── Grids: collapse to 1-col ── */
  .grid-2,
  .grid-3,
  .grid-4,
  .check-list--two-col {
    grid-template-columns: 1fr;
  }

  /* ── Resource cards: compact horizontal rows on mobile ── */
  /* Switch from stacked card grid to scannable icon-row list */
  #resources .grid-3 {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .card--resource {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-4);
    height: auto;
    border-radius: var(--radius);
  }

  .card--resource .card__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.1rem;
    margin-bottom: 0;
    border-radius: var(--radius);
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .card--resource .card__text {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* Wrap title, desc, link in a column flex group */
  .card--resource .card__title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }

  .card--resource .card__body {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--gray-600);
  }

  .card--resource .card__link {
    font-size: 0.8rem;
    margin-top: 0;
  }

  /* Disable lift animation on mobile — too many cards */
  .card--resource:hover {
    transform: none;
    border-color: var(--navy-mid);
  }

  /* ── Generic cards (HOW IT WORKS, COMMON USES, etc.): horizontal rows ── */
  #how-it-works .grid-3,
  #how-iul-works .grid-3,
  #common-uses .grid-4 {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  #how-it-works .card,
  #how-iul-works .card,
  #common-uses .card {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    height: auto;
    border-left: 3px solid var(--blue-pale);
    transition: border-left-color var(--transition), box-shadow var(--transition);
  }

  #how-it-works .card:hover,
  #how-iul-works .card:hover,
  #common-uses .card:hover {
    transform: none;
    border-left-color: var(--navy-mid);
    box-shadow: var(--shadow);
  }

  #how-it-works .card .card__icon,
  #how-iul-works .card .card__icon,
  #common-uses .card .card__icon {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  #how-it-works .card .card__text,
  #how-iul-works .card .card__text,
  #common-uses .card .card__text {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #how-it-works .card .card__title,
  #how-iul-works .card .card__title,
  #common-uses .card .card__title {
    font-size: 0.95rem;
    margin-bottom: var(--space-2);
    line-height: 1.3;
  }

  #how-it-works .card .card__body,
  #how-iul-works .card .card__body,
  #common-uses .card .card__body {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* ── Pull quote ── */
  .pull-quote {
    font-size: var(--text-base);
    padding: var(--space-4);
  }

  /* ── Site Footer ── */
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .footer__nav {
    gap: var(--space-2) var(--space-4);
    justify-content: center;
  }

  /* ── Show hamburger, hide desktop nav ── */
  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header__inner {
    height: 72px;
  }

  body {
    padding-top: 72px;
  }

  .mobile-nav {
    top: 72px;
    max-height: calc(100vh - 72px);
  }

  .header__logo img {
    height: 50px;
    max-height: 52px;
    width: auto;
    max-width: 230px;
  }

  .footer__brand img {
    height: 64px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
  }

  .footer__brand {
    text-align: center;
  }

  .footer__logo-link {
    display: block;
  }
}

/* =========================================================
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ========================================================= */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }

  .page-hero {
    min-height: 180px;
    padding: var(--space-10) 0;
  }

  .page-hero__title {
    font-size: 1.6rem;
  }

  .page-hero__sub {
    font-size: 0.9rem;
  }

  .agent-sidebar__photo {
    width: 140px;
    height: 140px;
  }

  .section-headline {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  }

  .cta-banner {
    padding: var(--space-12) 0;
  }

  .cta-banner__title {
    font-size: 1.6rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .step {
    padding: var(--space-4);
    margin-bottom: var(--space-3);
  }

  .step__num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: var(--text-base);
    box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--blue-pale);
  }

  /* Adjust the connector line for smaller badge */
  .process-steps::after {
    left: 17px;
    /* 36px / 2 - 1px */
    top: 18px;
    bottom: 18px;
  }

  .licensing-alert {
    padding: var(--space-4) var(--space-3);
  }

  .credentials-box {
    padding: var(--space-4) var(--space-3);
  }

  .notice {
    padding: var(--space-3) var(--space-3);
    font-size: 0.8rem;
  }

  /* Footer brand text */
  .header__logo-text .name {
    font-size: var(--text-lg);
  }

  .header__inner {
    height: 68px;
  }

  body {
    padding-top: 68px;
  }

  .mobile-nav {
    top: 68px;
    max-height: calc(100vh - 68px);
  }

  .header__logo img {
    height: 46px;
    max-height: 48px;
    max-width: 210px;
  }

  .footer__brand img {
    height: 58px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
  }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {

  #site-header,
  #cookie-banner,
  .mobile-nav,
  .btn {
    display: none !important;
  }

  body {
    padding-top: 0;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }
}

/* =========================================================
   LOGO SIZING — New Logo (hafnia_new_logo.jpg)
   ========================================================= */
.header__logo-img {
  height: 55px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
}

.footer__logo-img {
  height: 65px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
}

/* =========================================================
   CLIENT LOGIN PAGE
   ========================================================= */
.client-login {
  padding: var(--space-16) 0;
}

.client-login__card {
  max-width: 640px;
  margin: 0 auto;
}

/* — Secure File Transfer Section — */
.client-login__transfer {
  text-align: center;
  padding: var(--space-10) var(--space-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-10);
}

.client-login__icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--navy);
}

.client-login__heading {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.client-login__desc {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.client-login__btn {
  min-width: 220px;
  font-size: var(--text-base);
}

/* — Need Help Section — */
.client-login__help {
  text-align: center;
  padding: var(--space-10) var(--space-8);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.client-login__help-icon-circle {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--navy-mid);
}

.client-login__contact-row {
  margin-bottom: var(--space-3);
}

.client-login__contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.client-login__contact-link:hover {
  color: var(--navy-mid);
}

.client-login__contact-link svg {
  color: var(--navy-mid);
  flex-shrink: 0;
}

/* — Not a Client Yet — */
.client-login__not-client {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
}

.client-login__not-client-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.client-login__consult-btn {
  font-size: var(--text-sm);
}

/* — Disclosure Block — */
.client-login__disclosure {
  background: var(--gray-50);
}

.disclosure-block {
  max-width: 760px;
  margin: 0 auto;
}

.disclosure-block__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.disclosure-block p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}

.disclosure-block p:last-child {
  margin-bottom: 0;
}

.disclosure-block a {
  color: var(--navy-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclosure-block a:hover {
  color: var(--navy);
}

/* =========================================================
   MODAL — Disclosure Popup
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 44, 83, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 90%;
  padding: var(--space-8);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog__header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.modal-dialog__icon-circle {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FEF3CD;
  color: #856404;
}

.modal-dialog__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--navy);
}

.modal-dialog__body {
  margin-bottom: var(--space-6);
}

.modal-dialog__body p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: var(--space-3);
}

.modal-dialog__body p:last-child {
  margin-bottom: 0;
}

.modal-dialog__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

.modal-dialog__cancel {
  min-width: 90px;
}

.modal-dialog__proceed {
  min-width: 180px;
  text-align: center;
}