/* ============================================================
   Robert Davis, P.A. — Shared Stylesheet
   Palette: Navy #1B2A4E | Brown #7A4F2C | Cream #F8F4EC | White #FFFFFF
   Font: Helvetica / system stack
   ============================================================ */

:root {
  --navy:  #1B2A4E;
  --brown: #7A4F2C;
  --cream: #F8F4EC;
  --white: #FFFFFF;
  --slate: #8a9ab8;
  --dark:  #3a4a6a;
  --text:  #222;
  --light-border: #ddd4c4;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(27,42,78,.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--brown); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce-bar {
  background: var(--brown);
  color: var(--white);
  text-align: center;
  font-size: .82rem;
  padding: .45rem 1rem;
  letter-spacing: .03em;
}
.announce-bar a { color: var(--white); font-weight: 700; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { text-decoration: none; }
.logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.logo-tag {
  font-size: .72rem;
  color: var(--brown);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a {
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
  padding: .45rem .7rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.site-nav a:hover { background: var(--cream); text-decoration: none; }
.site-nav a.active { color: var(--brown); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
  padding: .45rem .7rem;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-dropdown-toggle:hover { background: var(--cream); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--light-border);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: .55rem 1rem;
  font-size: .82rem;
  color: var(--navy);
  border-bottom: 1px solid var(--cream);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a span {
  display: block;
  font-size: .7rem;
  color: var(--slate);
  font-weight: 400;
}

/* CTA button in header */
.header-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: .5rem 1rem !important;
  border-radius: var(--radius);
  font-size: .82rem !important;
  white-space: nowrap;
}
.header-cta:hover { background: var(--dark) !important; text-decoration: none !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--navy);
  padding: .25rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--light-border);
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: .75rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--brown); font-style: italic; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--dark);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  display: inline-block;
}
.btn-primary:hover { background: var(--dark); text-decoration: none; color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  display: inline-block;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn-brown {
  background: var(--brown);
  color: var(--white);
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  display: inline-block;
}
.btn-brown:hover { background: #5a3a1e; text-decoration: none; color: var(--white); }

/* Practice area hero (interior pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1.5rem;
}
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-hero .breadcrumb {
  font-size: .78rem;
  color: var(--slate);
  margin-bottom: .75rem;
}
.page-hero .breadcrumb a { color: var(--slate); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.page-hero h1 em { color: var(--slate); font-style: italic; }
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  max-width: 680px;
  margin-bottom: 1.5rem;
}
.page-hero .statute-tag {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--slate);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1rem;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  display: block;
}
.stat-label {
  font-size: .75rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================================
   ATTORNEY CARD
   ============================================================ */
.attorney-card {
  background: var(--cream);
  border-left: 4px solid var(--brown);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 360px;
}
.attorney-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brown);
  margin-bottom: .5rem;
}
.attorney-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .25rem;
}
.attorney-title {
  font-size: .85rem;
  color: var(--dark);
  font-style: italic;
  margin-bottom: 1rem;
}
.attorney-table { width: 100%; font-size: .82rem; border-collapse: collapse; }
.attorney-table td { padding: .3rem 0; vertical-align: top; }
.attorney-table td:first-child { color: var(--slate); width: 55px; font-weight: 600; }
.attorney-table td:last-child { color: var(--navy); font-weight: 500; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 4rem 1.5rem; }
.section-cream { background: var(--cream); }
.section-navy  { background: var(--navy); color: var(--white); }
.section-white { background: var(--white); }

.section-inner { max-width: 1100px; margin: 0 auto; }
.section-narrow { max-width: 820px; margin: 0 auto; }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: .5rem;
  display: block;
}
.section-navy .section-label { color: var(--slate); }

.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section h2 em { color: var(--brown); font-style: italic; }
.section-navy h2 { color: var(--white); }
.section-navy h2 em { color: var(--slate); }

.section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}

.section p { margin-bottom: 1rem; color: var(--dark); }
.section-navy p { color: rgba(255,255,255,.85); }

/* ============================================================
   PRACTICE AREA GRID (homepage)
   ============================================================ */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.practice-card {
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
  display: block;
  transition: background .15s, color .15s;
}
.practice-card:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}
.practice-card span {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: var(--slate);
  margin-top: .2rem;
}
.practice-card:hover span { color: rgba(255,255,255,.7); }

