/* Shane Kennedy Law — brand: medium gray + soft light blue (logo) */

:root {
  /* mapped names kept so existing rules keep working */
  --navy: #4a5560;          /* logo gray (ink) */
  --navy-deep: #3a434c;
  --charcoal: #4a5560;
  --cream: #f4f7fb;         /* cool light wash */
  --cream-dark: #e6edf5;
  --gold: #8ba9d4;          /* logo light blue (accent/CTA) */
  --gold-hover: #6f92c4;
  --gold-soft: #c5d6eb;
  --white: #ffffff;
  --text: #3d4650;
  --text-muted: #66707a;
  --border: #d5dde8;
  --success: #2d5a3d;
  --header-ink: #4a5560;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
  --header-h: 92px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(74, 85, 96, 0.10);
  --shadow-lg: 0 8px 28px rgba(74, 85, 96, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--gold-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
  margin-top: 0;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2rem); margin-bottom: 0.85rem; margin-top: 2rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; margin-top: 1.5rem; }

p { margin: 0 0 1.1rem; }

ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
li { margin-bottom: 0.45rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--header-ink);
  box-shadow: 0 2px 10px rgba(74, 85, 96, 0.25);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}
.header-inner .logo {
  flex: 0 0 auto;
}
.header-inner .main-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.header-inner .main-nav ul {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 1.5rem;
  width: 100%;
  max-width: 46rem;
}
.header-inner .nav-toggle {
  margin-left: auto;
}
.header-actions {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.header-contact {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  white-space: nowrap;
  background: var(--white);
}
.header-contact:hover {
  background: var(--cream);
  border-color: var(--gold-hover);
  color: var(--gold-hover) !important;
}
.nav-mobile-only { display: none; }

.logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--gold-soft); }
.logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  white-space: nowrap;
  border: none;
}
.header-cta:hover {
  background: var(--gold-hover);
  color: var(--white) !important;
}

.mobile-phone-bar {
  display: none;
  background: var(--navy);
  text-align: center;
  padding: 0.5rem;
}
.mobile-phone-bar a {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}

/* —— Hero —— */
.hero {
  background: linear-gradient(145deg, #5a6a7a 0%, #6b8499 45%, #8ba9d4 100%);
  color: var(--white);
  padding: 3.5rem 0 3.75rem;
}

.hero h1 { color: var(--white); }
.hero .lead {
  font-size: 1.15rem;
  max-width: none;
  color: var(--cream);
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: rgba(196, 163, 90, 0.15);
  color: var(--gold-soft);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
}

/* —— Sections —— */
.section { padding: 3rem 0; }
.section-alt { background: var(--cream); }
.section-navy {
  background: var(--navy);
  color: var(--cream);
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy a { color: var(--gold-soft); }

.lead { font-size: 1.12rem; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* —— Cards / grids —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
  margin-top: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card h3 { margin-top: 0; font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
.card a.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
}
.card a.card-link:hover { color: var(--gold-hover); }

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.practice-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.practice-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.practice-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}
.practice-list a:hover { color: var(--gold-hover); }
.practice-list span { color: var(--text-muted); font-size: 0.9rem; }

/* —— Page header (inner pages) —— */
.page-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0 2rem;
}
.page-header .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.page-header .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.page-header .breadcrumb a:hover { color: var(--navy); }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header .intro {
  max-width: none;
  color: var(--text-muted);
  margin: 0;
  font-size: 1.08rem;
}

.content-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 3.5rem;
}

.prose > *:first-child { margin-top: 0; }

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.sidebar-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
}
.sidebar-box h2, .sidebar-box h3 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
}
.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-box li { margin-bottom: 0.4rem; }
.sidebar-box a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.sidebar-cta {
  background: var(--navy);
  color: var(--cream);
  border: none;
}
.sidebar-cta h2, .sidebar-cta h3 { color: var(--white); }
.sidebar-cta p { color: var(--cream-dark); font-size: 0.95rem; }
.sidebar-cta .btn { width: 100%; margin-top: 0.5rem; }
.sidebar-cta .phone-lg {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-soft);
  text-decoration: none;
  margin: 0.5rem 0 0.85rem;
}

