/*
Theme Name: Legalmorning
Theme URI: https://legalmorning.com
Author: Legalmorning
Author URI: https://legalmorning.com
Description: Custom WordPress theme for Legalmorning.com, a boutique Wikipedia editing and digital marketing firm. Built from approved HTML mockups. No page builder. Slate/gold manual of style.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legalmorning
*/

/* ============================================================
   DESIGN TOKENS (Manual of Style)
   ============================================================ */
:root {
  --slate:      #2C4A7C; /* Slate blue: nav text, headings, body anchors */
  --slate-dark: #1E3356; /* Dark slate: page headers, footer bg, h1 */
  --slate-mid:  #3A5C94;
  --gold:       #D4A017; /* Gold: CTAs ONLY, never decorative */
  --gold-dark:  #C49010;
  --white:      #FFFFFF;
  --off-white:  #F8F8F6;
  --border:     #E6E4DE;
  --text:       #1A1A28;
  --text-mid:   #3D3D52;
  --text-soft:  #6B6B80;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1280px; /* shared content width (matches approved mockup: 1440 - 2x80) */
  --gutter: 80px;      /* min side padding before the container starts centering */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  width: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* WP admin bar fix */
.admin-bar .site-nav { top: 32px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #fff; padding: 10px 16px; z-index: 9999;
}
.skip-link:focus { left: 0; }

/* ============================================================
   NAV (with dropdowns)
   ============================================================ */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 80px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}
.logo, .site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.02em;
  font-family: var(--serif);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  align-items: center;
  margin: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > .nav-parent {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
}
.nav-links > li > a:hover,
.nav-links > li > .nav-parent:hover,
.nav-links > li:hover > .nav-parent,
.nav-links > li:focus-within > .nav-parent { color: var(--slate); }
.nav-parent::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  display: inline-block;
  opacity: 0.7;
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(30,51,86,0.12);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 200;
}
.nav-links > li:hover > .dropdown,
.nav-links > li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 9px 14px;
  border-radius: 5px;
  text-decoration: none;
  line-height: 1.35;
}
.dropdown li a:hover { background: var(--off-white); color: var(--slate); }

.nav-cta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--slate); margin: 4px 0; border-radius: 2px; }

/* ============================================================
   PAGE HEADER (slate-dark, white H1)
   ============================================================ */
.page-header { background: var(--slate-dark); padding: 72px 80px; }
.page-header .eyebrow,
.page-header .tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: block;
}
.page-header .academy {
  font-family: var(--serif); font-size: 1rem; font-style: italic;
  color: rgba(255,255,255,0.45); margin-bottom: 8px;
}
.page-header .page-subhead {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  color: var(--white); line-height: 1.3; margin-bottom: 16px;
}
.page-header .back {
  font-size: 0.82rem; color: var(--gold); text-decoration: none;
  font-weight: 600; display: inline-block; margin-bottom: 20px;
}
.page-header .back:hover { text-decoration: underline; }
.page-header h1 {
  font-family: var(--serif); font-size: 3rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px;
}
.page-header p {
  font-size: 1rem; color: rgba(255,255,255,0.55);
  max-width: 60ch; line-height: 1.75;
}
.page-header h1:last-child { margin-bottom: 0; }

/* ============================================================
   BUTTONS (CTA SYSTEM): gold = CTA only, consistent across site
   ============================================================ */
