/* ==========================================================
   Bizit360 - Brand Stylesheet (Red & White)
   ========================================================== */

:root {
  --red-900: #680910;
  --red-700: #990e17;
  --red: #d31822;        /* primary brand red, tuned to pass WCAG AA (5.3:1 on white) */
  --red-500: #ef505a;
  --red-100: #fdedee;    /* pale red tint for section backgrounds */
  --red-050: #fef7f8;
  --white: #ffffff;
  --ink: #1a1414;         /* near-black, used only for body text/readability */
  --ink-soft: #4a3f3f;
  --line: #f0d9da;        /* hairline borders, red-tinted */

  --radius: 10px;
  --shadow: 0 10px 30px rgba(193, 18, 31, 0.10);
  --shadow-sm: 0 2px 10px rgba(26, 20, 20, 0.06);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-700); text-decoration: underline; }
h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', -apple-system, sans-serif; font-weight: 800; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
/* Visually hidden but still readable by screen readers/crawlers, used to
   give repeated CTAs like "Learn More" a unique, descriptive accessible
   name (e.g. "Learn More - Business Formation") without cluttering the
   visible button text. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none !important;
  line-height: 1;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-700); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(180,20,30,.5); }
.btn-outline { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red-050); transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(20,10,10,.25); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Header / nav ---------- */
/* No separate top utility bar anymore, the phone/email/contact links it
   used to hold are still reachable from the footer and Contact page; the
   header is a single, taller, easier-to-read bar instead of two stacked
   strips. */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 25px; color: var(--ink); }
.brand .dot { color: var(--red); }
.brand-mark {
  width: 56px; height: 56px; border-radius: 8px;
  object-fit: contain; flex-shrink: 0; display: block;
}
.brand { line-height: 0; }
@media (max-width: 960px) { .brand-mark { width: 48px; height: 48px; } }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 16px; }
.main-nav a:hover { color: var(--red); text-decoration: none; }
.main-nav .dropdown { position: relative; }
.main-nav .dropdown-trigger {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  color: var(--ink); font-weight: 600; font-size: 16px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.main-nav .dropdown-trigger i { font-size: 11px; transition: transform .15s ease; }
.main-nav .dropdown-trigger:hover { color: var(--red); }
.main-nav .dropdown.open .dropdown-trigger { color: var(--red); }
.main-nav .dropdown.open .dropdown-trigger i { transform: rotate(180deg); }
.main-nav .dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 14px); left: -14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 300px; padding: 10px; z-index: 60;
}
/* Invisible bridge so the pointer path from the trigger to the menu never
   leaves the hoverable/clickable area. */
