/*
Theme Name: panda
Theme URI: https://99jimu.com
Description: Jimu Child Theme — Lazpanda customizations (tokens + page templates + ACF)
Author: keen
Author URI: https://keentalking.com
Template: jimutheme
Version: 2.1.7
*/

/* ====== Lazpanda brand tokens ====== */
:root {
  --color-brand:        #ffcf00;
  --color-brand-hover:  #f3c300;
  --color-text:         #181d27;
  --color-body:         #3a3a3a;
  --color-muted:        #606060;
  --color-bg:           #ffffff;
  --color-surface:      #fafafa;
  --color-surface-alt:  #f5f5f5;
  --color-border:       #e6e6e6;

  --font-heading: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;
}

html { scrollbar-gutter: stable; }
body { font-family: var(--font-body); color: var(--color-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-text); }

/* ====== UIkit button override — lazpanda yellow pill ====== */
.uk-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand);
  color: var(--color-text);
  border-radius: var(--r-pill);
  height: 46px;
  line-height: 1;
  padding: 0 30px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(255, 207, 0, 0.28);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.uk-button-primary:hover, .uk-button-primary:focus {
  background: var(--color-brand-hover);
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 207, 0, 0.4);
}
/* Large variant — keep it a proportionate pill, not a fat blob */
.uk-button-primary.uk-button-large {
  height: 54px;
  padding: 0 40px;
  font-size: 16px;
}

/* ====== Landing page section helpers ====== */
.lp-section { padding: clamp(48px, 6vw, 96px) 0; }
.lp-section--muted { background: var(--color-surface); }
.lp-section--dark  { background: var(--color-text); color: #fff; }
.lp-section--dark h2, .lp-section--dark h3 { color: #fff; }

.lp-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.lp-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--color-brand);
  border-radius: 50%;
  margin-right: 8px;
  transform: translateY(-2px);
}

.lp-title-1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.lp-title-2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.lp-lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 680px;
  margin: 0 0 28px;
}

/* ====== Hero ====== */
.lp-hero {
  padding: clamp(64px, 8vw, 120px) 0;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

/* ====== Comparison (before/after) ====== */
.lp-compare__col {
  padding: 32px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--color-border);
  height: 100%;
}
.lp-compare__col--bad  h3 { color: #b91c1c; }
.lp-compare__col--good { border-color: var(--color-brand); border-width: 2px; box-shadow: 0 8px 24px rgba(255,207,0,0.12); }
.lp-compare__list { list-style: none; padding: 0; margin: 16px 0 0; }
.lp-compare__list li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.5;
}
.lp-compare__list li:last-child { border-bottom: 0; }
.lp-compare__col--bad .lp-compare__list li::before {
  content: "✗"; position: absolute; left: 0; top: 10px; color: #b91c1c; font-weight: 700;
}
.lp-compare__col--good .lp-compare__list li::before {
  content: "✓"; position: absolute; left: 0; top: 10px; color: var(--color-brand); font-weight: 700;
}

