/* ============================================================
   HoustonTruckAccidentFirm.com — Marketing Template Stylesheet
   Palette: Navy #0F1B33 · Gold #C9A84C · Warm White #FDF8F0
            Soft Gray #F4F6F9 · CTA Emerald #2E7D32
   Type: Playfair Display (headings) · Inter (body)
   ============================================================ */

:root {
  --navy: #0F1B33;
  --navy-deep: #0A1226;
  --navy-soft: #1B2B4D;
  --gold: #C9A84C;
  --gold-light: #E3C877;
  --cream: #FDF8F0;
  --gray: #F4F6F9;
  --green: #2E7D32;
  --green-dark: #23632A;
  --ink: #24303F;
  --ink-soft: #5A6675;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(15, 27, 51, 0.12);
  --shadow-lg: 0 24px 64px rgba(15, 27, 51, 0.22);
  --banner-h: 76px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  padding-bottom: var(--banner-h); /* room for floating banner */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-family: var(--font-body); font-weight: 700; color: var(--navy); }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.lede { font-size: 1.12rem; max-width: 60ch; color: var(--ink-soft); margin-bottom: 2.4rem; }

/* Eyebrow label — gold rule + small caps */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.eyebrow-light { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 48px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-lg { padding: 17px 32px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: var(--white); box-shadow: 0 10px 26px rgba(46,125,50,0.35); }
.btn-green:hover { background: var(--green-dark); }
.btn-gold-outline { border-color: var(--gold); color: var(--gold-light); background: rgba(201,168,76,0.08); }
.btn-gold-outline:hover { background: rgba(201,168,76,0.18); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }

/* ---------- Template notice bar ---------- */
.template-notice {
  background: var(--navy-deep); color: var(--gold-light);
  font-size: 0.8rem; text-align: center; padding: 8px 16px;
  letter-spacing: 0.02em;
}
.template-notice i { margin-right: 6px; }

/* Placeholder tags */
.placeholder-tag {
  display: inline-block; background: rgba(201,168,76,0.14); color: #8a6f24;
  border: 1px dashed var(--gold); border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; padding: 6px 14px; margin-bottom: 28px;
}
.placeholder-inline { font-size: 0.78em; color: var(--ink-soft); font-style: italic; }

/* ============================================================
   MODULE 2: HERO — cinematic, parallax, grain
   ============================================================ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy); /* fallback if image fails */
}
.hero-bg {
  position: absolute; inset: -12% 0;
  background:
    linear-gradient(rgba(15,27,51,0.15), rgba(15,27,51,0.15)),
    url("https://images.unsplash.com/photo-1779583074717-e60fa13131ce?w=1800&q=80") center/cover no-repeat,
    linear-gradient(160deg, #142244 0%, #0F1B33 55%, #2b2137 100%);
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,27,51,0.5) 0%, rgba(15,27,51,0.55) 45%, rgba(15,27,51,0.78) 100%);
}
/* Cinematic grain */
.hero-grain {
  position: absolute; inset: 0; opacity: 0.10; pointer-events: none; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 3; padding: 90px 0 70px; max-width: 820px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold-light); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 22px;
}
.eyebrow-line { width: 44px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { color: var(--white); text-shadow: 0 3px 24px rgba(0,0,0,0.4); margin-bottom: 20px; }
.hero-sub { color: rgba(253,248,240,0.92); font-size: clamp(1.02rem, 2vw, 1.22rem); max-width: 58ch; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; color: rgba(253,248,240,0.85); font-size: 0.92rem; font-weight: 600; }
.hero-trust i { color: var(--gold-light); margin-right: 6px; }
.hero-disclaimer { margin-top: 22px; font-size: 0.75rem; color: rgba(253,248,240,0.55); }
.hero-scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(253,248,240,0.6); z-index: 3; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================================
   MODULE 3: TRUST & AUTHORITY
   ============================================================ */
.trust { background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-bottom: 54px; }
.stat-card {
  background: var(--gray); border-radius: var(--radius); padding: 34px 26px;
  text-align: center; border-top: 4px solid var(--gold);
}
.stat-card-featured { background: var(--navy); border-top-color: var(--gold); }
.stat-card-featured .stat-number, .stat-card-featured .stat-label { color: var(--white); }
.stat-number { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--navy); }
.stat-label { display: block; font-weight: 700; margin-top: 4px; color: var(--navy); }
.stat-note { display: block; font-size: 0.75rem; color: var(--ink-soft); margin-top: 8px; font-style: italic; }
.stat-card-featured .stat-note { color: rgba(255,255,255,0.6); }

