/* =================================================================
   R.O. BROWN LAW — DESIGN SYSTEM
   ================================================================= */

:root {
  /* Color palette */
  --navy: #1A2744;
  --navy-dark: #131D33;
  --navy-light: #2A3A5C;
  --gold: #C9962A;
  --gold-dark: #A77E1E;
  --warm-white: #F8F7F3;
  --off-white: #FDFCF9;
  --text: #1C1C1E;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --success: #10B981;

  /* Type scale */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* Container */
  --container-max: 1200px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);

  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
}

/* =================================================================
   BASE
   ================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 var(--space-3);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
  margin: 0 0 var(--space-3);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* =================================================================
   LAYOUT
   ================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-8) 0;
}

.section--tight {
  padding: var(--space-7) 0;
}

.section--navy {
  background: var(--navy);
  color: var(--off-white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: white;
}

.section--gray {
  background: var(--warm-white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-6);
}

.section-header h2 {
  margin-bottom: var(--space-2);
}

.section-header .lead {
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

@media (max-width: 700px) {
  .section { padding: var(--space-7) 0; }
}

/* =================================================================
   NAVBAR
   ================================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 249, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-phone {
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .nav-links,
  .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { padding: 10px 16px; font-size: 0.85rem; }
}

.mobile-menu {
  display: none;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  display: block;
  padding: var(--space-3) 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}

.mobile-menu .mobile-phone {
  display: block;
  margin-top: var(--space-3);
  text-align: center;
  font-weight: 600;
  color: var(--navy);
}

/* =================================================================
   BUTTONS
   ================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: white;
}

.btn--ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost-light:hover {
  background: white;
  color: var(--navy);
  border-color: white;
}

.btn--lg {
  padding: 18px 32px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* =================================================================
   HERO
   ================================================================= */

.hero {
  position: relative;
  background: var(--navy);
  color: white;
  padding: var(--space-8) 0 var(--space-7);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 80% 30%, rgba(201, 150, 42, 0.18), transparent 60%),
    radial-gradient(ellipse 800px 400px at 10% 80%, rgba(201, 150, 42, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-4);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  max-width: 560px;
}

.hero-cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.hero-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-dark));
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-portrait-placeholder {
  text-align: center;
  padding: var(--space-5);
  color: rgba(255, 255, 255, 0.5);
}

.hero-portrait-placeholder .initials {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .hero-portrait {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* =================================================================
   TRUST BAR
   ================================================================= */

.trust-bar {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-4) 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.trust-item .check {
  color: var(--gold);
  font-weight: 700;
}

/* =================================================================
   PRACTICE AREAS GRID
   ================================================================= */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .practice-grid { grid-template-columns: 1fr; }
}

.practice-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-decoration: none;
  color: var(--text);
  transition: all 0.22s ease;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  color: var(--text);
}

.practice-card-icon {
  width: 48px;
  height: 48px;
  background: var(--warm-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-size: 1.5rem;
}

.practice-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.practice-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
  flex: 1;
}

.practice-card .arrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

/* =================================================================
   TESTIMONIALS
   ================================================================= */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.testimonial .stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: var(--space-3);
}

.testimonial p {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.testimonial .author {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  font-style: normal;
}

/* =================================================================
   ATTORNEY BLOCK
   ================================================================= */

.attorney {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-7);
  align-items: center;
}

@media (max-width: 900px) {
  .attorney { grid-template-columns: 1fr; gap: var(--space-5); }
}

.attorney-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.attorney-photo .initials {
  font-family: var(--font-serif);
  font-size: 7rem;
  color: var(--gold);
  font-weight: 700;
}

.attorney-content h2 { margin-bottom: var(--space-3); }

.credentials {
  list-style: none;
  margin: var(--space-4) 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
}

@media (max-width: 600px) {
  .credentials { grid-template-columns: 1fr; }
}

.credentials li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.credentials li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* =================================================================
   PROCESS STEPS
   ================================================================= */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
}

.process-step {
  text-align: center;
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: white;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--space-3);
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.process-step p {
  color: var(--text-light);
}

/* =================================================================
   URGENCY BRIDGE
   ================================================================= */

.bridge {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.bridge p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: var(--space-4);
}

/* =================================================================
   CTA BAND
   ================================================================= */

.cta-band {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 800px 300px at 50% 0%, rgba(201, 150, 42, 0.15), transparent 60%);
  text-align: center;
  padding: var(--space-7) 0;
  color: white;
}

.cta-band h2 {
  color: white;
  margin-bottom: var(--space-3);
}

.cta-band-row {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* =================================================================
   LOCAL TRUST / MAP
   ================================================================= */

.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 900px) {
  .local-grid { grid-template-columns: 1fr; }
}

.map-frame {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--warm-white);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.address-block {
  font-style: normal;
  line-height: 1.8;
}

.address-block strong { color: var(--navy); display: block; margin-bottom: 4px; }

/* =================================================================
   FOOTER
   ================================================================= */

.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-7) 0 var(--space-4);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

.footer h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--space-2); }
.footer a { color: rgba(255, 255, 255, 0.75); }
.footer a:hover { color: var(--gold); }

