/* ============================================================
   COURTDELTA THEME — main.css
   ============================================================ */

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

:root {
  /* WCAG AA compliant palette
     --blue:      white on this = 5.15:1 (passes 4.5:1 AA for normal text)
     --blue-dark: white on this = 7.2:1  (hover states, passes AAA)
     --gray-text: this on white = 5.4:1  (passes 4.5:1 AA for normal text) */
  --blue:        #2563EB;
  --blue-dark:   #1849C9;
  --blue-light:  #EBF2FF;
  --navy:        #0D1B2A;
  --navy-mid:    #1B2F45;
  --gray-bg:     #F3F5F8;
  --gray-border: #DDE2EA;
  --gray-text:   #5C6C7E; /* was #6B7A8D — darkened for 5.4:1 on white */
  --red:         #C0392B;
  --white:       #FFFFFF;
  --text:        #111827;
  --text-mid:    #374151;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* --- NAV --------------------------------------------------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 22px; height: 22px; }

.logo-text {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

/* WordPress nav output */
#primary-navigation { display: flex; align-items: center; }

#primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}

#primary-navigation ul li a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  display: block;
}

#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item > a,
#primary-navigation ul li.current_page_item > a {
  background: var(--gray-bg);
  color: var(--text);
}

/* CTA nav item — add class "menu-item-cta" in WP Appearance > Menus */
#primary-navigation ul li.menu-item-cta > a {
  background: var(--blue);
  color: var(--white) !important;
}
#primary-navigation ul li.menu-item-cta > a:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* --- PAGE WRAP --------------------------------------------- */
.page-wrap { padding-top: 64px; }

