/* ==========================================================
   Jackson Law Firm, P.C. — Brand Override Stylesheet
   Version: 1.0.0
   Maintainer: Dustin Porchia
   Source:    jackson-law-firm-claude-code-spec.md, Part 5
   ========================================================== */

/* 1. CSS Custom Properties (Design Tokens) ----------------- */
:root {
  --color-charcoal: #191B21;
  --color-blue: #0098E6;
  --color-blue-dark: #0080c7;
  --color-white: #FFFFFF;
  --color-border: #CCCCCC;
  --color-row-alt: #E8E9EB;
  --color-muted: #6b7280;
  --color-body: #1c1c1c;
  --font-primary: 'Poppins', sans-serif;
}

/* 2. Global Typography ------------------------------------- */
body,
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
#freeConsultationForm .elementor-widget-text-editor p {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-charcoal);
}

h1 { font-size: 48px; font-weight: 700; line-height: 1.1; }
h2 { font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--color-blue); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.2; }
h4 { font-size: 17px; font-weight: 700; line-height: 1.3; }

/* 3. Buttons ----------------------------------------------- */
.elementor-button.btn-primary,
.elementor-button-wrapper .elementor-button {
  background-color: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  transition: background-color 0.2s ease;
}
.elementor-button.btn-primary:hover,
.elementor-button-wrapper .elementor-button:hover {
  background-color: var(--color-blue-dark);
}

.elementor-button.btn-secondary {
  background-color: transparent;
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.elementor-button.btn-secondary:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}

/* 4. Section Headings & Dividers --------------------------- */
.section-label {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 8px;
  display: block;
}

.elementor-widget-heading h2 {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.2;
}

.brand-divider {
  border: none;
  border-top: 3px solid var(--color-blue);
  margin: 48px 0;
}

/* 5. Cards ------------------------------------------------- */
.jackson-card {
  background: var(--color-white);
  border: 1px solid var(--color-row-alt);
  border-radius: 8px;
  padding: 24px 28px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.jackson-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--color-blue);
}
.jackson-card h4 {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 10px;
}
.jackson-card p {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.6;
}

/* 6. Dark Sections ----------------------------------------- */
.section-dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: 64px 0;
}
.section-dark h2 { color: var(--color-white); }
.section-dark h3,
.section-dark h4 { color: var(--color-blue); }
.section-dark p { color: rgba(255, 255, 255, 0.65); }
.section-dark .brand-rule { border-top: 3px solid var(--color-blue); }

/* 7. Forms (WPForms Lite) ---------------------------------- */
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
  font-family: var(--font-primary);
  font-size: 14px;
  border: 1px solid var(--color-row-alt);
  border-radius: 6px;
  padding: 12px 16px;
  background: #f9f9f9;
  color: var(--color-charcoal);
  width: 100%;
  transition: border-color 0.2s ease;
}
.wpforms-field input:focus,
.wpforms-field textarea:focus {
  border-color: var(--color-blue);
  background: var(--color-white);
  outline: none;
}
.wpforms-field label {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal);
  margin-bottom: 6px;
  display: block;
}
.wpforms-submit {
  background-color: var(--color-blue) !important;
  color: var(--color-white) !important;
  font-family: var(--font-primary) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 14px 32px !important;
  border-radius: 6px !important;
  border: none !important;
}
.wpforms-submit:hover {
  background-color: var(--color-blue-dark) !important;
}

#freeConsultationForm .elementor-message.elementor-message-success.elementor-message-svg {
  color: #191b21;
}

/* 8. Header ------------------------------------------------ */
/* Whole-header sticky: pin the Elementor header location (utility bar +
 * nav bar) to the top of the viewport as a single unit, and let them
 * reset to natural flow when the user scrolls back to the top.
 * Replaces the per-container Elementor sticky that was on ef88b56 — that
 * only stuck the nav bar and let the utility bar slide away. */
.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-row-alt);
}

/* Constrain the site logo in the Elementor header so the full-resolution
 * source doesn't blow up the header row. Scales by height so the aspect
 * ratio is preserved across the horizontal Jackson Law Firm logomark. */
.elementor-location-header .elementor-widget-theme-site-logo img,
.elementor-location-header .elementor-widget-image img {
  height: 56px;
  width: auto;
  max-width: 100%;
  display: block;
}

.elementor-nav-menu a {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}
.elementor-nav-menu a:hover,
.elementor-nav-menu .current-menu-item > a {
  color: var(--color-blue);
}

/* Mobile header (≤767px): keep logo and hamburger on the same row,
 * vertically centered, with the logo flush-left and hamburger flush-right.
 * Elementor defaults containers to column direction on mobile, which is
 * what was stacking the nav sub-container (af3c852) below the logo. */
