/* ============================================================
   J. Randle Law - Mobile layer
   Site by Aday Interactive, Inc. - https://adayinteractive.com/
   Standalone (no Tailwind rebuild). Loaded sitewide from header.php.
   ============================================================ */

/* Sticky mobile action bar (markup in includes/footer.php) */
.mobile-action-bar { display: none; }
@media (max-width: 900px) {
  .mobile-action-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: var(--forest-green-dark);
    border-top: 2px solid var(--amber-gold);
    box-shadow: 0 -6px 24px oklch(0.19 0.075 155 / 0.35);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 58px; padding: 9px 4px;
    color: var(--cream); text-decoration: none;
    font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  }
  .mobile-action-bar a svg { color: var(--amber-gold-light); }
  .mobile-action-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .mobile-action-bar a.mab-primary { background: var(--forest-green); }
  .mobile-action-bar a:active { background: var(--forest-green-light); }
  /* Keep the footer's last line clear of the bar. */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* Small-screen polish for the new sections */
@media (max-width: 640px) {
  .evx-section { padding: 3rem 0; }
  .evx-wrap { padding: 0 1rem; }
  .evx-body { padding: 1.75rem 1.25rem 2rem; }
  .evx-actions .btn-primary { width: 100%; text-align: center; }
  .evx-tile { width: 4.25rem; top: 1rem; left: 1rem; }
  .evx-tile strong { font-size: 2rem; }
  .lp-wrap { padding: 0 1rem; }
  .lp-section { padding: 3rem 0; }
  .lp-hero { padding: 2.5rem 0 3rem; }
  .lp-hero .lp-cta { width: 100%; justify-content: center; }
  .lp-event { padding: 1.5rem 1.25rem; }
  .lp-cover { max-width: 15rem; }
  .lp-steps { gap: 1.75rem; }
  .lp-cal-links .lp-cta { width: 100%; justify-content: center; }
  .guide-band { padding: 3.5rem 0; }
  .guide-band-cover .lp-cover { max-width: 15rem; }
  .guide-band-cta { width: 100%; justify-content: center; }
  .lp-page .page-header .content { padding: 1rem 0 2rem; }
}

/* Design pass (2026-10-22) */
/* Page-banner CTA row (includes/page-header.php $headerCta) */
.page-header .ph-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; }
.page-header .ph-cta-phone { color: var(--amber-gold-light); font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.page-header .ph-cta-phone:hover { text-decoration: underline; }
/* Practice pages: the photo band was 384px tall; let the content start sooner. */
.practice-photo { height: 13rem; }
@media (min-width: 1024px) { .practice-photo { height: 17rem; } }
/* Home hero: secondary ask is a text link, not a second button. */
.hero-textlink { align-self: center; color: var(--amber-gold-light); font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 0.875rem 0.25rem; }
.hero-textlink:hover { text-decoration: underline; }
/* Phones: the sticky action bar carries Schedule, so the nav button would be a duplicate ask. */
@media (max-width: 900px) { .navbar .nav-cta, .navbar .nav-phone { display: none !important; } }
/* A banner with a CTA row grows to fit it (the site banner is otherwise a fixed 260/320px). */
.page-header-cta { height: auto; min-height: 260px; }
.page-header-cta .content { padding: 1.25rem 0 2.25rem; }
@media (min-width: 640px) { .page-header-cta { min-height: 320px; } }
/* Primary CTA on dark surfaces (banners, home hero): gold, the highest-contrast element after the H1. */
.page-header .ph-cta-btn, .btn-on-dark { background-color: var(--amber-gold) !important; color: var(--forest-green-dark) !important; }
.page-header .ph-cta-btn:hover, .btn-on-dark:hover { background-color: var(--amber-gold-light) !important; }

/* ============================================================
   Top navigation (includes/header.php), design pass 2026-10-22
   ============================================================ */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--amber-gold); color: var(--forest-green-dark); padding: 0.75rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; }
@media (min-width: 1024px) { .nav-row { height: 5.25rem; } }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.nav-brand-mark { height: 2.75rem; width: 2.75rem; display: block; }
@media (min-width: 1024px) { .nav-brand-mark { height: 3.25rem; width: 3.25rem; } }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 700; color: var(--cream); letter-spacing: 0.01em; }
.nav-brand-sub { font-family: 'Lato', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-gold-light); margin-top: 0.2rem; }
.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0; background: none; border: 0; cursor: pointer;
  font-family: 'Lato', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; }