.btn-gold,
.svc-cta,
.card-cta,
.guide-cta,
.btn-gold-card,
.btn-gold-lg,
.btn-gold-full,
.page-next {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-gold:hover,
.svc-cta:hover,
.card-cta:hover,
.guide-cta:hover,
.btn-gold-card:hover,
.btn-gold-lg:hover,
.btn-gold-full:hover,
.page-next:hover { background: var(--gold-dark); }

.btn-gold, .btn-gold-lg { font-size: 0.85rem; padding: 14px 32px; white-space: nowrap; }
.svc-cta { font-size: 0.85rem; padding: 12px 28px; margin-top: 24px; }
/* Action row: gold CTA + secondary text link (e.g. "Read the FAQ") */
.svc-actions { display: flex; align-items: center; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.svc-actions .svc-cta { margin-top: 0; }
.svc-actions .post-card-link { margin-top: 0; align-self: center; }
.card-cta { font-size: 0.82rem; padding: 12px; text-align: center; display: block; margin-top: auto; }
.guide-cta { font-size: 0.82rem; padding: 11px 24px; align-self: flex-start; }
.btn-gold-card { font-size: 0.85rem; padding: 14px; text-align: center; display: block; }
.btn-gold-full { font-size: 0.82rem; padding: 13px; text-align: center; display: block; }

/* Slate solid button (e.g. homepage hero card consult) */
.btn-slate, .btn-slate-full {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--white); background: var(--slate-dark);
  padding: 14px 32px; border-radius: 4px; text-decoration: none; display: inline-block;
}
.btn-slate-full { display: block; text-align: center; padding: 14px; }
.btn-slate:hover, .btn-slate-full:hover { background: #16284a; }

/* Outline button (secondary) */
.btn-outline {
  font-size: 0.875rem; font-weight: 500; color: var(--slate);
  border: 1.5px solid var(--border); padding: 13px 24px; border-radius: 4px;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--slate); }
.btn-white-outline {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); padding: 12px 28px;
  border-radius: 4px; text-decoration: none; display: inline-block;
}
.btn-white-outline:hover { border-color: rgba(255,255,255,0.7); }

/* ============================================================
   SHARED: eyebrow, sections
   ============================================================ */
.eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section { padding: 88px 80px; }
.section-alt { background: var(--off-white); }
.section-h2 {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 700;
  color: var(--slate-dark); line-height: 1.18; letter-spacing: -0.02em;
  margin-bottom: 14px; max-width: 24ch;
}
.section-sub {
  font-size: 1rem; color: var(--text-soft); line-height: 1.8;
  max-width: 54ch; margin-bottom: 52px;
}

/* ============================================================
   HOMEPAGE
   ============================================================ */
.hero {
  background: var(--white); padding: 88px 80px; display: grid;
  grid-template-columns: minmax(0, 1fr) max-content; gap: 48px; align-items: stretch;
  border-bottom: 1px solid var(--border);
}
/* Transparent illustration inside the CTA card. The image area flexes to fill the space
   between the heading and the divider so the card matches the left column's height. */
.card-image { flex: 1 1 0; min-height: 0; position: relative; }
.card-image img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto;
  max-width: min(100%, 300px); max-height: min(100%, 230px);
  object-fit: contain; display: block;
}
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate-mid); margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero h1 {
  font-family: var(--serif); font-size: 3.8rem; font-weight: 700; color: var(--slate-dark);
  line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 12px;
}
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
/* Gold italic accent for heading keywords. */
.gold-accent { color: var(--gold); font-style: italic; font-weight: 400; }
/* Serif sub-headline directly below the H1 (slate, between H1 and body size). */
.hero-subhead {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 400; font-style: italic;
  color: var(--slate); line-height: 1.3; margin-bottom: 24px;
}
.hero-sub { font-size: 1.05rem; color: var(--text-soft); line-height: 1.78; max-width: 52ch; margin-bottom: 38px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-card {
  background: var(--off-white); border: 1px solid var(--border); border-radius: 10px;
  padding: 36px 32px; display: flex; flex-direction: column;
}
.hero-card-label {
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); margin-bottom: 10px; text-align: center;
}
.card-divider { height: 0; border: none; border-top: 0.5px solid var(--border); margin: 14px 0; }
.hero-card .btn-slate-full { display: block; width: 90%; margin: 18px auto 0; }
.card-bullets { list-style: none; display: flex; flex-direction: column; gap: 16px; padding: 0; }
.card-bullets li {
  font-size: 0.8rem; color: var(--text-mid); line-height: 1.5; padding-left: 30px; position: relative;
  white-space: nowrap;
}
.card-bullets li::before {
  content: '\2713'; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  background: var(--gold); border-radius: 50%; color: var(--white); font-size: 0.65rem;
  font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 20px;
}