/* ====== Process steps ====== */
.lp-step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 28px;
  height: 100%;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.lp-step:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.lp-step__num {
  width: 40px; height: 40px;
  background: var(--color-brand);
  color: var(--color-text);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.lp-step__title { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.lp-step__body  { font-size: 15px; color: var(--color-muted); margin: 0; line-height: 1.6; }

/* ====== Product showcase ====== */
.lp-product {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: inherit;
}
.lp-product:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.lp-product__img { aspect-ratio: 16/10; overflow: hidden; background: var(--color-surface-alt); }
.lp-product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lp-product:hover .lp-product__img img { transform: scale(1.03); }
.lp-product__body { padding: 20px 24px; }
.lp-product__title { font-size: 18px; font-weight: 600; margin: 0; color: var(--color-text); }

/* ====== Pricing table ====== */
.lp-pricing {
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.lp-pricing__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}
.lp-pricing__row:last-child { border-bottom: 0; }
.lp-pricing__row--header {
  background: var(--color-text);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lp-pricing__row--header > div { color: #fff; }
.lp-pricing__tier  { font-weight: 600; color: var(--color-text); font-family: var(--font-heading); }
.lp-pricing__value { font-size: 20px; font-weight: 700; color: var(--color-brand); font-family: var(--font-heading); }
.lp-pricing__note  { color: var(--color-muted); font-size: 14px; }

/* ====== CTA block ====== */
.lp-cta-block {
  background: var(--color-text);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lp-cta-block::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: var(--color-brand);
  border-radius: 50%;
  opacity: 0.15;
}
.lp-cta-block h2 { color: #fff; margin: 0 0 16px; }
.lp-cta-block p  { color: #c8c8cf; margin: 0 0 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ====== Form section ====== */
.lp-form {
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.lp-form .wpcf7 p:not(.lp-f) { margin: 0; }
.lp-form .wpcf7-form { min-width: 0; }
.lp-form .wpcf7-form-control-wrap { max-width: 100%; }
.lp-form .wpcf7 .hidden-fields-container,
.wpcf7 .hidden-fields-container {
  display: none !important;
}
.lp-form .wpcf7 input[type="text"],
.lp-form .wpcf7 input[type="email"],
.lp-form .wpcf7 input[type="tel"],
.lp-form .wpcf7 input[type="url"],
.lp-form .wpcf7 input[type="number"],
.lp-form .wpcf7 textarea,
.lp-form .wpcf7 select {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 15px;
  margin: 0;
}
.lp-form .wpcf7 textarea {
  height: 104px;
  min-height: 104px;
  padding: 12px 14px;
  resize: vertical;
}
.lp-form .wpcf7 input:focus, .lp-form .wpcf7 textarea:focus, .lp-form .wpcf7 select:focus {
  outline: 0;
  background: #fff;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(255,207,0,0.2);
}
.lp-form .wpcf7-submit {
  background: var(--color-brand);
  color: var(--color-text);
  border: 0;
  height: 50px;
  line-height: 1;
  padding: 0 40px;
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lp-form .wpcf7-submit:hover { background: var(--color-brand-hover); transform: translateY(-2px); }

/* Clean 2-col field grid (form 4 was rewritten — no more .fl-col legacy) */
.lp-form .lp-fgrid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -6px;
}
.lp-form .lp-f {
  box-sizing: border-box;
  width: 100%;
  padding: 0 6px;
  margin: 0 0 12px;
}
.lp-form .lp-f.is-half { width: 50%; }
.lp-form .lp-f .wpcf7-form-control-wrap { display: block; }
.lp-form .lp-f__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.lp-form .wpcf7 input[type="file"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
}
.lp-form .lp-f--submit { margin: 6px 0 0; }
.lp-form .wpcf7 .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #b91c1c;
  margin-top: 4px;
}
.lp-form .wpcf7-response-output {
  width: 100%;
  margin: 12px 6px 0 !important;
  font-size: 14px;
  border-radius: var(--r-md);
}
@media (max-width: 640px) {
  .lp-form .lp-f.is-half { width: 100%; }
}

/* Form card variant (inside 2-col dark CTA) — fill the column, no centering */
.lp-form--card { max-width: none; width: 100%; padding: 26px; }
/* Tighten the CTA section so the form card doesn't feel full-screen */
.lp-cta.lp-section { padding: clamp(40px, 5vw, 72px) 0; }

/* ===== 2-col dark CTA section ===== */
.lp-cta__sub {
  color: #c8c8cf;
  font-size: 17px;
  line-height: 1.6;
  margin: 14px 0 28px;
}
.lp-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s;
}
.lp-wa-btn svg { color: #25D366; }
.lp-wa-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.lp-cta .lp-form--card .wpcf7-form { color: var(--color-text); }

/* ===== Ghost / secondary button ===== */
.uk-button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 28px;
  line-height: 1;
  border: 2px solid var(--color-text);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.uk-button-ghost:hover, .uk-button-ghost:focus {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
  transform: translateY(-2px);
  text-decoration: none;
}
.lp-section--dark .uk-button-ghost { border-color: #fff; color: #fff; }
.lp-section--dark .uk-button-ghost:hover { background: #fff; color: var(--color-text); }

/* ====== Site header / navbar ====== */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 980;
}
/* Smooth in-page anchor jumps, offset for the sticky header */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }
.lp-article :is(h2,h3)[id] { scroll-margin-top: 96px; }

/* Auto table of contents (built by JS in single.php / page-guide.php) */
.lp-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 0 0 32px;
}
.lp-toc__title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 12px;
}
.lp-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}
@media (max-width: 640px) { .lp-toc ol { columns: 1; } }
.lp-toc li {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  break-inside: avoid;
}
.lp-toc a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.lp-toc a:hover { color: var(--color-brand-hover); border-bottom-color: var(--color-brand); }
.lp-toc__num { color: var(--color-muted); font-weight: 700; margin-right: 6px; }
/* Pre-JS layout: reserve the navbar's final shape via CSS alone so UIkit's
   JS init doesn't move anything (eliminates the header CLS on navigation). */
.lp-navbar { min-height: 72px; }
.lp-navbar [uk-navbar], .lp-navbar [data-uk-navbar] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}
.lp-navbar .uk-navbar-left, .lp-navbar .uk-navbar-right {
  display: flex; align-items: center;
}
.lp-navbar .uk-navbar-nav {
  display: flex; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
/* Hard-hide dropdowns until UIkit opens them (avoids the pre-JS flash on
   page switch where dropdown content briefly renders in flow). */
.lp-navbar .uk-navbar-dropdown:not(.uk-open) { display: none !important; }

.lp-navbar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.lp-navbar .uk-navbar-nav > li:not(.lp-nav-cta) > a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  text-transform: none;
  min-height: 72px;
  padding: 0 18px;
  transition: color .15s;
}
.lp-navbar .uk-navbar-nav > li:not(.lp-nav-cta) > a:hover,
.lp-navbar .uk-navbar-nav > li.uk-active > a,
.lp-navbar .uk-navbar-nav > li:not(.lp-nav-cta) > a:focus {
  color: var(--color-brand-hover);
}
.lp-navbar .uk-navbar-nav > li > a::after { display: none; } /* kill UIkit underline if any */

/* Separate logo from the menu */
.lp-navbar .uk-navbar-left { padding-right: clamp(24px, 5vw, 72px); }

/* Brand wordmark */
.lp-logo { display: flex; align-items: center; min-height: 72px; }
.lp-logo img { max-height: 40px; width: auto; }
.lp-logo__mark {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.lp-logo__mark strong {
  font-weight: 800;
  color: var(--color-text);
  background: var(--color-brand);
  padding: 0 6px;
  border-radius: var(--r-sm);
  margin-left: 1px;
}

/* CTA pill inside the navbar — compact, vertically centered */
.lp-nav-cta { display: flex; align-items: center; margin-left: 18px; }
.lp-navbar .uk-navbar-nav > li.lp-nav-cta > a.uk-button-primary {
  display: inline-flex;
  align-items: center;
  height: 40px;
  min-height: 0;
  line-height: 1;
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: var(--r-pill);
  background: var(--color-brand);
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(255,207,0,0.30);
}
.lp-navbar .uk-navbar-nav > li.lp-nav-cta > a.uk-button-primary:hover,
.lp-navbar .uk-navbar-nav > li.lp-nav-cta > a.uk-button-primary:focus {
  color: var(--color-text);
  background: var(--color-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,207,0,0.40);
}

/* Dropdowns */
.lp-navbar .uk-navbar-dropdown { border-radius: var(--r-md); padding: 18px 22px; min-width: 260px; }
.lp-navbar .uk-navbar-dropdown-nav > li > a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-body);
}
.lp-navbar .uk-navbar-dropdown-nav > li > a:hover { color: var(--color-brand-hover); }

/* Mobile toggle */
.lp-navbar .uk-navbar-toggle { color: var(--color-text); min-height: 64px; }
.lp-navbar .uk-navbar-toggle:hover { color: var(--color-brand-hover); }

/* Off-canvas mobile menu */
#lp-offcanvas .uk-offcanvas-bar { background: var(--color-text); }
.lp-offcanvas-nav > li > a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  padding: 12px 0;
}
.lp-offcanvas-nav > li > a:hover,
.lp-offcanvas-nav .uk-nav-sub a:hover { color: var(--color-brand); }
.lp-offcanvas-nav .uk-nav-sub a { color: rgba(255,255,255,0.7); font-family: var(--font-body); }
.lp-offcanvas-nav .uk-nav-divider { border-top-color: rgba(255,255,255,0.15); }

