/* =================================================================
   GREEN & GREENBERG — DEMO SITE STYLESHEET
   Brand palette pulled from the live site:
     Teal (primary)   #165153
     Teal 2 (deep)    #0f3c3e
     Teal light       #127970
     Gold (accent)    #dd9933
     Warm accent      #e5936b
     Off-white bg     #f2f1ed
     Ink (text)       #23282a
   ================================================================= */

:root {
  --teal:        #165153;
  --teal-deep:   #0f3c3e;
  --teal-light:  #127970;
  --gold:        #dd9933;
  --gold-soft:   #e9b96a;
  --warm:        #e5936b;
  --bg:          #f4f3ef;
  --paper:       #ffffff;
  --ink:         #23282a;
  --muted:       #5c6568;
  --line:        #e4e2db;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(15, 60, 62, .06);
  --shadow:    0 18px 50px rgba(15, 60, 62, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------- Base ----------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-light); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--teal-deep); margin: 0 0 .5em; }
h2.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
p { margin: 0 0 1rem; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold);
  margin: 0 0 .6rem;
}
.center { text-align: center; }
.hide-sm { display: inline; }
@media (max-width: 620px) { .hide-sm { display: none; } }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.center .lede { margin-inline: auto; }

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn-gold   { background: var(--gold); color: #3a2600; }
.btn-gold:hover   { background: var(--gold-soft); color: #3a2600; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost  { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover  { background: #fff; color: var(--teal-deep); transform: translateY(-2px); }
.btn-teal   { background: var(--teal); color: #fff; }
.btn-teal:hover   { background: var(--teal-deep); color: #fff; transform: translateY(-2px); }

/* =================================================================
   HOLIDAY BANNER
   ================================================================= */
.holiday-banner {
  background: linear-gradient(120deg, var(--gold) 0%, var(--warm) 100%);
  color: #3a2600;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(58, 38, 0, .18);
}
.holiday-banner .wrap {
  padding: .75rem 0;
}
.holiday-banner strong {
  font-weight: 800;
}

/* =================================================================
   TOP BAR  (thin utility strip: phone / hours)
   ================================================================= */
.topbar {
  background: var(--teal-deep); color: #dfeae7;
  font-size: .85rem; letter-spacing: .02em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar .tb-left span { display: inline-flex; align-items: center; }
.topbar .tb-right { display: inline-flex; gap: .5rem; align-items: center; }
/* flat monochrome line/solid icons */
.topbar .ti { width: 15px; height: 15px; margin-right: .45rem; color: var(--gold); flex: none; }
.topbar .dot { color: var(--gold); }

/* =================================================================
   HEADER / NAV
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--teal);
  box-shadow: 0 4px 24px rgba(15,60,62,.28);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; }
/* text wordmark logo — crisp at any resolution */
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; text-decoration: none; }
.brand .brand-name { font-family: "Questrial", var(--sans); font-size: 1.5rem; letter-spacing: .012em; color: #fff; white-space: nowrap; }
.brand .brand-name .amp { color: #fff; font-weight: 400; margin: 0 .05em; }
.brand .brand-tag { font-family: "Questrial", var(--sans); font-size: .62rem; letter-spacing: .3em; color: var(--gold-soft); text-transform: none; }
.brand:hover .brand-name { color: #fff; }
/* footer variant (dark teal, left aligned) */
.footer-brand { align-items: flex-start; margin-bottom: 1rem; }
/* large variant on the branded hero slide */
.brand-lg { align-items: flex-start; gap: 5px; margin-bottom: 1.3rem; }
.brand-lg .brand-name { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.brand-lg .brand-tag { font-size: .78rem; letter-spacing: .34em; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: #eaf2f0; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  position: relative; padding: .2rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .3rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* =================================================================
   HERO SLIDER
   ================================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 640px);
  display: grid;
  padding: 0;              /* override default <section> padding — no gap above hero */
}
.slides { display: grid; grid-template-areas: "stack"; }
.slide {
  grid-area: stack;
  display: grid; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease);
  min-height: min(78vh, 640px);
  position: relative;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.slide::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,60,62,.94) 0%, rgba(15,60,62,.72) 45%, rgba(15,60,62,.30) 100%),
    var(--slide-img) center/cover no-repeat;
  transform: scale(1.06);
  transition: transform 6s ease-out;
}
.slide.is-active::before { transform: scale(1); }

/* branded slide (no photo — deep teal with the logo) */
.slide.slide-brand::before {
  background: radial-gradient(circle at 25% 25%, var(--teal-light) 0%, var(--teal) 45%, var(--teal-deep) 100%);
  transform: none;
}
.slide.slide-brand .brand-logo { height: 60px; width: auto; margin-bottom: 1.4rem; }

.slide .hero-inner { position: relative; z-index: 2; max-width: 640px; color: #fff; padding-block: 3rem; }
.slide .hero-inner .eyebrow { color: var(--gold-soft); }
.slide h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: .5rem; }
.slide p  { color: #e7efed; font-size: 1.12rem; max-width: 46ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* slider controls */
.hero-dots {
  position: absolute; z-index: 5; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .6rem;
}
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; padding: 0; transition: .25s;
}
.hero-dots button.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.15); }
.hero-arrow {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4);
  color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  font-size: 1.3rem; display: grid; place-items: center; transition: .25s;
}
.hero-arrow:hover { background: var(--gold); color: #3a2600; border-color: var(--gold); }
.hero-arrow.prev { left: 1.2rem; } .hero-arrow.next { right: 1.2rem; }

/* =================================================================
   TRUST STRIP (stat badges under hero)
   ================================================================= */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.2rem 0; }
.stat { text-align: center; padding: .4rem; }
.stat .num { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--teal); line-height: 1; }
.stat .lab { font-size: .9rem; color: var(--muted); margin-top: .35rem; }
.stat + .stat { border-left: 1px solid var(--line); }