/* How-it-works strip (full-bleed slate band, replaces the old press bar). */
.how-strip {
  background: var(--slate); padding: 52px 80px;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.how-step { text-align: center; padding: 4px 28px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.how-step:first-child { border-left: none; }
.how-label {
  display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.how-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--white);
  line-height: 1.25; margin-bottom: 12px; white-space: nowrap;
}
.how-desc { font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); line-height: 1.6; max-width: 30ch; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 36px 28px; }
.svc-icon {
  width: 48px; height: 48px; background: var(--off-white); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--slate-dark); margin-bottom: 10px; }
.svc-card p { font-size: 0.875rem; color: var(--text-soft); line-height: 1.72; }
.svc-card .svc-cta { margin-top: 20px; font-size: 0.8rem; padding: 10px 20px; }

.why-section { background: var(--slate); padding: 88px 80px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-left .eyebrow { color: var(--gold); }
.why-left h2 {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--white);
  line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 18px;
}
.why-left h2 em { font-style: italic; font-weight: 400; color: rgba(255,255,255,0.45); }
.why-left p { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 30px; }
.why-items { display: flex; flex-direction: column; }
.why-item { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; gap: 18px; }
.why-item:last-child { border-bottom: none; }
.why-num {
  flex-shrink: 0; width: 22px; height: 22px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
  font-size: 0.7rem; color: var(--white); font-weight: 700;
}
.why-item h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.why-item p { font-size: 0.85rem; color: rgba(255,255,255,0.42); line-height: 1.65; margin: 0; }

.cta-section {
  background: var(--white); border-top: 1px solid var(--border); padding: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 60px; flex-wrap: wrap;
}
.cta-left h2 {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--slate-dark);
  line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 10px;
}
.cta-left p { font-size: 1rem; color: var(--text-soft); }

/* ============================================================
   BOTTOM CTA (shared, used on interior pages)
   ============================================================ */
.bottom-cta, .news-cta, .founder-cta {
  background: var(--off-white); border-top: 1px solid var(--border); padding: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 60px; flex-wrap: wrap;
}
.bottom-cta h2, .news-cta h2, .founder-cta h2 {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--slate-dark);
  line-height: 1.2; letter-spacing: -0.02em;
}
.bottom-cta p, .news-cta p, .founder-cta p { font-size: 1rem; color: var(--text-soft); margin-top: 8px; }

/* ============================================================
   MEET THE FOUNDER
   ============================================================ */
.founder-section {
  padding: 88px 80px; display: grid; grid-template-columns: 320px 1fr; gap: 80px; align-items: start;
}
.founder-left { position: sticky; top: 24px; }
.founder-photo {
  width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  margin-bottom: 24px; border: 1px solid var(--border);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--slate-dark); margin-bottom: 4px; }
.founder-title { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 24px; }
.founder-links { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 20px; }
.founder-link { font-size: 0.85rem; font-weight: 600; color: var(--slate); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.founder-link::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.founder-right h2 {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--slate-dark);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 32px; max-width: 22ch;
}
.bio-text { font-size: 1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 24px; max-width: 65ch; }
.founder-cta { background: var(--off-white); }
.founder-cta h2 { font-size: 2rem; }

/* ============================================================
   ZIG-ZAG SERVICE ROWS (services, digital marketing, training)
   ============================================================ */
