/* C.T. Lee & Associates — Core styles
   Section system, typography utilities, nav, chat widget, buttons, cards, footer.
   Token-driven: all colors / spacing / typography reference tokens.css. */

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

.text-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-semibold);
  color: var(--navy);
}

.text-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-semibold);
  color: var(--navy);
}

.text-heading {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-semibold);
  color: var(--navy);
}

.text-serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-regular);
}

.text-sub {
  font-size: var(--text-sub);
  line-height: var(--leading-normal);
  color: var(--ink-soft);
  font-weight: var(--weight-regular);
}

.text-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.text-label {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--stone);
}

.text-nav {
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
}

.text-muted { color: var(--stone); }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--content-width); }
.container--tight  { max-width: var(--narrow-width); }

.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--dark   { background: var(--navy-deep); color: var(--cream); }
.section--navy   { background: var(--navy); color: var(--cream); }
.section--cream  { background: var(--cream); color: var(--ink); }
.section--paper  { background: var(--paper); color: var(--ink); }
.section--white  { background: var(--white); color: var(--ink); }

.section--dark .text-hero,
.section--dark .text-display,
.section--dark .text-heading,
.section--navy .text-hero,
.section--navy .text-display,
.section--navy .text-heading { color: var(--cream); }

.section--dark .text-eyebrow,
.section--navy .text-eyebrow { color: var(--gold-light); }

/* decorative rule */
.rule {
  width: 56px; height: 1px;
  background: var(--gold);
  margin: var(--space-md) 0;
}
.rule--center { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL (works with IntersectionObserver in app.js)
   ═══════════════════════════════════════════════════════════════════════════ */

.animate-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-reveal) var(--ease-out),
              transform var(--duration-reveal) var(--ease-out);
}
.animate-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .animate-fade { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════════════ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10, 37, 64, 0.96);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid rgba(184,149,76,0.22);
  z-index: 50;
  color: var(--cream);
}
.site-nav::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-warm) 50%, var(--gold) 70%, transparent);
  opacity: 0.6;
}
.nav-inner {
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--cream);
  min-width: 0;
}
.nav-mono {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.8px;
  flex: 0 0 36px;
}
.nav-name {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav-name .amp { color: var(--gold-light); font-style: italic; font-weight: var(--weight-regular); padding: 0 2px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: rgba(246, 241, 231, 0.85);
  padding: 8px 4px;
  position: relative;
  transition: color var(--duration-fast) ease;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 2px;
  height: 1px;
  background: var(--gold);
}
.nav-right {
  display: flex; align-items: center; gap: 10px;
}
.lang-chips {
  display: inline-flex;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(184,149,76,0.28);
  border-radius: 999px;
  padding: 3px;
}
.lang-chip {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: var(--weight-medium);
  color: rgba(246, 241, 231, 0.7);
  padding: 5px 10px;
  border-radius: 999px;
  transition: all var(--duration-fast) ease;
}
.lang-chip:hover { color: var(--cream); }
.lang-chip.active { background: var(--gold); color: var(--navy-deep); font-weight: var(--weight-semibold); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-xs);
  transition: background var(--duration-fast) ease;
}
.nav-cta:hover { background: var(--gold-light); }
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid rgba(184,149,76,0.3);
  border-radius: var(--radius-xs);
  color: var(--cream);
  padding: 0;
  display: grid; place-items: center;
}

/* mobile nav */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
}

body { padding-top: var(--nav-height); }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  padding: 14px 26px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  position: relative;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--navy);
  color: var(--cream);
}
.btn--primary:hover { background: var(--navy-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--cream); }
.btn--ghost-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(246, 241, 231, 0.4);
}
.btn--ghost-light:hover { background: var(--cream); color: var(--navy-deep); border-color: var(--cream); }
.btn--lg { padding: 16px 32px; font-size: 0.98rem; }
.btn--sm { padding: 10px 18px; font-size: 0.82rem; }