.main-nav .dropdown-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.main-nav .dropdown.open .dropdown-menu { display: grid; grid-template-columns: 1fr; gap: 2px; animation: dropdownIn .15s ease; }
.main-nav .dropdown-menu a { padding: 10px 12px; border-radius: 8px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.main-nav .dropdown-menu a i { width: 16px; text-align: center; color: var(--red); flex-shrink: 0; }
.main-nav .dropdown-menu a:hover { background: var(--red-050); text-decoration: none; }
.main-nav .dropdown-menu .dropdown-viewall { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); justify-content: space-between; color: var(--red); font-weight: 700; }
.main-nav .dropdown-menu .dropdown-viewall i { color: var(--red); width: auto; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Services "mega-menu" (categorized dropdown) ---------- */
/* flex instead of a fixed 2-column grid so this keeps working cleanly no
   matter how many categories an admin adds/removes from admin/categories.php */
.main-nav .mega-menu {
  min-width: 720px; max-width: 92vw;
  gap: 4px 22px; padding: 20px;
}
/* Only show it once the dropdown is actually opened (click/JS toggles
   .open), flex here (instead of the plain dropdown's grid) so the
   mega-menu's columns wrap cleanly no matter how many categories an
   admin adds/removes from admin/categories.php. Without this scoping,
   the mega-menu would render permanently open on every page. */
.main-nav .dropdown.open .mega-menu { display: flex; flex-wrap: wrap; }
.main-nav .mega-menu .mega-col { flex: 1 1 220px; }
.main-nav .mega-menu .mega-panel { flex: 0 0 230px; }
.mega-col-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--red); margin: 4px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.mega-col:first-child .mega-col-title { margin-top: 0; }
.main-nav .mega-item { align-items: flex-start; padding: 9px 10px; }
.main-nav .mega-item i { margin-top: 3px; font-size: 15px; }
.mega-item span { display: flex; flex-direction: column; gap: 2px; }
.mega-item strong { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.mega-item em { font-style: normal; font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.mega-panel {
  background: var(--red-050); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px; align-self: stretch;
}
.mega-panel h4 { margin: 0; font-size: 14px; }
.mega-panel p { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.mega-panel-divider { height: 1px; background: var(--line); margin: 6px 0; }
.mega-panel-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.mega-panel a:not(.btn) { font-size: 13px; padding: 6px 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mega-panel a:not(.btn) i { color: var(--red); width: 14px; }
.mega-panel a:not(.btn):hover { color: var(--red); }
@media (max-width: 960px) {
  .main-nav .mega-menu { min-width: 0; max-width: none; flex-direction: column !important; gap: 2px; padding: 8px 0; }
  .main-nav .mega-menu .mega-col, .main-nav .mega-menu .mega-panel { flex-basis: auto; }
  .mega-col-title { margin-top: 14px; }
  .mega-panel { margin-top: 8px; }
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-mobile-actions { display: none; }
@media (max-width: 960px) {
  .nav-mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
  .main-nav .nav-mobile-actions .btn { padding: 14px 18px; font-size: 15px; }
  .main-nav .nav-mobile-actions .btn-primary { color: var(--white); }
  .main-nav .nav-mobile-actions .btn-outline { color: var(--red); }
}

/* Mobile menu button: a real animated hamburger (three bars morphing into
   an X) instead of a plain text character, which renders inconsistently
   across devices/fonts and was the main reason the old mobile menu looked
   dated. Stays above the drawer/overlay (z-index) so it always doubles as
   the close button once the menu is open. */
.nav-toggle {
  display: none; position: relative; z-index: 80;
  width: 42px; height: 42px; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--red); }
.nav-toggle-bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.is-open { background: var(--red); border-color: var(--red); }
.nav-toggle.is-open .nav-toggle-bar { background: var(--white); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dimmed backdrop behind the mobile drawer, tap it to close, same as the
   drawer itself. Hidden entirely on desktop. */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(20,10,10,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
  z-index: 65;
}
.nav-overlay.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }

@media (max-width: 960px) {
  /* Modern slide-in drawer from the right instead of a plain full-width
     panel, the old version had almost no visual polish (flat list, no
     shadow, no overlay, abrupt open/close). */
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw);
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 96px 22px 28px; gap: 2px; overflow-y: auto;
    box-shadow: -16px 0 44px rgba(20,10,10,.18);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
    z-index: 70; display: flex;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > a, .main-nav > .dropdown > .dropdown-trigger {
    width: 100%; padding: 14px 4px; font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav .dropdown-menu { position: static; box-shadow: none; border: none; display: none; padding-left: 0; margin: 2px 0 8px; }
  .main-nav .dropdown.open .dropdown-menu {
    display: grid; background: var(--red-050); border-radius: 10px; padding: 10px; animation: none;
  }
  .main-nav .dropdown-menu::before { display: none; }
  .main-nav .dropdown-trigger { justify-content: space-between; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  body.nav-open-lock { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--red-900), var(--red));
  color: var(--white);
  position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.hero::before { width: 420px; height: 420px; top: -140px; right: -80px;  }
.hero::after { width: 300px; height: 300px; bottom: -120px; left: 10%;  }
/* Padding is intentionally modest (not the ~84px of an earlier version) so
   the whole hero, slider text + the estimate panel, fits inside one
   screen on a typical laptop/desktop viewport without scrolling. */
.hero .container { padding-top: 46px; padding-bottom: 46px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; }
.hero h1, .hero .hero-slide-title { color: var(--white); font-size: 36px; margin: 0 0 12px; line-height: 1.18; display: block; }
.hero p.lead { color: rgba(255,255,255,.92); font-size: 16px; max-width: 480px; margin-bottom: 0; }
.hero-actions { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 12px 16px; margin-top: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.85); }
.hero-badges span { display: flex; align-items: center; gap: 6px; }

/* Simple, flat icon badge used on the per-service hero slides, a solid
   translucent square (no blur/backdrop-filter, so it stays light and fast
   on every device), inside the same red/white palette as the rest of the
   page rather than a separate accent color. */
.hero-slide-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--white); margin-bottom: 12px;
}

/* Hero slider: a simple, smooth crossfade between slides, opacity plus a
   small vertical drift, no layout jump. Inactive slides are absolutely
   positioned on top of each other (invisible, non-interactive); the
   active slide settles into normal flow so the panel's grid row height
   follows its content. Kept deliberately plain (no 3D/skew/scale
   flourish) so it reads as clean and fast rather than showy. */
.hero-slider { position: relative; min-height: 210px; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  position: relative; inset: auto;
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.hero-dots { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.hero-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,.35); border: none; cursor: pointer; overflow: hidden;
  transition: background .2s ease, width .25s ease;
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.is-active { width: 22px; border-radius: 5px; background: rgba(255,255,255,.35); }
/* Fill sweeps left-to-right inside the active dot while its slide is
   showing, a light "time remaining" cue, JS starts/stops it by toggling
   .is-filling so it never runs while the slider is paused. */
.hero-dot.is-active::after {
  content: ""; position: absolute; inset: 0; background: var(--white);
  transform: scaleX(0); transform-origin: left center; border-radius: inherit;
}
.hero-dot.is-active.is-filling::after { animation: heroDotFill 5s linear forwards; }
@keyframes heroDotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 860px) {
  .hero-slider { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transform: none; }
  .hero-dot.is-active::after { animation: none !important; transform: scaleX(1); }
}

.hero-panel {
  background: var(--white); border-radius: 16px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); color: var(--ink);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.hero-panel:hover { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(0,0,0,.3); }
/* Tightened just for this one compact panel (not a global form-spacing
   change) so "Get a Free Project Estimate" doesn't push the hero taller
   than one screen. */
.hero-panel h3 { margin-bottom: 5px; font-size: 19px; }
.hero-panel > p.muted { margin-bottom: 14px; font-size: 13.5px; }
.hero-panel label { margin-bottom: 4px; font-size: 12.5px; }
.hero-panel input, .hero-panel textarea { padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; }
.hero-panel textarea { min-height: 66px; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; gap: 26px; }
  .hero h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
  .hero-slide { transition: none; }
}

/* page header (non-home hero, smaller) */
.page-hero { background: linear-gradient(135deg, var(--red-900), var(--red)); color: var(--white); padding: 56px 0; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 680px; font-size: 17px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.92); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* "Starting at $X" price badge under a service page's hero tagline -
   pulls the price out of the FAQ/pricing table and puts it where a
   visitor actually looks first. */
.hero-price-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px 0 0; padding: 8px 16px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; color: var(--white) !important;
  font-size: 15px; font-weight: 700; max-width: none; width: fit-content;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
  transform-style: preserve-3d; will-change: transform;
}
.card:hover { box-shadow: 0 20px 40px -12px rgba(20,10,10,.18); transform: translateY(-6px) scale(1.015); }
a.card:hover { border-color: var(--red); }
.icon-badge {
  width: 46px; height: 46px; border-radius: 10px; background: var(--red-100); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; font-weight: 800;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s ease, color .25s ease;
}
.card:hover .icon-badge { transform: scale(1.12) rotate(-6deg); background: var(--red); color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .card, .icon-badge, .btn, .price-card { transition: none !important; }
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card .price-from { color: var(--red); font-weight: 700; font-size: 14px; margin-top: 10px; display: block; }

/* ---------- Floating WhatsApp button ---------- */
/* Only rendered at all when WHATSAPP_NUMBER is set in config.php. */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px -6px rgba(0,0,0,.4); color: #fff; text-decoration: none; }
@media (max-width: 600px) { .whatsapp-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; font-size: 24px; } }