.service-row {
  padding: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; border-bottom: 1px solid var(--border);
}
.service-row.alt { background: var(--off-white); }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-img {
  background: var(--border); border-radius: 8px; aspect-ratio: 4/3; display: flex;
  align-items: center; justify-content: center; border: 1px solid var(--border); overflow: hidden;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-img span { font-size: 0.8rem; color: var(--text-soft); font-style: italic; }
/* Transparent service illustrations: no box/border/background, image bleeds onto the section.
   Fixed aspect-ratio + object-fit: contain prevents distortion and layout shift. */
.service-photo { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.service-photo picture { display: block; width: 100%; height: 100%; }
.service-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Mirror an illustration so its empty space faces inward toward the text column. */
.service-photo.flip img { transform: scaleX(-1); }
.svc-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.service-content h2 {
  font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--slate-dark);
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px;
}
.service-content > p { font-size: 0.98rem; color: var(--text-soft); line-height: 1.82; margin-bottom: 20px; }
.service-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-mid); line-height: 1.5; }
.bullet-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

.consult-card-inline { background: var(--slate-dark); border-radius: 10px; padding: 40px 36px; display: flex; flex-direction: column; }
.consult-price { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 6px; }
.consult-price span { font-size: 1rem; color: rgba(255,255,255,0.4); font-weight: 400; font-family: var(--sans); }
.consult-note { font-size: 0.82rem; color: rgba(255,255,255,0.38); margin-bottom: 6px; font-style: italic; }
.consult-credit { font-size: 0.82rem; color: var(--gold); margin-bottom: 24px; }
.consult-divider { height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 24px; }

/* Training: why strip + onsite */
.why-strip { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 56px 80px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.why-strip .why-item { display: flex; flex-direction: column; gap: 8px; padding: 0; border: none; }
.why-dot { width: 20px; height: 20px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--white); font-weight: 700; margin-bottom: 4px; }
.why-strip .why-item h4 { font-size: 0.92rem; font-weight: 700; color: var(--slate-dark); line-height: 1.3; }
.why-strip .why-item p { font-size: 0.82rem; color: var(--text-soft); line-height: 1.6; margin: 0; }
.onsite-section { background: var(--slate); padding: 88px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.onsite-section .eyebrow { color: var(--gold); }
.onsite-section h2 { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--white); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.onsite-section > div > p { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 28px; }
.onsite-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.onsite-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
.onsite-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.onsite-img { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.onsite-img span { font-size: 0.8rem; color: rgba(255,255,255,0.3); font-style: italic; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-boxes { padding: 88px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-box { background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; padding: 48px 44px; display: flex; flex-direction: column; }
.box-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.contact-box h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--slate-dark); }
.contact-box > p { font-size: 0.95rem; line-height: 1.75; margin-bottom: 28px; color: var(--text-soft); }
.box-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.box-bullets li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; color: var(--text-mid); }
.bullet-check { width: 20px; height: 20px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.65rem; color: var(--white); font-weight: 700; }
.contact-box .btn-gold { margin-top: auto; align-self: flex-start; }
.form-section { padding: 0 80px 88px; }
.form-section h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--slate-dark); margin-bottom: 8px; letter-spacing: -0.02em; }
.form-section > p { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 36px; }
.form-placeholder { background: var(--off-white); border: 2px dashed var(--border); border-radius: 10px; padding: 80px 40px; text-align: center; }
.form-placeholder p { font-size: 0.95rem; color: var(--text-soft); font-style: italic; }
.contact-form-wrap { background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; padding: 40px 44px; }
.contact-form-wrap .wpforms-field-label { color: var(--text); }
.contact-form-wrap input[type="text"], .contact-form-wrap input[type="email"], .contact-form-wrap input[type="tel"], .contact-form-wrap input[type="url"], .contact-form-wrap textarea, .contact-form-wrap select { border-radius: 4px; }

/* ============================================================
   FAQ HUB + GUIDES HUB (card grids)
   ============================================================ */
