/* =========================================================
   THEME TOKENS
   ========================================================= */
:root {
  /* Surfaces — deep, warm-leaning blacks */
  --bg-page: #0a0c10;
  --bg-surface: #11141a;
  --bg-surface-alt: #161a22;
  --bg-deep: #050608;

  /* Text */
  --text-primary: #eef1f6;
  --text-secondary: rgba(238, 241, 246, 0.72);
  --text-muted: rgba(238, 241, 246, 0.45);
  --text-faint: rgba(238, 241, 246, 0.28);
  --text-on-dark: #f0e7db;

  /* Accent — deep luxury navy */
  --accent: #182b5c;
  --accent-bright: #2447b8;
  --accent-text: #7f9bd8;
  --accent-deep: #0f1c3d;
  --accent-soft: rgba(36, 71, 184, 0.12);
  --accent-glow: rgba(24, 43, 92, 0.55);
  --accent-border: rgba(127, 155, 216, 0.28);

  /* Borders */
  --border-light: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-on-dark: rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  /* Type scale */
  --fs-display: clamp(1.6rem, 2.4vw, 2.2rem);
  --fs-lead: 1.125rem;

  /* Layout */
  --section-max: 1200px;
  --section-pad: 80px 40px;
  --radius-sharp: 0px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* FIX: prevent horizontal scroll from any stray overflow */
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  /* FIX: prevent horizontal scroll on body too */
  overflow-x: hidden;
  width: 100%;
}

img {
  display: block;
  max-width: 100%;
}

/* Global focus ring */
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-image: url('/assets/images/hero.jfif');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 16, 13, 0.7) 0%, rgba(10, 8, 7, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 20px 32px 12px 32px;
  width: 100%;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-on-dark);
  transition: border-color 0.3s ease, justify-content 0.35s var(--ease);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.logo-text {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--text-on-dark);
  background: #cfa004;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0.2px;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.nav-links a:hover {
  color: #ffffff;
  opacity: 1;
}

.nav-links a.active {
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 500;
  opacity: 1;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 30;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#navbar.is-scrolled {
  background: rgba(10, 12, 16, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#navbar.is-scrolled .nav-container {
  border-bottom-color: var(--border-light);
}

#navbar.is-scrolled .logo-wrapper {
  opacity: 0;
  pointer-events: none;
}

#navbar.is-scrolled .nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 40px;
}

/* =========================================================
   HERO CONTENT
   ========================================================= */
.hero-content-wrapper {
  position: relative;
  z-index: 15;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 40px clamp(48px, 8vh, 110px) 40px;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  width: 100%;
  align-items: end;
}

.hero-left h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 4.6rem);
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
  max-width: 90%;
  /* FIX: prevent long words from overflowing on narrow screens */
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-left h1 span {
  display: block;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 6px;
}

.hero-subtext {
  font-size: 0.85rem;
  font-weight: 350;
  color: rgba(255, 255, 255, 0.78);
  max-width: 380px;
  text-align: right;
  line-height: 1.6;
  letter-spacing: 0.2px;
  margin-left: auto;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  list-style: none;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-credentials li {
  position: relative;
  padding-left: 14px;
}

.hero-credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-text);
  transform: translateY(-50%);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 40px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.scroll-cue:hover {
  color: #ffffff;
}

.scroll-cue-line {
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.35);
  transform-origin: top;
  animation: scrollPulse 2.4s var(--ease) infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0.4);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.4);
    opacity: 0.4;
  }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1a1614;
  padding: 14px 38px;
  border-radius: var(--radius-sharp);
  font-weight: 550;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  /* FIX: prevent button text from wrapping awkwardly */
  white-space: nowrap;
  max-width: 100%;
}

.btn-cta i {
  margin-left: 10px;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.btn-cta:hover {
  background: #f5f0ea;
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-cta:hover i {
  transform: translateX(4px);
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
  font-family: var(--font-sans);
  text-align: center;
}

.section-lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.5;
  color: var(--text-primary);
  text-align: center;
  max-width: 700px;
  margin: 20px auto 0;
  /* FIX: prevent long strings from overflowing */
  overflow-wrap: break-word;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--section-max);
  margin: 0 auto;
  padding: var(--section-pad);
  width: 100%;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin-top: 60px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-light);
  padding: 30px 28px;
  gap: 8px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-border);
}

