/* =========================================================
   Lewis Law, P.A. — Immigration Law Firm Template
   ========================================================= */

:root {
  --navy: #12306b;
  --navy-dark: #0b1f4a;
  --navy-deep: #081736;
  --red: #c8202f;
  --red-dark: #a51825;
  --bg: #f4f6fa;
  --white: #ffffff;
  --text: #2b3445;
  --muted: #6b7486;
  --border: #dfe4ee;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 4px;
  --shadow: 0 6px 24px rgba(10, 30, 70, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

/* ---------- Eyebrows ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--red);
  margin-bottom: 12px;
}

.eyebrow .dash {
  width: 26px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.eyebrow-light {
  color: #fff;
}

.eyebrow-center {
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: .85rem;
}

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

.btn-red:hover {
  background: var(--red-dark);
}

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

.btn-navy:hover {
  background: var(--navy-dark);
}

.btn-white {
  background: #fff;
  color: var(--navy);
  font-size: 1.1rem;
}

.btn-white:hover {
  background: #f1f1f1;
}

.btn-outline-light {
  border-color: #fff;
  color: #fff;
  padding: 10px 18px;
  font-size: .85rem;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

.link-arrow i {
  color: var(--red);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 76px;
}

.logo-img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  color: var(--navy-dark);
  font-size: .85rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .25s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  margin: 5px 0;
  transition: .3s;
}

/* ---------- Nav dropdown ---------- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown>a i {
  font-size: .6rem;
  margin-left: 4px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  min-width: 260px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8, 23, 54, .18);
  border-top: 3px solid var(--red);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -21px;
  height: 21px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.main-nav .dropdown-menu a {
  display: block;
  color: var(--navy);
  padding: 9px 20px;
  font-size: .84rem;
}

.main-nav .dropdown-menu a::after {
  display: none;
}

.main-nav .dropdown-menu a:hover {
  background: var(--bg);
  color: var(--red);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 560px;
  display: flex;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 23, 54, .92) 0%, rgba(11, 31, 74, .75) 45%, rgba(11, 31, 74, .2) 100%),
    url("../images/hero-bg.jpg") center/cover no-repeat,
    linear-gradient(135deg, #0b1f4a, #2c5aa0);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 30px;
}

.hero-content {
  padding: 90px 0;
  align-self: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 22px;
}

.hero-text {
  max-width: 470px;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 28px;
}

.hero-portrait {
  position: relative;
  height: 100%;
  min-height: 480px;
}

.portrait-img {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.portrait-caption {
  position: absolute;
  right: 0;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.portrait-caption strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.portrait-caption span {
  font-size: .85rem;
}

.red-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--red);
  margin-top: 8px;
}

/* ---------- Practice Areas ---------- */
.practice {
  background: var(--bg);
  padding: 70px 0 0;
}

.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 50px;
  align-items: center;
}

.practice-intro p {
  color: var(--muted);
  max-width: 440px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.service-card i {
  font-size: 1.7rem;
  color: var(--navy);
}

.service-card span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}

.service-card:hover i {
  color: var(--red);
}

.cta-bar {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(90deg, var(--navy) 0%, #1b4590 100%);
  color: #fff;
  padding: 24px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta-bar-icon {
  font-size: 2rem;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, .3);
}

.cta-bar-text {
  flex: 1;
}

.cta-bar h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.cta-bar p {
  margin: 0;
  font-size: .85rem;
  opacity: .85;
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1fr;
  padding-top: 30px;
  padding-bottom: 30px;
  align-items: center;
}

.stat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 30px;
  border-right: 1px solid var(--border);
}

.stat:first-child {
  padding-left: 0;
}

.stat:nth-child(3) {
  border-right: 0;
}

.stat i {
  font-size: 1.8rem;
  color: var(--red);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--navy);
  line-height: 1.1;
}

.stat span {
  font-size: .8rem;
  color: var(--navy);
  line-height: 1.35;
}

.stats-art {
  height: 120px;
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  opacity: .9;
}

/* ---------- About ---------- */
.about {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-color: var(--navy-deep);
}

.about-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 23, 54, .96) 0%, rgba(8, 23, 54, .85) 40%, rgba(8, 23, 54, .1) 100%);
}

.about-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 80px 24px 60px;
  min-height: 420px;
}