.faq-grid-section, .guides-section { padding: 88px 80px; }
.faq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.faq-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 36px 32px; display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.faq-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.card-icon { width: 48px; height: 48px; background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon svg { width: 24px; height: 24px; }
.faq-card h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--slate-dark); line-height: 1.2; margin-bottom: 12px; }
.faq-card p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; margin-bottom: 24px; flex: 1; }
.card-questions { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.card-questions li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--slate); line-height: 1.45; }
.card-questions li::before { content: '\2192'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.guide-card-img { background: var(--off-white); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); overflow: hidden; }
.guide-card-img img { width: 100%; height: 100%; object-fit: cover; }
.guide-card-img span { font-size: 0.8rem; color: var(--text-soft); font-style: italic; }
.guide-card-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.guide-tag, .post-tag { display: inline-block; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); background: rgba(44,74,124,0.08); padding: 4px 10px; border-radius: 4px; margin-bottom: 14px; }
.guide-tag { font-size: 0.68rem; align-self: flex-start; }
.guide-card-body h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--slate-dark); line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 12px; }
.guide-card-body p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; flex: 1; margin-bottom: 24px; }

/* ============================================================
   TWO-COLUMN CONTENT + SIDEBAR (FAQ subpages, guides, news)
   ============================================================ */
.content-wrap { padding: 88px 80px; display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: start; }
.content-wrap.news-wrap { grid-template-columns: 1fr 320px; }

/* Q&A (FAQ subpages) */
.qa-item { padding: 48px 0; border-bottom: 1px solid var(--border); }
.qa-item:first-child { padding-top: 0; }
.qa-item:last-child { border-bottom: none; }
.qa-item h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--slate-dark); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 20px; }
.qa-item h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.qa-item p { font-size: 1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; max-width: 68ch; }
.qa-item p:last-child { margin-bottom: 0; }
.qa-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.qa-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--text-mid); line-height: 1.6; max-width: 64ch; }
.qa-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }

/* Guide prose (NOTE: no border-top dividers between H2, per brief fix) */
.guide-col h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--slate-dark); line-height: 1.2; letter-spacing: -0.02em; margin: 40px 0 16px; }
.guide-col h2:first-child { margin-top: 0; }
.guide-col h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--slate-dark); margin: 28px 0 12px; }
.guide-col > p { font-size: 1rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; max-width: 68ch; }
.guide-col img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; margin: 8px 0 24px; display: block; }
.guide-col a img { border-color: var(--border); }
.guide-col iframe { max-width: 100%; border: 0; border-radius: 6px; margin: 8px 0 24px; display: block; }
.guide-col figure { margin: 8px 0 24px; }
.guide-col figure img { margin: 0; }
.guide-col figcaption { font-size: 0.85rem; color: var(--text-mid); font-style: italic; line-height: 1.55; margin-top: 8px; }
.guide-col .guide-intro { font-size: 1.05rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 8px; max-width: 68ch; }
.guide-col ul { margin: 16px 0 20px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 64ch; }
.guide-col li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--text-mid); line-height: 1.6; }
.guide-col li::before { content: ''; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }
.callout { background: var(--off-white); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; padding: 20px 24px; margin: 24px 0; max-width: 64ch; }
.callout p { font-size: 0.92rem; color: var(--text-mid); margin: 0; font-style: italic; line-height: 1.7; }
.callout strong { color: var(--slate-dark); font-style: normal; }
/* Callouts render identically whether div or blockquote: cancel the browser default blockquote margin and left/right indent so nothing shifts. */
blockquote.callout { margin: 24px 0; }

/* Sidebar */
.sidebar { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-nav { background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; padding: 28px 24px; }
.sidebar-nav h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px; }
.sidebar-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 0; }
.sidebar-nav li a { font-size: 0.88rem; color: var(--slate); text-decoration: none; padding: 6px 10px; border-radius: 4px; display: block; line-height: 1.4; }
.sidebar-nav li a:hover { background: var(--border); }
.sidebar-card { background: var(--slate-dark); border-radius: 10px; padding: 32px 28px; }
.sidebar-card h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 10px; }
.sidebar-card p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: 20px; }