/* ---------- Testimonials ---------- */
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-stars { color: var(--red); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-quote { color: var(--ink-soft); font-size: 15px; line-height: 1.7; flex-grow: 1; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red-100); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0;
}

/* ---------- Portfolio showcase (Software/Web/App Development page) ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-card { padding: 0; overflow: hidden; }
.portfolio-card-img { width: 100%; aspect-ratio: 1200 / 800; overflow: hidden; background: var(--red-050); }
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.portfolio-card:hover .portfolio-card-img img { transform: scale(1.06); }
.portfolio-card-body { padding: 18px 20px 20px; }
.portfolio-card-body h3 { font-size: 16px; margin-bottom: 6px; }
.portfolio-card-body .portfolio-link { font-size: 13px; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }

/* ---------- Homepage "pick a path" (Tech & Apps vs Formation & Compliance) ---------- */
/* Sits right under the hero so a visitor picks one of exactly two clear
   identities before anything else, instead of discovering the site is
   "two businesses in one" several sections down the page. */
.path-picker-section { padding-top: 48px; padding-bottom: 48px; }
.path-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 620px) { .path-picker { grid-template-columns: 1fr; } }
.path-card {
  display: block; text-decoration: none !important; color: inherit;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.path-card:hover { border-color: var(--red); box-shadow: 0 20px 40px -12px rgba(20,10,10,.18); transform: translateY(-6px); }
.path-card .icon-badge { width: 54px; height: 54px; font-size: 22px; }
.path-card h3 { font-size: 21px; margin-bottom: 8px; }

/* ---------- Blog / Resources images ---------- */
.blog-card { padding: 0; overflow: hidden; }
.blog-card-img { width: 100%; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--red-050); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 22px 26px 26px; }
.blog-card-body .icon-badge { margin-top: 4px; }
.blog-post-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 6px; }
.blog-post-cover img { width: 100%; height: auto; display: block; aspect-ratio: 1200 / 630; object-fit: cover; }
.related-posts { list-style: none; padding: 0; margin: 0 0 4px; }
.related-posts li { margin-bottom: 12px; }
.related-posts li:last-child { margin-bottom: 0; }
.related-posts a { display: flex; align-items: center; gap: 12px; border-radius: 10px; padding: 6px; margin: -6px; transition: background .15s ease; }
.related-posts a:hover { background: var(--red-050); text-decoration: none; }
.related-posts img { width: 64px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.related-posts span { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }

.section-tinted { background: var(--red-050); }
.section-dark { background: var(--red-900); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px;
}

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; background: var(--white);
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

.state-picker-inline { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 480px; margin: 0 auto; }
.state-picker-inline select {
  flex: 1; min-width: 200px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink); background: var(--white); cursor: pointer;
}

