/* ============================================================
   Easter's Lock & Security Solutions — Visibility Engine CSS
   Brand palette extracted from easterslock.com theme.css
   All 10 WordPress fixes baked in (see CLAUDE.md "KNOWN FIXES")

   Production version (single-line, wpautop-safe): easterslock-ve.css
   ============================================================ */

/* CSS variables — kept as-is, scoped by specificity not nesting */
:root {
  --rc-primary: #C62121;        /* Easter's primary red */
  --rc-accent:  #911A1D;        /* Easter's accent dark red (hover) */
  --rc-dark:    #18242E;        /* Easter's dark navy (body text + headers) */
  --rc-charcoal:#1F1F1F;
  --rc-mid:     #4C4C4C;
  --rc-border:  #757575;
  --rc-light:   #D8D8D8;
  --rc-faint:   #F2F2F2;
  --rc-white:   #FFFFFF;
  --rc-cream:   #FAF8F4;
  --rc-gray-light: #FAFAFA;
  --rc-radius:  6px;
  --rc-shadow:  0 1px 3px rgba(15,23,42,0.08);
  --rc-shadow-lg: 0 4px 12px rgba(15,23,42,0.10);
}

/* ===== ALL CSS BELOW IS SCOPED UNDER THE PAGE-TYPE WRAPPER CLASS =====
   .preview-wrapper = hub_page
   .state-content   = state_page
   .city-content    = city_page
   .paa-content     = paa_blog

   NO bare global selectors (* / body / p / h2) — those destroy the WP theme.
   ====== */

/* ---------- HUB / STATE / CITY content wrapper ---------- */
.preview-wrapper, .state-content, .city-content, .paa-content {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: var(--rc-charcoal);
  font-size: 16px;
  line-height: 1.7;
  padding: 0 20px;                /* FIX 8: conservative padding for WP */
  max-width: 100%;
}

/* H1 — always the FIRST element in html_content per CLAUDE.md */
.preview-wrapper h1, .state-content h1, .city-content h1, .paa-content h1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--rc-dark);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

/* Answer Capsule — the AI-citable block right after H1 */
.preview-wrapper .answer-capsule,
.state-content .answer-capsule,
.city-content .answer-capsule,
.paa-content .answer-capsule {
  background: var(--rc-cream);
  border-left: 4px solid var(--rc-primary);
  padding: 20px 24px;
  border-radius: var(--rc-radius);
  margin: 0 0 32px;
}
.preview-wrapper .answer-capsule p,
.state-content .answer-capsule p,
.city-content .answer-capsule p,
.paa-content .answer-capsule p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--rc-dark);
  margin: 0;
  font-weight: 500;
}

/* H2 — section headings */
.preview-wrapper h2, .state-content h2, .city-content h2, .paa-content h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--rc-dark);
  line-height: 1.25;
  margin: 24px 0 12px;            /* FIX 8: conservative margins (was 40px) */
}

/* H3 — sub-section headings */
.preview-wrapper h3, .state-content h3, .city-content h3, .paa-content h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rc-dark);
  margin: 20px 0 10px;
}

/* Paragraphs */
.preview-wrapper p, .state-content p, .city-content p, .paa-content p {
  color: var(--rc-charcoal);
  margin-bottom: 1rem;            /* FIX 8: conservative margin */
  font-size: 16px;
}

/* Lists — use defaults BUT custom-numbered lists must use <div> per FIX 5 */
.preview-wrapper ul, .state-content ul, .city-content ul, .paa-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.preview-wrapper ul li, .state-content ul li, .city-content ul li, .paa-content ul li {
  margin: 6px 0;
  line-height: 1.65;
}
.preview-wrapper ul li::marker, .state-content ul li::marker,
.city-content ul li::marker, .paa-content ul li::marker {
  color: var(--rc-primary);
}