/* ============================================================
   WHY CARDS
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.why-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--navy);
}
.why-num {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brown);
  margin-bottom: .5rem;
}
.why-card h3 { color: var(--navy); margin-bottom: .5rem; }
.why-card p { font-size: .88rem; margin: 0; }

/* ============================================================
   CONTENT LAYOUT (interior pages)
   ============================================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.content-main h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2rem 0 .75rem;
  padding-top: .5rem;
  border-top: 2px solid var(--cream);
}
.content-main h2:first-child { margin-top: 0; border-top: none; }
.content-main p { margin-bottom: 1rem; line-height: 1.7; }
.content-main ul { margin: .5rem 0 1rem 1.5rem; }
.content-main li { margin-bottom: .4rem; line-height: 1.65; }

/* Sidebar */
.content-sidebar { position: sticky; top: 80px; }
.sidebar-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.sidebar-cta h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: .5rem;
}
.sidebar-cta p { font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 1.25rem; }
.sidebar-cta a.btn-primary { display: block; margin-bottom: .75rem; }
.sidebar-cta .phone-big {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  display: block;
}
.sidebar-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 3px solid var(--brown);
  font-size: .85rem;
}
.sidebar-box h4 { color: var(--navy); font-size: .9rem; margin-bottom: .75rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { padding: .35rem 0; border-bottom: 1px solid var(--light-border); }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { color: var(--navy); font-size: .82rem; }
.sidebar-box a:hover { color: var(--brown); }

/* ============================================================
   CASE RESULTS TABLE
   ============================================================ */
.results-table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.results-table th {
  background: var(--navy);
  color: var(--white);
  padding: .65rem 1rem;
  text-align: left;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.results-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--light-border); }
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:nth-child(even) td { background: var(--cream); }
.result-badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.badge-dismissed  { background: #d4edda; color: #155724; }
.badge-notguilty  { background: #cce5ff; color: #004085; }
.badge-reduced    { background: #fff3cd; color: #856404; }
.badge-sealed     { background: #e2e3e5; color: #383d41; }
.badge-acquitted  { background: #cce5ff; color: #004085; }
.badge-nocharges  { background: #d4edda; color: #155724; }
.badge-diversion  { background: #fff3cd; color: #856404; }

.disclaimer-note {
  font-size: .78rem;
  color: var(--slate);
  margin-top: 1rem;
  font-style: italic;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--brown);
  box-shadow: var(--shadow);
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: .92rem;
  line-height: 1.7;
}
.testimonial-card cite {
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.testimonial-card cite span {
  display: block;
  font-weight: 400;
  color: var(--slate);
  font-size: .75rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  border-bottom: 1px solid var(--light-border);
  padding: 1.25rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--light-border); }
.faq-q {
  font-weight: 700;
  color: var(--navy);
  font-size: .97rem;
  margin-bottom: .6rem;
  cursor: pointer;
}
.faq-a { font-size: .9rem; color: var(--dark); line-height: 1.7; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea { min-height: 110px; resize: vertical; }
.btn-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: .85rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}
.btn-submit:hover { background: var(--dark); }

.contact-info h3 { color: var(--navy); margin-bottom: 1rem; }
.contact-row { display: flex; gap: .75rem; margin-bottom: .85rem; align-items: flex-start; }
.contact-row-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--slate);
  min-width: 55px;
  padding-top: .15rem;
}
.contact-row-value { font-size: .9rem; color: var(--dark); }
.contact-row-value a { color: var(--navy); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo-name { color: var(--white); font-size: 1rem; }
.footer-brand .logo-tag  { color: var(--slate); }
.footer-brand p {
  font-size: .82rem;
  margin-top: .75rem;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
}
.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate);
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.1);
  margin: 0 0 1.25rem;
}
.footer-legal {
  font-size: .72rem;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
}
.footer-legal strong { color: rgba(255,255,255,.6); }

/* ============================================================
   MOBILE STICKY BAR
   ============================================================ */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  z-index: 300;
  padding: .75rem 1rem;
  gap: .5rem;
}
.mobile-sticky a {
  flex: 1;
  text-align: center;
  padding: .65rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .85rem;
  color: var(--white);
  background: var(--brown);
}
.mobile-sticky a:hover { text-decoration: none; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--cream);
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
  padding: .75rem 1.5rem;
  text-align: center;
  font-size: .78rem;
  color: var(--dark);
  font-weight: 600;
  letter-spacing: .03em;
}

/* ============================================================
   BREADCRUMB (inline, non-hero pages)
   ============================================================ */
.breadcrumb-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--light-border);
  padding: .5rem 1.5rem;
  font-size: .78rem;
  color: var(--slate);
}
.breadcrumb-bar a { color: var(--navy); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--light-border); padding: 1rem; box-shadow: var(--shadow); }
  .menu-toggle { display: block; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-dropdown-menu { position: static; border: none; box-shadow: none; padding-left: 1rem; }
  .mobile-sticky { display: flex; }
  body { padding-bottom: 60px; }
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 1rem; }
  .section { padding: 2.5rem 1rem; }
  .page-hero { padding: 2rem 1rem; }
}

@media (max-width: 420px) {
  .practice-grid { grid-template-columns: 1fr; }
}