/* ---------- Per-state LLC guide page ---------- */
.state-picker-bar {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12);
  padding: 10px 16px; border-radius: 8px; margin-top: 18px; flex-wrap: wrap;
}
.state-picker-bar label { color: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.state-picker-bar select {
  background: var(--white); color: var(--ink); border: none; border-radius: 8px; padding: 6px 14px;
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } }
.guide-toc { position: sticky; top: 20px; }
@media (max-width: 900px) { .guide-toc { position: static; margin-bottom: 24px; } }
.guide-toc-inner { background: var(--red-050); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.guide-toc-inner h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--red); }
.guide-toc-inner a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); }
.guide-toc-inner a:last-child { border-bottom: none; }
.guide-toc-inner a:hover { color: var(--red); }
.guide-step { margin-bottom: 34px; scroll-margin-top: 20px; }
.guide-step h2 { margin-top: 0; }
.related-states-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; }
.related-states-grid a {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
  color: var(--ink); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 10px;
  transition: border-color .2s ease, transform .2s ease;
}
.related-states-grid a i { color: var(--red); }
.related-states-grid a:hover { border-color: var(--red); transform: translateX(3px); }

/* ---------- Technology stack grid (service pages) ---------- */
.tech-stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; max-width: 1080px; margin: 0 auto; }
.tech-stack-col {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm, 0 4px 14px -10px rgba(20,10,10,.12));
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.tech-stack-col::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red-700, #990e17), var(--red), var(--red-500, #ef505a)); }
.tech-stack-col:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -14px rgba(20,10,10,.18); border-color: var(--red); }
.tech-stack-col h4 { margin: 0 0 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--red); font-weight: 800; }
.tech-pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--red-050); color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 6px 14px 6px 6px; border-radius: 8px; border: 1px solid transparent;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tech-pill-icon {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px;
  box-shadow: 0 0 0 3px rgba(235,35,48,.14);
}
.tech-pill:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 8px 16px -8px rgba(20,10,10,.22); }