.badges { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-bottom: 60px; }
.badge { text-align: center; color: var(--gold); width: 130px; }
.badge svg { width: 64px; height: 64px; margin: 0 auto 8px; }
.badge span { font-size: 0.78rem; font-weight: 700; color: var(--navy); line-height: 1.3; display: block; }
.badge em { font-weight: 400; color: var(--ink-soft); font-size: 0.7rem; }

.attorney-strip {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center;
  background: var(--cream); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.attorney-photo { position: relative; border-radius: var(--radius); overflow: hidden; }
.attorney-photo img { width: 100%; height: 320px; object-fit: cover; background: var(--gray); }
.photo-tag {
  position: absolute; bottom: 10px; left: 10px; background: rgba(15,27,51,0.85);
  color: var(--gold-light); font-size: 0.68rem; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.attorney-copy p { color: var(--ink-soft); margin: 12px 0; }
.local-signal { font-weight: 600; color: var(--navy) !important; }
.local-signal i { color: var(--gold); margin-right: 6px; }

/* ============================================================
   MODULE 4: PROBLEM / SOLUTION SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-side { padding: clamp(60px, 8vw, 100px) clamp(28px, 6vw, 80px); display: flex; align-items: center; }
.split-inner { max-width: 520px; }
.split-dark { background: linear-gradient(150deg, var(--navy-deep), var(--navy)); }
.split-dark h2, .split-dark p { color: var(--cream); }
.split-dark p { color: rgba(253,248,240,0.82); margin-bottom: 16px; }
.split-warm { background: linear-gradient(150deg, #FDF4E3, var(--cream)); }
.split-warm h2 { margin-bottom: 22px; }
.check-list { list-style: none; margin: 0 0 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-weight: 600; color: var(--navy); }
.check-list i { color: var(--green); margin-top: 4px; }

/* ============================================================
   MODULE 5: PRACTICE AREA
   ============================================================ */
.practice { background: var(--gray); }
.causes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 54px; }
.cause-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: 0 4px 18px rgba(15,27,51,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cause-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cause-card i { font-size: 1.7rem; color: var(--gold); margin-bottom: 14px; }
.cause-card h3 { margin-bottom: 8px; }
.cause-card p { color: var(--ink-soft); font-size: 0.95rem; }

.specialist-callout {
  display: flex; gap: 20px; align-items: center;
  background: var(--navy); border-left: 5px solid var(--gold);
  border-radius: var(--radius); padding: 30px 34px; margin-bottom: 60px;
}
.specialist-callout i { color: var(--gold); font-size: 1.8rem; }
.specialist-callout p { color: var(--cream); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; }

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; position: relative; }
.timeline-step { position: relative; padding-top: 8px; }
.timeline-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 14px; box-shadow: 0 6px 16px rgba(201,168,76,0.4);
}
.timeline-step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============================================================
   MODULE 6: LEAD CAPTURE FORM
   ============================================================ */
