/* Black Wake Consulting
   Brand colors: navy #081626, teal #005C62
   Display font: Montserrat; body font: Source Sans 3
*/

:root {
  --navy: #081626;
  --navy-deep: #050e18;
  --teal: #005c62;
  --teal-hover: #074a4f;
  --teal-soft: #e7f3f4;
  --white: #ffffff;
  --foam: #f4f7f8;
  --mist: #e3eaec;
  --slate: #4a5b63;
  --ink: #081626;
  --line: rgba(8, 22, 38, 0.12);
  --line-strong: rgba(8, 22, 38, 0.22);
  --line-light: rgba(255, 255, 255, 0.14);
  --placeholder: #6b5420;
  --placeholder-bg: #f4e9c4;
  --placeholder-line: #d9c784;
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --max: 1120px;
  --narrow: 40rem;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(8, 22, 38, 0.05), 0 10px 28px rgba(8, 22, 38, 0.06);
  --focus: 0 0 0 3px rgba(0, 92, 98, 0.45);
  --space: clamp(3.5rem, 7vw, 6.5rem);
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.15em;
}

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

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ----- Placeholder markers (remove with the draft copy) ----- */

.ph {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--placeholder);
  background: var(--placeholder-bg);
  border: 1px solid var(--placeholder-line);
  padding: 0.22em 0.5em 0.18em;
  border-radius: 2px;
  vertical-align: 0.15em;
  margin-left: 0.4em;
  white-space: nowrap;
}

h1 .ph,
h2 .ph,
.hero-copy h1 .ph {
  vertical-align: middle;
  margin-left: 0.5em;
}

.review-banner {
  background: var(--placeholder-bg);
  color: #3f320e;
  border-bottom: 1px solid var(--placeholder-line);
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 0.7rem 0;
}

.review-banner .wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.review-banner p {
  margin: 0;
}

/* ----- Layout ----- */

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

.wrap-narrow {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

/* ----- Header & navigation ----- */

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-link:hover {
  color: inherit;
}

.logo-link img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.22rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}

body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--teal);
}

.site-nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--teal);
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta[aria-current="page"] {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: var(--white);
}

@media (max-width: 799px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--line-light);
    padding: 0.75rem 0 1.25rem;
  }

  body.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-light);
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--teal);
  }

  .site-nav li:last-child a.nav-cta {
    margin-top: 0.85rem;
    justify-content: center;
    width: 100%;
    border-bottom: 1px solid var(--teal);
  }
}

/* ----- Typography ----- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.85rem;
}

h1,
h2,
h3,
.logo-name,
.logo-sub {
  font-family: var(--font-display);
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--slate);
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-on-dark.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-on-dark.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.text-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal);
}

.text-link:hover {
  color: var(--teal-hover);
  text-decoration: underline;
}

.text-link::after {
  content: " →";
}

/* ----- Hero ----- */

.hero {
  background:
    radial-gradient(ellipse 80% 55% at 80% 110%, rgba(0, 92, 98, 0.38), transparent 60%),
    var(--navy);
  color: var(--white);
  padding: var(--space) 0;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    min-height: 28rem;
  }
}

.hero-copy .eyebrow {
  color: #8ec4c8;
}

.hero-copy h1 {
  color: var(--white);
  margin-bottom: 1.15rem;
}

.hero-copy .lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.22rem;
  max-width: 36rem;
}

.hero-mark {
  display: flex;
  justify-content: center;
}

.hero-mark img {
  width: min(100%, 380px);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.25));
}

@media (max-width: 859px) {
  .hero-mark {
    order: -1;
  }

  .hero-mark img {
    width: min(56vw, 220px);
  }

  .hero-copy {
    text-align: left;
  }
}

/* Inner page title band */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero .lede {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.page-hero .eyebrow {
  color: #8ec4c8;
}

/* ----- Sections ----- */

.section {
  padding: var(--space) 0;
}

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

.section-header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--slate);
  margin: 0;
}

/* ----- Cards ----- */

.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--teal);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0.85;
}

.card h3 {
  margin: 0;
}

@media (min-width: 700px) {
  .card h3 {
    min-height: 2.6em;
  }
}

.card p {
  color: var(--slate);
  margin: 0;
  flex: 1;
}

.card .text-link {
  margin-top: 0.5rem;
}

.why-grid {
  display: grid;
  gap: 2rem 1.75rem;
}

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

.why-item {
  padding-top: 0.25rem;
}

.why-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--teal);
  margin-bottom: 0.7rem;
}

.why-item h3 {
  margin-bottom: 0.55rem;
}

@media (min-width: 700px) {
  .why-item h3 {
    min-height: 2.6em;
  }
}

.why-item p {
  color: var(--slate);
  margin: 0;
}

/* ----- CTA band ----- */

.cta-band {
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(0, 92, 98, 0.4), transparent 55%),
    var(--navy);
  color: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 38rem;
  margin: 0 auto 1.75rem;
}

/* ----- Service detail blocks ----- */

.service-block {
  display: grid;
  gap: 1.25rem 3rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--mist);
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.service-block:last-of-type {
  border-bottom: 1px solid var(--mist);
}

@media (min-width: 760px) {
  .service-block {
    grid-template-columns: 9.5rem 1fr;
    padding: 2.75rem 0;
    align-items: start;
  }

  .service-block .service-index {
    margin-top: 0.55rem;
  }
}

.service-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.4rem;
}

.service-block h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 0.9rem;
}

.service-block .body p {
  color: var(--slate);
}

