/* Angel Family Law — Bold Modern: Deep Purple + Gold + White */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --purple: #2d1b69;
  --purple-mid: #3d2a85;
  --purple-light: #5a3fa8;
  --purple-pale: #ede9f8;
  --purple-xpale: #f7f5ff;
  --gold: #d4a843;
  --gold-bright: #f0c050;
  --gold-dark: #a8832e;
  --gold-light: #fdefc3;
  --white: #ffffff;
  --off-white: #fafafa;
  --text: #1a1a2e;
  --text-soft: #5a5470;
  --border: #e0d9f5;
  --success: #2d8a5e;
  --men-accent: #1e3a6e;
  --women-accent: #6b2d6b;
  --shadow-soft: 0 4px 24px rgba(45, 27, 105, 0.10);
  --shadow-card: 0 8px 32px rgba(45, 27, 105, 0.14);
  --shadow-hero: 0 16px 64px rgba(45, 27, 105, 0.20);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--purple);
  line-height: 1.2;
  font-weight: 700;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---- NAV ---- */
.nav {
  background: var(--purple);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.logo-icon { color: var(--gold); font-size: 1.25rem; }
.logo em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.nav-links { display: flex; gap: 1.2rem; align-items: center; }
@media (max-width: 540px) {
  .nav-links a { display: none; } /* hide About + For Attorneys on small screens */
  .nav-links { gap: 0; }
}
.nav-links a {
  color: rgba(255,255,255,0.80);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--gold-bright); }
.lang-toggle {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  color: rgba(255,255,255,0.90);
  font-weight: 600;
  transition: all 0.15s;
}
.lang-toggle:hover { background: var(--gold); color: var(--purple); border-color: var(--gold); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 50%, #1a0f4a 100%);
  padding: 3rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) {
  .hero { padding: 1rem 0 1.2rem; }
  .hero h1 { font-size: 1.55rem !important; margin-bottom: 0.6rem; line-height: 1.2; }
  .hero .sub { font-size: 0.88rem; margin-bottom: 1rem; }
  .hero-eyebrow { margin-bottom: 0.5rem; font-size: 0.7rem; letter-spacing: 1.5px; }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--white);
  line-height: 1.15;
}
.hero h1 .accent { color: var(--gold-bright); font-style: italic; }
.hero .sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.80);
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

/* ---- AUDIENCE PICKER ---- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.audience-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.2rem 1.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  color: white;
  display: block;
}
.audience-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.13);
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.audience-card.men { border-top: 3px solid #6ea8fe; }
.audience-card.women { border-top: 3px solid #f9a8d4; }
.audience-icon { font-size: 2.6rem; margin-bottom: 0.9rem; }
.audience-card h3 { font-size: 1.5rem; margin-bottom: 0.4rem; color: white; }
.audience-card p { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.5; }
.audience-card .cta {
  color: var(--gold-bright);
  font-weight: 700;
  margin-top: 1rem;
  display: inline-block;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .audience-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.audience-neutral-line {
  color: rgba(255,255,255,0.60);
  font-size: 0.92rem;
  text-align: center;
}
.audience-neutral-line a { color: var(--gold-bright); font-weight: 600; }

/* ---- STATE PICKER ---- */
.state-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 2.5rem auto 3rem;
}
.state-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.4rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  color: white;
  display: block;
}
.state-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.14);
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.state-card h3 { font-size: 1.3rem; margin-bottom: 0.25rem; color: white; }
.state-flag { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.state-card p { color: rgba(255,255,255,0.72); font-size: 0.82rem; line-height: 1.4; }
@media (max-width: 600px) {
  .state-grid { gap: 0.7rem; max-width: 100%; }
  .state-card { padding: 1.1rem 0.8rem; border-radius: 14px; }
  .state-flag { font-size: 1.6rem; margin-bottom: 0.3rem; }
  .state-card h3 { font-size: 1.1rem; }
  .state-card p { font-size: 0.78rem; }
}

@media (max-width: 600px) {
  .state-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---- CHAT SECTION ---- */
.chat-section {
  background: var(--purple-xpale);
  padding: 3rem 0 5rem;
  min-height: 80vh;
}
.chat-header-block {
  text-align: center;
  margin-bottom: 2rem;
}
.chat-header-block h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.chat-header-block p {
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto;
}
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
}
.chat-header {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  color: white;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.97rem;
}
.chat-header-title .badge {
  background: var(--gold);
  color: var(--purple);
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.chat-header-meta { font-size: 0.82rem; opacity: 0.75; }
.chat-messages {
  height: 480px;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--purple-xpale);
}
.msg {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.user { align-items: flex-end; }
.msg.assistant { align-items: flex-start; }
.msg .bubble {
  max-width: 82%;
  padding: 0.8rem 1.1rem;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.6;
}
.msg.user .bubble {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
  color: white;
  border-bottom-right-radius: 4px;
}
.msg.assistant .bubble {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-soft);
}
.msg .bubble strong { color: var(--purple); }
.msg.user .bubble strong { color: var(--gold-bright); }
.msg .bubble ul, .msg .bubble ol { margin: 0.5rem 0 0.5rem 1.4rem; }
.msg .bubble p + p { margin-top: 0.6rem; }
.typing-dots { display: inline-flex; gap: 5px; align-items: center; height: 20px; }
.typing-dots span {
  width: 8px; height: 8px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-7px); opacity: 1; }
}