.footer-brand .brand-name { color: white; font-size: 1.4rem; }
.footer-brand p { margin-top: var(--space-3); line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  max-width: 100%;
  margin-top: var(--space-3);
  line-height: 1.6;
}

/* =================================================================
   FORMS
   ================================================================= */

.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: var(--space-3);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 42, 0.15);
  background: white;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--font-sans);
}

.form-trust {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-4);
  padding: var(--space-3);
  background: var(--warm-white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.form-trust span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.form-trust span::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

/* =================================================================
   PAGE HEADER (inner pages)
   ================================================================= */

.page-header {
  background: var(--navy);
  color: white;
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(201, 150, 42, 0.18), transparent 60%);
}

.page-header > .container { position: relative; }

.page-header h1 { color: white; margin-bottom: var(--space-3); }
.page-header .lead { color: rgba(255, 255, 255, 0.78); max-width: 720px; margin: 0 auto; }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-3);
}

.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: white; }

/* =================================================================
   CONTENT (article / long-form)
   ================================================================= */

.content {
  max-width: 760px;
  margin: 0 auto;
}

.content h2 { margin-top: var(--space-6); }
.content h3 { margin-top: var(--space-5); }

.content ul, .content ol { padding-left: 1.25rem; margin: 0 0 var(--space-4); }
.content li { margin-bottom: var(--space-2); }

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}

.sidebar-cta {
  position: sticky;
  top: 100px;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.sidebar-cta h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

.sidebar-cta .btn { width: 100%; margin-bottom: var(--space-2); }

/* =================================================================
   FAQ ACCORDION
   ================================================================= */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: var(--space-4) 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.faq-q .icon {
  color: var(--gold);
  font-size: 1.5rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 0 var(--space-4);
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* =================================================================
   MOBILE FLOATING CTA
   ================================================================= */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 10px var(--space-3);
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  gap: 8px;
}

.mobile-cta .btn { flex: 1; padding: 12px; font-size: 0.9rem; }

@media (max-width: 700px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 70px; }
}

/* =================================================================
   UTILITIES
   ================================================================= */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.flex-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.results-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}

@media (max-width: 700px) {
  .results-stats { grid-template-columns: repeat(2, 1fr); }
}

.stat .num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.stat .label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* =================================================================
   WORLD-CLASS UPGRADES � animations, components, polish
   ================================================================= */

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: white; }

/* Focus rings � refined */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reading progress bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.16s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.24s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Decorative gold underline accent */
.accent-bar {
  display: inline-block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* Hero portrait card (framed photo + caption + badge) */
.hero-portrait {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4), 0 10px 30px -10px rgba(201,150,42,0.25);
  background: linear-gradient(155deg, #2A3A5C 0%, #1A2744 100%);
  padding: 36px 28px 88px;
  max-width: 380px;
  margin-left: auto;
  text-align: center;
  border: 1px solid rgba(201,150,42,0.18);
  aspect-ratio: auto;
  display: block;
}
.hero-portrait svg { width: 100%; height: 100%; display: block; }
.hero-portrait-frame {
  width: 220px;
  height: 280px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #f4ede0;
  border: 3px solid var(--gold);
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}
.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
  display: block;
}
.hero-portrait-caption {
  margin-top: 18px;
  color: white;
}
.hero-portrait-caption .hpc-name {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero-portrait-caption .hpc-title {
  margin-top: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 15%, rgba(201,150,42,0.18), transparent 65%);
  pointer-events: none;
}
.hero-portrait-badge {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.97);
  color: var(--navy);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hero-portrait-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

/* Trust badge row */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 1.5rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.trust-badge svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold); }

/* Icon system */
.icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 36px; height: 36px; }
.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,150,42,0.14), rgba(201,150,42,0.04));
  border: 1px solid rgba(201,150,42,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Practice cards icon-driven (overrides emoji feel) */
.practice-card .icon-circle { transition: transform 0.3s ease, background 0.3s ease; }
.practice-card:hover .icon-circle {
  transform: scale(1.06) rotate(-3deg);
  background: linear-gradient(135deg, rgba(201,150,42,0.22), rgba(201,150,42,0.08));
}

/* Animated stat counter */
.stat .stat-number {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* Testimonial carousel */
.testimonial-carousel {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.testimonial-track {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
}
.testimonial-slide {
  min-width: 100%;
  padding: 2.5rem;
  background: white;
  border: 1px solid var(--border);
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.testimonial-stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 0.1em; }
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--navy);
  font-style: italic;
  font-weight: 600;
}
.testimonial-attrib {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: auto;
}
.testimonial-attrib strong { color: var(--navy); font-weight: 600; }
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.testimonial-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.testimonial-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.testimonial-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* Multi-step form */
.form-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.form-step-pill {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  transition: background 0.3s ease;
}
.form-step-pill.active { background: var(--gold); }
.form-step-pill.complete { background: var(--success); }
.form-step { display: none; animation: fadeIn 0.35s ease; }
.form-step.active { display: block; }
.form-step h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form-step-counter {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Choice cards (form step 1) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  background: white;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
}
.choice-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.choice-card.selected {
  border-color: var(--gold);
  background: rgba(201,150,42,0.05);
  box-shadow: 0 0 0 3px rgba(201,150,42,0.15);
}
.choice-card svg { color: var(--gold); width: 22px; height: 22px; }
.choice-card strong { font-weight: 600; color: var(--navy); }
.choice-card span { font-size: 0.8rem; color: var(--text-light); }
@media (max-width: 540px) {
  .choice-grid { grid-template-columns: 1fr; }
}

/* FAQ search */
.faq-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.faq-search input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  background: white;
  font-family: inherit;
  transition: all 0.2s ease;
}
.faq-search input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,150,42,0.15);
}
.faq-search svg {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-light);
}
.faq-no-results {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  display: none;
}
.faq-no-results.show { display: block; }
.faq-item.hidden { display: none; }

