/* ==========================================================================
   Owner's Rep — additions on top of the inherited design system.
   Everything else (tokens, base, animations, components, sections) is the
   Craftline build unchanged; this file holds only what Owner's Rep needs
   that Craftline had no equivalent for.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Logo — the client's real wordmark replaces Craftline's inline SVG mark.
   The PNG is blue-on-transparent, so it needs knocking out to white while
   the header sits over the dark hero, and restored once the header goes
   light on scroll.
   -------------------------------------------------------------------------- */
.c-header_logo-img {
  height: 42px;
  width: auto;
  flex: none;
  filter: brightness(0) invert(1);
  transition: filter var(--transition-duration-slow) var(--ease-power2-out);
}
.c-header.is-scrolled .c-header_logo-img {
  filter: none;
}
@media (min-width: 768px) {
  .c-header_logo-img {
    height: 58px;
  }
}

/* The wordmark is wide, so the header needs a little more room for it. */
:root {
  --header-height: 76px;
}
@media (min-width: 768px) {
  :root {
    --header-height: 92px;
  }
}

/* Mobile menu and footer are permanently dark — always knocked out. */
.c-mobile-menu .c-header_logo-img,
.c-footer .c-header_logo-img {
  filter: brightness(0) invert(1);
}
.c-footer .c-header_logo-img {
  height: 34px;
}

/* --------------------------------------------------------------------------
   Video embed — the client's Vimeo introduction, 16:9 and responsive.
   -------------------------------------------------------------------------- */
.c-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-black);
}
.c-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Case study band — the one real photograph from the old site, given the
   full-bleed treatment.
   -------------------------------------------------------------------------- */
.s-casestudy_inner {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-inline: var(--page-x);
}
@media (min-width: 900px) {
  .s-casestudy_inner {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
  }
}
.s-casestudy_media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
}
.s-casestudy_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Pull quotes — the old site's copy is largely the client's own words, set
   as questions an owner actually asks. They carry most of the site's voice.
   -------------------------------------------------------------------------- */
.c-quotes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c-quotes li {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--color-accent);
  font-style: italic;
  line-height: 1.5;
}

/* On dark backgrounds the accent rule needs to lift off the black. */
.s-crew .c-quotes li,
.s-cta .c-quotes li {
  border-left-color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Reason cards — the "10 Reasons" page. Craftline's project-card grid with
   a large index numeral instead of a thumbnail meta row.
   -------------------------------------------------------------------------- */
.c-reason-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.c-reason-card_index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.c-reason-card_media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  margin-bottom: 4px;
}
.c-reason-card_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-duration-slower) var(--ease-expo-out);
}
.c-reason-card:hover .c-reason-card_media img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Scope lists inside project cards — the old references page listed the
   services rendered on every project, and that detail is the point.
   -------------------------------------------------------------------------- */
.c-scope-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-gray-500);
}
.c-scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.c-scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background-color: var(--color-accent);
}

/* Reference cards run taller than Craftline's project cards because of the
   scope list, so they get their own comfortable grid. */
.s-references_grid {
  display: grid;
  gap: 40px 24px;
  padding-inline: var(--page-x);
}
@media (min-width: 700px) {
  .s-references_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .s-references_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.c-reference-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}
.c-reference-card_media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
}
.c-reference-card_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-duration-slower) var(--ease-expo-out);
}
.c-reference-card:hover .c-reference-card_media img {
  transform: scale(1.04);
}
.c-reference-card_location {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Staff directory — three named people, each reachable directly. The whole
   pitch is that you deal with the principals, so the names carry weight.
   -------------------------------------------------------------------------- */
.c-staff {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.c-staff_person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--color-accent);
}
.c-staff_person a {
  color: var(--color-gray-500);
  font-size: 0.9375rem;
  transition: color var(--transition-duration-fast) var(--ease-power2-out);
}
.c-staff_person a:hover {
  color: var(--color-accent);
}

/* On the dark About band the rule and links need to lift off the black. */
.s-crew .c-staff_person {
  border-left-color: var(--color-white);
}
.s-crew .c-staff_person a {
  color: var(--color-gray-200);
}
.s-crew .c-staff_person a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   JotForm — the client's live form, dropped into the page shell. The
   embed script sizes its own iframe; this only constrains the width.
   -------------------------------------------------------------------------- */
.c-jotform {
  width: 100%;
  max-width: 46rem;
}
.c-jotform iframe {
  width: 100% !important;
  min-width: 100% !important;
  border: 0;
}

/* --------------------------------------------------------------------------
   Footer gains a fourth column: the office details were the most prominent
   thing on the old site's footer and shouldn't be demoted to a contact page.
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .c-footer_top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
  }
}
.c-footer_col address {
  font-style: normal;
  color: var(--color-gray-200);
}
.c-footer_col address a {
  color: var(--color-gray-200);
}

/* --------------------------------------------------------------------------
   Anchor offsets — the header is fixed, so in-page targets need clearance.
   -------------------------------------------------------------------------- */
[id]:target {
  scroll-margin-top: calc(var(--header-height) + 24px);
}