/* ---- UPLOAD BUTTON ---- */
.chat-input-row {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.upload-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  color: var(--text-soft);
}
.upload-btn:hover { border-color: var(--purple-light); background: var(--purple-pale); color: var(--purple); }
#fileInput { display: none; }
.chat-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.93rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background: var(--off-white);
}
.chat-input:focus { border-color: var(--purple-light); background: white; }
.chat-send {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.chat-send:hover { opacity: 0.9; transform: scale(1.02); }
.chat-send:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---- FILE UPLOAD PREVIEW ---- */
.upload-preview {
  padding: 0.6rem 1.2rem;
  background: var(--purple-pale);
  border-top: 1px solid var(--border);
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--purple);
}
.upload-preview.visible { display: flex; }
.upload-preview-name { font-weight: 600; flex: 1; }
.upload-preview-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 1rem;
  padding: 0.1rem 0.3rem;
}
.upload-preview-remove:hover { color: crimson; }

/* ---- QUICK CHIPS ---- */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem 0.4rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.chat-chip {
  background: var(--purple-pale);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.82rem;
  color: var(--purple);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.chat-chip:hover {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}

.chat-disclaimer {
  text-align: center;
  padding: 0.65rem 1.2rem;
  font-size: 0.73rem;
  color: var(--text-soft);
  background: var(--purple-xpale);
  border-top: 1px solid var(--border);
}

/* ---- ATTORNEY CTA ---- */
.attorney-cta-block {
  max-width: 800px;
  margin: 3rem auto 0;
  background: linear-gradient(135deg, var(--purple) 0%, #1a0f4a 100%);
  color: white;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
}
.attorney-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 150%, rgba(212,168,67,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.attorney-cta-block h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}
.attorney-cta-block h3 span { color: var(--gold-bright); }
.attorney-cta-block p {
  color: rgba(255,255,255,0.80);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}
.attorney-cta-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--purple);
  padding: 1rem 2.2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(212,168,67,0.4);
  letter-spacing: 0.3px;
}
.attorney-cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(212,168,67,0.6);
}

/* ---- LEAD FORM MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 10, 45, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  box-shadow: 0 24px 80px rgba(18,10,45,0.4);
}
.modal h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.modal-sub { color: var(--text-soft); margin-bottom: 1.5rem; font-size: 0.93rem; }
.modal-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background: var(--off-white);
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus { border-color: var(--purple-light); background: white; }
.modal-form textarea { resize: vertical; min-height: 80px; }
.modal-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
  color: white;
  border: none;
  padding: 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.5rem;
  font-family: inherit;
  transition: opacity 0.15s;
}
.modal-submit:hover { opacity: 0.88; }
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: var(--text-soft);
  line-height: 1;
}
.modal-disclaimer {
  font-size: 0.73rem;
  color: var(--text-soft);
  margin-top: 1rem;
  line-height: 1.5;
  text-align: center;
}
.modal-success {
  text-align: center;
  padding: 2rem 0;
}
.modal-success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.modal-success h3 { color: var(--success); margin-bottom: 0.5rem; }

/* ---- TRUST STRIP ---- */
.trust-strip {
  background: var(--white);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}
.trust-item .icon {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(212,168,67,0.35));
}
.trust-item h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.trust-item p { color: var(--text-soft); font-size: 0.88rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--purple);
  color: rgba(255,255,255,0.70);
  padding: 3.5rem 0 2rem;
  font-size: 0.88rem;
}
footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
footer h5 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-weight: 700;
}
footer a { color: rgba(255,255,255,0.65); display: block; padding: 0.28rem 0; transition: color 0.15s; }
footer a:hover { color: var(--gold-bright); }
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.6rem;
}
.footer-brand span { color: var(--gold); }
.footer-disclaimer {
  grid-column: 1/-1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

/* ---- BACK LINK ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  margin: 1.5rem 0 0 1.5rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--purple); }

/* ---- STATE PICKER PAGE HERO ---- */
.picker-hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 100%);
  padding: 3.5rem 0 2rem;
  text-align: center;
  color: white;
}
.picker-hero h1 { color: white; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.picker-hero p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 1rem auto 0; }