/* —— FAQ —— */
.faq-list { margin: 1.5rem 0 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  padding: 0 1.15rem 1.15rem;
  color: var(--text-muted);
}
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* —— Contact form —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0 3.5rem;
}

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.contact-info-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.contact-info-list strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-hover);
  margin-bottom: 0.25rem;
}
.contact-info-list a { text-decoration: none; font-weight: 600; }

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--cream);
  padding: 2.75rem 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
  text-align: center;
}
.cta-band p {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  color: var(--cream-dark);
  text-align: center;
}
.cta-band .hero-actions { justify-content: center; }

/* —— Counties strip —— */
.counties-strip {
  background: var(--cream-dark);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.counties-strip strong { color: var(--navy); }

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream-dark);
  padding: 3rem 0 1.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 {
  color: var(--gold);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}
.site-footer a {
  color: var(--cream);
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-nap { line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(247, 243, 235, 0.65);
}
.phone-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }


/* —— Photos / placeholders —— */
.photo-frame {
  margin: 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-frame figcaption {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.75rem 1rem 1rem;
  text-align: center;
  font-family: var(--font-serif);
}
.about-photo {
  max-width: 280px;
  margin: 0 0 1.5rem;
}
.about-bio-with-photo {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
  margin: 1.5rem 0 1.75rem;
}
.about-bio-with-photo .about-photo {
  margin: 0;
  max-width: none;
}
.about-bio-with-photo .about-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-photo figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  line-height: 1.35;
}
.about-photo .caption-name {
  display: block;
}
.about-photo .caption-title {
  display: block;
  white-space: nowrap;
}
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
  border: 1px solid rgba(196, 163, 90, 0.35);
}
.meet-attorney {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}
.meet-attorney .hero-photo-grid,
.meet-attorney .photo-frame {
  margin: 0;
  width: 140px;
}
.meet-attorney img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
}
.meet-attorney h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}
.meet-attorney p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.office-photo {
  margin: 0 0 1.5rem;
  max-width: 100%;
}
.office-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-photo-grid {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .about-bio-with-photo {
    grid-template-columns: 1fr;
  }
  .about-bio-with-photo .about-photo {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-photo figcaption {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .meet-attorney {
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    padding: 1rem;
  }
  .meet-attorney img,
  .meet-attorney .photo-frame {
    width: 100px;
  }
  .meet-attorney img {
    height: 100px;
  }
}



/* —— Practice page visuals —— */
.page-visual {
  margin: 0 auto 0;
  padding: 0 0 0.25rem;
  max-width: 1100px;
}
.page-visual figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(74, 85, 96, 0.08);
  background: var(--cream);
}
.page-visual img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}
.page-visual--compact img {
  max-height: 320px;
}
.teaser-page .page-visual {
  margin-bottom: 1.25rem;
  max-width: 40rem;
}
.teaser-page .page-visual img {
  max-height: 260px;
}