.service-content {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .service-content {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 2rem 2.5rem;
  }
}

.starting-points {
  background: var(--foam);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.25rem;
}

.starting-points h3 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.85rem;
}

.starting-points ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
}

.starting-points li {
  color: var(--slate);
  margin: 0 0 0.7rem;
  padding-left: 0.2rem;
}

.starting-points li:last-child {
  margin-bottom: 0;
}

.starting-points li::marker {
  color: var(--teal);
}

.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

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

.step {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step h3 {
  margin-top: 0.15rem;
}

@media (min-width: 700px) {
  .step h3 {
    min-height: 2.6em;
  }
}

.step p {
  color: var(--slate);
  margin: 0;
}

/* ----- About ----- */

.prose {
  max-width: 42rem;
}

.firm-copy {
  max-width: 46rem;
  color: var(--slate);
  font-size: 1.2rem;
  margin: 0;
}

.location-copy {
  max-width: 42rem;
  color: var(--slate);
  margin: 0;
}

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

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
  }

  .split-reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.panel {
  background: var(--foam);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.panel h2,
.panel h3 {
  margin-bottom: 0.85rem;
}

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

.detail-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--mist);
}

.detail-list li:last-child {
  padding-bottom: 0;
}

.detail-list .label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.3rem;
}

.detail-list .value {
  margin: 0;
  color: var(--ink);
}

.site-footer .detail-list li {
  border-top-color: var(--line-light);
}

.site-footer .detail-list .value,
.site-footer .detail-list .value a {
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: anywhere;
}

/* ----- Forms ----- */

.form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.req {
  color: var(--teal);
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23081626' d='M1.2 1.4L6 6.2l4.8-4.8 1.1 1.1L6 8.4 0.1 2.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.75rem 0.5rem;
  padding-right: 2.25rem;
}

.panel .value,
.panel .value a {
  overflow-wrap: break-word;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--teal);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--focus);
}

.form-note {
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0;
}

button.btn {
  font: inherit;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-self: start;
}

/* ----- Footer ----- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.25rem 0 2rem;
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line-light);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand .logo-link {
  margin-bottom: 0.9rem;
}

.footer-brand p {
  max-width: 22rem;
  margin: 0;
}

.site-footer h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ec4c8;
  margin: 0 0 0.85rem;
}

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

.footer-nav a,
.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer-nav a:hover,
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-nav li + li {
  margin-top: 0.45rem;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ----- Utility / simple pages ----- */

.center-page {
  text-align: center;
  padding: var(--space) 0;
}

.center-page .lede {
  margin-inline: auto;
}

/* ----- Reduced motion & print ----- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .review-banner,
  .nav-toggle,
  .site-nav,
  .cta-band,
  .btn-row {
    display: none !important;
  }

  .site-header,
  .hero,
  .page-hero,
  .site-footer {
    background: none !important;
    color: var(--navy) !important;
    position: static;
  }

  .hero-copy h1,
  .page-hero h1,
  .logo-sub {
    color: var(--navy) !important;
  }

  a {
    color: var(--navy);
  }
}


/* ----- Photos ----- */

.hero.hero-photo {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Navy veil at about 65–75% so heading type stays readable. */
  background:
    linear-gradient(100deg, rgba(8, 22, 38, 0.82) 0%, rgba(8, 22, 38, 0.66) 46%, rgba(8, 22, 38, 0.58) 100%),
    linear-gradient(180deg, rgba(8, 22, 38, 0.28) 0%, transparent 40%, rgba(8, 22, 38, 0.45) 100%);
}

.hero.hero-photo .hero-grid {
  position: relative;
  z-index: 1;
  display: block;
  grid-template-columns: none;
  min-height: 0;
  padding-top: clamp(3.75rem, 9vw, 7rem);
  padding-bottom: clamp(3.75rem, 9vw, 7rem);
}

.hero.hero-photo .hero-copy {
  max-width: 38rem;
}

.card-has-photo {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.card-has-photo::before {
  top: auto;
  height: 3px;
  width: 100%;
  bottom: auto;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
}

.card-media picture,
.card-media img,
.service-media picture,
.service-media img,
.firm-media picture,
.firm-media img,
.location-media picture,
.location-media img,
.photo-band picture,
.photo-band img,
.cta-media picture,
.cta-media img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.card-has-photo .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
}

.card-has-photo .card-body h3 {
  min-height: 0;
}

.card-has-photo .card-body p {
  flex: 1;
}

.service-media {
  margin: 0 0 1.35rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}

.photo-band {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  min-height: 16rem;
  max-height: 26rem;
  overflow: hidden;
  background: var(--navy);
}
.photo-band picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.photo-band img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.cta-band-photo {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  text-align: center;
}

.cta-media {
  position: absolute;
  inset: 0;
}

.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 22, 38, 0.72) 0%, rgba(8, 22, 38, 0.7) 100%);
}

.cta-band-photo .cta-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.cta-band-photo h2,
.cta-band-photo p {
  margin-left: 0;
  margin-right: 0;
}

.firm-split,
.location-split {
  display: grid;
  gap: 1.75rem 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .firm-split,
  .location-split {
    grid-template-columns: 1fr 1fr;
  }
}

.firm-media,
.location-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.location-section {
  padding: var(--space) 0;
  background: var(--foam, #f4f6f8);
}

.photo-credit {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
  max-width: 40rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .card-media img,
  .cta-media img {
    /* no motion used, but keep object-fit */
  }
}