/* ---------- Pricing ---------- */
.price-card {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; background: var(--white);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px rgba(20,10,10,.16); border-color: var(--red); }
.price-card.featured { border-color: var(--red); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before {
  content: "Most Popular"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 8px;
}
.price-amount { font-size: 40px; font-weight: 800; color: var(--red); margin: 10px 0; }
.price-amount span { font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; text-align: left; margin: 18px 0; }
.price-card ul li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.price-card ul li::before { content: ""; display: inline-block; width: 6px; height: 10px; margin-right: 10px; border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }

/* ---------- Domain availability search widget ---------- */
.domain-search-box { max-width: 640px; margin: 0 auto; }
.domain-search-box #domainCheckForm { display: flex; gap: 10px; background: var(--white); border: 2px solid var(--line); border-radius: 8px; padding: 6px 6px 6px 22px; box-shadow: var(--shadow-sm); }
.domain-search-box #domainCheckForm:focus-within { border-color: var(--red); }
.domain-search-box input[type="text"] { flex: 1; border: none; padding: 10px 0; font-size: 16px; background: transparent; }
.domain-search-box input[type="text"]:focus { outline: none; box-shadow: none; border: none; }
.domain-search-box .btn { border-radius: 8px; white-space: nowrap; }
.domain-check-results { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.domain-result-row {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px;
  animation: dropdownIn .2s ease;
}
.domain-result-name { font-weight: 700; font-family: 'Manrope', sans-serif; flex: 1; }
.domain-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 8px; }
.domain-badge.domain-available { background: #e9f8ee; color: #1a7f37; }
.domain-badge.domain-taken { background: var(--red-100); color: var(--red-700); }
.domain-badge.domain-unknown { background: #f1f1f1; color: var(--ink-soft); }
@media (max-width: 520px) {
  .domain-search-box #domainCheckForm { flex-direction: column; border-radius: var(--radius); padding: 14px; }
  .domain-search-box .btn { width: 100%; }
  .domain-result-row { flex-wrap: wrap; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: var(--white); text-align: center; padding: 60px 0; }
.cta-band h2 { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 56px 0 24px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 34px; max-width: 480px; margin: 0 auto; }
.form-card.wide { max-width: 720px; }
label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit;
  background: var(--white); color: var(--ink); margin-bottom: 18px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); }
textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { margin-top: 6px; }
.help-text { font-size: 12px; color: var(--ink-soft); margin-top: -12px; margin-bottom: 16px; }
fieldset { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
legend { font-weight: 800; color: var(--red); padding: 0 8px; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: var(--red-100); color: var(--red-900); border: 1px solid var(--red); }
.alert-success { background: #fdecec; color: var(--red-900); border: 1px solid var(--red-500); }
.alert-info { background: var(--white); color: var(--ink); border: 1px solid var(--line); }

/* ---------- Badges / status ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
.badge-pending, .badge-due, .badge-open, .badge-unpaid { background: var(--red-100); color: var(--red-900); border-color: var(--red-500); }
.badge-in_review, .badge-in_progress, .badge-confirmed { background: #ffffff; color: var(--red); border-color: var(--red); }
.badge-completed, .badge-ok, .badge-paid, .badge-closed, .badge-sent { background: var(--ink); color: var(--white); }
.badge-cancelled, .badge-overdue, .badge-failed { background: var(--red); color: var(--white); }
.badge-fake { background: #ffffff; color: var(--red-900); border-color: var(--red-300, var(--red-500)); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pagination .page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px;
    border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px;
    text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pagination .page-link:hover { border-color: var(--red); color: var(--red); }
.pagination .page-link.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
thead th { text-align: left; background: var(--red-050); color: var(--red-900); padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--red-050); }

/* ---------- Portal / Admin app shell ---------- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.app-sidebar {
  background: linear-gradient(180deg, #1e1517 0%, #140d0e 100%);
  color: rgba(255,255,255,.85); padding: 22px 14px; display: flex; flex-direction: column;
  box-shadow: 2px 0 24px rgba(0,0,0,.18);
}
.app-sidebar .brand { color: var(--white); margin-bottom: 22px; padding: 6px 10px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.app-sidebar nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.72);
  font-weight: 600; font-size: 14px; margin-bottom: 3px; position: relative;
  transition: background .18s ease, color .18s ease, transform .18s ease, padding-left .18s ease;
}
.app-sidebar nav a i {
  width: 30px; height: 30px; text-align: center; flex-shrink: 0; border-radius: 8px;
  background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; transition: background .18s ease, color .18s ease;
}
.app-sidebar nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: var(--white); padding-left: 16px; }
.app-sidebar nav a.active { background: rgba(235,35,48,.14); color: var(--white); }
.app-sidebar nav a.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--red); }
.app-sidebar nav a.active i { background: var(--red); color: var(--white); }
.app-sidebar .nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: rgba(255,255,255,.62); margin: 20px 0 8px; padding: 0 12px; }
.app-main { background: #f7f5f5; }
.app-topbar {
  background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 28px;
  display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 30;
  box-shadow: 0 2px 12px rgba(20,10,10,.04);
}
.app-topbar h1 { font-size: 20px; margin: 0; }
.app-content { padding: 28px; max-width: 1150px; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 14px; position: relative; cursor: pointer; padding: 6px 10px 6px 6px; border-radius: 8px; transition: background .15s ease; }
.user-chip:hover { background: var(--red-050); }
.user-chip .avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-900)); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.user-chip .chip-caret { font-size: 11px; color: var(--ink-soft); margin-left: 2px; transition: transform .15s ease; }
.user-chip.open .chip-caret { transform: rotate(180deg); }
.user-chip .chip-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; z-index: 40;
}
.user-chip.open .chip-menu { display: block; }
.user-chip .chip-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.user-chip .chip-menu a:hover { background: var(--red-050); text-decoration: none; color: var(--red); }
.user-chip .chip-menu a i { width: 16px; text-align: center; color: var(--red); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--ink); cursor: pointer; }

/* Notification bell (app-topbar, client portal + admin) */
.notif-bell { position: relative; }
.notif-bell-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease; }
.notif-bell-btn:hover { background: var(--red-050); color: var(--red); }
.notif-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--red); color: var(--white); font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--white); }
.notif-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-width: 84vw; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 40; overflow: hidden; }
.notif-bell.open .notif-dropdown { display: block; }
.notif-dropdown-header { padding: 12px 14px; font-weight: 800; font-size: 13px; border-bottom: 1px solid var(--line); color: var(--ink); }
.notif-empty { padding: 22px 14px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); position: relative; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--red-050); text-decoration: none; color: var(--ink); }
.notif-item.unread { background: #fff7f7; }
.notif-item.unread::before { content: ''; position: absolute; left: 5px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.notif-item.unread { padding-left: 20px; }
.notif-item-msg { display: block; line-height: 1.4; }
.notif-item-time { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .notif-dropdown { position: fixed; top: 64px; right: 10px; left: 10px; width: auto; max-width: none; }
}

/* "Getting Started" onboarding checklist (client dashboard) */
.onboarding-panel { margin-bottom: 24px; border: 1px solid var(--red-100); }
.onboarding-steps { display: flex; flex-direction: column; gap: 4px; }
.onboarding-step { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.onboarding-step:last-child { border-bottom: none; }
.onboarding-step-icon { font-size: 22px; color: var(--line); flex-shrink: 0; }
.onboarding-step.done .onboarding-step-icon { color: var(--red); }
.onboarding-step-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.onboarding-step-body strong { font-size: 14px; }
.onboarding-step.done .onboarding-step-body strong { text-decoration: line-through; color: var(--ink-soft); }
.onboarding-step-body .muted { font-size: 12.5px; }
@media (max-width: 620px) {
  .onboarding-step { flex-wrap: wrap; }
  .onboarding-step-icon { align-self: flex-start; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; left: -280px; top: 0; bottom: 0; width: 260px; z-index: 80; transition: left .2s ease; overflow-y: auto; }
  .app-sidebar.open { left: 0; box-shadow: 4px 0 30px rgba(0,0,0,.35); }
  .mobile-menu-toggle { display: block; }
  .app-content { padding: 18px; }
  .app-topbar { padding: 14px 16px; }
  .app-topbar .user-chip span:not(.avatar) { display: none; }
}
.sidebar-overlay { display: none; }
@media (max-width: 900px) {
  .sidebar-overlay.open { display: block; position: fixed; inset: 0; background: rgba(10,6,6,.45); z-index: 70; }
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-grid.stat-grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .stat-grid.stat-grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid, .stat-grid.stat-grid-6 { grid-template-columns: 1fr; } }

/* ---------- Self-hosted mini-charts (assets/js/mini-charts.js) ----------
   No external CDN, no charting library, plain SVG generated on the fly,
   so the admin dashboard's charts always render regardless of any
   third-party CDN being reachable. */
.chart-frame { position: relative; min-height: 260px; display: flex; flex-direction: column; }
.mini-chart-svg { width: 100%; flex: 1; min-height: 0; overflow: visible; }
.mini-chart-legend { display: flex; gap: 20px; justify-content: center; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.mini-chart-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--ink-soft); font-size: 14px;
}
.mini-chart-empty i { font-size: 26px; opacity: .35; }

.mini-doughnut-wrap { display: flex; align-items: center; gap: 24px; flex: 1; flex-wrap: wrap; }
.mini-doughnut-svg { width: 170px; height: 170px; flex: none; }
.mini-doughnut-legend { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 10px; }
.mini-legend-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mini-legend-label { flex: 1; color: var(--ink); font-weight: 600; }
.mini-legend-value { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.mini-hbar-chart { display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: center; }
.mini-hbar-row { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; }
.mini-hbar-label { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-hbar-track { background: var(--red-050); border-radius: 8px; height: 12px; overflow: hidden; }
.mini-hbar-fill { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--red-700, #990e17), var(--red)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.mini-hbar-value { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .mini-hbar-row { grid-template-columns: 90px 1fr 28px; } }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease;
}
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--red-light, #ef505a)); opacity: 0; transition: opacity .22s ease; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -14px rgba(20,10,10,.16); border-color: var(--red); }
.stat-card:hover::before { opacity: 1; }
.stat-card .stat-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--red-050); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 14px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .22s ease, color .22s ease;
}
.stat-card:hover .stat-icon { background: var(--red); color: var(--white); transform: scale(1.08) rotate(-4deg); }
.stat-card .stat-label { font-size: 12px; text-transform: uppercase; color: var(--ink-soft); letter-spacing: .04em; font-weight: 600; }
.stat-card .stat-value { font-size: 30px; font-weight: 800; color: var(--ink); margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .stat-card, .stat-icon, .app-sidebar nav a { transition: none !important; } }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.panel-header h2, .panel-header h3 { margin: 0; }

/* ---------- Smart Recommendations ("AI recommendations") widget ---------- */
.recommendations-panel { border-color: var(--red-100, var(--red-050)); background: linear-gradient(180deg, var(--red-050) 0%, var(--white) 140px); }
.recommendations-panel .panel-header h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.recommendations-panel .panel-header h2 i { color: var(--red); }
.ai-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--ink, #1a1414); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 8px;
}
.ai-badge::before { content: none; }
.recommend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.recommend-card {
  display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease;
}
.recommend-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(20,10,10,.16); border-color: var(--red); }
.recommend-icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--red-050); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.recommend-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.recommend-because { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; color: var(--red); }
.recommend-body strong { font-size: 15px; color: var(--ink); }
.recommend-body p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.recommend-body .btn { align-self: flex-start; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .recommend-card { transition: none !important; } }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0 10px 22px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.timeline li:last-child { border-left-color: transparent; }