.btn .arrow {
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width var(--duration-fast) ease;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(184,149,76,0.12), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(184,149,76,0.06), transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--cream);
  padding: clamp(4rem, 10vh, 8rem) 0 clamp(3rem, 6vh, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(184,149,76,0.25), transparent);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.03) 0, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto;
}
.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.hero-mark .rule {
  width: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,149,76,0.5));
  margin: 0;
}
.hero-mark .rule.right { background: linear-gradient(270deg, transparent, rgba(184,149,76,0.5)); }
.hero-mark .mono {
  width: 44px; height: 44px;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  position: relative;
}
.hero-mark .mono::before, .hero-mark .mono::after {
  content: ""; position: absolute;
  width: 5px; height: 5px;
  border: 1px solid var(--gold);
  background: var(--navy-deep);
}
.hero-mark .mono::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.hero-mark .mono::after  { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  font-weight: var(--weight-semibold);
  color: var(--cream);
  letter-spacing: var(--tracking-tight);
}
.hero-title .accent { color: var(--gold-light); font-style: italic; font-weight: var(--weight-regular); }
.hero-sub {
  font-size: var(--text-sub);
  line-height: var(--leading-normal);
  color: rgba(246,241,231,0.82);
  max-width: 640px;
  margin: 20px auto 0;
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Trust bar under hero */
.trust-bar {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 26px 0;
  border-top: 1px solid rgba(184,149,76,0.2);
  border-bottom: 1px solid rgba(184,149,76,0.2);
}
.trust-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.trust-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}
.trust-item .big {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: var(--weight-semibold);
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -0.01em;
}
.trust-item .sm {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,241,231,0.65);
}
.trust-item .stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS: service, visa, attorney, review
   ═══════════════════════════════════════════════════════════════════════════ */

.grid { display: grid; gap: var(--space-sm); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Service card (top-level practice areas) */
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 32px 28px 28px;
  border-radius: var(--radius-xs);
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 260px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--navy);
}
.service-card .sc-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.service-card .sc-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: var(--weight-semibold);
  color: var(--navy);
  line-height: 1.15;
}
.service-card .sc-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: var(--leading-normal);
  flex: 1;
}
.service-card .sc-link {
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--navy);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.service-card .sc-link:hover { color: var(--gold); }

/* Visa category card (for /services/immigration/ hub) */
.visa-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 20px;
  border-radius: var(--radius-xs);
  transition: all var(--duration-fast) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.visa-card:hover {
  background: var(--white);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.visa-card .vc-code {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: var(--weight-semibold);
  color: var(--navy);
}
.visa-card .vc-title {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.visa-card .vc-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}

/* Attorney card */
.attorney-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 28px;
  border-radius: var(--radius-xs);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
}
.attorney-card .ac-photo {
  width: 140px; height: 180px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: grid; place-items: center;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 4px;
}
.attorney-card .ac-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: var(--weight-semibold);
  color: var(--navy);
  margin-bottom: 2px;
}
.attorney-card .ac-title {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.attorney-card .ac-bio {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: var(--leading-normal);
  margin-bottom: 14px;
}
.attorney-card .ac-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--stone);
}
.attorney-card .ac-meta strong {
  display: block;
  color: var(--navy);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
  margin-bottom: 2px;
}
@media (max-width: 640px) {
  .attorney-card { grid-template-columns: 1fr; }
  .attorney-card .ac-photo { width: 100%; max-width: 220px; height: 200px; margin: 0 auto; }
}