/* —— Short teaser pages (e.g. Personal Injury) —— */
.teaser-page {
  padding: 2rem 0 2.5rem;
  max-width: 40rem;
}
.teaser-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  text-align: center;
}
.teaser-card p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}
.teaser-card .phone-lg {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin: 0 0 1.25rem;
}
.teaser-card .hero-actions {
  justify-content: center;
  margin-bottom: 1.25rem;
}
.teaser-meta {
  font-size: 0.9rem !important;
  margin-bottom: 0 !important;
}
.teaser-meta a {
  font-weight: 600;
  text-decoration: none;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .two-col,
  .content-wrap,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { position: relative; }
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 120;
    margin-left: auto;
  }
  /* Higher specificity so closed state beats .header-inner .main-nav { display:flex } */
  .header-inner .main-nav,
  .site-header .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(58, 67, 76, 0.18);
    padding: 0.5rem 0.75rem 1rem;
    z-index: 100;
    flex: none;
    width: 100%;
  }
  .header-inner .main-nav.is-open,
  .site-header .main-nav.is-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a {
    display: block;
    padding: 0.95rem 0.75rem;
    border-bottom: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
  }
  .header-cta { display: none; }
  .mobile-phone-bar { display: block; }
  .hero { padding: 2.5rem 0 2.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (min-width: 769px) {
  .main-nav { display: block !important; }
}

@media print {
  .site-header, .mobile-phone-bar, .cta-band, .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}


/* === Brand logo + light header (logo theme) === */
.site-header {
  background: var(--white) !important;
  color: var(--navy) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy) !important;
  text-decoration: none;
}
.site-header .logo img {
  height: 88px;
  width: auto;
  display: block;
}
.site-header .logo .logo-text {
  display: none !important; /* logo mark only — wordmark lives in the image */
}
.site-header .logo .logo-text span {
  display: none !important;
}
.site-header .main-nav a {
  color: var(--navy) !important;
}
.site-header .main-nav a:hover,
.site-header .main-nav a[aria-current="page"] {
  color: var(--gold-hover) !important;
}
.site-header .header-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  border-color: var(--gold) !important;
}
.site-header .header-cta:hover {
  background: var(--gold-hover) !important;
}
.mobile-phone-bar {
  background: var(--navy) !important;
  color: var(--white) !important;
}
.mobile-phone-bar a { color: var(--white) !important; }
@media (max-width: 900px) {
  .site-header .logo .logo-text { display: none !important; }
  .site-header .logo img { height: 68px; }
}


/* === Mobile nav readability (light header) === */
@media (max-width: 768px) {
  .site-header .nav-toggle {
    background: var(--cream) !important;
    border: 1px solid var(--navy) !important;
    color: var(--navy) !important;
  }
  .site-header .main-nav {
    background: var(--white) !important;
    border-top: 1px solid var(--border) !important;
  }
  .site-header .main-nav a {
    color: var(--navy) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
  }
  .site-header .main-nav a:hover,
  .site-header .main-nav a[aria-current="page"] {
    color: var(--gold-hover) !important;
    background: var(--cream) !important;
  }
}


/* Homepage family-law feature photo */
.home-feature-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.home-feature-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.home-feature-photo figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.home-feature-photo figcaption a {
  font-weight: 600;
  color: var(--navy);
}
.practice-list-home {
  margin-top: 1.75rem;
}
@media (max-width: 768px) {
  .home-help {
    grid-template-columns: 1fr;
  }
}

/* Full-width justified body copy (sitewide) */
p,
.lead,
.intro,
.prose p,
.card p,
.meet-attorney p,
.home-feature-photo figcaption,
li,
.practice-list span,
.page-header .intro,
.section p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
/* Keep short UI / nav / headings left-aligned */
.site-header,
.site-header *,
.main-nav,
.nav-toggle,
.mobile-phone-bar,
.mobile-phone-bar a,
.footer-grid a,
.btn,
.header-cta,
.card-link,
.eyebrow,
h1, h2, h3, h4, h5, h6,
.hero-actions,
.breadcrumb,
label,
button,
input, textarea, select {
  text-align: left;
}
.hero h1,
.page-header h1,
.cta-band h2,
.cta-band p,
.text-center,
.text-center p,
.lead.text-center,
.eyebrow.text-center {
  text-align: center !important;
}


/* Header: logo left | centered nav | Call+Contact right */
@media (min-width: 769px) {
  .site-header .header-inner {
    justify-content: flex-start;
    gap: 1rem;
  }
  .site-header .main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }
  .site-header .main-nav ul {
    justify-content: center;
    width: 100%;
    column-gap: 1.55rem;
  }
  .site-header .header-actions {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .header-actions { display: none !important; }
  .nav-mobile-only { display: list-item !important; }
}