/* ---------- TABLE OF CONTENTS (uses <div> not <ol>) — FIX 5 ---------- */
.preview-wrapper .toc-list, .state-content .toc-list, .city-content .toc-list, .paa-content .toc-list {
  counter-reset: toc-counter;
  background: var(--rc-faint);
  border-radius: var(--rc-radius);
  padding: 20px 28px;
  margin: 24px 0;
  list-style: none !important;
}
.preview-wrapper .toc-list > div, .state-content .toc-list > div,
.city-content .toc-list > div, .paa-content .toc-list > div {
  counter-increment: toc-counter;
  padding: 6px 0 6px 36px;
  position: relative;
}
.preview-wrapper .toc-list > div::before, .state-content .toc-list > div::before,
.city-content .toc-list > div::before, .paa-content .toc-list > div::before {
  content: counter(toc-counter, decimal-leading-zero) ".";
  position: absolute;
  left: 0;
  color: var(--rc-primary);
  font-weight: 700;
  font-family: 'EB Garamond', serif;
}
.preview-wrapper .toc-list a, .state-content .toc-list a,
.city-content .toc-list a, .paa-content .toc-list a {
  color: var(--rc-dark);
  text-decoration: none;
  font-weight: 500;
}
.preview-wrapper .toc-list a:hover, .state-content .toc-list a:hover,
.city-content .toc-list a:hover, .paa-content .toc-list a:hover {
  color: var(--rc-primary);
  text-decoration: underline;
}

/* ---------- PROCESS STEPS (uses <div> not <ol>) — FIX 5 + FIX 10 ---------- */
.preview-wrapper .process-step, .state-content .process-step,
.city-content .process-step, .paa-content .process-step {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rc-faint);
  align-items: flex-start;       /* NOT column — FIX 10 */
}
.preview-wrapper .step-number, .state-content .step-number,
.city-content .step-number, .paa-content .step-number {
  flex-shrink: 0;
  min-width: 48px;
  width: 48px;                   /* FIX 10: explicit width */
  height: 48px;
  background: var(--rc-primary);
  color: var(--rc-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: 'EB Garamond', serif;
}
.preview-wrapper .step-content, .state-content .step-content,
.city-content .step-content, .paa-content .step-content {
  flex: 1;
}
.preview-wrapper .step-content h3, .state-content .step-content h3,
.city-content .step-content h3, .paa-content .step-content h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

/* ---------- COMMON MISTAKES LIST (PAA pages) — FIX 10 ---------- */
.paa-content .mistakes-list {
  margin: 24px 0;
}
.paa-content .mistake-item {
  border-left: 4px solid var(--rc-primary);
  padding: 16px 20px;
  background: var(--rc-gray-light);
  border-radius: var(--rc-radius);
  margin-bottom: 12px;
}
.paa-content .mistake-number {
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  border-radius: 50%;
  background: var(--rc-primary);
  color: var(--rc-white);
  text-align: center;
  font-weight: 700;
  vertical-align: middle !important;
  margin-right: 10px;
  font-family: 'EB Garamond', serif;
}

/* ---------- TABLES (FIX 9: wrap in .table-scroll) ---------- */
.preview-wrapper .table-scroll, .state-content .table-scroll,
.city-content .table-scroll, .paa-content .table-scroll {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 24px 0 36px !important;
  border-radius: var(--rc-radius) !important;
  box-shadow: var(--rc-shadow) !important;
}
.preview-wrapper .table-scroll table, .state-content .table-scroll table,
.city-content .table-scroll table, .paa-content .table-scroll table {
  margin: 0 !important;
  box-shadow: none !important;
  width: 100%;
  border-collapse: collapse;
}
.preview-wrapper table, .state-content table, .city-content table, .paa-content table {
  background: var(--rc-white);
  font-size: 14px;
}
.preview-wrapper th, .state-content th, .city-content th, .paa-content th {
  background: var(--rc-dark);
  color: var(--rc-white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.preview-wrapper td, .state-content td, .city-content td, .paa-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rc-faint);
}
.preview-wrapper tr:nth-child(even) td, .state-content tr:nth-child(even) td,
.city-content tr:nth-child(even) td, .paa-content tr:nth-child(even) td {
  background: var(--rc-gray-light);
}

/* ---------- SECTION DIVIDERS ---------- */
.preview-wrapper hr.section-divider, .state-content hr.section-divider,
.city-content hr.section-divider, .paa-content hr.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rc-light) 50%, transparent 100%);
  margin: 24px 0 16px;          /* FIX 8: conservative margin */
}