.about-content {
  max-width: 480px;
}

.about h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.about-content p {
  color: rgba(255, 255, 255, .88);
}

.about-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.signature {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  line-height: 1;
}

.about-signature span:last-child {
  font-size: .85rem;
}

/* ---------- Why / Team / Testimonial ---------- */
.why-team {
  padding: 50px 0;
  background: var(--bg);
}

.why-team-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr .9fr;
  gap: 30px;
  align-items: start;
}

.why-team h3 {
  font-size: 1.2rem;
}

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

.why-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.why-list i {
  font-size: 1.3rem;
  color: var(--navy);
  width: 24px;
  margin-top: 3px;
}

.why-list strong {
  display: block;
  color: var(--navy);
  font-size: .88rem;
}

.why-list span {
  font-size: .78rem;
  color: var(--muted);
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 6px 10px;
}

.team-photo {
  aspect-ratio: 4 / 4.2;
  border-radius: 2px;
  margin-bottom: 8px;
  background-color: #d7deea;
  background-size: cover;
  background-position: center top;
}

.team-card strong {
  display: block;
  font-size: .8rem;
  color: var(--navy);
  padding: 0 4px;
}

.team-card span {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  padding: 0 4px;
}

.testimonial {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  font-size: .82rem;
  color: var(--muted);
}

.testimonial i {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.testimonial cite {
  font-style: normal;
  font-size: .78rem;
}

/* ---------- Red CTA ---------- */
.red-cta {
  background: var(--red);
  color: #fff;
  padding: 56px 0;
}

.red-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.red-cta p {
  font-weight: 500;
  margin-bottom: 22px;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg);
  padding: 90px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.3fr;
  gap: 50px;
  align-items: start;
}

.faq-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.faq-intro p {
  color: var(--muted);
}

.faq-list {
  background: #fff;
  box-shadow: var(--shadow);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 24px 28px 10px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.faq-q .num {
  font-family: var(--serif);
  color: var(--red);
  font-size: 1.1rem;
}

.faq-q i {
  margin-left: auto;
  font-size: .8rem;
  color: var(--muted);
  transition: transform .3s;
}

.faq-item.open .faq-q i {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a p {
  padding: 0 28px 24px 70px;
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}

.faq-item.open .faq-a {
  max-height: 300px;
}

.faq-item:not(.open) .faq-q {
  padding-bottom: 24px;
}

/* ---------- Awards ---------- */
.awards {
  padding: 70px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.awards-sub {
  color: var(--muted);
  margin-bottom: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  transition: border-color .2s;
}

.chip i {
  color: var(--navy);
  font-size: .7rem;
}

.chip:hover {
  border-color: var(--red);
}

/* ---------- Blog ---------- */
.blog {
  padding: 80px 0;
  background: var(--bg);
}

.blog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.blog-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: #fff;
  padding: 30px 28px;
  position: relative;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 50%, var(--red) 50%);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card time {
  font-size: .72rem;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.1rem;
}

.blog-card p {
  font-size: .85rem;
  color: var(--muted);
  flex: 1;
}

.read-more {
  color: var(--red);
  font-size: .8rem;
  font-weight: 600;
}

.read-more i {
  font-size: .7rem;
}

/* ---------- About banner ---------- */
.about-banner {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.about-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-color: var(--navy-dark);
}

.about-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 23, 54, .95) 0%, rgba(8, 23, 54, .7) 45%, rgba(8, 23, 54, 0) 100%);
}

.about-banner-inner {
  position: relative;
  padding: 50px 24px;
}

.about-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.about-banner p {
  max-width: 460px;
  color: rgba(255, 255, 255, .88);
  margin: 0;
}

/* ---------- Contact ---------- */
.contact {
  padding: 50px 0 60px;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}

.mission h3 {
  font-size: 1.05rem;
  margin-top: 4px;
}

.mission p {
  font-size: .82rem;
  color: var(--muted);
}

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

.values li {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.values i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.values strong {
  display: block;
  font-size: .82rem;
  color: var(--navy);
}

.values span {
  font-size: .75rem;
  color: var(--muted);
}

.consult-form {
  background: #fff;
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow);
}

.consult-form h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.form-sub {
  font-size: .78rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.consult-form label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}

