:root {
  --navy: #041133; /* matched to logo background for a seamless header blend */
  --navy-dark: #02091f;
  --forest: #1f3d2b;
  --champagne: #d8c29a;   /* decorative only — never as text-on-white, fails AA contrast */
  --gold: #8c714a;        /* darkened champagne so text/buttons meet 4.5:1 on white */
  --gold-hover: #6f5738;
  --ivory: #f7f4ef;
  --text: #2a2a2a;
  --muted: #595959;
  --white: #ffffff;
  --radius: 4px;
  --max-width: 1140px;
  --focus-ring: #ffbf47;
}

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

/* Visible focus indicator for keyboard navigation (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--navy);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 4px 0;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
}
.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 16px;
}

.logo {
  color: var(--white);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.logo span { color: var(--champagne); }
.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 500px) {
  .logo-img { height: 52px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--champagne);
  border-bottom-color: var(--champagne);
}

.nav-phone a {
  border-bottom: none !important;
  white-space: nowrap;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.nav-cta a {
  border-bottom: none !important;
  background: var(--gold);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta a:hover, .nav-cta a:focus-visible { background: var(--gold-hover); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 500px; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links a { display: block; padding: 16px 24px; border-bottom: none; }
  .nav-cta { padding: 16px 24px; }
  .nav-cta a { display: block; text-align: center; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background:
    linear-gradient(rgba(4,17,51,0.35), rgba(4,17,51,0.35)),
    url("../img/sycamore-tree-field.jpg");
  background-size: cover;
  background-position: center 35%;
  color: var(--white);
  padding: 110px 24px;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  max-width: 800px;
  margin: 0 auto 32px;
}

.hero p {
  color: var(--ivory);
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}

.hero .btn-primary {
  padding: 18px 44px;
  font-size: 1.05rem;
}

.trust-markers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 56px;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--champagne);
  letter-spacing: 0.03em;
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 70px 24px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.2rem; }
.page-hero p { color: var(--ivory); margin-top: 12px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(111,87,56,0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Sections */
section { padding: 80px 24px; }
section[id] { scroll-margin-top: 90px; }
.section-cream { background: var(--ivory); }
.section-forest { background: var(--forest); color: var(--white); }
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest p { color: var(--ivory); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-header .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-family: Arial, sans-serif;
  display: block;
  margin-bottom: 10px;
}
.section-header h2 { font-size: 2rem; margin-bottom: 14px; }
.section-header p { color: var(--muted); font-family: Arial, sans-serif; }

/* Grid layouts */
.grid {
  display: grid;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 800px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid #e5e0d4;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 10px 30px rgba(11,26,51,0.08);
  transform: translateY(-3px);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.95rem; }

/* Practice-area index cards (link to full templates) */
.practice-card {
  display: block;
  background: var(--white);
  border: 1px solid #e5e0d4;
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.practice-card:hover, .practice-card:focus-visible {
  box-shadow: 0 10px 30px rgba(11,26,51,0.1);
  transform: translateY(-3px);
}
.practice-card h3 { margin-bottom: 10px; }
.practice-card p { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.92rem; margin-bottom: 14px; }
.practice-card .link-arrow { color: var(--gold); font-family: Arial, sans-serif; font-size: 0.85rem; font-weight: bold; }

/* Attorney cards */
.attorney-card {
  background: var(--white);
  border: 1px solid #e5e0d4;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.attorney-photo {
  width: 100%;
  height: auto;
  display: block;
}
.attorney-photo.placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--forest) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne);
  font-size: 3rem;
  font-family: Georgia, serif;
  height: 220px;
}
.attorney-card .info { padding: 24px; }
.attorney-card h3 { margin-bottom: 4px; }
.attorney-card .title { color: var(--gold); font-family: Arial, sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.attorney-card p { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.92rem; }

/* Testimonials */
.testimonial {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  font-style: italic;
  color: var(--text);
}
.testimonial .author {
  margin-top: 16px;
  font-style: normal;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: bold;
}

/* Forms */
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  margin-bottom: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d2c4;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--gold);
}

.required-mark {
  color: #a3241f;
}
textarea { resize: vertical; min-height: 130px; }

.form-note {
  background: var(--ivory);
  border: 1px solid #e5e0d4;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e6f0e9; color: var(--forest); }
.form-status.error { background: #fbe9e7; color: #a3241f; }

/* Contact info blocks */
.contact-info {
  display: grid;
  gap: 24px;
}
.contact-info .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info .item .icon { font-size: 1.4rem; color: var(--gold); }
.contact-info .item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info .item p, .contact-info .item a { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.92rem; }

.map-embed {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e5e0d4;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: var(--ivory); font-family: Arial, sans-serif; margin-bottom: 32px; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #b8c0cf;
  padding: 50px 24px 24px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-family: Georgia, serif; font-weight: normal; margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--champagne); }
.footer-compliance {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  color: #a4aebd;
  font-size: 0.78rem;
  line-height: 1.7;
}
.footer-compliance p + p {
  margin-top: 12px;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 12px auto 0;
  text-align: center;
  color: #a4aebd;
  font-size: 0.8rem;
}

/* Practice area detail list (subtopics) */
.practice-list { max-width: var(--max-width); margin: 0 auto; display: grid; gap: 20px; }
.practice-item {
  background: var(--white);
  border: 1px solid #e5e0d4;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.practice-item h3 { margin-bottom: 8px; }
.practice-item p { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.95rem; }

/* FAQ accordion (native details/summary — keyboard & screen-reader accessible) */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid #e5e0d4;
  border-radius: var(--radius);
  padding: 4px 24px;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  padding-bottom: 20px;
}

/* Resources / blog */
.resource-card {
  display: block;
  background: var(--white);
  border: 1px solid #e5e0d4;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.resource-card:hover, .resource-card:focus-visible {
  box-shadow: 0 10px 30px rgba(11,26,51,0.1);
  transform: translateY(-3px);
}
.resource-card .resource-tag {
  background: var(--forest);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  display: inline-block;
}
.resource-card .resource-body { padding: 24px 24px 28px; }
.resource-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.resource-card p { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.92rem; }

.resource-empty {
  border: 1px dashed #d8d2c4;
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.resource-empty p { color: var(--muted); font-family: Arial, sans-serif; font-size: 0.95rem; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  color: var(--text);
}
.article-body h2 { font-family: Georgia, serif; margin: 32px 0 14px; font-size: 1.4rem; }
.article-body p { margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 8px; }
.article-meta {
  max-width: 720px;
  margin: 0 auto 8px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}
.article-disclaimer {
  max-width: 720px;
  margin: 32px auto 0;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: var(--radius);
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