/* ---------- FAQ ACCORDION (FIX 4: inline !important required) ---------- */
.preview-wrapper .faq-section, .state-content .faq-section,
.city-content .faq-section, .paa-content .faq-section {
  background: var(--rc-white);
  border: 1px solid var(--rc-faint);
  border-radius: var(--rc-radius);
  margin: 32px 0 24px;
}
.preview-wrapper .faq-item, .state-content .faq-item,
.city-content .faq-item, .paa-content .faq-item {
  border-bottom: 1px solid var(--rc-faint);
}
.preview-wrapper .faq-item:last-child, .state-content .faq-item:last-child,
.city-content .faq-item:last-child, .paa-content .faq-item:last-child {
  border-bottom: 0;
}
/* NOTE: actual <button> + <span> use INLINE !important styles per FIX 4.
   This block is just so the un-styled fallback looks reasonable. */

/* ---------- CTA SECTION ---------- */
.preview-wrapper .cta-section, .state-content .cta-section,
.city-content .cta-section, .paa-content .cta-section {
  background: linear-gradient(135deg, var(--rc-dark) 0%, var(--rc-charcoal) 100%);
  color: var(--rc-white);
  padding: 32px 28px;
  border-radius: var(--rc-radius);
  margin: 24px 0 16px;          /* FIX 8: conservative margin */
  text-align: center;
}
.preview-wrapper .cta-section h3, .state-content .cta-section h3,
.city-content .cta-section h3, .paa-content .cta-section h3 {
  color: var(--rc-white);
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.preview-wrapper .cta-section p, .state-content .cta-section p,
.city-content .cta-section p, .paa-content .cta-section p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
}

/* CTA BUTTON — FIX 6: hover color must NOT be theme-white default */
.preview-wrapper .cta-button, .state-content .cta-button,
.city-content .cta-button, .paa-content .cta-button {
  display: inline-block;
  background: var(--rc-primary);
  color: var(--rc-white);
  padding: 14px 28px;
  border-radius: var(--rc-radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.15s;
  margin: 4px;
}
.preview-wrapper .cta-button:hover, .state-content .cta-button:hover,
.city-content .cta-button:hover, .paa-content .cta-button:hover {
  color: var(--rc-dark);        /* FIX 6: dark text on white bg on hover */
  background: var(--rc-white);
}

/* Secondary CTA — phone-first per Ads data */
.preview-wrapper .cta-button-secondary, .state-content .cta-button-secondary,
.city-content .cta-button-secondary, .paa-content .cta-button-secondary {
  background: transparent;
  color: var(--rc-white);
  border: 2px solid var(--rc-white);
}
.preview-wrapper .cta-button-secondary:hover, .state-content .cta-button-secondary:hover,
.city-content .cta-button-secondary:hover, .paa-content .cta-button-secondary:hover {
  background: var(--rc-white);
  color: var(--rc-dark);
}

/* ---------- TRUST BAR (credentials/badges row) ---------- */
.preview-wrapper .trust-bar, .state-content .trust-bar,
.city-content .trust-bar, .paa-content .trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px;
  background: var(--rc-cream);
  border-radius: var(--rc-radius);
  margin: 20px 0;
  justify-content: space-around;
}
.preview-wrapper .trust-badge, .state-content .trust-badge,
.city-content .trust-badge, .paa-content .trust-badge {
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.preview-wrapper .trust-badge strong, .state-content .trust-badge strong,
.city-content .trust-badge strong, .paa-content .trust-badge strong {
  display: block;
  color: var(--rc-primary);
  font-size: 1.5rem;
  font-family: 'EB Garamond', serif;
  line-height: 1;
}
.preview-wrapper .trust-badge span, .state-content .trust-badge span,
.city-content .trust-badge span, .paa-content .trust-badge span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rc-mid);
  margin-top: 4px;
}