.chat-thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.chat-bubble { max-width: 75%; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.chat-bubble.client { background: var(--red-050); align-self: flex-start; border: 1px solid var(--line); }
.chat-bubble.admin { background: var(--red); color: var(--white); align-self: flex-end; }
.chat-meta { font-size: 11px; opacity: .7; margin-top: 6px; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty-state .icon-badge { margin: 0 auto 14px; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.doc-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: none; }

/* ---------- Order Wizard ---------- */
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; max-width: 1080px; margin: 0 auto; }
.wizard-panel { min-width: 0; }
@media (max-width: 900px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .order-summary-card { position: static; order: -1; }
}

/* Live, state-aware "Order Summary" pricing sidebar shown next to the
   order wizard, itemizes the base fee, any government/state filing fee,
   and any selected add-ons, updating instantly as the client fills in
   the form (see the pricing script in portal/new-order.php). */
.order-summary-card { position: sticky; top: 90px; padding: 22px; transition: box-shadow .3s ease, border-color .3s ease; }
.order-summary-card h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.order-summary-card h3 i { color: var(--red); }
.order-summary-card.summary-updated { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-050); }
.summary-lines { display: flex; flex-direction: column; gap: 2px; margin: 14px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.summary-line { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.summary-line:last-child { border-bottom: none; }
.summary-line-label { color: var(--ink-soft); }
.summary-line-amount { font-weight: 700; white-space: nowrap; }
.summary-line-base .summary-line-label { color: var(--ink); font-weight: 700; }
.summary-line-included .summary-line-amount { color: var(--red); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.summary-line-fee .summary-line-label, .summary-line-addon .summary-line-label { color: var(--ink); }
.summary-total {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 4px; padding-top: 14px; border-top: 2px solid var(--ink); font-weight: 800; font-size: 17px;
}
.summary-total span:last-child { color: var(--red); font-size: 21px; }
.order-summary-card .help-text { margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.order-summary-card .help-text i { color: var(--red); margin-top: 2px; }

/* Itemized pricing breakdown reused on order-details / admin / invoice pages */
.pricing-breakdown-table { width: 100%; border-collapse: collapse; margin: 4px 0 10px; }
.pricing-breakdown-table td { padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.pricing-breakdown-table tr:last-child td { border-bottom: none; }
.pricing-breakdown-table tr.pricing-row-base td { font-weight: 700; }
.wizard-progress { display: flex; justify-content: space-between; margin: 6px 0 34px; position: relative; }
.wizard-progress::before { content: ""; position: absolute; top: 18px; left: 5%; right: 5%; height: 2px; background: var(--line); z-index: 0; }
.wizard-progress-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.wizard-progress-circle {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: var(--ink-soft);
  font-weight: 800; font-size: 14px; transition: all .2s ease;
}
.wizard-progress-step.active .wizard-progress-circle { border-color: var(--red); color: var(--red); background: var(--red-050); }
.wizard-progress-step.done .wizard-progress-circle { border-color: var(--red); background: var(--red); color: var(--white); }
.wizard-progress-label { display: block; font-size: 11px; margin-top: 6px; color: var(--ink-soft); max-width: 100px; margin-left: auto; margin-right: auto; }
.wizard-progress-step.active .wizard-progress-label { color: var(--ink); font-weight: 700; }
@media (max-width: 620px) { .wizard-progress-label { display: none; } }

.wizard-field { margin-bottom: 2px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

.radio-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.radio-option {
  display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px;
  padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; transition: all .15s ease;
}
.radio-option:hover { border-color: var(--red); background: var(--red-050); }
.radio-option input { width: auto; margin: 0; accent-color: var(--red); }

.review-summary { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.review-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.review-row:last-child { border-bottom: none; }
.review-row:nth-child(odd) { background: var(--red-050); }
.review-label { color: var(--ink-soft); font-weight: 600; }
.review-value { font-weight: 700; text-align: right; }

.service-pick-card { display: flex; flex-direction: column; }
.service-pick-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
}
.service-pick-bundle-check {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; user-select: none;
}
.service-pick-bundle-check input { width: auto; margin: 0; accent-color: var(--red); }
.service-pick-bundle-check:hover { color: var(--red); }

/* Sticky bar that appears once 2+ services are checked on the New Order
   picker grid, offering a combined "bundle" checkout (portal/new-order.php
   + portal/order-bundle-start.php). Hidden by default; shown via JS. */
.bundle-bar {
  position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; margin-top: 20px; padding: 16px 22px;
  background: var(--ink); color: var(--white); border-radius: var(--radius);
  box-shadow: 0 16px 36px -12px rgba(0,0,0,.4);
}
.bundle-bar-text { font-weight: 700; font-size: 14px; }
.bundle-bar-text span { color: var(--red-500, #ef505a); }
.bundle-bar .btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
@media (max-width: 560px) {
  .bundle-bar { flex-direction: column; align-items: stretch; text-align: center; bottom: 8px; }
}

/* ---------- Trust / value-prop badges ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--ink); }
.trust-item i { color: var(--red); font-size: 18px; }

/* ---------- Sitewide page-load progress bar ---------- */
/* Shown the instant a link/form is activated so a slow connection sees
   visible motion instead of a frozen-looking page while the next page
   loads, pure CSS transform/width animation, no layout thrash. */
.page-load-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--red-700), var(--red), var(--red-500));
  box-shadow: 0 0 8px rgba(211,24,34,.6);
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: width .2s ease, opacity .25s ease;
}
.page-load-bar.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .page-load-bar { transition: opacity .25s ease; }
}


/* ---------- Accessibility: skip link + visible keyboard focus ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); outline: 3px solid var(--white); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px;
}
.site-footer a:focus-visible, .site-footer button:focus-visible, .page-hero a:focus-visible, .cta-band a:focus-visible, .hero a:focus-visible { outline-color: var(--white); }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Consent checkbox on forms ---------- */
.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.consent-row input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--red); }
.consent-row label { margin: 0; font-weight: 400; cursor: pointer; }

/* ---------- Contact details + social links ---------- */
.contact-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); }
.contact-list li > i { color: var(--red); width: 18px; text-align: center; margin-top: 4px; }
.contact-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); color: var(--red); background: var(--white); text-decoration: none; transition: background .15s ease, color .15s ease;
}
.social-row a:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.site-footer .social-row a { background: transparent; border-color: rgba(255,255,255,.35); color: var(--white); }
.site-footer .social-row a:hover { background: var(--white); color: var(--red); border-color: var(--white); }

