/* ============================================================
   ED MEIRE LAW — GHOST THEME
   screen.css
   ============================================================ */

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

:root {
  /* Brand palette — canonical hex values, do not invent new ones */
  --navy:          #071827; /* Ink Navy — header, footer, dark sections, primary dark text */
  --cream:         #F4EFE5; /* Warm Bone — main light backgrounds */
  --bone-bright:   #FBF8F1; /* Bright Bone — input fields, cards, lighter surfaces */
  --red:           #D75C4A; /* Coral Red — main buttons, rules, emphasis */
  --red-hover:     #BD4939; /* Deep Coral — button hover states */
  --brown:         #765D49; /* Warm Brown — editorial cards, warm section breaks */
  --sand:          #D8C7AD; /* Sand — borders, dividers */
  --charcoal:      #202323; /* Charcoal — secondary dark backgrounds, body text */
  --charcoal-deep: #151818; /* Deep Charcoal — deepest neutral sections */
  --white:        #FFFFFF;
  --text-dark:    #071827;
  --text-muted:   #666666;
  --border:       rgba(0,0,0,0.08);
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Single source of truth for horizontal gutter — header, footer,
     hero, and every section container must reference this so they
     can never drift apart again. */
  --gutter: clamp(1rem, 5vw, 2rem);
  --container-max: 1200px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav-wrapper {
  background: var(--navy);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 18px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  transition: background 0.2s !important;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--red-hover) !important;
  color: var(--white) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.25s;
  border-radius: 1px;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   GHOST REQUIRED CARD CLASSES
   Required by Ghost theme validation
   ============================================================ */

.kg-width-wide {
  width: 100%;
  max-width: 100%;
}

.kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ============================================================
   GHOST CONTENT OVERRIDE
   Forces HTML cards to be full-width with no extra margin
   ============================================================ */

.edl-page .gh-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.edl-page .kg-card {
  margin: 0 !important;
  padding: 0 !important;
}

.edl-page .kg-html-card,
.edl-page .kg-html-card-inner {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* ============================================================
   SECTION SYSTEM
   These are the building blocks used in HTML blocks
   ============================================================ */

.section-inner {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
  box-sizing: border-box;
}

/* Global Fix 3: defensive gutter — if a section's content isn't
   wrapped in .section-inner, still keep it inside the grid instead
   of bleeding edge-to-edge on mobile */
.section-dark > *:not(.section-inner),
.section-cream > *:not(.section-inner),
.section-brown > *:not(.section-inner),
.section-white > *:not(.section-inner) {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
  width: 100%;
}

/* Dark navy */
.section-dark {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
}

/* Cream */
.section-cream {
  background: var(--cream);
  color: var(--text-dark);
  padding: 80px 0;
}

/* Brown */
.section-brown {
  background: var(--brown);
  color: var(--white);
  padding: 80px 0;
}

/* White */
.section-white {
  background: var(--white);
  color: var(--text-dark);
  padding: 80px 0;
}

/* ============================================================
   SPLIT SECTIONS
   ============================================================ */

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Root-cause fix: a split section can't take a .section-inner
     wrapper without breaking its 2-column grid, so it needs its own
     cap to stay aligned with every other section's 1200px container
     instead of running full-bleed on wide screens. */
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.split-dark {
  background: var(--navy);
  color: var(--white);
  padding: 80px var(--gutter);
}

.split-cream {
  background: var(--cream);
  color: var(--text-dark);
  padding: 80px var(--gutter);
}

.split-brown {
  background: var(--brown);
  color: var(--white);
  padding: 80px var(--gutter);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.eyebrow-light {
  color: rgba(255,255,255,0.45);
}

.headline-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 100px);
  font-weight: 700;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.headline-md {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.headline-sm {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.accent-red {
  color: var(--red);
}

.body-text {
  font-size: 17px;
  line-height: 1.72;
  max-width: 600px;
}

.body-text-wide {
  max-width: 780px;
}

.body-text-sm {
  font-size: 15px;
  line-height: 1.65;
}

.text-muted-light {
  color: rgba(255,255,255,0.7);
}

.text-muted-dark {
  color: var(--text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  /* Global Fix 1: guarantee breathing room above hero CTAs and
     neutralize any absolute positioning applied in page content */
  margin-top: 1.75rem;
  position: static !important;
  inset: auto !important;
  /* Sizes to content even when a flex-column parent (stretch by
     default) would otherwise stretch it to full width */
  width: fit-content;
  max-width: 100%;
}

.btn-primary:hover {
  background: var(--red-hover);
  color: var(--white);
}

/* Global Fix 1 (cont.): CTAs that live inside cards/bars already have
   their own internal spacing — don't double it up */
.card .btn-primary,
.card-dark .btn-primary,
.card-cream .btn-primary,
.hero-card .btn-primary,
.credential-bar .btn-primary,
.nav-cta {
  margin-top: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-note {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.btn-note-dark {
  color: var(--text-muted);
}

/* ============================================================
   HERO GRID
   ============================================================ */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

/* Global Fix 1: hero text/CTA column — flex column with a defined
   gap so the CTA never collides with the paragraph above it */
.hero-content,
.hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-content .btn-primary,
.hero-grid > div:first-child .btn-primary {
  margin-top: 0.5rem;
  /* Flex column parent defaults to align-items: stretch — pin the
     CTA to its own content width instead of full column width */
  align-self: flex-start;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-card {
  background: var(--cream);
  color: #071827 !important;
  padding: 36px;
}

/* Global Fix 2: hero card sits inside a dark hero wrapper — force
   Ink Navy text on every descendant so nothing inherits the
   hero's light/white text color */
.hero-card,
.hero-card h1,
.hero-card h2,
.hero-card h3,
.hero-card h4,
.hero-card p,
.hero-card span,
.hero-card li,
.hero-card .list-label,
.hero-card .hero-card-title {
  color: #071827 !important;
}

.hero-card .list-value {
  color: rgba(7, 24, 39, 0.55) !important;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-card-list {
  list-style: none;
  padding: 0;
}

.hero-card-list li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card-list li:last-child {
  border-bottom: none;
}

.hero-card-list .list-label {
  font-weight: 500;
}

.hero-card-list .list-value {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   CARD GRIDS
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 40px;
}

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

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--border);
}

.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 32px;
}

.card-cream {
  background: var(--cream);
  padding: 32px;
}

/* Global Fix 4: uniform card height/width regardless of text length.
   Grid stretch already equalizes height; flex column + margin-top:auto
   on the CTA/link keeps it pinned to the same baseline across cards
   without spacing out the title/text unevenly. */
.card,
.card-dark,
.card-cream {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card .card-link,
.card-dark .card-link,
.card-cream .card-link,
.card .btn-primary,
.card-dark .btn-primary,
.card-cream .btn-primary {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
}

.card-number {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.15;
}

.card-text {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.75;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.card-link:hover {
  opacity: 0.75;
}

/* ============================================================
   LIST STYLES
   ============================================================ */

.step-list {
  list-style: none;
  padding: 0;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
  line-height: 1.65;
}

.step-list li:last-child {
  border-bottom: none;
}

.step-list-dark li {
  border-bottom-color: rgba(0,0,0,0.1);
  color: var(--text-dark);
}

.step-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  min-width: 28px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================================
   TWO COLUMN LAYOUTS
   ============================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.two-col-wide {
  grid-template-columns: 3fr 2fr;
}

.two-col-narrow {
  grid-template-columns: 2fr 3fr;
}

/* ============================================================
   CREDENTIAL BAR
   ============================================================ */

.credential-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
}

.credential-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.credential-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.credential-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ============================================================
   DIVIDERS & HELPERS
   ============================================================ */

.divider-red {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 24px;
}

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

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ============================================================
   QUOTE BLOCK
   ============================================================ */

.quote-block {
  border-left: 4px solid var(--red);
  padding: 20px 32px;
  margin: 32px 0;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  color: var(--white);
}

.quote-text-dark {
  color: var(--navy);
}

/* ============================================================
   BLOG — INDEX
   ============================================================ */

.post-list {
  max-width: 780px;
}

.post-list-item {
  padding: 36px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.post-list-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.15;
}

.post-list-title a {
  color: var(--navy);
  transition: color 0.2s;
}

.post-list-title a:hover {
  color: var(--red);
}

.post-list-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 640px;
}

.post-read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pagination-wrapper {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* ============================================================
   BLOG — POST
   ============================================================ */

.post-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin: 48px 0 16px;
  line-height: 1.1;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin: 36px 0 12px;
}

.post-content p {
  font-size: 16px;
  line-height: 1.78;
  color: #3A3A3A;
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  font-size: 16px;
  line-height: 1.7;
  color: #3A3A3A;
  margin-bottom: 8px;
}

.post-content a {
  color: var(--red);
  text-decoration: underline;
}

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

.post-content blockquote {
  border-left: 4px solid var(--red);
  padding: 16px 28px;
  margin: 32px 0;
  background: rgba(192,57,43,0.04);
}

.post-content blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--navy);
  margin: 0;
}

.post-cta-block {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 3px solid var(--red);
}

.post-cta-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 24px;
  max-width: 560px;
  line-height: 1.55;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding-top: 64px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 56px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}

.footer-address {
  font-style: normal;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-reviews {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 14px;
  transition: all 0.2s;
}

.footer-reviews:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-contact-item {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-hours {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-bottom: 20px;
  margin-top: 4px;
}

.footer-cta {
  font-size: 11px !important;
  padding: 11px 18px !important;
  margin-top: 8px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
}

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

.footer-nav-list a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer-nav-list a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
  box-sizing: border-box;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}

.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    display: none;
  }
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .split-dark,
  .split-cream,
  .split-brown {
    padding: 60px var(--gutter);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    align-items: flex-start;
    overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 24px !important;
    font-size: 14px !important;
  }

  .nav-toggle {
    display: block;
  }

  .section-dark,
  .section-cream,
  .section-brown,
  .section-white {
    padding: 60px 0;
  }

  .section-split {
    grid-template-columns: 1fr;
  }

  .split-dark,
  .split-cream,
  .split-brown {
    padding: 56px var(--gutter);
  }

  .card-grid,
  .card-grid-2,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .two-col,
  .two-col-wide,
  .two-col-narrow {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .credential-bar-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
  }

  .footer-bottom {
    padding: 24px var(--gutter);
  }

  .post-content h2 {
    font-size: 24px;
  }

  .headline-xl {
    font-size: clamp(40px, 12vw, 64px);
  }

  .headline-lg {
    font-size: clamp(32px, 9vw, 52px);
  }
}

@media (max-width: 480px) {
  .credential-bar-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    padding-bottom: 40px;
  }
  .footer-bottom {
    padding: 20px var(--gutter);
  }
  .split-dark,
  .split-cream,
  .split-brown {
    padding: 48px var(--gutter);
  }
}

/* ============================================================
   GLOBAL FIX 5 — EMPTY / GHOST CONTAINERS
   Best-effort CSS safety net: hides section/card/divider elements
   that render with no actual content. This only catches elements
   with zero child nodes (true markup emptiness) — spacer divs that
   contain stray whitespace or a lone &nbsp; must still be deleted
   from the page content itself in Ghost admin.
   ============================================================ */

.section-dark:empty,
.section-cream:empty,
.section-brown:empty,
.section-white:empty,
.section-split:empty,
.split-dark:empty,
.split-cream:empty,
.split-brown:empty,
.section-inner:empty,
.card:empty,
.card-dark:empty,
.card-cream:empty,
.hero-card:empty,
.credential-bar:empty {
  display: none;
}

/* Prevent horizontal overflow on all screen sizes */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Ensure content stays within bounds on mobile */
@media (max-width: 768px) {
  img, video, iframe {
    max-width: 100%;
  }
  .card, .card-dark, .card-cream {
    min-width: 0;
    width: 100%;
  }
}