.case-review { background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, #1c2c52); }
.form-container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.form-copy h2, .form-copy p { color: var(--cream); }
.form-copy p { color: rgba(253,248,240,0.82); margin-bottom: 22px; }
.form-copy .check-list li { color: var(--cream); }
.form-copy .check-list i { color: var(--gold-light); }

.lead-form {
  background: var(--cream); border-radius: var(--radius); padding: 38px;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid #d9d2c2;
  border-radius: 9px; font-family: var(--font-body); font-size: 1rem;
  background: var(--white); color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.22);
}
.privacy-note { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }
.privacy-note i { color: var(--green); margin-right: 5px; }
.hidden-field { display: none; }
.form-success {
  margin-top: 18px; background: rgba(46,125,50,0.1); border: 1.5px solid var(--green);
  border-radius: 10px; padding: 18px; display: flex; gap: 12px; align-items: flex-start;
}
.form-success i { color: var(--green); font-size: 1.3rem; margin-top: 2px; }
.form-success p { font-size: 0.94rem; color: var(--navy); }

/* ============================================================
   MODULE 8: TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--white); }
.rating-display { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.stars { color: var(--gold); letter-spacing: 3px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; margin-bottom: 50px; }
.testimonial-card {
  background: var(--cream); border-radius: var(--radius); padding: 30px;
  box-shadow: 0 4px 18px rgba(15,27,51,0.07); border-top: 4px solid var(--gold);
}
.testimonial-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 12px 0 20px; }
.testimonial-client { display: flex; align-items: center; gap: 14px; }
.client-initials {
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy);
  color: var(--gold-light); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.testimonial-client small { color: var(--ink-soft); }

.video-placeholder { max-width: 720px; margin: 0 auto; }
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy-soft), var(--navy-deep));
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.play-button {
  width: 84px; height: 84px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold); color: var(--navy); font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(201,168,76,0.5); transition: transform 0.2s ease;
}
.play-button:hover { transform: scale(1.08); }
.video-tag {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  color: rgba(253,248,240,0.7); font-size: 0.8rem; white-space: nowrap;
}

/* ============================================================
   MODULE 9: LOCAL SEO
   ============================================================ */
.local { position: relative; overflow: hidden; background: var(--navy); }
.local-bg {
  position: absolute; inset: 0;
  background:
    url("https://images.unsplash.com/photo-1746311528667-1038fe0c8c46?w=1800&q=80") center/cover no-repeat,
    linear-gradient(140deg, #101d3a, #0A1226);
}
.local-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,18,38,0.92) 30%, rgba(10,18,38,0.7)); }
.local-content { position: relative; z-index: 2; }
.local h2, .local p { color: var(--cream); }
.local p { max-width: 62ch; color: rgba(253,248,240,0.85); }
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.area-tags span {
  background: rgba(201,168,76,0.15); border: 1px solid var(--gold);
  color: var(--gold-light); font-size: 0.85rem; font-weight: 600;
  padding: 7px 16px; border-radius: 100px;
}
.landmarks { font-weight: 600; margin-bottom: 30px; }
.landmarks i { color: var(--gold); margin-right: 8px; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 900px; }

/* ============================================================
   MODULE 10: WHY CHOOSE US
   ============================================================ */