.stat h3 {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-text);
  margin-bottom: 4px;
}

.stat .number {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* =========================================================
   SERVICES / PRACTICE AREAS
   ========================================================= */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--section-max);
  margin: 0 auto;
  padding: var(--section-pad);
  width: 100%;
}

.services-list {
  width: 100%;
  margin-top: 60px;
  border-top: 1px solid var(--border-light);
}

.service-item {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease;
}

.service-item:hover {
  background: var(--accent-soft);
}

.service-header {
  width: 100%;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 28px 12px;
  background: transparent;
  border: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.service-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent-text);
}

.service-header h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
  transition: color 0.3s ease, transform 0.3s ease;
  /* FIX: prevent long words from overflowing */
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-item:hover .service-header h3,
.service-item.is-open .service-header h3 {
  color: #ffffff;
}

.service-item:hover .service-header h3 {
  transform: translateX(6px);
}

.service-header i {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.4s var(--ease), color 0.3s ease;
}

.service-item:hover .service-header i {
  color: var(--accent-text);
}

.service-item.is-open .service-header i {
  transform: rotate(135deg);
  color: var(--accent-text);
}

.service-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.service-item.is-open .service-body {
  grid-template-rows: 1fr;
}

.service-body>.service-body-inner {
  overflow: hidden;
}

.service-body-inner {
  padding: 0 12px 32px 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.service-body-inner p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0;
}

/* =========================================================
   ATTORNEYS
   ========================================================= */
.attorneys {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--section-max);
  margin: 0 auto;
  padding: var(--section-pad);
  width: 100%;
}

.attorney-featured {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  width: 100%;
  align-items: center;
  padding-bottom: 80px;
  margin-top: 70px;
  border-bottom: 1px solid var(--border-light);
}

.attorney-featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
}

.attorney-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.attorney-featured:hover .attorney-featured-image img {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(1.05);
}

.attorney-featured-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.attorney-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
}

.attorney-featured-info h3,
.attorney-card-info h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  /* FIX: prevent long names from overflowing */
  overflow-wrap: break-word;
  word-break: break-word;
}

.attorney-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.attorney-bio {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 8px 0 6px 0;
}

.attorney-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding: 18px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 6px 0 18px 0;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-primary);
}

.attorney-team {
  width: 100%;
  padding-top: 70px;
}

.team-heading {
  margin-bottom: 40px;
}

.team-heading h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.attorney-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.attorney-card:hover {
  background-color: var(--bg-surface-alt);
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.attorney-card--text {
  grid-template-columns: 1fr;
  gap: 0;
}

.attorney-card--text .attorney-card-info {
  max-width: 720px;
}

.attorney-card--text .attorney-bio {
  max-width: 620px;
}

.attorney-card--text .attorney-meta {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  margin-top: 14px;
}

.attorney-card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0; /* FIX: allow grid child to shrink below content size */
}

.attorney-card-info h3 {
  font-size: 1.7rem;
}

.attorney-card-info .attorney-bio {
  font-size: 0.88rem;
  margin: 6px 0;
}

.attorney-card-info .attorney-meta {
  padding: 14px 0 0 0;
  border-bottom: none;
  margin: 6px 0 0 0;
  gap: 32px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--section-max);
  margin: 0 auto;
  padding: var(--section-pad);
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  width: 100%;
  align-items: flex-start;
  margin-top: 70px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 6px;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.contact-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
}

.contact-block p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

