/* Law office — professional, accessible baseline */
:root {
  --ink: #0f1419;
  --muted: #4a5568;
  --line: #e2e8f0;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --accent: #0f2744;
  --accent-hover: #0a1d32;
  --gold: #8a7030;
  --max: 72rem;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
}

*,
*::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.6;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

.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;
}

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

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.logo-mark {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo-mark img {
  height: clamp(2.35rem, 6vw, 3.35rem);
  width: auto;
  max-width: min(100%, 17.5rem);
}

.logo-mark:hover img {
  opacity: 0.92;
}

.logo-mark:focus-visible {
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--accent);
}

.nav-list .btn.btn-primary {
  color: #fff;
  text-decoration: none;
}

.nav-list .btn.btn-primary:hover {
  color: #fff;
}

.nav-cta {
  margin-left: 0.25rem;
}

.nav-cta .btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    width: 100%;
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .nav-cta .btn-sm {
    width: 100%;
    text-align: center;
  }
}

/* Hero */
.hero {
  padding: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero-banner {
  position: relative;
}

.hero-banner__media {
  position: relative;
  line-height: 0;
  background: #0a1628;
}

.hero-banner__img {
  width: 100%;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-social {
  position: absolute;
  right: max(0.35rem, env(safe-area-inset-right));
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0.35rem;
}

.hero-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.12s, opacity 0.12s;
}

.hero-social__link:hover {
  opacity: 0.9;
  transform: scale(1.06);
}

.hero-social__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-social__icon {
  width: 1.1rem;
  height: 1.1rem;
}

.hero-social__link--fb {
  background: #1877f2;
}

.hero-social__link--x {
  background: #000;
}

.hero-social__link--in {
  background: #0a66c2;
}

.hero-social__link--yt {
  background: #ff0000;
}

.hero-social__link--ig {
  background: linear-gradient(
    135deg,
    #f58529,
    #dd2a7b,
    #8134af,
    #515bd4
  );
}

@media (max-width: 480px) {
  .hero-social__link {
    width: 2rem;
    height: 2rem;
  }

  .hero-social__icon {
    width: 1rem;
    height: 1rem;
  }
}

.hero-below {
  padding: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  text-align: center;
}

.hero-highlights {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3rem);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 auto 1.25rem;
  max-width: 42ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-below .cta-row {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(15, 20, 25, 0.06);
}

.hero-card h2 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.hero-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-card p + p {
  margin-top: 0.75rem;
}

.hero-card .gold {
  color: var(--gold);
  font-weight: 600;
}

/* Stats strip */
.stats-bar {
  background: var(--accent);
  color: #e8eef5;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-inner {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-inner {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.88;
  line-height: 1.35;
}

/* Sections */
section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-surface {
  background: var(--surface);
}

.section-muted {
  background: var(--bg);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

/* Practice grid */
.practice-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.practice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.35rem;
  background: var(--bg);
}

.section-surface .practice-card {
  background: var(--bg);
}

.practice-card h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.practice-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: minmax(200px, 240px) 1fr;
  }
}

.about-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  border: 1px solid var(--line);
  max-width: min(240px, 100%);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 20, 25, 0.1);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.about-attorney-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.about-body strong {
  color: var(--ink);
}

.about-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.contact-details strong {
  color: var(--ink);
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #e2e8f0;
}

.site-footer .wrap > * + * {
  margin-top: 1rem;
}

.disclaimer {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  margin-top: 1.25rem;
}