.why { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.why-list { list-style: none; margin-top: 26px; }
.why-list li {
  display: flex; align-items: center; gap: 16px; font-weight: 600; color: var(--navy);
  background: var(--white); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px;
  box-shadow: 0 3px 12px rgba(15,27,51,0.06);
}
.why-list i { color: var(--gold); font-size: 1.2rem; width: 26px; text-align: center; }
.why-attorney { text-align: center; }
.attorney-photo-lg img { height: 380px; }
.why-attorney h3 { margin-top: 18px; font-size: 1.4rem; }
.attorney-cred { color: var(--ink-soft); font-size: 0.94rem; margin-top: 6px; }

/* ============================================================
   MODULE 11: BLOG
   ============================================================ */
.blog { background: var(--gray); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(15,27,51,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-img { height: 190px; background-size: cover; background-position: center; background-color: var(--navy-soft); }
.blog-img-1 { background-image: linear-gradient(rgba(15,27,51,0.2), rgba(15,27,51,0.2)), url("https://images.unsplash.com/photo-1779583074717-e60fa13131ce?w=800&q=80"); }
.blog-img-2 { background-image: linear-gradient(rgba(15,27,51,0.2), rgba(15,27,51,0.2)), url("https://images.unsplash.com/photo-1746311528667-1038fe0c8c46?w=800&q=80"); }
.blog-img-3 { background-image: linear-gradient(rgba(15,27,51,0.2), rgba(15,27,51,0.2)), url("https://images.unsplash.com/photo-1783247007596-cca4a61a16f5?w=800&q=80"); }
.blog-img-4 { background-image: linear-gradient(rgba(15,27,51,0.2), rgba(15,27,51,0.2)), url("https://images.unsplash.com/photo-1779583074717-e60fa13131ce?w=800&q=80&sat=-40"); }
.blog-img-5 { background-image: linear-gradient(rgba(15,27,51,0.2), rgba(15,27,51,0.2)), url("https://images.unsplash.com/photo-1783247007596-cca4a61a16f5?w=800&q=80&sat=-40"); }
.blog-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.blog-body h3 { font-size: 1.12rem; margin-bottom: 10px; }
.blog-body p { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }
.blog-body a { margin-top: 16px; font-weight: 700; color: var(--green); text-decoration: none; }
.blog-body a:hover { color: var(--green-dark); }

/* ---------- Blog article pages ---------- */
.post-hero { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); padding: 80px 0 60px; }
.post-hero h1 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 22ch; }
.post-hero .eyebrow { color: var(--gold-light); }
.post-body { max-width: 720px; margin: 0 auto; padding: 60px 20px 90px; }
.post-body h2 { font-size: 1.5rem; margin-top: 2em; }
.post-body p, .post-body li { color: var(--ink); margin-bottom: 1.1em; font-size: 1.03rem; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.post-cta {
  background: var(--navy); border-radius: var(--radius); padding: 34px; margin-top: 50px; text-align: center;
}
.post-cta h3 { color: var(--white); margin-bottom: 8px; }
.post-cta p { color: rgba(253,248,240,0.8) !important; margin-bottom: 20px; }
.post-back { display: inline-block; margin-bottom: 26px; font-weight: 600; text-decoration: none; color: var(--green); }
.post-placeholder-note {
  background: rgba(201,168,76,0.12); border: 1px dashed var(--gold); border-radius: 10px;
  padding: 14px 18px; font-size: 0.85rem; color: #8a6f24; margin-bottom: 30px;
}

/* ============================================================
   MODULE 13: FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: rgba(253,248,240,0.75); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.logo-placeholder {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--gold-light); margin-bottom: 14px;
}
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 0.92rem; }
.footer a { color: rgba(253,248,240,0.75); text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(253,248,240,0.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(253,248,240,0.15); padding-top: 24px; font-size: 0.8rem; }
.footer-disclaimer { margin-top: 10px; color: rgba(253,248,240,0.5); max-width: 90ch; }

/* ============================================================
   MODULE 1: FLOATING BANNER
   ============================================================ */
.floating-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  height: var(--banner-h);
  background: linear-gradient(100deg, #B8953A, var(--gold) 45%, var(--gold-light));
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 0 20px; box-shadow: 0 -8px 30px rgba(15,27,51,0.28);
  animation: banner-glow 2.8s ease-in-out infinite;
}
@keyframes banner-glow {
  0%, 100% { box-shadow: 0 -8px 30px rgba(15,27,51,0.28); }
  50% { box-shadow: 0 -8px 42px rgba(201,168,76,0.55); }
}
.banner-text { color: var(--white); font-weight: 700; font-size: 1.02rem; text-shadow: 0 1px 3px rgba(15,27,51,0.35); }
.banner-text i { margin-right: 8px; }
.banner-cta { padding: 12px 22px; }
.banner-number { font-weight: 700; }

/* ============================================================
   MODULE 7: CHATBOT — LEXI
   ============================================================ */
.chat-launcher {
  position: fixed; right: 20px; bottom: calc(var(--banner-h) + 18px); z-index: 95;
  width: 66px; height: 66px; border-radius: 50%; border: 3px solid var(--gold);
  padding: 0; overflow: visible; cursor: pointer; background: var(--navy);
  box-shadow: 0 10px 28px rgba(15,27,51,0.4);
  transition: transform 0.2s ease;
}
.chat-launcher:hover { transform: scale(1.07); }
.chat-launcher img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-pulse {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 3px solid var(--gold); animation: pulse-ring 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

.chat-window {
  position: fixed; right: 20px; bottom: calc(var(--banner-h) + 18px); z-index: 96;
  width: min(370px, calc(100vw - 32px)); height: 520px; max-height: calc(100vh - var(--banner-h) - 40px);
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-window[hidden] { display: none !important; }
.chat-header {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--white); display: flex; align-items: center; gap: 12px; padding: 14px 16px;
}
.chat-header img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: rgba(253,248,240,0.75); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; display: inline-block; }
.chat-close {
  margin-left: auto; background: none; border: none; color: rgba(253,248,240,0.8);
  font-size: 1.35rem; cursor: pointer; padding: 0;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; -webkit-tap-highlight-color: rgba(255,255,255,0.15);
}
.chat-close:hover, .chat-close:active { color: var(--white); background: rgba(255,255,255,0.1); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; background: var(--cream); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 0.92rem; line-height: 1.5; }
.msg-bot { background: var(--white); color: var(--ink); border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(15,27,51,0.08); align-self: flex-start; }
.msg-user { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-typing { display: flex; gap: 4px; align-self: flex-start; padding: 14px 16px; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.chat-quick button {
  background: rgba(201,168,76,0.12); border: 1px solid var(--gold); color: #8a6f24;
  font-size: 0.78rem; font-weight: 600; border-radius: 100px; padding: 6px 12px; cursor: pointer;
}
.chat-quick button:hover { background: rgba(201,168,76,0.25); }
.chat-input-row { display: flex; border-top: 1px solid #eee; }
.chat-input-row input { flex: 1; border: none; padding: 14px 16px; font-family: var(--font-body); font-size: 0.95rem; }
.chat-input-row input:focus { outline: none; }
.chat-input-row button {
  border: none; background: var(--green); color: var(--white); width: 54px; cursor: pointer; font-size: 1rem;
}
.chat-input-row button:hover { background: var(--green-dark); }
.chat-disclaimer { font-size: 0.68rem; color: var(--ink-soft); text-align: center; padding: 6px 10px 10px; background: var(--white); }
/* ---------- Demo-only note under closing line ---------- */
.chat-demo-note {
  align-self: flex-start; font-size: 0.72rem; color: var(--ink-soft);
  font-style: italic; margin: -4px 0 2px 2px;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MODULE 14: MOBILE OPTIMIZATION
   ============================================================ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .form-container, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .attorney-strip { grid-template-columns: 1fr; }
  .attorney-photo img { height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --banner-h: 66px; }
  .hero { min-height: 88vh; }
  .hero-ctas .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .banner-text { display: none; } /* mobile: single huge tap-to-call button */
  .banner-cta { width: 100%; max-width: 460px; font-size: 1.05rem; min-height: 52px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .chat-launcher { width: 58px; height: 58px; right: 14px; }
  .chat-window { right: 8px; height: 400px; max-height: min(400px, calc(100vh - var(--banner-h) - 24px)); }
  .specialist-callout { flex-direction: column; text-align: center; }
  .lead-form { padding: 26px 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chat-pulse, .floating-banner, .hero-scroll-hint { animation: none; }
  .hero-bg { transform: none !important; }
}