/* Other cards grid (more FAQ / more guides) */
.other-faqs, .other-guides { padding: 0 80px 88px; }
.other-faqs h2, .other-guides h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--slate-dark); margin-bottom: 24px; letter-spacing: -0.02em; }
.other-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.other-card { background: var(--off-white); border: 1px solid var(--border); border-radius: 8px; padding: 24px 22px; text-decoration: none; display: block; transition: box-shadow 0.2s; }
.other-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.other-card h3 { font-size: 1rem; font-weight: 700; color: var(--slate-dark); margin-bottom: 6px; }
.other-card p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.5; margin: 0; }

/* ============================================================
   IN THE NEWS
   ============================================================ */
.section-heading { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--slate-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.news-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 52px; }
.news-item { padding: 13px 0; border-bottom: 1px solid var(--off-white); display: flex; align-items: flex-start; gap: 12px; }
.news-item:last-child { border-bottom: none; }
.news-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex-shrink: 0; margin-top: 7px; }
.news-item a { font-size: 0.92rem; color: var(--slate); text-decoration: none; line-height: 1.5; font-weight: 500; display: block; }
.news-item a:hover { color: var(--gold-dark); }
.news-item a em { font-style: italic; }
.news-date { font-size: 0.78rem; color: var(--text-soft); margin-top: 2px; display: block; }

/* ============================================================
   BLOG
   ============================================================ */
.featured-section { padding: 72px 80px 0; }
.featured-post { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: stretch; background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.featured-img { background: var(--border); display: flex; align-items: center; justify-content: center; min-height: 320px; overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-img span { font-size: 0.8rem; color: var(--text-soft); font-style: italic; }
.featured-content { padding: 40px 40px 40px 0; display: flex; flex-direction: column; justify-content: center; }
.featured-content h2 { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--slate-dark); line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 14px; }
.featured-content h2 a { text-decoration: none; color: inherit; }
.post-meta { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 16px; }
.featured-content > p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.65; margin-bottom: 18px; }
.posts-section { padding: 60px 80px 88px; }
.posts-section .eyebrow { margin-bottom: 32px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.post-card-img { background: var(--off-white); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-img span { font-size: 0.75rem; color: var(--text-soft); font-style: italic; }
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-body .post-tag { margin-bottom: 10px; font-size: 0.72rem; }
.post-card-body h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--slate-dark); line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.01em; }
.post-card-body h3 a { text-decoration: none; color: inherit; }
.post-card-body .post-meta { margin-bottom: 10px; }
.post-card-body p { font-size: 0.875rem; color: var(--text-soft); line-height: 1.65; flex: 1; margin-bottom: 18px; }
.featured-content .post-tag { font-size: 0.72rem; align-self: flex-start; }
/* Read Article = underlined slate text link (not a gold button) */
.post-card-link { font-size: 0.8rem; font-weight: 700; color: var(--slate); text-decoration: none; border-bottom: 1.5px solid var(--slate); padding-bottom: 1px; align-self: flex-start; display: inline-block; margin-top: 4px; }
.post-card-link:hover { color: var(--gold-dark); border-color: var(--gold-dark); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 80px 88px; flex-wrap: wrap; }
.pagination .page-numbers, .page-num { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 600; color: var(--text-soft); border: 1px solid var(--border); border-radius: 4px; text-decoration: none; }
.pagination .page-numbers.current, .page-num.active { background: var(--slate-dark); color: var(--white); border-color: var(--slate-dark); }
.page-next { font-size: 0.85rem; padding: 10px 20px; }

