/* Patriots Attorneys — global styles */
:root {
  --navy: #0a1628;
  --navy-mid: #132a4a;
  --slate: #1e293b;
  --muted: #94a3b8;
  --paper: #f8fafc;
  --white: #ffffff;
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --silver: #cbd5e1;
  --accent: #3b82f6;
  --danger: #b45309;
  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--paper);
  background: var(--navy);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--navy);
  z-index: 1000;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--white);
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 280px);
}

.logo-wordmark-inner {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--white);
  white-space: nowrap;
}

@media (max-width: 380px) {
  .logo-wordmark-inner {
    white-space: normal;
    max-width: 56vw;
  }
}

.logo-name--accent {
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.logo-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.58rem, 1.4vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.95);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
  justify-content: flex-end;
}

@media (min-width: 901px) {
  .nav-primary {
    display: flex;
    margin-left: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }
}

.nav-primary a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: var(--gold-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: linear-gradient(135deg, var(--gold), #a38420);
  color: var(--navy) !important;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none !important;
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: var(--navy) !important;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-primary {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-mid);
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-primary.is-open {
    max-height: 480px;
  }

  .nav-primary ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.75rem;
  }

  .nav-cta {
    justify-content: center;
  }
}

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: center;
  padding: 4rem 1.25rem 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(201, 162, 39, 0.12), transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, #0d1f3a 45%, var(--navy-mid) 100%);
  z-index: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* Home hero: motto carousel (Mayer Brown–style typographic slides) */
.hero--home {
  min-height: min(88vh, 720px);
}

.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-slides {
  position: relative;
  min-height: clamp(220px, 28vh, 300px);
  margin-bottom: 0.5rem;
}

.hero-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero-slide-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--white);
}

.hero-slide .lead,
.hero-slide-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 0.25rem;
}

.hero-carousel-footer {
  margin-top: 0.25rem;
}

.hero-carousel-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 22, 40, 0.5);
  color: var(--gold-soft);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-nav-btn:hover {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(201, 162, 39, 0.15);
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--gold), #a38420);
  color: var(--navy);
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  display: inline-flex;
  padding: 0.85rem 1.25rem;
  color: var(--silver);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.hero-panel {
  background: rgba(15, 30, 52, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-panel img {
  border-radius: 6px;
  width: 100%;
  object-fit: cover;
  max-height: 280px;
}

.hero-panel figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-head {
  padding: 3rem 1.25rem 2rem;
  background: linear-gradient(180deg, var(--navy-mid), var(--navy));
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.page-head-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0 0 0.5rem;
  color: var(--white);
}

.page-head .subtitle {
  margin: 0;
  color: var(--gold-soft);
  font-size: 1.1rem;
  max-width: 52ch;
}

.section {
  padding: 3.5rem 1.25rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.03);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--white);
  margin: 0 0 1rem;
}

.section p,
.section li {
  color: var(--muted);
}

.prose {
  max-width: 70ch;
}

.prose p {
  margin: 0 0 1rem;
}

.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.card {
  background: rgba(15, 30, 52, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.5rem;
}

.card h3 {
  font-family: var(--font-serif);
  margin-top: 0;
  color: var(--white);
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.team-card .avatar {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.team-card .role {
  color: var(--gold-soft);
  font-size: 0.9rem;
  margin: 0.25rem 0 0.75rem;
}

.callout {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  background: rgba(201, 162, 39, 0.08);
  margin: 2rem 0;
  color: var(--silver);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: block;
  font-size: 0.9rem;
  color: var(--silver);
  margin-bottom: 0.35rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 22, 40, 0.6);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 820px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.map-embed {
  border: 0;
  width: 100%;
  min-height: 280px;
  border-radius: 8px;
  filter: grayscale(0.2) contrast(1.05);
}

.site-footer {
  background: #050d18;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-cta {
  font-size: 1.05rem;
  color: var(--silver);
}

.social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.social a {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--silver);
  text-decoration: none;
  font-size: 0.85rem;
}

.social a:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--muted);
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.5rem;
  max-width: 75ch;
}

.story-list article {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.story-list article:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: var(--gold-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-weight: 700;
}

/* Printable limited POA */
.legal-doc-wrap {
  background: #cbd5e1;
  padding: 2rem 1rem 3rem;
}

.legal-document {
  max-width: 8.5in;
  margin: 0 auto;
  padding: 0.85in 0.75in 1in;
  background: var(--white);
  color: var(--slate);
  font-family: "Times New Roman", Times, serif;
  font-size: 11.5pt;
  line-height: 1.45;
  box-shadow: var(--shadow);
}

.legal-doc-header {
  text-align: center;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.legal-doc-wordmark {
  margin: 0 auto 0.35rem;
  text-align: center;
  font-family: var(--font-serif);
}

.legal-doc-wordmark-line1 {
  font-size: 18pt;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.legal-doc-wordmark-line2 {
  font-size: 14pt;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #a38420;
}

.legal-doc-tagline {
  margin: 0;
  font-size: 9.5pt;
  color: #475569;
  font-family: var(--font-sans);
}

.legal-doc-title {
  font-size: 16pt;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--navy);
  font-family: var(--font-serif);
}

.legal-doc-sub {
  font-size: 12pt;
  font-weight: 500;
  color: #334155;
}

.legal-sections {
  margin: 0;
  padding-left: 1.1rem;
}

.legal-sections > li {
  margin-bottom: 1rem;
}

.legal-sections h3 {
  font-size: 11.5pt;
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-family: var(--font-sans);
}

.legal-sections p,
.legal-sections li {
  margin: 0.35rem 0;
}

.legal-blank {
  min-height: 4.5em;
  border: 1px dashed #94a3b8;
  padding: 0.35rem 0.5rem;
  background: #f8fafc;
}

.legal-signatures {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #cbd5e1;
}

.legal-signatures-title {
  font-size: 12pt;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.sig-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .sig-grid {
    grid-template-columns: 1fr;
  }
}

.sig-line {
  margin: 0.5rem 0;
  border-bottom: 1px solid #334155;
  min-height: 1.75em;
}

.notary-block {
  margin-top: 1.5rem;
  padding: 0.75rem;
  border: 1px solid #94a3b8;
  background: #f1f5f9;
}

.notary-block h4 {
  margin: 0 0 0.5rem;
  font-size: 10.5pt;
  font-family: var(--font-sans);
}

.small-print {
  font-size: 9.5pt;
  margin: 0.35rem 0;
}

.firm-acceptance {
  margin-top: 1.25rem;
  padding: 0.75rem;
  border: 1px dashed var(--gold);
}

.legal-doc-footer {
  margin-top: 1.5rem;
  font-size: 8.5pt;
  color: #64748b;
  text-align: center;
  font-family: var(--font-sans);
}

@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .legal-doc-wrap {
    background: #fff !important;
    padding: 0 !important;
  }

  .legal-document {
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 0.5in !important;
    page-break-inside: auto;
  }

  .site-header {
    position: static !important;
    border: none !important;
  }
}