.contact-block a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  /* FIX: long emails/URLs shouldn't overflow */
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-block a:hover {
  color: var(--accent-text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0; /* FIX: allow grid child to shrink */
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  width: 100%;
  max-width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-bright);
  background: var(--bg-surface-alt);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237f9bd8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-cta {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 0.72rem;
  padding: 14px 34px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.contact-form .btn-cta:hover {
  background: var(--accent-bright);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.contact-form .btn-cta[disabled] {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.form-status {
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-height: 1.2em;
  margin: 0;
}

.form-status.is-error {
  color: #e5a4a4;
}

.form-status.is-success {
  color: var(--accent-text);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  width: 100%;
  border-top: 1px solid var(--border-light);
  background: var(--bg-deep);
  margin-top: 60px;
}

.footer-container {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 70px 40px 30px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0; /* FIX: allow grid child to shrink */
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
  /* FIX: long link text shouldn't overflow */
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-col a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  /* FIX: allow wrapping on tiny screens */
  flex-wrap: wrap;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  transform: none;
  /* FIX: prevent flex shrink */
  flex-shrink: 0;
}

.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap; /* FIX: allow legal links to wrap */
}

.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent-text);
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE — 1024px (tablet / small laptop)
   ========================================================= */
@media (max-width: 1024px) {
  :root {
    --section-pad: 70px 32px;
  }

  .hero-content-wrapper {
    padding: 120px 32px clamp(48px, 8vh, 90px) 32px;
  }

  .hero-left h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    max-width: 100%;
  }

  .contact-grid {
    gap: 60px;
  }

  .footer-top {
    gap: 60px;
  }
}

/* =========================================================
   RESPONSIVE — 900px (mobile nav takes over)
   ========================================================= */
@media (max-width: 900px) {
  /* --- Navbar --- */
  .hamburger {
    display: flex;
    padding: 10px;
    margin-right: -10px;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
    transition: transform 0.28s var(--ease), opacity 0.2s ease;
  }

  .hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(10, 12, 16, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.28s var(--ease);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 18px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: var(--accent-soft);
    color: #ffffff;
  }

  .nav-links a.active {
    background: var(--accent-soft);
    text-decoration: none;
    color: #ffffff;
  }

  #navbar.is-scrolled .nav-links {
    position: absolute;
    left: 0;
    transform: translateY(-8px);
  }
  #navbar.is-scrolled .nav-links.is-open {
    transform: none;
  }
  #navbar.is-scrolled .logo-wrapper {
    opacity: 1;
    pointer-events: auto;
  }

  /* --- Hero --- */
  /* FIX: removed `min-height: auto` — let content define height but keep dvh fallback */
  .hero {
    min-height: 100svh; /* small viewport height — better on mobile browsers */
  }

  /* FIX: proper top + bottom padding so content isn't cramped or cut off */
  .hero-content-wrapper {
    padding: 120px 24px 60px 24px;
    justify-content: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* FIX: smaller clamp min so text doesn't overflow on 320px screens */
  .hero-left h1 {
    font-size: clamp(1.75rem, 7vw, 2.75rem);
    max-width: 100%;
  }

  .hero-right {
    align-items: flex-start;
    padding-bottom: 0;
    width: 100%;
  }

  .hero-subtext {
    text-align: left;
    margin-left: 0;
    max-width: 100%;
  }

  .hero-credentials {
    justify-content: flex-start;
  }

  /* FIX: scroll cue becomes a static centered element below content — no overlap */
  .scroll-cue {
    position: static;
    margin: 40px auto 0;
    transform: none;
    left: auto;
    bottom: auto;
    flex-direction: column;
    gap: 8px;
    align-self: center;
  }

  .scroll-cue-line {
    height: 28px;
  }

  /* --- Attorneys --- */
  .attorney-featured {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .attorney-featured-image {
    max-width: 340px;
    margin: 0 auto;
  }

  .attorney-featured-info h3,
  .attorney-card-info h3 {
    font-size: 1.8rem;
  }

  .attorney-meta {
    gap: 24px;
  }

  .attorney-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  /* FIX: center the card image and allow it to shrink */
  .attorney-card-image {
    max-width: 220px;
    width: 100%;
    margin: 0 auto;
  }

  /* --- Contact --- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  /* --- Footer --- */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-socials a {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  .footer-col a {
    padding: 6px 0;
  }
}

/* =========================================================
   RESPONSIVE — 600px (mobile)
   ========================================================= */
@media (max-width: 600px) {
  :root {
    --section-pad: 60px 24px;
  }

  /* --- Navbar --- */
  #navbar {
    padding: 14px 20px 10px 20px;
  }

  .logo-text {
    font-size: 17px;
  }

  /* --- Hero --- */
  /* FIX: proper top + bottom padding */
  .hero-content-wrapper {
    padding: 100px 20px 48px 20px;
  }

  /* FIX: tighter clamp min for small screens */
  .hero-left h1 {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
    line-height: 1.15;
  }

  .hero-subtext {
    font-size: 0.85rem;
    line-height: 1.65;
  }

  .hero-credentials {
    font-size: 0.6rem;
    letter-spacing: 1.4px;
    gap: 6px 14px;
    margin-top: 2px;
  }

  .hero-credentials li {
    padding-left: 12px;
  }

  .hero-right .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 0.78rem;
    white-space: normal; /* allow wrap if needed */
  }

  /* --- Sections --- */
  .services,
  .attorneys,
  .contact,
  .about {
    padding: var(--section-pad);
  }

  .section-lede {
    font-size: 1.35rem;
    line-height: 1.5;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 1.6px;
  }

  /* --- About stats --- */
  .about-stats {
    grid-template-columns: 1fr;
    margin-top: 40px;
    gap: 16px;
  }

  .stat {
    padding: 24px 22px;
  }

  .stat .number {
    font-size: 3.4rem;
    margin-bottom: 4px;
  }

  .stat:hover {
    transform: none;
    box-shadow: 0 0 0 1px var(--accent-border);
  }

  /* --- Services accordion --- */
  /* FIX: wider middle column, tighter outer columns */
  .service-header {
    grid-template-columns: 32px 1fr 28px;
    gap: 10px;
    padding: 20px 4px;
    min-height: 64px;
  }

  .service-header h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .service-number {
    font-size: 0.7rem;
  }

  .service-header i {
    font-size: 1rem;
    text-align: center;
  }

  .service-item:hover .service-header h3 {
    transform: none;
  }

  .service-body-inner {
    padding: 0 4px 24px 42px;
  }

  .service-body-inner p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .service-body-inner .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  /* --- Attorneys --- */
  .attorney-featured {
    margin-top: 40px;
    padding-bottom: 50px;
    gap: 32px;
  }

  .attorney-featured-info h3,
  .attorney-card-info h3 {
    font-size: 1.5rem;
  }

  .attorney-bio {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .attorney-meta {
    gap: 18px 24px;
    padding: 16px 0;
  }

  .meta-label {
    font-size: 0.6rem;
  }

  .meta-value {
    font-size: 0.92rem;
  }

  .attorney-featured-info .btn-cta,
  .attorney-card-info .btn-cta {
    width: 100%;
    justify-content: center;
  }

  .attorney-team {
    padding-top: 50px;
  }

  .attorney-card {
    padding: 22px 20px;
  }

  /* --- Contact --- */
  .contact-grid {
    gap: 40px;
    margin-top: 40px;
  }

  .contact-details {
    gap: 24px;
  }

  .contact-block {
    padding-bottom: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form {
    gap: 20px;
  }

  .contact-form .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* prevents iOS zoom-on-focus */
    padding: 14px 16px;
  }

  /* --- Footer --- */
  .footer-container {
    padding: 50px 20px 24px 20px;
  }

  .footer-top {
    gap: 40px;
    padding-bottom: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col {
    gap: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 24px;
  }

  .footer-legal {
    gap: 16px;
    flex-wrap: wrap;
  }

  /* FIX: slightly smaller social circles on 600px */
  .footer-socials a {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }
}

/* =========================================================
   RESPONSIVE — 380px (small phones: iPhone SE, older Androids)
   ========================================================= */
@media (max-width: 380px) {
  /* FIX: tighter hero padding + smaller text */
  .hero-content-wrapper {
    padding: 92px 16px 40px 16px;
  }

  .hero-left h1 {
    font-size: 1.6rem;
  }

  .section-lede {
    font-size: 1.2rem;
  }

  .stat .number {
    font-size: 2.8rem;
  }

  /* FIX: tighter service header for ultra-small screens */
  .service-header {
    grid-template-columns: 28px 1fr 24px;
    gap: 8px;
    padding: 18px 2px;
  }

  .service-header h3 {
    font-size: 1rem;
  }

  .service-body-inner {
    padding-left: 36px;
  }

  .hero-credentials {
    font-size: 0.55rem;
    gap: 4px 10px;
  }

  /* FIX: smaller social circles so 4+ fit on a row */
  .footer-socials a {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  /* FIX: tighter section padding on tiny screens */
  :root {
    --section-pad: 50px 16px;
  }

  .footer-container {
    padding: 40px 16px 20px 16px;
  }
}