/* ---------- Footer additions ---------- */
.footer-contact { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { width: 16px; text-align: center; margin-top: 5px; color: rgba(255,255,255,.75); }
.footer-note { font-size: 12px; color: rgba(255,255,255,.7); }
.footer-bottom { align-items: flex-start; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a, .link-button { color: rgba(255,255,255,.85); font-size: 13px; }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-decoration: underline; }
.footer-disclaimer { flex-basis: 100%; font-size: 12.5px; color: rgba(255,255,255,.72); }
.brand + p { margin-top: 14px; }

/* ---------- Legal documents ---------- */
.legal-doc { max-width: 820px; }
.legal-doc h2 { font-size: 22px; margin: 34px 0 10px; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); }
.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin-bottom: 8px; }
.legal-intro { font-size: 17px; color: var(--ink); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9990; max-width: 960px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(26,20,20,.22);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 20px; flex-wrap: wrap; }
.cookie-banner-text { flex: 1 1 380px; font-size: 14px; color: var(--ink-soft); }
.cookie-banner-text p { margin: 4px 0 0; }
.cookie-options { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.cookie-options label { font-weight: 500; display: flex; gap: 8px; align-items: center; margin: 0; }
.cookie-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .cookie-banner-actions .btn { flex: 1 1 100%; } }