/* ---------- EXPERT QUOTE BLOCK (E-E-A-T) ---------- */
.preview-wrapper .expert-quote, .state-content .expert-quote,
.city-content .expert-quote, .paa-content .expert-quote {
  background: var(--rc-faint);
  border-left: 4px solid var(--rc-dark);
  padding: 22px 26px;
  margin: 28px 0;
  border-radius: var(--rc-radius);
}
.preview-wrapper .expert-quote p, .state-content .expert-quote p,
.city-content .expert-quote p, .paa-content .expert-quote p {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--rc-dark);
  line-height: 1.55;
  margin: 0 0 10px;
}
.preview-wrapper .expert-quote .byline, .state-content .expert-quote .byline,
.city-content .expert-quote .byline, .paa-content .expert-quote .byline {
  font-size: 13px;
  color: var(--rc-mid);
  font-weight: 600;
  margin: 0;
  font-style: normal;
}

/* ---------- LINKS ---------- */
.preview-wrapper a, .state-content a, .city-content a, .paa-content a {
  color: var(--rc-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.preview-wrapper a:hover, .state-content a:hover, .city-content a:hover, .paa-content a:hover {
  color: var(--rc-accent);
}
/* Exception: CTA buttons keep their own styling */
.preview-wrapper a.cta-button, .preview-wrapper a.cta-button-secondary,
.state-content a.cta-button, .state-content a.cta-button-secondary,
.city-content a.cta-button, .city-content a.cta-button-secondary,
.paa-content a.cta-button, .paa-content a.cta-button-secondary {
  text-decoration: none;
}

/* ============================================================
   MOBILE BREAKPOINTS (FIX 9 + FIX 10)
   ============================================================ */
@media (max-width: 768px) {
  .preview-wrapper, .state-content, .city-content, .paa-content {
    padding: 0 16px;
  }
  .preview-wrapper h1, .state-content h1, .city-content h1, .paa-content h1 {
    font-size: 1.85rem;
  }
  .preview-wrapper h2, .state-content h2, .city-content h2, .paa-content h2 {
    font-size: 1.45rem;
  }
  .preview-wrapper .answer-capsule p, .state-content .answer-capsule p,
  .city-content .answer-capsule p, .paa-content .answer-capsule p {
    font-size: 15px;
  }
  /* FIX 9: reduce table cell padding on mobile */
  .preview-wrapper th, .preview-wrapper td,
  .state-content th, .state-content td,
  .city-content th, .city-content td,
  .paa-content th, .paa-content td {
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
  }
  /* FIX 10: tighter process steps */
  .preview-wrapper .process-step, .state-content .process-step,
  .city-content .process-step, .paa-content .process-step {
    gap: 14px !important;
  }
  .preview-wrapper .step-number, .state-content .step-number,
  .city-content .step-number, .paa-content .step-number {
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }
  .preview-wrapper .cta-section, .state-content .cta-section,
  .city-content .cta-section, .paa-content .cta-section {
    padding: 24px 18px;
  }
  .preview-wrapper .cta-button, .state-content .cta-button,
  .city-content .cta-button, .paa-content .cta-button {
    display: block;
    margin: 6px 0;
  }
}

@media (max-width: 480px) {
  /* FIX 10: even tighter on small phones */
  .preview-wrapper .step-number, .state-content .step-number,
  .city-content .step-number, .paa-content .step-number {
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
  }
  .preview-wrapper h1, .state-content h1, .city-content h1, .paa-content h1 {
    font-size: 1.6rem;
  }
}