@media (max-width: 767px) {
  .elementor-location-header .elementor-element.elementor-element-ef88b56 {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .elementor-location-header .elementor-element.elementor-element-af3c852 {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-self: center;
  }
  /* Shift the hamburger down so it lines up with the "JACKSON" wordmark,
   * not the geometric center of the logo image (which sits higher because
   * of the star icon stacked above the wordmark). */
  .elementor-location-header .elementor-element.elementor-element-34a4634 {
    margin-top: 14px;
  }
}

/* 9. Footer ------------------------------------------------ */
/*
 * Rescope Elementor's global color variables inside the footer so widgets
 * that bind to "primary" or "text" (which are charcoal site-wide) render
 * light against the charcoal footer background. Keeps "accent" blue for
 * CTAs/icons. Covers both the Elementor-rendered footer location and
 * WordPress block-theme footer template parts.
 */
.elementor-location-footer,
footer.wp-block-template-part,
.site-footer {
  background-color: var(--color-charcoal);
  padding: 0 0 24px;
  color: rgba(255, 255, 255, 0.65);
  --e-global-color-primary: #FFFFFF;
  --e-global-color-secondary: rgba(255, 255, 255, 0.65);
  --e-global-color-text: rgba(255, 255, 255, 0.85);
}
.elementor-location-footer *,
footer.wp-block-template-part *,
.site-footer * {
  font-family: var(--font-primary);
}
.elementor-location-footer p,
.elementor-location-footer li,
.elementor-location-footer a,
.elementor-location-footer span :not(span.elementor-button-text),
footer.wp-block-template-part p,
footer.wp-block-template-part li,
footer.wp-block-template-part a,
footer.wp-block-template-part span,
.site-footer p,
.site-footer li,
.site-footer a,
.site-footer span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
.elementor-32 .elementor-element.elementor-element-5cc83ed2 .elementor-icon-list-text {
  font-size: inherit;
  color: #191B21;
}
#freeConsultationForm .elementor-location-footer span.elementor-button-text {
    background-color: #0098E6;
    color: #FFFFFF;
}
.elementor-location-footer a:hover,
footer.wp-block-template-part a:hover,
.site-footer a:hover { color: var(--color-blue) !important; }
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
  color: var(--color-white) !important;
}
.elementor-location-footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* 10. Click-to-Call ---------------------------------------- */
.click-to-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.click-to-call:hover {
  background-color: var(--color-blue-dark);
  color: var(--color-white);
}

/* 11. Single Post & Blog Archive --------------------------- */
.single-post .entry-title,
.blog .entry-title {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-charcoal);
  margin-bottom: 16px;
}
.single-post .entry-meta,
.blog .entry-meta {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  margin-bottom: 24px;
}
.single-post .entry-content,
.blog .entry-content {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-body);
}
.single-post .entry-content h2,
.blog .entry-content h2 {
  font-size: 28px;
  color: var(--color-charcoal);
  margin-top: 32px;
  margin-bottom: 12px;
}
.single-post .entry-content h3,
.blog .entry-content h3 {
  font-size: 20px;
  color: var(--color-charcoal);
  margin-top: 24px;
  margin-bottom: 10px;
}
.single-post .entry-content a,
.blog .entry-content a {
  color: var(--color-blue);
  text-decoration: underline;
}
.single-post .wp-post-image,
.blog .wp-post-image {
  border-radius: 8px;
  margin-bottom: 24px;
}
.single-post .post-navigation a,
.blog .post-navigation a {
  color: var(--color-blue);
  font-weight: 700;
}
.blog article,
.archive.category article {
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.blog .cat-links a,
.archive .cat-links a {
  color: var(--color-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

/* 12. In-Content CTA block (paste in posts) ---------------- */
.post-cta {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 32px;
  border-radius: 8px;
  margin: 32px 0;
  text-align: center;
}
.post-cta h3 {
  color: var(--color-white);
  margin-bottom: 8px;
}
.post-cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 16px; }
.post-cta a.btn {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.post-cta a.btn:hover { background: var(--color-blue-dark); }

/* 13. Author Box ------------------------------------------- */
.author-box {
  background: var(--color-row-alt);
  border-left: 3px solid var(--color-blue);
  padding: 24px 28px;
  margin-top: 48px;
  border-radius: 4px;
}
.author-box h4 {
  color: var(--color-charcoal);
  margin-bottom: 8px;
}
.author-box p { font-size: 14px; color: var(--color-body); margin: 0; }

/* 14. Page-Specific Overrides ------------------------------ */
/* (Added per page during build) */