/* --- NOTICE BANNER ----------------------------------------- */
.notice-banner {
  background: linear-gradient(135deg, #7B1717 0%, #C0392B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 0.875rem;
  color: white;
  font-weight: 500;
}

.notice-badge {
  background: white;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

/* --- HERO -------------------------------------------------- */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 96px 24px 80px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(66,133,244,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.25);
  color: #93C5FD; /* 7.2:1 on --navy */
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-eyebrow span {
  width: 6px; height: 6px;
  background: #4285F4;
  border-radius: 50%;
  display: inline-block;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero h1 em { font-style: italic; color: #93C5FD; /* 7.2:1 on --navy */ }

.hero-sub {
  color: #B8CFE8; /* 8.5:1 on --navy — was #9DB8D8 (7.6:1, passes but bumped up) */
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.hero-stat span {
  font-size: 0.82rem;
  color: #93AFCA; /* 5.6:1 on --navy — was #7A98B8 (4.6:1) */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- BUTTONS ----------------------------------------------- */
.btn-primary {
  background: var(--blue);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(66,133,244,0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(66,133,244,0.45);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: background 0.18s, border-color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  color: white;
}

.btn-white {
  background: white;
  color: var(--blue-dark);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.18s, box-shadow 0.18s;
  display: inline-flex;
  align-items: center;
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: var(--blue-dark);
}

.btn-white-outline {
  background: transparent;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: background 0.18s;
  display: inline-flex;
  align-items: center;
}

.btn-white-outline:hover { background: rgba(255,255,255,0.12); color: white; }

/* --- TRUST STRIP ------------------------------------------- */
.trust-strip {
  background: white;
  border-bottom: 1px solid var(--gray-border);
  padding: 20px 24px;
  text-align: center;
}

.trust-strip p {
  font-size: 0.82rem;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.trust-dot { color: var(--blue); }

/* --- SECTIONS SHARED --------------------------------------- */
.section { padding: 80px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 620px;
  margin-bottom: 16px;
}

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

/* --- FEATURES GRID ----------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

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

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-card p { color: var(--gray-text); font-size: 0.92rem; line-height: 1.7; }

/* --- HOW IT WORKS ------------------------------------------ */
.how-bg { background: var(--navy); }
.how-bg .section-label { color: #93C5FD; /* 7.2:1 on navy */ }
.how-bg .section-title { color: white; }
.how-bg .section-sub { color: #B8CFE8; /* 8.5:1 on navy — was #7A98B8 (4.6:1, borderline) */ }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.step { background: var(--navy-mid); padding: 36px 28px; }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  /* Large text (3rem bold) needs 3:1. rgba(90,155,245,0.55) on #1B2F45 = ~3.8:1 */
  color: rgba(90,155,245,0.87);
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 { font-size: 1rem; font-weight: 600; color: white; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: #A8C0D6; line-height: 1.65; /* was #7A98B8 = 4.29:1 on navy-mid, now #A8C0D6 = 6.5:1 */ }

/* --- DUAL AUDIENCE ----------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.audience-card {
  border-radius: 20px;
  padding: 40px 36px;
}

.audience-card.public {
  background: var(--blue-light);
  border: 1px solid rgba(66,133,244,0.15);
}

.audience-card.attorney { background: var(--navy); }

.audience-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.audience-card.public .audience-badge { background: var(--blue); color: white; }
.audience-card.attorney .audience-badge { background: rgba(37,99,235,0.25); color: #93C5FD; /* 7.2:1 on navy */ }

.audience-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.audience-card.public h3 { color: var(--navy); }
.audience-card.attorney h3 { color: white; }

.audience-card > p { font-size: 0.92rem; margin-bottom: 28px; line-height: 1.7; }
.audience-card.public > p { color: var(--text-mid); }
.audience-card.attorney > p { color: #B8CFE8; /* 8.5:1 on navy — was #9DB8D8 */ }

.audience-list { list-style: none; margin-bottom: 32px; }

.audience-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.audience-card.public .audience-list li { color: var(--text-mid); }
.audience-card.attorney .audience-list li { color: #B8CFE8; /* 8.5:1 on navy — was #9DB8D8 */ }

.check-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audience-card.public .check-icon { background: var(--blue); }
.audience-card.attorney .check-icon { background: rgba(66,133,244,0.3); }

.btn-audience-public {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s;
}

.btn-audience-public:hover { background: var(--blue-dark); color: white; }

.btn-audience-attorney {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.18s;
}

.btn-audience-attorney:hover { background: rgba(255,255,255,0.18); color: white; }

/* --- CTA STRIP --------------------------------------------- */
.cta-strip {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 72px 24px;
  text-align: center;
}

.cta-strip-inner { max-width: 600px; margin: 0 auto; }

.cta-strip h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-strip p { color: rgba(255,255,255,0.92); margin-bottom: 32px; font-size: 1.05rem; /* was 0.75 opacity = 3.2:1 fail; 0.92 = ~4.8:1 */ }

.cta-strip-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- PRICING ----------------------------------------------- */
.pricing-hero {
  background: var(--navy);
  padding: 72px 24px 80px;
  text-align: center;
}

.pricing-hero .section-label { color: #93C5FD; /* 7.2:1 on navy — was #7BB8FF */ }

.pricing-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.pricing-hero p { color: #B8CFE8; font-size: 1.05rem; max-width: 500px; margin: 0 auto; /* was #9DB8D8 */ }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 24px;
}

.pricing-card {
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid var(--gray-border);
  background: white;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 16px 48px rgba(66,133,244,0.15);
}

.pricing-popular {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.pricing-price { margin-bottom: 8px; }

.pricing-price strong {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.pricing-price sup {
  font-size: 1.3rem;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
  color: var(--navy);
  font-weight: 600;
}

.pricing-price sub { font-size: 0.85rem; color: var(--gray-text); font-weight: 400; }

.pricing-desc { color: var(--gray-text); font-size: 0.88rem; margin-bottom: 28px; line-height: 1.6; }

.pricing-list { list-style: none; margin-bottom: 32px; }

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.pricing-check { color: var(--blue); flex-shrink: 0; margin-top: 1px; }

.btn-pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.18s;
}

.btn-pricing-filled { background: var(--blue); color: white; }
.btn-pricing-filled:hover { background: var(--blue-dark); color: white; }
.btn-pricing-border { background: white; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-pricing-border:hover { background: var(--blue-light); color: var(--blue); }

.pricing-note {
  text-align: center;
  color: var(--gray-text);
  font-size: 0.85rem;
  padding: 0 24px 64px;
}

.pricing-note a { color: var(--blue); }

/* --- FAQ --------------------------------------------------- */
.page-hero {
  background: var(--navy);
  padding: 72px 24px;
  text-align: center;
}

.page-hero .section-label { color: #93C5FD; /* was #7BB8FF */ }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-hero p { color: #B8CFE8; font-size: 1.05rem; /* was #9DB8D8 */ }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
}

.faq-item { border-bottom: 1px solid var(--gray-border); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  gap: 16px;
}

.faq-q:hover { color: var(--blue); }

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--gray-text);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 0 24px;
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-item.open .faq-a { display: block; }

.faq-cta {
  text-align: center;
  padding: 0 24px 72px;
}

.faq-cta p { color: var(--gray-text); margin-bottom: 20px; }

/* --- CONTACT ----------------------------------------------- */
.contact-layout {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-info > p { color: var(--gray-text); font-size: 0.92rem; line-height: 1.75; margin-bottom: 28px; }

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

.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.contact-item-icon svg { width: 18px; height: 18px; }

.contact-item-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 2px;
}

.contact-item-val { font-size: 0.92rem; font-weight: 500; color: var(--navy); }
.contact-item-val a { color: var(--blue); text-decoration: none; }
.contact-item-val a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: white;
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  padding: 36px;
}

/* WP contact forms — covers WPForms, CF7, Gravity Forms */
.contact-form-wrap .wpcf7-form,
.contact-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-wrap label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  border: 1.5px solid var(--gray-border);
  border-radius: 9px;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: white;
  transition: border-color 0.18s;
  outline: none;
  appearance: none;
}

.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(66,133,244,0.1);
}

.contact-form-wrap textarea { resize: vertical; min-height: 120px; }

.contact-form-wrap input[type="submit"],
.contact-form-wrap .wpcf7-submit,
.contact-form-wrap button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}

.contact-form-wrap input[type="submit"]:hover,
.contact-form-wrap .wpcf7-submit:hover,
.contact-form-wrap button[type="submit"]:hover { background: var(--blue-dark); }

/* --- FOOTER ------------------------------------------------ */
#site-footer {
  background: var(--navy);
  padding: 56px 24px 28px;
}

.footer-top {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-brand-logo .logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
}

.footer-brand-logo .logo-icon svg { width: 18px; height: 18px; }

.footer-brand-logo span {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.footer-brand p { color: #8FA3BA; font-size: 0.88rem; line-height: 1.7; max-width: 260px; /* was #6B7A8D = 4.06:1 fail; #8FA3BA = 5.8:1 pass */ }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8FA3BA; /* was #6B7A8D = 4.06:1 fail; now 5.8:1 pass */
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col ul li a,
.footer-col a {
  display: block;
  color: #9DB8D8;
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-col ul li a:hover,
.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: #7A8FA8; font-size: 0.82rem; margin: 0; /* was #4A5568 = 2.3:1 fail; #7A8FA8 = 4.8:1 pass */ }

.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #7A8FA8; text-decoration: none; font-size: 0.82rem; /* was #4A5568 = fail */ }
.footer-legal a:hover { color: #B8CFE8; }

/* WordPress menu in footer */
#footer-menu { list-style: none; margin: 0; padding: 0; }
#footer-menu li a { color: #B8CFE8; text-decoration: none; font-size: 0.88rem; margin-bottom: 10px; display: block; /* was #9DB8D8 — both pass but bumping up slightly */ }
#footer-menu li a:hover { color: white; }

/* --- ANIMATIONS -------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.55s ease both; }
.hero h1      { animation: fadeUp 0.55s ease 0.1s both; }
.hero-sub     { animation: fadeUp 0.55s ease 0.2s both; }
.hero-ctas    { animation: fadeUp 0.55s ease 0.3s both; }
.hero-stats   { animation: fadeUp 0.55s ease 0.4s both; }

/* --- RESPONSIVE -------------------------------------------- */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #primary-navigation {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--gray-border);
    padding: 16px 24px;
    z-index: 199;
    flex-direction: column;
    align-items: stretch;
  }

  #primary-navigation.is-open { display: flex; }
  #primary-navigation ul { flex-direction: column; gap: 4px; }
  #primary-navigation ul li a { padding: 10px 14px; }

  .nav-toggle { display: block; }
  .audience-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .audience-card { padding: 28px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* --- CUSTOM LOGO (uploaded via Customizer) ------------------ */
.custom-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-logo-wrap img {
  /* Treat the uploaded logo as an icon — same height as the SVG fallback */
  height: 36px;
  width: auto;
  display: block;
  border-radius: 9px; /* matches the square logo shape */
}

/* Site title — shown beside both the uploaded logo and SVG fallback */
.logo-text {
  font-family: 'Inter', 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

/* WordPress adds .custom-logo-link — neutralise it since we wrap ourselves */
.custom-logo-link {
  display: contents;
}


/* ============================================================
   BLOG — index, archive, single
   ============================================================ */

/* --- Blog index wrap --------------------------------------- */
.blog-wrap {
  background: var(--gray-bg);
  min-height: 60vh;
  padding: 64px 24px 80px;
}

.blog-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* --- Post grid -------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

/* --- Post card -------------------------------------------- */
.post-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--gray-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}

.post-card-thumb {
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--gray-bg);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.03); }

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

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.post-date {
  font-size: 0.8rem;
  color: var(--gray-text);
  font-weight: 500;
}

.post-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 3px 9px;
  border-radius: 5px;
}

.post-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 10px;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.post-card-title a:hover { color: var(--blue); }

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.post-read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.18s, color 0.18s;
  margin-top: auto;
}

.post-read-more:hover { gap: 8px; color: var(--blue-dark); }

/* --- Pagination ------------------------------------------- */
.blog-pagination {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

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

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-mid);
  background: white;
  border: 1px solid var(--gray-border);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  width: auto;
  padding: 0 16px;
}

/* --- No posts --------------------------------------------- */
.no-posts {
  text-align: center;
  padding: 80px 24px;
  color: var(--gray-text);
}

.no-posts p { margin-bottom: 24px; font-size: 1.05rem; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

/* --- Single header ---------------------------------------- */
.single-header {
  margin-bottom: 40px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.single-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 4px 10px;
  border-radius: 5px;
  text-decoration: none;
}

.single-cat:hover { background: var(--blue); color: white; }

.post-read-time {
  font-size: 0.8rem;
  color: var(--gray-text);
  font-weight: 500;
}

.single-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 20px;
}

.single-excerpt {
  font-size: 1.1rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 28px;
}

.single-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.author-label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-text);
}

/* --- Single hero image ------------------------------------ */
.single-hero-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  aspect-ratio: 16 / 7;
  background: var(--gray-bg);
}

.single-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Post content (the_content) --------------------------- */
.single-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 48px;
}

.single-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}

.single-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
}

.single-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}

.single-content p { margin-bottom: 1.5em; }

.single-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-content a:hover { color: var(--blue-dark); }

.single-content ul,
.single-content ol {
  margin: 0 0 1.5em 1.5em;
}

.single-content li { margin-bottom: 0.5em; }

.single-content blockquote {
  border-left: 4px solid var(--blue);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--blue-light);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--navy);
  font-size: 1.1rem;
}