/* Payment proof upload form (portal payment page / pay-invoice) */
.proof-form label { display: block; margin-top: 12px; }
.proof-form input[type="file"] { margin: 6px 0 2px; max-width: 100%; }
.proof-form button { margin-top: 16px; }

/* CAPTCHA widget spacing (Cloudflare Turnstile / reCAPTCHA) */
.captcha-box { margin: 14px 0; max-width: 100%; overflow: hidden; }

/* ---- Messages (client <-> admin chat) ---- */
.nav-badge { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.chat-box { display: flex; flex-direction: column; height: min(70vh, 640px); background: var(--white); border: 1px solid rgba(0,0,0,.08); border-radius: 14px; overflow: hidden; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #faf7f7; }
.chat-row { display: flex; }
.chat-row.mine { justify-content: flex-end; }
.chat-bubble { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 14px; background: var(--white); border: 1px solid rgba(0,0,0,.08); word-wrap: break-word; overflow-wrap: anywhere; }
.chat-row.mine .chat-bubble { background: var(--red); color: var(--white); border-color: transparent; }
.chat-who { font-size: 11px; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.chat-text { font-size: 15px; line-height: 1.45; }
.chat-file { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; text-decoration: underline; color: inherit; }
.chat-time { font-size: 11px; opacity: .7; margin-top: 4px; text-align: right; }
.chat-empty { margin: auto; color: #7a6f6f; text-align: center; }
.chat-form { flex-shrink: 0; display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid rgba(0,0,0,.08); flex-wrap: wrap; }
.chat-form textarea { flex: 1 1 240px; min-height: 44px; max-height: 140px; resize: vertical; margin: 0; }
.chat-form input[type=file] { flex: 1 1 100%; font-size: 13px; }
.inbox-unread { font-weight: 800; }

/* ---- WhatsApp floating button (public site only) ---- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.wa-float:hover { background: #1ebe5b; color: #fff; }
.wa-float i { font-size: 22px; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

.chat-box + .help-text { margin-top: 12px; }