/* Review card */
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius-xs);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: -8px; left: 16px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 700;
}
.review-card .rc-stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.95rem;
}
.review-card .rc-body {
  font-size: 0.95rem;
  line-height: var(--leading-normal);
  color: var(--ink-soft);
  flex: 1;
}
.review-card .rc-author {
  font-size: 0.78rem;
  color: var(--stone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.review-card .rc-author strong {
  color: var(--navy);
  font-weight: var(--weight-semibold);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA strip (large call-to-action between sections)
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-strip {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3rem, 6vh, 4.5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-warm) 50%, var(--gold) 80%, transparent);
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: var(--weight-semibold);
  color: var(--cream);
  margin-bottom: 10px;
}
.cta-strip p {
  color: rgba(246,241,231,0.8);
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: var(--text-sub);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(246,241,231,0.8);
  padding: var(--space-lg) 0 var(--space-sm);
  border-top: 1px solid rgba(184,149,76,0.2);
  font-size: 0.88rem;
}
.site-footer a:hover { color: var(--gold-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: var(--weight-semibold);
  color: var(--cream);
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.footer-address {
  line-height: var(--leading-loose);
  color: rgba(246,241,231,0.7);
  font-size: 0.86rem;
}
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: var(--weight-semibold);
  margin-bottom: 14px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-list a { color: rgba(246,241,231,0.78); font-size: 0.88rem; }
.footer-legal {
  border-top: 1px solid rgba(184,149,76,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(246,241,231,0.5);
}
.footer-legal a { margin-left: 14px; }
.footer-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  align-items: center;
}
.footer-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gold-light);
  padding: 6px 10px;
  border: 1px solid rgba(184,149,76,0.3);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING CHAT LAUNCHER + WIDGET
   ═══════════════════════════════════════════════════════════════════════════ */

.chat-launcher {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  box-shadow: 0 10px 30px rgba(10,37,64,0.3), 0 0 0 1px rgba(184,149,76,0.3);
  transition: all var(--duration-fast) ease;
}
.chat-launcher:hover { background: var(--navy-soft); transform: translateY(-2px); }
.chat-launcher .bubble-ico {
  width: 30px; height: 30px;
  background: var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
}
.chat-launcher .pulse {
  position: absolute;
  top: 8px; right: 10px;
  width: 9px; height: 9px;
  background: #6eddb0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(110,221,176,0.28);
  animation: chatPulse 2s ease-in-out infinite;
}
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(110,221,176,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(110,221,176,0.05); }
}

.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,26,48,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 70;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
}
.chat-overlay.open { display: flex; }

.chat-window {
  width: min(420px, 100%);
  height: min(640px, 86vh);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(6,26,48,0.35);
  animation: chatIn 0.25s ease-out both;
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-header {
  background: var(--navy);
  color: var(--cream);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-header .title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--weight-semibold);
  line-height: 1;
}
.chat-header .sub {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 3px;
}
.chat-header .close {
  width: 30px; height: 30px;
  border-radius: 50%;
  color: rgba(246,241,231,0.8);
  font-size: 20px;
  line-height: 1;
  display: grid; place-items: center;
  transition: all var(--duration-fast) ease;
}
.chat-header .close:hover { background: rgba(255,255,255,0.08); color: var(--cream); }