/* =================================================================
   INTRO
   ================================================================= */
.intro .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.intro .media { position: relative; }
.intro .media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.intro .media .badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--teal); color: #fff; border-radius: var(--radius);
  padding: 1rem 1.3rem; box-shadow: var(--shadow); text-align: center;
}
.intro .media .badge b { font-family: var(--serif); font-size: 2rem; display: block; color: var(--gold-soft); }
.intro .media .badge span { font-size: .82rem; letter-spacing: .04em; }

/* =================================================================
   WHY US  (advantage cards)
   ================================================================= */
.why { background: var(--teal-deep); color: #eaf2f0; }
.why h2, .why h3 { color: #fff; }
.why .lede { color: #bcd2ce; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 1.7rem; transition: transform .25s var(--ease), background .25s;
}
.card:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold); color: #3a2600; font-size: 1.5rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.card p { color: #bcd2ce; margin: 0; font-size: .96rem; }

/* --- Why Us: click-to-expand accordion --- */
.accordion { max-width: 860px; margin: 2.6rem auto 0; display: grid; gap: .8rem; }
.acc-item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); overflow: hidden; transition: background .25s, border-color .25s;
}
.acc-item.open { background: rgba(255,255,255,.09); border-color: rgba(233,185,106,.5); }
.acc-head {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem 1.1rem;
  padding: 1.15rem 1.4rem; color: #fff; font-family: inherit;
}
.acc-num {
  grid-row: span 2; font-family: var(--serif); font-size: 1.35rem; color: var(--gold-soft);
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(233,185,106,.45); border-radius: 12px; transition: .25s;
}
.acc-item.open .acc-num { background: var(--gold); color: #3a2600; border-color: var(--gold); }
.acc-title { font-family: var(--serif); font-size: 1.15rem; align-self: end; line-height: 1.2; }
.acc-sub { grid-column: 2; font-size: .88rem; color: #a9c4bf; align-self: start; }
/* +/- toggle drawn in CSS */
.acc-toggle { grid-row: span 2; position: relative; width: 20px; height: 20px; justify-self: end; }
.acc-toggle::before, .acc-toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px;
  background: var(--gold-soft); transform: translate(-50%,-50%); transition: transform .3s var(--ease);
}
.acc-toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
.acc-item.open .acc-toggle::after { transform: translate(-50%,-50%) rotate(0deg); }  /* + → − */
/* smooth height via grid-template-rows */
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body-inner { overflow: hidden; }
.acc-body-inner p { color: #cfe0dc; margin: 0; padding: 0 1.4rem 1.3rem calc(48px + 2.5rem); font-size: .98rem; }
@media (max-width: 620px) {
  .acc-head { grid-template-columns: auto 1fr auto; }
  .acc-body-inner p { padding-left: 1.4rem; }
}

/* =================================================================
   PROCESS  (numbered steps)
   ================================================================= */
.process .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.6rem; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.4rem 1.4rem; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 1.4rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal); color: #fff; font-family: var(--serif);
  display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.1rem; margin: .4rem 0 .3rem; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* =================================================================
   PROFILE SECTION  (attorney cards)
   ================================================================= */
.team { background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.profile-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s;
}
.profile-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.profile-card .photo { aspect-ratio: 3/3.5; overflow: hidden; background: var(--teal-deep); }
.profile-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.profile-card:hover .photo img { transform: scale(1.05); }
.profile-card .info { padding: 1.1rem 1.2rem 1.3rem; }
.profile-card .info h3 { font-size: 1.18rem; margin-bottom: .1rem; }
.profile-card .role { color: var(--gold); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.profile-card .info p { font-size: .92rem; color: var(--muted); margin: .6rem 0 0; }

/* =================================================================
   TIMELINE
   ================================================================= */
.timeline .track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 3rem; position: relative; }
.timeline .track::before { content: ""; position: absolute; top: 21px; left: 6%; right: 6%; height: 3px; background: linear-gradient(90deg, var(--gold), var(--teal-light)); border-radius: 3px; }
.milestone { text-align: center; position: relative; }
.milestone .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 4px solid var(--bg); margin: 12px auto 1rem; position: relative; z-index: 2; }
.milestone .yr { font-family: var(--serif); font-size: 1.3rem; color: var(--teal); }
.milestone p { font-size: .9rem; color: var(--muted); margin: .3rem 0 0; }

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.testimonials { background: var(--teal); color: #fff; }
.testimonials h2 { color: #fff; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.quote { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.7rem; }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .6rem; }
.quote p { color: #e7efed; font-style: italic; }
.quote .who { font-weight: 700; color: #fff; font-style: normal; margin-top: .8rem; }

/* =================================================================
   CTA BANNER
   ================================================================= */
.cta-banner { background: linear-gradient(120deg, var(--gold) 0%, var(--warm) 100%); color: #3a2600; text-align: center; }
.cta-banner h2 { color: #3a2600; }
.cta-banner p { color: #5a3d10; max-width: 55ch; margin-inline: auto; }
.cta-banner .btn-teal { margin-top: 1rem; }

/* =================================================================
   CONTACT
   ================================================================= */
.contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.office { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; }
.office h3 { margin-bottom: .5rem; }
.office .row { display: flex; gap: .6rem; margin-bottom: .35rem; color: var(--muted); font-size: .96rem; }
.office .row b { color: var(--ink); min-width: 78px; }
.contact form { display: grid; gap: .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.contact label { font-weight: 600; font-size: .9rem; }
.contact input, .contact textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem; background: var(--bg);
}
.contact input:focus, .contact textarea:focus { outline: 2px solid var(--teal-light); border-color: transparent; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { background: var(--teal-deep); color: #bcd2ce; padding: 3.5rem 0 1.5rem; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer img { height: 38px; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 .8rem; }
.site-footer a { color: #bcd2ce; display: block; padding: .18rem 0; }
.site-footer a:hover { color: var(--gold); }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--gold); color: #3a2600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom a { display: inline; padding: 0; }           /* keep footer-bottom links inline */
.footer-bottom .legal { display: inline-flex; gap: .9rem; align-items: center; }
.footer-bottom .legal span.sep { opacity: .4; }
.disclaimer { font-size: .78rem; color: #8fa8a4; max-width: 70ch; margin-top: .8rem; }

/* =================================================================
   PROFILE PAGE (profile.html)
   ================================================================= */
.page-hero { background: linear-gradient(120deg, var(--teal-deep), var(--teal)); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { color: #cfe0dc; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: var(--gold-soft); margin-bottom: .8rem; }
.breadcrumb a { color: var(--gold-soft); }

.bio { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.bio:nth-child(even) { direction: rtl; }
.bio:nth-child(even) > * { direction: ltr; }
.bio .portrait { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 90px; }
.bio .portrait img { width: 100%; aspect-ratio: 3/3.7; object-fit: cover; object-position: top center; }
.bio .portrait .cap { background: var(--teal); color: #fff; padding: .9rem 1.1rem; }
.bio .portrait .cap b { font-family: var(--serif); font-size: 1.15rem; display: block; }
.bio .portrait .cap span { color: var(--gold-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.bio .detail h2 { font-size: 1.7rem; }
.bio .detail .role { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 1rem; }
.bio .tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.bio .tags span { background: var(--paper); border: 1px solid var(--line); color: var(--teal); font-size: .82rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; }

/* =================================================================
   LIVE CHAT WIDGET  (floating launcher + chat panel)
   ================================================================= */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 200; font-family: var(--sans); }

/* launcher button */
.chat-launch {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: #3a2600; font-size: 1.7rem;
  box-shadow: 0 12px 30px rgba(15,60,62,.32); transition: transform .25s var(--ease), background .25s;
  display: grid; place-items: center;
}
.chat-launch:hover { transform: scale(1.06); background: var(--gold-soft); }
.chat.open .chat-launch { transform: scale(.9); opacity: 0; pointer-events: none; }
.chat-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  background: #e33a0c; color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}

/* panel */
.chat-panel {
  position: absolute; right: 0; bottom: 0; width: min(360px, calc(100vw - 44px));
  background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(15,60,62,.35); border: 1px solid var(--line);
  display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 44px));
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.chat.open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }

.chat-head { background: var(--teal); color: #fff; padding: 1rem 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.chat-head-id { display: flex; align-items: center; gap: .7rem; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #3a2600; font-family: var(--serif); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.chat-head-id b { display: block; font-size: .98rem; }
.chat-status { font-size: .78rem; color: #bfe0d6; display: flex; align-items: center; gap: .35rem; }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #57e08a; display: inline-block; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; opacity: .85; }
.chat-close:hover { opacity: 1; }

.chat-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); }
.chat-msg { max-width: 82%; padding: .65rem .85rem; border-radius: 14px; font-size: .93rem; line-height: 1.5; }
.chat-msg.bot  { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.chat-msg.user { background: var(--teal); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.typing { display: flex; gap: 4px; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatdot 1s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; } .chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1rem 0; background: var(--bg); }
.chat-quick button { background: #fff; border: 1px solid var(--teal-light); color: var(--teal); font-size: .8rem; font-weight: 600; padding: .4rem .7rem; border-radius: 999px; cursor: pointer; transition: .2s; }
.chat-quick button:hover { background: var(--teal); color: #fff; }

.chat-input { display: flex; gap: .5rem; padding: .8rem 1rem; background: var(--bg); border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .6rem .9rem; font-family: inherit; font-size: .92rem; }
.chat-input input:focus { outline: 2px solid var(--teal-light); border-color: transparent; }
.chat-input button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); color: #3a2600; font-size: 1rem; cursor: pointer; transition: .2s; }
.chat-input button:hover { background: var(--gold-soft); }
.chat-foot { text-align: center; font-size: .74rem; color: var(--muted); padding: .55rem; background: var(--bg); }
.chat-foot a { font-weight: 700; }

@media (max-width: 480px) { .chat { right: 14px; bottom: 14px; } .chat-launch { width: 56px; height: 56px; } }

/* =================================================================
   FREE CONSULTATION PAGE
   ================================================================= */
.consult { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.consult .grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.consult-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.consult-form h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.form-intro { color: var(--muted); font-size: .96rem; margin-bottom: 1.4rem; }
.consult-form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .3rem; }
.consult-form input, .consult-form textarea, .consult-form select {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem; background: var(--bg); color: var(--ink);
}
.consult-form input:focus, .consult-form textarea:focus, .consult-form select:focus { outline: 2px solid var(--teal-light); border-color: transparent; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.q-group { margin-bottom: 1.1rem; }
.q-group .q { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; color: var(--ink); }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-row label {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; cursor: pointer;
  font-size: .9rem; background: var(--bg); transition: border-color .2s, background .2s;
}
.radio-row label:hover { border-color: var(--teal-light); }
.radio-row input { width: auto; accent-color: var(--teal); margin: 0; }
.form-fine { font-size: .78rem; color: var(--muted); margin: .9rem 0 0; }

.consult-side { display: grid; gap: 1rem; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.side-card.highlight { background: var(--teal); color: #fff; }
.side-card.highlight h3 { color: #fff; }
.side-card .row { display: flex; gap: .6rem; margin-bottom: .3rem; color: var(--muted); font-size: .92rem; }
.side-card .row b { color: var(--ink); min-width: 74px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; color: #e7efed; font-size: .95rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
@media (max-width: 860px) { .consult .grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* =================================================================
   MORE-TEAM STRIP (bottom of single attorney pages)
   ================================================================= */
.team-more { background: var(--paper); }
.team-more .mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.mini-card {
  display: block; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.mini-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mini-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: top center; }
.mini-card .m-info { padding: .85rem .6rem 1rem; }
.mini-card span { font-size: .72rem; color: var(--gold); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.mini-card h4 { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.02rem; color: var(--teal-deep); }
@media (max-width: 720px) { .team-more .mini-grid { grid-template-columns: repeat(2, 1fr); } }

/* =================================================================
   REVEAL ANIMATION
   ================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 960px) {
  .cards, .process .steps, .team-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .intro .grid, .contact .grid { grid-template-columns: 1fr; }
  .intro .media { order: -1; }
  .timeline .track { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .timeline .track::before { display: none; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .bio, .bio:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .bio .portrait { position: static; max-width: 300px; }
}
@media (max-width: 720px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--teal-deep);
    padding: 1.2rem 5%; box-shadow: var(--shadow);
  }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .cards, .process .steps, .team-grid, .quotes { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .site-footer .grid { grid-template-columns: 1fr; }
}