/* Quick connect floating widget */
.quick-connect {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.quick-connect-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  box-shadow: 0 8px 24px rgba(201,150,42,0.4), 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.quick-connect-toggle:hover { transform: scale(1.08); }
.quick-connect-toggle svg { width: 26px; height: 26px; }
.quick-connect-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  background: white;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  min-width: 240px;
  animation: fadeIn 0.25s ease;
}
.quick-connect.open .quick-connect-menu { display: flex; }
.quick-connect-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s ease;
}
.quick-connect-menu a:hover { background: var(--warm-white); color: var(--navy); }
.quick-connect-menu a svg { width: 18px; height: 18px; color: var(--gold); }
.quick-connect-menu .qc-header {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 4px 12px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
@media (max-width: 700px) {
  .quick-connect { bottom: 84px; right: 14px; }
  .quick-connect-toggle { width: 52px; height: 52px; }
}

/* Back to top */
.back-top {
  position: fixed;
  right: 20px; bottom: 92px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 89;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top svg { width: 18px; height: 18px; }
@media (max-width: 700px) {
  .back-top { bottom: 150px; right: 14px; }
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-4);
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,150,42,0.3);
}
.blog-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}
.blog-card-image svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.blog-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.blog-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.blog-card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.9rem;
}

/* Article body */
.article {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
}
.article h2 { margin-top: 2.5rem; }
.article h3 { margin-top: 2rem; font-size: 1.25rem; }
.article blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}
.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-code {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* Print */
@media print {
  .navbar, .footer, .mobile-cta, .quick-connect, .back-top, .read-progress { display: none !important; }
  body { font-size: 11pt; color: black; background: white; }
  a { color: black; text-decoration: underline; }
  .section { padding: 1rem 0; }
  .hero { background: white; color: black; padding: 1rem 0; }
}

/* =================================================================
   MOBILE POLISH (final pass)
   ================================================================= */

/* Real photo: keep face in frame when forced into 4:5 hero ratio */
.hero-portrait img,
.attorney-photo img {
  object-position: center top;
}

/* Eliminate horizontal overflow on tiny screens */
html, body { overflow-x: hidden; max-width: 100%; }

/* Ensure all interactive targets are >= 44px (iOS HIG / WCAG 2.5.5) */
.btn, .nav-toggle, .mobile-menu a, .footer-grid a, .nav-links a {
  min-height: 44px;
}
.btn { display: inline-flex; align-items: center; justify-content: center; }

/* Tap feedback */
a, button { -webkit-tap-highlight-color: rgba(201,150,42,0.18); }

/* Responsive media defaults */
img, svg, video, iframe { max-width: 100%; height: auto; }
iframe { border: 0; }

/* Forms: prevent iOS zoom-on-focus by keeping input font-size >= 16px */
input, select, textarea {
  font-size: 16px;
}

/* Tablet & phone refinements */
@media (max-width: 900px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .hero .lead, .hero p { font-size: 1.05rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta-row .btn { width: 100%; }
  .section-header h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
  .trust-bar-inner { gap: var(--space-3); font-size: 0.85rem; }
  .trust-item { flex: 1 1 45%; justify-content: center; }
  .footer-grid { gap: var(--space-5); }
}

@media (max-width: 600px) {
  :root { --space-7: 3rem; --space-6: 2.25rem; }
  .container { padding-left: 16px; padding-right: 16px; }
  .practice-grid, .blog-grid, .choice-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 280px; }
  .stats-row, .stat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: var(--space-3); }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .testimonial-carousel { padding: var(--space-4); }
  .breadcrumb { font-size: 0.85rem; flex-wrap: wrap; }
}

/* Respect safe-area on notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-cta { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* Hero portrait responsive */
@media (max-width: 600px) {
  .hero-portrait { max-width: 320px; padding: 28px 20px 80px; }
  .hero-portrait-frame { width: 180px; height: 230px; }
  .hero-portrait-caption .hpc-name { font-size: 1.2rem; }
}

/* About-page portrait override */
.about-portrait {
  aspect-ratio: auto !important;
  background: linear-gradient(155deg, #2A3A5C 0%, #1A2744 100%);
  padding: 32px 24px;
  display: block !important;
  border: 1px solid rgba(201,150,42,0.18);
}
.about-portrait .hpc-name { color: #fff; }