.consult-form em {
  color: var(--red);
  font-style: normal;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 400;
  font-size: .85rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18, 48, 107, .12);
}

.consult-form .invalid {
  border-color: var(--red);
}

.form-status {
  font-size: .82rem;
  margin: 12px 0 0;
  min-height: 1em;
}

.form-status.ok {
  color: #1a7f45;
}

.form-status.err {
  color: var(--red);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-item {
  display: flex;
  gap: 16px;
}

.info-item i {
  font-size: 1.4rem;
  color: var(--navy);
  width: 24px;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-size: .85rem;
  color: var(--navy);
}

.info-item span {
  font-size: .75rem;
  color: var(--muted);
}

.map {
  height: 170px;
  border: 1px solid var(--border);
  position: relative;
  background:
    linear-gradient(90deg, rgba(18, 48, 107, .06) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(rgba(18, 48, 107, .06) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(135deg, #e8eef7, #dfe8f3);
}

.map-pin {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 6px 12px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.map-pin i {
  color: var(--navy);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 26px 0 16px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.footer-news {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: .82rem;
}

.footer-news span {
  opacity: .8;
}

.subscribe {
  display: flex;
}

.subscribe input {
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  font: inherit;
  font-size: .85rem;
  width: 240px;
}

.subscribe .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  font-size: .72rem;
  opacity: .7;
  flex-wrap: wrap;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 70px 0 64px;
  background:
    linear-gradient(90deg, rgba(8, 23, 54, .95) 0%, rgba(11, 31, 74, .82) 55%, rgba(11, 31, 74, .55) 100%),
    url("../images/hero-bg.jpg") center/cover no-repeat,
    linear-gradient(135deg, #0b1f4a, #2c5aa0);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 820px;
}

.page-hero .lead {
  max-width: 640px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, .75);
}

.breadcrumb i {
  font-size: .55rem;
  opacity: .6;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb span {
  color: #fff;
}

.notfound {
  padding: 120px 0;
}

.notfound h1 {
  margin: 0 auto .4em;
}

.notfound .lead {
  margin: 0 auto 30px;
}

/* ---------- Content layout ---------- */
.content-section {
  padding: 70px 0;
  background: #fff;
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: start;
}

.prose {
  font-size: 1rem;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 1.8em 0 .6em;
}

.prose h2:first-child,
.prose .post-meta+h2 {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose a:not(.btn):not(.link-arrow) {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: .5em;
}

.check-list {
  list-style: none;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: .93rem;
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--red);
  font-size: .85rem;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 1em;
}

.case-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  padding: 18px 20px;
  background: var(--bg);
}

.case-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

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

.step-list {
  list-style: none;
  padding: 0 !important;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 14px 52px;
  min-height: 40px;
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: .85rem;
}

.step-list strong {
  color: var(--navy);
}

.faq-inline {
  box-shadow: none;
  border: 1px solid var(--border);
}

.faq-inline .faq-q {
  font-size: .95rem;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 24px;
}

.side-card h3 {
  font-size: 1.05rem;
}

.side-card p {
  font-size: .87rem;
  color: var(--muted);
}

.side-card-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.side-card-navy h3 {
  color: #fff;
}

.side-card-navy p {
  color: rgba(255, 255, 255, .85);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.side-phone {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  font-weight: 600;
  font-size: .95rem;
}

.side-links,
.side-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-links a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  font-size: .86rem;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}

.side-links li:last-child a {
  border-bottom: 0;
}

.side-links i {
  width: 18px;
  color: var(--muted);
}

.side-links a:hover,
.side-links a.current {
  color: var(--red);
}

.side-links a.current {
  font-weight: 600;
}

.side-links a.current i {
  color: var(--red);
}

.side-posts li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.side-posts li:last-child {
  border-bottom: 0;
}

.side-posts a {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.side-posts a:hover {
  color: var(--red);
}

.side-posts time {
  font-size: .74rem;
  color: var(--muted);
}

/* ---------- Practice overview ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.area-card {
  border: 1px solid var(--border);
  padding: 28px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}

.area-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.area-card:hover .area-icon {
  background: var(--navy);
  color: #fff;
}

.area-card h3 {
  font-size: 1.05rem;
}

.area-card p {
  font-size: .86rem;
  color: var(--muted);
  flex: 1;
}

.process {
  padding: 70px 0;
  background: var(--bg);
}

.process h2 {
  margin-bottom: 40px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  background: #fff;
  padding: 28px 24px;
  border-top: 3px solid var(--navy);
}

.process-step:nth-child(even) {
  border-top-color: var(--red);
}

.process-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 1.05rem;
}

.process-step p {
  font-size: .86rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- About page ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-img {
  min-height: 380px;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.mission-grid p {
  color: var(--muted);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.stats-plain {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.bio-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  border: 1px solid var(--border);
  padding: 20px;
  background: #fff;
}

.bio-card .team-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
}

.bio-card h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.bio-role {
  font-size: .78rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bio-card p {
  font-size: .87rem;
  color: var(--muted);
  margin: 10px 0;
}

.bio-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .8rem;
}

.bio-meta strong {
  color: var(--navy);
}

/* ---------- Testimonials page ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review-card {
  margin: 0;
  background: var(--bg);
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.review-card>i {
  color: var(--red);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.review-card blockquote {
  margin: 0 0 18px;
  font-family: var(--serif);
  color: var(--navy);
  font-size: .98rem;
  line-height: 1.6;
  flex: 1;
}

.review-card figcaption {
  font-size: .85rem;
  font-weight: 600;
}

.review-card figcaption span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: .78rem;
}

.review-card.placeholder {
  border-style: dashed;
  background: #fff;
  opacity: .7;
}

.review-card.placeholder blockquote {
  font-family: var(--sans);
  font-style: italic;
  color: var(--muted);
  font-size: .88rem;
}

.review-cta {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  padding: 26px 30px;
  border-left: 4px solid var(--red);
}

.review-cta h3 {
  margin-bottom: 2px;
}

.review-cta p {
  margin: 0;
  color: var(--muted);
}

.testimonial .read-more {
  display: inline-block;
  margin-top: 10px;
}

/* ---------- Blog pages ---------- */
.blog-section {
  background: var(--bg);
}

.post-cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.blog-card h3 a:hover {
  color: var(--red);
}

.post-meta {
  display: flex;
  gap: 18px;
  font-size: .82rem;
  color: var(--muted);
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.post-meta span::before {
  content: "\2022";
  margin-right: 18px;
}

.note {
  display: flex;
  gap: 14px;
  background: var(--bg);
  border-left: 4px solid var(--navy);
  padding: 18px 20px;
  margin: 36px 0 26px;
}

.note i {
  color: var(--navy);
  margin-top: 4px;
}

.note p {
  margin: 0;
  font-size: .87rem;
}

.back-link i {
  color: var(--red);
}

/* ---------- FAQ page ---------- */
.faq-group+.faq-group {
  margin-top: 44px;
}

.faq-group h2 {
  font-size: 1.4rem;
}

.faq-all {
  margin-left: 18px;
}

/* ---------- Contact page ---------- */
.contact-page {
  padding-top: 60px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.hours {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.hours h3 {
  font-size: 1rem;
}

.hours dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 0;
  font-size: .85rem;
}

.hours dt {
  color: var(--navy);
  font-weight: 600;
}

.hours dd {
  margin: 0;
  color: var(--muted);
}

.map-lg {
  height: 320px;
}

/* ---------- Legal ---------- */
.legal {
  max-width: 820px;
}

.legal-flag {
  background: #fff6e5;
  border: 1px solid #f1d59b;
  padding: 12px 16px;
  font-size: .85rem;
  color: #7a5300 !important;
}

/* ---------- Red CTA actions ---------- */
.red-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.red-cta-actions.center {
  justify-content: center;
}

.red-cta .btn-outline-light {
  padding: 14px 24px;
  font-size: .95rem;
}

/* ---------- Footer columns ---------- */
.footer-cols {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 1.3fr;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 30px;
}

.footer-col h4 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 14px;
  color: #fff;
}

.footer-col p {
  font-size: .84rem;
  opacity: .8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: .84rem;
}

.footer-col a {
  opacity: .82;
  transition: opacity .2s;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-contact li {
  display: flex;
  gap: 10px;
}

.footer-contact i {
  width: 16px;
  margin-top: 4px;
  opacity: .8;
}

.footer-contact span {
  opacity: .82;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .why-team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid .consult-form {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 36px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    gap: 20px;
  }
}

@media (max-width: 960px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  .main-nav.open {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .nav-dropdown {
    display: block;
  }

  .nav-dropdown>a {
    display: block;
  }

  .nav-dropdown>a i {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(18, 48, 107, .04);
    box-shadow: none;
    border-top: 0;
    padding: 0;
    min-width: 0;
  }

  .dropdown-menu::before {
    display: none;
  }

  .main-nav .dropdown-menu a {
    color: var(--navy);
    padding: 10px 24px 10px 40px;
    font-size: .82rem;
  }

  .main-nav .dropdown-menu a:hover {
    background: transparent;
    color: var(--red);
  }

  .content-grid,
  .split,
  .mission-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sidebar {
    position: static;
  }

  .bio-grid {
    grid-template-columns: 1fr;
  }

  .stats-plain {
    grid-template-columns: 1fr;
  }

  .main-nav a {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    color: var(--navy-dark);
  }

  .main-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-phone {
    display: none;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 70px 0 20px;
  }

  .hero-portrait {
    min-height: 380px;
  }

  .practice-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-bar {
    flex-direction: column;
    text-align: center;
  }

  .cta-bar-icon {
    border-right: 0;
    padding-right: 0;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat {
    border-right: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .stats-art {
    display: none;
  }

  .about-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .blog-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .team-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .faq-a p {
    padding-left: 28px;
  }

  .subscribe {
    width: 100%;
  }

  .subscribe input {
    flex: 1;
    width: auto;
  }

  .logo-img {
    height: 48px;
  }

  .footer-logo-img {
    height: 48px;
  }

  .area-grid,
  .process-grid,
  .review-grid,
  .case-grid,
  .check-list,
  .values-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .bio-card {
    grid-template-columns: 1fr;
  }

  .bio-card .team-photo {
    aspect-ratio: 4 / 3.5;
  }

  .page-hero {
    padding: 50px 0 46px;
  }

  .content-section,
  .process {
    padding: 50px 0;
  }

  .footer-legal {
    width: 100%;
  }

  .faq-all {
    margin: 14px 0 0;
    display: inline-flex;
  }
}
/* =========================================================
   Lewis Law additions (real content, CMS-driven components)
   ========================================================= */

/* Hero: framed photo instead of a transparent cut-out */
.hero-langs {
  font-size: .85rem;
  letter-spacing: .08em;
  opacity: .85;
  margin: -6px 0 22px;
}

.hero-langs i {
  margin-right: 6px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portrait-img.portrait-framed {
  inset: 40px 0 30px 30px;
  background-size: cover;
  background-position: center top;
  border: 6px solid rgba(255, 255, 255, .9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.portrait-img.portrait-framed::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, rgba(8, 23, 54, 0) 0%, rgba(8, 23, 54, .85) 100%);
}

.hero-portrait .portrait-caption {
  right: 30px;
  z-index: 1;
}

/* Single-attorney card on the home page */
.team-cards.team-cards-single {
  grid-template-columns: 1fr;
}

.team-cards-single .team-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  color: inherit;
}

.team-cards-single .team-photo {
  margin: 0;
}

.team-card-body p {
  font-size: .85rem;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.6;
}

.bio-grid.bio-grid-single {
  grid-template-columns: 1fr;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.bio-grid-single .bio-card {
  grid-template-columns: 280px 1fr;
}

.bio-grid-single .bio-card p {
  margin-bottom: .9em;
}

/* Footer: five columns, socials, disclaimer */
.footer-cols.footer-cols-5 {
  grid-template-columns: 1.4fr 1.1fr 1fr 1.1fr 1.3fr;
  gap: 32px;
}

.footer-langs {
  font-size: .82rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.social-links a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  font-size: .85rem;
  transition: background .2s, border-color .2s;
}

.social-links a:hover {
  background: var(--red);
  border-color: var(--red);
}

.social-links-dark a {
  border-color: var(--border);
  color: var(--navy);
}

.social-links-dark a:hover {
  color: #fff;
}

.footer-disclaimer p {
  font-size: .7rem;
  opacity: .55;
  line-height: 1.6;
  margin: 0;
  padding: 10px 0 24px;
}

.dropdown-menu a.dropdown-all {
  font-weight: 600;
  color: var(--red);
}

/* Maps */
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Articles: images, video, embeds */
.prose img,
.prose video {
  max-width: 100%;
  height: auto;
  display: block;
}

.prose figure {
  margin: 1.4em 0;
}

.prose figcaption {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 6px;
}

.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  margin: 1.2em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1.2em 0;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.post-feature img,
.city-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
}

/* Practice pages */
.callout {
  background: var(--bg);
  border-left: 4px solid var(--red);
  padding: 22px 24px;
  margin: 2em 0;
}

.callout h3 {
  margin-top: 0;
}

.case-card-link {
  display: block;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.case-card-link:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.case-card-link h3 i {
  color: var(--red);
  margin-right: 6px;
}

.section-gap {
  margin-top: 70px;
}

.side-note {
  font-size: .82rem;
  color: var(--muted);
}

/* Blog index */
.blog-card-img {
  display: block;
  aspect-ratio: 16 / 9;
  margin: -30px -28px 20px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.blog-filter .chip {
  cursor: pointer;
  background: #fff;
  font-family: inherit;
}

.blog-filter .chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.blog-card-wrap[hidden] {
  display: none;
}

.blog-card-wrap > .blog-card {
  height: 100%;
}

.load-more-wrap {
  text-align: center;
  margin-top: 36px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination .page-link {
  border: 1px solid var(--border);
  padding: 8px 14px;
  color: var(--navy);
}

.pagination .page-link.current {
  background: var(--navy);
  color: #fff;
}

/* Awards & reviews */
a.chip:hover {
  border-color: var(--red);
  color: var(--red);
}

.award-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin: 10px 0 30px;
}

.award-logos img {
  height: 110px;
  width: auto;
  object-fit: contain;
}

.review-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-outline-navy {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

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

.review-disclaimer {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 18px;
}

/* Spam honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 1100px) {
  .footer-cols.footer-cols-5 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .portrait-img.portrait-framed {
    inset: 20px 15%;
  }

  .bio-grid-single .bio-card {
    grid-template-columns: 1fr;
  }

  .bio-grid-single .team-photo {
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .footer-cols.footer-cols-5 {
    grid-template-columns: 1fr;
  }

  .team-cards-single .team-card {
    grid-template-columns: 1fr;
  }

  .post-nav {
    flex-direction: column;
  }

  .portrait-img.portrait-framed {
    inset: 10px 8%;
  }
}

/* =========================================================
   Hero slider, cut-out portrait, office gallery, lightbox
   ========================================================= */
.hero-slider {
  min-height: 640px;
  background: var(--navy-deep);
}

.hero-slides,
.hero-slide,
.hero-slide-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-bg {
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}

.hero-slide.is-active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-bg[data-focus="top"] {
  background-position: center 20%;
}

.hero-slide-bg[data-focus="bottom"] {
  background-position: center 80%;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 23, 54, .95) 0%, rgba(8, 23, 54, .86) 42%, rgba(11, 31, 74, .45) 75%, rgba(11, 31, 74, .3) 100%),
    linear-gradient(0deg, rgba(8, 23, 54, .55) 0%, rgba(8, 23, 54, 0) 35%);
}

.hero-slider .hero-inner {
  z-index: 2;
}

.hero-slider .hero-content {
  padding: 80px 0 70px;
}

/* All slide texts share one grid cell, so the hero never changes height */
.hero-copies {
  display: grid;
}

.hero-copy {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}

.hero-copy.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .7s ease .15s, transform .7s ease .15s, visibility 0s;
}

.hero .hero-title {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 22px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
  margin-bottom: 26px;
}

.hero-link:hover {
  color: #fff;
  opacity: .85;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.hero-arrow,
.hero-pause {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}

.hero-arrow:hover,
.hero-pause:hover {
  background: var(--red);
  border-color: var(--red);
}

.hero-pause {
  width: 32px;
  height: 32px;
  font-size: .7rem;
  margin-left: 4px;
}

.hero-dots {
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 34px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.hero-dot span {
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, .35);
  position: relative;
  overflow: hidden;
}

.hero-dot span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot.is-active span::after {
  transform: scaleX(1);
}

.hero-slider.is-playing .hero-dot.is-active span::after {
  animation: heroProgress var(--hero-interval, 7s) linear forwards;
}

@keyframes heroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Transparent cut-out portrait standing on the hero (original template style) */
.portrait-img.portrait-cutout {
  inset: 30px 0 0;
  background-size: contain;
  background-position: bottom center;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
}

.hero-slider .hero-portrait {
  align-self: stretch;
  min-height: 560px;
}

.hero-slider .portrait-caption {
  right: 0;
  bottom: 40px;
  z-index: 1;
  background: rgba(8, 23, 54, .72);
  padding: 12px 18px;
  border-left: 3px solid var(--red);
  text-shadow: none;
}

.hero-slider .portrait-caption .red-line {
  display: none;
}

/* Office gallery */
.office-gallery-section.alt {
  background: var(--bg);
}

.gallery-sub {
  color: var(--muted);
  margin: -6px 0 30px;
}

.office-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}

.office-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg);
}

.office-photo-lg {
  grid-column: span 2;
  grid-row: span 2;
}

.office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.office-photo:hover img {
  transform: scale(1.05);
}

.office-photo span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  background: linear-gradient(0deg, rgba(8, 23, 54, .85), rgba(8, 23, 54, 0));
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 12, 30, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 70px;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  color: #fff;
  font-size: .9rem;
}

.lightbox button {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

@media (max-width: 960px) {
  .hero-slider {
    min-height: 0;
  }

  .hero-slider .hero-content {
    padding: 60px 0 10px;
  }

  .hero-slider .hero-portrait {
    min-height: 420px;
  }

  .portrait-img.portrait-cutout {
    inset: 10px 10% 0;
  }

  .hero-slider .portrait-caption {
    right: 6%;
    bottom: 24px;
  }

  .office-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }
}

@media (max-width: 640px) {
  .hero-slider .hero-portrait {
    min-height: 360px;
  }

  .office-gallery {
    grid-auto-rows: 140px;
    gap: 8px;
  }

  .lightbox {
    padding: 60px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-copy,
  .hero-slide-bg {
    transition: none !important;
  }

  .hero-slide-bg {
    transform: none !important;
  }
}

.hero-slider h1,
.hero-slider .hero-title {
  font-size: clamp(2.1rem, 3.9vw, 2.95rem);
}

.hero-dot.is-active span {
  background: rgba(255, 255, 255, .6);
}

@media (max-width: 960px) {
  .hero-slide::after {
    background: linear-gradient(180deg, rgba(8, 23, 54, .88) 0%, rgba(8, 23, 54, .8) 60%, rgba(8, 23, 54, .55) 100%);
  }
}

/* Hero background video (Settings → Home page → Background video) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider.has-video .hero-slide-bg {
  display: none;
}

/* Lighter overlay over the video: shade only behind the text, keep the footage clear */
.hero-slider.has-video .hero-slide::after {
  background:
    linear-gradient(90deg, rgba(8, 23, 54, .78) 0%, rgba(8, 23, 54, .55) 38%, rgba(8, 23, 54, .12) 68%, rgba(8, 23, 54, 0) 100%),
    linear-gradient(0deg, rgba(8, 23, 54, .35) 0%, rgba(8, 23, 54, 0) 25%);
}

.hero-slider.has-video .hero-video {
  filter: saturate(1.12) contrast(1.06);
}

@media (max-width: 960px) {
  .hero-slider.has-video .hero-slide::after {
    background: linear-gradient(180deg, rgba(8, 23, 54, .66) 0%, rgba(8, 23, 54, .5) 60%, rgba(8, 23, 54, .3) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero-slider.has-video .hero-slide-bg {
    display: block;
  }
}

/* Service areas (contact page) */
.service-areas {
  scroll-margin-top: 90px;
}

.service-area-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
}

@media (max-width: 960px) {
  .service-area-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Image placed at the top of a practice area's text, shown whole (no cropping) */
.practice-figure {
  margin: 0 0 28px;
}

.practice-figure img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(8, 23, 54, .14);
}

/* Office feature (contact page, above service areas) */
.office-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin: 28px 0 8px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
}

.office-feature img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}

.office-feature h3 {
  margin-bottom: 8px;
}

.office-feature p {
  color: var(--muted);
}

@media (max-width: 760px) {
  .office-feature {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