/* Single post */
.single-wrap { padding: 72px 80px 88px; max-width: 820px; margin: 0 auto; }
.single-wrap h1 { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--slate-dark); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.single-content { font-size: 1.05rem; color: var(--text-mid); line-height: 1.85; }
.single-content h2 { font-family: var(--serif); color: var(--slate-dark); margin: 32px 0 14px; }
.single-content h3 { font-family: var(--serif); color: var(--slate-dark); margin: 24px 0 12px; }
.single-content p { margin-bottom: 18px; }
.single-content a { color: var(--slate); text-decoration: underline; }
.single-content ul, .single-content ol { margin: 0 0 18px 22px; }
.single-content img { border-radius: 8px; margin: 20px 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--slate-dark); padding: 48px 80px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 10px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.3); line-height: 1.7; max-width: 28ch; }
.footer-col h4 { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-col a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.22); }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.28); text-decoration: none; }
.footer-socials a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   SHARED CONTAINER
   Backgrounds stay full-bleed (the section element spans 100% of the
   viewport); content is centered in ONE shared max-width container so
   every section shares the same left/right edge. The side padding grows
   on wide screens to keep content at --container, and never drops below
   --gutter. This single rule standardizes alignment across all pages.
   ============================================================ */
.site-nav,
.page-header,
.hero,
.how-strip,
.section,
.why-section,
.cta-section,
.bottom-cta,
.news-cta,
.founder-cta,
.founder-section,
.service-row,
.why-strip,
.onsite-section,
.contact-boxes,
.form-section,
.faq-grid-section,
.guides-section,
.content-wrap,
.featured-section,
.posts-section,
.pagination,
.other-faqs,
.other-guides,
.site-footer {
  padding-left: max(var(--gutter), calc((100% - var(--container)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--container)) / 2));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .faq-grid, .other-grid { grid-template-columns: repeat(2, 1fr); }
  .why-strip { grid-template-columns: repeat(3, 1fr); }
}
/* Hero stacks below 1200: the wide card with single-line proof points needs a wide viewport.
   When stacked the card is content-height, so the image takes an explicit size (no flex
   collapse) and the proof points are allowed to wrap. */
@media (max-width: 1199px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .card-bullets li { white-space: normal; }
  .card-image { flex: 0 0 auto; position: static; }
  .card-image img { position: static; margin: 0 auto; max-width: 260px; max-height: 260px; }
}
@media (max-width: 1024px) {
  .why-grid, .service-row, .onsite-section, .founder-section,
  .content-wrap, .content-wrap.news-wrap, .featured-post,
  .services-grid, .guides-grid, .posts-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-row.reverse { direction: ltr; }
  .sidebar, .founder-left { position: static; }
  .contact-boxes { grid-template-columns: 1fr; }
  .featured-content { padding: 32px; }
  .featured-img { min-height: 240px; }
  /* How-it-works strip stacks; vertical dividers become horizontal. */
  .how-strip { grid-template-columns: 1fr; }
  .how-step { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 28px 0; }
  .how-step:first-child { border-top: none; padding-top: 0; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { padding: 0 24px; flex-wrap: wrap; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a, .nav-links > li > .nav-parent { width: 100%; padding: 12px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-radius: 0; padding: 0 0 8px 16px; min-width: 0;
    display: none;
  }
  .nav-links > li.open > .dropdown { display: block; }
  .nav-parent::after { margin-left: auto; }
}
@media (max-width: 760px) {
  .page-header, .section, .hero, .how-strip, .why-section, .cta-section,
  .service-row, .onsite-section, .founder-section, .content-wrap,
  .faq-grid-section, .guides-section, .contact-boxes, .form-section,
  .featured-section, .posts-section, .pagination, .other-faqs, .other-guides,
  .bottom-cta, .news-cta, .founder-cta, .why-strip, .site-footer, .single-wrap {
    padding-left: 24px; padding-right: 24px;
  }
  .faq-grid, .other-grid, .why-strip { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.6rem; }
  .section-h2, .why-left h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .bottom-cta, .news-cta, .founder-cta, .cta-section { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}