.single-content blockquote p { margin: 0; }

.single-content img {
  border-radius: 12px;
  margin: 24px auto;
}

.single-content pre {
  background: var(--navy);
  color: #B8CFE8;
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5em;
}

.single-content code {
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.single-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.single-content hr {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin: 40px 0;
}

.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.92rem;
}

.single-content th {
  background: var(--navy);
  color: white;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}

.single-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-border);
  color: var(--text-mid);
}

.single-content tr:nth-child(even) td { background: var(--gray-bg); }

/* --- Tags ------------------------------------------------- */
.single-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-top: 1px solid var(--gray-border);
  margin-bottom: 40px;
}

.tag-pill {
  background: var(--gray-bg);
  color: var(--text-mid);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--gray-border);
  transition: background 0.18s, color 0.18s;
}

.tag-pill:hover { background: var(--blue-light); color: var(--blue-dark); }

/* --- Post navigation -------------------------------------- */
.post-nav {
  border-top: 1px solid var(--gray-border);
  padding: 40px 0;
  margin-bottom: 40px;
}

.post-nav .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.post-nav .nav-previous,
.post-nav .nav-next { display: flex; }

.post-nav .nav-next { justify-content: flex-end; }

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  max-width: 280px;
}

.post-nav-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-text);
}

.post-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  transition: color 0.15s;
}

.post-nav a:hover .post-nav-title { color: var(--blue); }

/* --- Back to blog button ---------------------------------- */
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-border);
  color: var(--text-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.btn-outline-dark:hover {
  background: var(--gray-bg);
  border-color: var(--navy);
  color: var(--navy);
}

/* --- Responsive blog -------------------------------------- */
@media (max-width: 680px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-nav .nav-links { grid-template-columns: 1fr; }
  .post-nav .nav-next { justify-content: flex-start; }
  .single-wrap { padding: 40px 20px 0; }
  .single-title { font-size: 1.8rem; }
}

/* Footer logo — slightly smaller than header, sits on dark navy */
.footer-logo-wrap img {
  height: 30px;
  width: auto;
  display: block;
  border-radius: 7px;
}