/* Mobile: fullscreen chat */
@media (max-width: 640px) {
  .chat-overlay { padding: 0; }
  .chat-window { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; border-top: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   INTAKE PAGE CHAT (shared conversation pattern — same engine as ctlee-demo
   but reskinned to match full-site brand)
   ═══════════════════════════════════════════════════════════════════════════ */

.intake-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-md) var(--gutter);
}
.intake-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.intake-hdr {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 22px 26px;
  border-bottom: 1px solid rgba(184,149,76,0.35);
  position: relative;
}
.intake-hdr::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-warm) 50%, var(--gold) 70%, transparent);
}
.intake-hdr h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--weight-semibold);
  margin: 0;
}
.intake-hdr p {
  font-size: 0.85rem;
  color: rgba(246,241,231,0.72);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  scroll-behavior: smooth;
}
.msg {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  animation: slideIn 0.35s var(--ease-out) both;
}
.msg.bot { justify-content: flex-start; }
.msg.user { justify-content: flex-end; }
.msg .avatar {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--gold);
  background: var(--navy);
  color: var(--gold-light);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.msg .bubble {
  max-width: min(72%, 480px);
  width: fit-content;
  padding: 12px 15px;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  position: relative;
}
.msg.bot .bubble {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 2px 14px 14px 14px;
  box-shadow: 0 2px 8px rgba(10,37,64,0.05);
}
.msg.user .bubble {
  background: linear-gradient(180deg, var(--navy-soft), var(--navy));
  color: var(--cream);
  border-radius: 14px 14px 2px 14px;
  box-shadow: 0 2px 8px rgba(10,37,64,0.12);
}
.msg.user .bubble::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  border-radius: 0 14px 2px 0;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing .bubble { padding: 14px 18px; display: inline-flex; gap: 4px; align-items: center; }
.typing .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  animation: bounce 1.2s infinite ease-in-out;
}
.typing .dot:nth-child(2) { animation-delay: 0.15s; }
.typing .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.quick {
  padding: 6px 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.quick.column { flex-direction: column; }
.chip {
  background: var(--white);
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  font-family: inherit;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 1px 2px rgba(10,37,64,0.04);
}
.chip:hover { background: var(--navy); color: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.chip.suggested {
  background: linear-gradient(180deg, var(--white), var(--paper));
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--navy-ink);
  white-space: normal;
  max-width: 100%;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 2px 10px 10px 10px;
  line-height: 1.5;
  font-weight: var(--weight-regular);
}
.chip.suggested::before { content: "›"; color: var(--gold); font-weight: 700; margin-right: 7px; font-size: 15px; }
.chip.suggested:hover { background: var(--white); border-left-color: var(--navy); color: var(--navy); transform: translateX(2px); }
.chip.suggested:hover::before { color: var(--navy); }

.chat-input-wrap {
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.chat-input-hint {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 6px;
  font-size: 11px; color: var(--stone);
}
.chat-input-hint .link {
  color: var(--navy); background: transparent; border: 0;
  cursor: pointer; font-family: inherit; font-size: 11px;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}
.chat-input-row {
  display: flex; gap: 8px; align-items: flex-end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 6px 6px 6px 14px;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
.chat-input-row:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.chat-input {
  flex: 1; border: 0; resize: none; outline: none;
  background: transparent; font-family: inherit;
  font-size: 14.5px; line-height: 1.45;
  padding: 8px 0; max-height: 140px;
  color: var(--ink);
}
.chat-input::placeholder { color: #9ca3af; font-style: italic; }
.chat-send {
  background: var(--navy);
  color: var(--gold-light);
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  display: grid; place-items: center;
  font-size: 14px;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}
.chat-send:hover { background: var(--navy-soft); color: var(--cream); }

/* Summary card inside chat */
.sum-card {
  margin: 22px 0 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.45s var(--ease-out) both;
}
.sum-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-warm), var(--gold));
}
.sum-inner { padding: 24px 24px 20px; }
.sum-letterhead {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.sum-lh-l { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--navy); letter-spacing: 0.8px; }
.sum-lh-r { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.sum-h {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: var(--weight-semibold);
  margin-bottom: 4px;
  line-height: 1.1;
}
.sum-sub { font-size: 10.5px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.sum-table { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: 13.5px; }
.sum-table td { padding: 8px 0; border-bottom: 1px dotted var(--line); vertical-align: top; }
.sum-table tr:last-child td { border-bottom: 0; }
.sum-table td:first-child {
  width: 40%;
  color: var(--stone);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding-right: 14px;
}
.sum-table td:last-child { color: var(--ink); font-weight: var(--weight-medium); }
.sum-narr {
  font-size: 13.5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 13px 15px;
  margin: 10px 0 16px;
  font-style: italic;
  color: #374151;
  line-height: 1.55;
}
.sum-narr-label { font-style: normal; color: var(--navy); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 5px; font-weight: 700; }
.sum-next-h { font-size: 10.5px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin: 4px 0 10px; font-weight: 700; }
.sum-list { margin: 0 0 16px; padding-left: 0; list-style: none; counter-reset: step; }
.sum-list li {
  font-size: 13.5px;
  margin-bottom: 10px;
  line-height: 1.5;
  padding-left: 34px;
  position: relative;
  counter-increment: step;
}
.sum-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: -1px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
}
.sum-close { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 2px; font-size: 13px; color: var(--navy); font-style: italic; }
.sum-signoff { margin-top: 12px; font-family: var(--font-display); font-size: 13.5px; color: var(--navy); font-style: italic; }
.sum-signoff .firm { display: block; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; font-style: normal; font-weight: 600; color: var(--gold); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   SKIP NAV (a11y)
   ═══════════════════════════════════════════════════════════════════════════ */

.skip-nav {
  position: absolute;
  top: -40px; left: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 6px 12px;
  text-decoration: none;
  z-index: 1000;
  font-size: 13px;
  font-weight: 600;
}
.skip-nav:focus { top: 4px; }