.site-header .header-contact {
  border-color: var(--navy) !important;
  color: var(--navy) !important;
}
.site-header .header-contact:hover {
  border-color: var(--gold-hover) !important;
  color: var(--gold-hover) !important;
  background: var(--cream) !important;
}


/* Home hero: full-width copy + headshot beside */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr);
  gap: 2.5rem 3rem;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy .lead {
  max-width: none;
}
.hero-copy h1 {
  max-width: none;
  margin-bottom: 1rem;
}
.hero-photo {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 26rem;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.55);
  box-shadow: 0 16px 40px rgba(40, 48, 56, 0.35);
  background: rgba(255,255,255,0.12);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero-photo {
    justify-self: center;
    max-width: 16rem;
    order: -1;
  }
}


/* —— Homepage section titles (How We Help / What to Expect / Practice Areas) —— */
.section-heading {
  font-size: clamp(1.9rem, 4.2vw, 2.45rem);
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 700;
  position: relative;
  padding-bottom: 0.7rem;
}
.section-heading::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.section-heading.text-center::after {
  margin-left: auto;
  margin-right: auto;
}
.section-subhead {
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0 0 1.35rem;
  font-weight: 500;
  max-width: 42rem;
}
.section-heading.text-center + .section-subhead,
.section-subhead.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* —— Inner pages: soft color banding (less flat white) —— */
main:has(.page-header) {
  background: var(--cream);
}
.page-header {
  background: linear-gradient(135deg, #d9e4f0 0%, #e8eef6 48%, #f4f7fb 100%);
  border-bottom: 1px solid var(--border);
}
.page-visual,
.page-visual {
  background: transparent;
  padding-top: 1.35rem;
  padding-bottom: 0.25rem;
}
.content-wrap,
.content-wrap {
  padding-top: 1.75rem;
  padding-bottom: 3.25rem;
}
.prose,
.prose {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem 1.85rem 2rem;
  box-shadow: 0 6px 22px rgba(74, 85, 96, 0.07);
}
.prose h2,
.prose h2 {
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  position: relative;
}
.prose h2:first-child,
.prose h2:first-child { margin-top: 0; }
.prose h2::after,
.prose h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.sidebar-box,
.sidebar-box {
  background: #eef3f9;
  border-color: #d0dbe8;
}
.sidebar-cta,
.sidebar-cta {
  background: linear-gradient(145deg, var(--navy-deep), var(--navy));
}

/* Contact page cards on cream wash */
.contact-grid {
  padding-top: 1.75rem;
  padding-bottom: 3.25rem;
}
.contact-grid > div {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.6rem 1.65rem;
  box-shadow: 0 6px 22px rgba(74, 85, 96, 0.07);
}
.contact-grid h2 {
  color: var(--navy);
  padding-bottom: 0.5rem;
  margin-top: 0;
}
.contact-grid h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

/* Personal Injury teaser */
.teaser-page,
.teaser-page {
  background: transparent;
  max-width: none;
  padding: 1.75rem 0 3rem;
}
.teaser-card,
.teaser-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 6px 22px rgba(74, 85, 96, 0.07);
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.75rem 1.75rem 1.5rem;
}
.teaser-card h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 0.55rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
@media (max-width: 768px) {
  .prose,
  .prose {
    padding: 1.25rem 1.15rem 1.5rem;
  }
  .contact-grid > div {
    padding: 1.25rem 1.15rem 1.4rem;
  }
}


/* Clio Grow intake CTA on Contact */
.intake-panel {
  background: var(--card, #fff);
  border: 1px solid rgba(45, 62, 80, 0.12);
  border-radius: 12px;
  padding: 1.35rem 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(30, 45, 60, 0.06);
}
.intake-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink, #243447);
}

.intake-panel .btn-outline {
  color: var(--navy);
  border-color: var(--navy);
  background: #fff;
}
.intake-panel .btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
}