/* Off-canvas CTA — keep it a real yellow button, not a white blob */
.lp-offcanvas-nav > li.lp-offcanvas-cta > a,
.lp-offcanvas-nav > li.lp-offcanvas-cta > a:hover,
.lp-offcanvas-nav > li.lp-offcanvas-cta > a:focus {
  display: block;
  text-align: center;
  background: var(--color-brand);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  box-shadow: none;
}
.lp-offcanvas-nav > li.lp-offcanvas-cta > a:hover { background: var(--color-brand-hover); }

/* ====== Site footer ====== */
.lp-footer {
  background: #0f1217;
  border-top: 2px solid var(--color-brand);
  color: rgba(255,255,255,0.72);
  padding: clamp(48px, 6vw, 80px) 0 0;
}
.lp-footer__top {
  padding-bottom: 48px;
}
.lp-logo--footer { display: inline-flex; margin-bottom: 18px; }
.lp-footer .lp-logo__mark { color: #fff; font-size: 22px; }
.lp-footer__tag {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin: 0 0 20px;
  max-width: 340px;
}
.lp-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
}
.lp-footer__wa svg { color: #25D366; }
.lp-footer__wa:hover { color: var(--color-brand); text-decoration: none; }
.lp-footer__heading {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.lp-footer__col ul { list-style: none; margin: 0; padding: 0; }
.lp-footer__col li { margin-bottom: 10px; }
.lp-footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color .15s;
}
.lp-footer__col a:hover { color: var(--color-brand); }
.lp-footer__contact {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.lp-footer__contact a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.lp-footer__contact a:hover { color: var(--color-brand); }
.lp-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.lp-footer__bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.lp-footer__bottom a:hover { color: var(--color-brand); }

/* Quote modal (article sidebar / end CTA → CF7 form, no page leave) */
.lp-modal { max-width: 640px; }
.lp-modal .lp-form { border: 0; padding: 0; background: transparent; max-width: none; margin: 0; }
.lp-modal .lp-eyebrow { margin-bottom: 10px; }