.nav-item:hover, .nav-item:focus-visible, .nav-drop:hover .nav-drop-btn, .nav-drop:focus-within .nav-drop-btn { color: #fff; }
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--amber-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav-item:hover::after, .nav-item.is-active::after, .nav-drop.is-active .nav-drop-btn::after { transform: scaleX(1); }
.nav-item.is-active, .nav-drop.is-active .nav-drop-btn { color: var(--amber-gold-light); }
.nav-drop { position: relative; }
.nav-drop-btn svg { transition: transform 0.2s; }
.nav-drop-menu { position: absolute; top: calc(100% + 0.85rem); left: -1rem; min-width: 15rem; padding: 0.5rem; background: var(--forest-green-dark);
  border: 1px solid oklch(0.72 0.14 75 / 0.35); border-top: 2px solid var(--amber-gold); border-radius: 0.375rem; box-shadow: 0 18px 40px -12px rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s; }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.9rem; height: 0.9rem; }  /* hover bridge */
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover .nav-drop-btn svg, .nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu a { display: block; padding: 0.7rem 0.85rem; border-radius: 0.25rem; font-family: 'Lato', sans-serif; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.88); text-decoration: none; }
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: oklch(0.28 0.08 155); color: #fff; }
.nav-drop-menu a.is-active { color: var(--amber-gold-light); }
.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone { display: none; align-items: center; gap: 0.4rem; font-family: 'Lato', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--amber-gold-light); text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: #fff; }
@media (min-width: 1180px) { .nav-phone { display: inline-flex; } }
.nav-cta { display: inline-block; padding: 0.6rem 1.1rem; border: 1.5px solid var(--amber-gold); border-radius: 2px; color: var(--amber-gold-light); font-family: 'Lato', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.nav-cta:hover, .nav-cta.is-active { background: var(--amber-gold); color: var(--forest-green-dark); }
.nav-burger { display: inline-flex; padding: 0.5rem; background: none; border: 0; color: rgba(255,255,255,0.9); cursor: pointer; }
@media (min-width: 1024px) { .nav-burger { display: none; } }
@media (max-width: 380px) { .nav-brand-sub { display: none; } .nav-brand-name { font-size: 1.25rem; } }
/* Mobile menu */
.mnav { display: flex; flex-direction: column; padding-top: 0.75rem; padding-bottom: 1.25rem; }
.mnav-item { display: block; padding: 0.85rem 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); font-family: 'Lato', sans-serif; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.85); text-decoration: none; }
.mnav-item.is-active { color: var(--amber-gold-light); }
.mnav-group { margin: 0.9rem 0 0.1rem; padding: 0 0.25rem; font-family: 'Lato', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-gold); }
.mnav-sub { padding-left: 1rem; text-transform: none; letter-spacing: 0.02em; font-size: 1rem; }
.mnav-cta { display: block; text-align: center; margin-top: 1.25rem; }
.mnav-phone { display: block; text-align: center; margin-top: 0.85rem; color: var(--amber-gold-light); font-weight: 700; text-decoration: none; font-family: 'Lato', sans-serif; }

.nav-drop.force-closed .nav-drop-menu { opacity: 0 !important; visibility: hidden !important; transform: translateY(-4px) !important; }
.nav-drop.force-closed .nav-drop-btn svg { transform: none !important; }
#mobile-menu .mnav-phone, #mobile-menu .mnav-cta { justify-content: center; text-align: center; }
/* Nav links sit flush right, grouped with the phone + CTA (Brandon, 2026-10-22). */
.nav-row { justify-content: flex-start; }
.nav-desktop { margin-left: auto; margin-right: 2rem; }
.nav-actions { margin-left: auto; }
@media (min-width: 1024px) { .nav-desktop + .nav-actions { margin-left: 0; } }  /* desktop only: on phones the hidden desktop nav must not cancel the push to the right edge */

/* ============================================================
   Body copy reads left-aligned at every width (Brandon, 2026-10-22: tried
   RobinsonLaw-style full justification, preferred left). Centered blocks keep
   their headings, eyebrow labels, stats and one-line captions centered; only
   paragraphs of running text align left. Line breaks use RobinsonLaw's
   text-wrap rules: balanced headings, no orphan words in paragraphs.
   ============================================================ */
:is(section, main, article) :is(.text-center, .lp-center, [style*="text-align: center"], [style*="text-align:center"]) p:not(.section-label):not(.uppercase):not(.text-xs):not(.text-3xl):not(.text-4xl):not([class*="kicker"]):not([class*="eyebrow"]):not(.lp-fine):not(.lp-sub):not(.lp-lead):not(.evx-lead) {
  text-align: left;
}
/* Short, centered-by-design blocks stay centered. */
:is(.lp-steps li, .lp-proof-list, .evx-empty, .lp-form-head) p { text-align: center; }
:is(h1, h2, h3, .lp-h1, .lp-h2, .evx-h2) { text-wrap: balance; }
:is(section, main, article) p { text-wrap: pretty; }

/* Visible breadcrumbs in the page banner (RobinsonLaw pattern) */
.page-header .breadcrumbs { margin-bottom: 0.9rem; }
.page-header .breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.page-header .breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.page-header .breadcrumbs a, .page-header .breadcrumbs span { font-family: 'Lato', sans-serif; font-size: 0.75rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.65); text-decoration: none; }
.page-header .breadcrumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-header .breadcrumbs [aria-current="page"] { color: var(--amber-gold-light); font-weight: 700; }
.page-header .breadcrumbs-sep { color: rgba(255,255,255,0.35); }

/* Footer legal links row (includes/footer.php) */
.footer-bottom { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.75rem; }
.footer-copy { margin: 0; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-credit { display: block; margin-top: 0.25rem; }
.footer-credit-sep { display: none; }
.footer-copy a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
.footer-legal a, .footer-legal .footer-cookie-btn { color: rgba(255,255,255,0.7); text-decoration: none; padding: 0.5rem 0; background: none; border: 0; font: inherit; cursor: pointer; }
.footer-legal .footer-cookie-btn { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover, .footer-legal a:focus-visible, .footer-legal .footer-cookie-btn:hover, .footer-legal .footer-cookie-btn:focus-visible, .footer-copy a:hover, .footer-copy a:focus-visible { color: #fff; text-decoration: underline; }
@media (min-width: 900px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 2rem; }
  .footer-legal { justify-content: flex-end; flex-shrink: 0; }
  .footer-credit { display: inline; margin-top: 0; }
  .footer-credit-sep { display: inline; }
}

/* ============================================================
   WCAG 2.2 AA contrast (1.4.3), axe-verified 2026-10-22.
   Brand gold (#D79628 family) is ~2:1 on cream/white, so as TEXT on light
   surfaces it becomes deep gold #875A10 (5.05:1 on the darkest cream,
   6.0:1 on white). Inside dark surfaces the bright gold stays (9 to 12:1).
   Inline style="color: oklch(...)" beats stylesheets, hence !important.
   ============================================================ */
:root { --gold-text: #875A10; --grey-text: #57524D; }
.section-label, .evx-eyebrow, .evx-kicker, .ev-kicker, .lp-eyebrow, .lp-step-num,
.text-\[oklch\(0\.72_0\.14_75\)\],
:is(p, span, a, cite, strong)[style*="color: oklch(0.72 0.14 75)"],
:is(p, span, a)[style*="color: oklch(0.75 0.15 85)"],
a[style*="color: oklch(0.52 0.16 75)"] { color: var(--gold-text) !important; }
/* Dark surfaces keep the bright gold. */
:is(.navbar, .page-header, footer, .mobile-action-bar, .lp-proof, .evx-host, .guide-band, .lp-event, .evx-guide, .lp-cover,
    .min-h-screen, [class*="bg-[oklch(0.19"], [class*="bg-[oklch(0.2"], [class*="bg-[oklch(0.15"], [style*="background: oklch(0.2"], [style*="background: oklch(0.18"])
  :is(.section-label, .evx-eyebrow, .evx-kicker, .lp-eyebrow, .text-\[oklch\(0\.72_0\.14_75\)\],
      [style*="color: oklch(0.72 0.14 75)"], [style*="color: oklch(0.75 0.15 85)"]) { color: var(--amber-gold-light) !important; }
/* Muted grey captions on cream were 4.29 to 4.43:1. */
[style*="color: oklch(0.52 0.02 65)"], cite.text-\[oklch\(0\.45_0\.03_155\)\] { color: var(--grey-text) !important; }
/* Gold outline button lives on dark green: use the light gold (6.5:1+). */
.btn-gold { color: var(--amber-gold-light); border-color: var(--amber-gold-light); }
/* About page gold CTA: navy text on gold was 4.47:1. */
a.btn-primary[style*="background: oklch(0.75 0.15 85)"] { color: #12161C !important; }
