/* Home page sections (Bay Bold). Owned by the integrator. */

/* Hero, with the header drawn over the photo */
.c-hero { position: relative; min-height: min(100vh, 900px); display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(180deg, rgba(10,18,16,.55) 0%, rgba(10,18,16,.3) 25%, rgba(10,18,16,.66) 45%, rgba(10,18,16,.74) 70%, rgba(10,18,16,.94) 100%), var(--hero-img) center 45% / cover no-repeat var(--night); }
/* Background photos: the AVIF/WebP image-sets that config/seo.mjs adds per screen size
   (--hero-set-sm phones, --hero-set-md up to 1299px, --hero-set larger; same for --bg-set*; the
   breakpoints match BG_MEDIA there, which also drives the hero preload), or the original file
   where image-set type() isn't supported. */
.c-hero { --hero-img: var(--hero); }
.c-forall { --bg-img: var(--bg); }
@supports (background-image: image-set(url("data:,") type("image/avif"))) {
  .c-hero { --hero-img: var(--hero-set-sm, var(--hero-set, var(--hero))); }
  .c-forall { --bg-img: var(--bg-set-sm, var(--bg-set, var(--bg))); }
  @media (min-width: 700px) {
    .c-hero { --hero-img: var(--hero-set-md, var(--hero-set, var(--hero))); }
    .c-forall { --bg-img: var(--bg-set-md, var(--bg-set, var(--bg))); }
  }
  @media (min-width: 1300px) {
    .c-hero { --hero-img: var(--hero-set, var(--hero)); }
    .c-forall { --bg-img: var(--bg-set, var(--bg)); }
  }
}
.c-hero__inner { margin-top: auto; padding: 64px 0 40px; }
.c-cities-nav { display: contents; } /* a landmark only: .c-cities keeps its place in the hero layout */
/* Text over the photo stays light for contrast (WCAG 1.4.3); the clay accent is the rule before the kicker. */
.c-hero__kicker { font: 600 13px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.c-hero__kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--clay); }
.c-hero__title { max-width: 1050px; margin: 0 0 34px; font: 400 clamp(46px, 7.4vw, 112px)/.96 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.c-hero__title em { color: #f4c3ad; }
.c-hero__foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25); }
.c-hero__foot p { max-width: 520px; margin: 0; font-size: 18px; color: #e3e6e3; }
.c-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.c-cities { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); background: rgba(10,18,16,.55); }
.c-cities li + li { border-left: 1px solid rgba(255,255,255,.18); }
.c-cities a { display: block; padding: 18px 24px; text-decoration: none; font: 400 22px/1 var(--serif); }
.c-cities a:hover { background: rgba(255,255,255,.06); }
/* The city links' ring crosses onto the bone section below: the two-colour ring keeps 3:1 on both (C40). */
.c-cities a:focus-visible { outline: 2px solid var(--night); outline-offset: 3px; box-shadow: 0 0 0 3px var(--bone); }

/* Statement */
.c-statement { padding: 112px 0 96px; }
.c-statement__big { font: 400 clamp(32px, 4.2vw, 60px)/1.08 var(--serif); letter-spacing: -.01em; max-width: 1080px; margin-bottom: 48px; text-wrap: balance; }
.c-statement__big em { color: var(--green); }
.c-statement__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1080px; color: var(--body); } /* lines up under the statement */

/* Practices index */
.c-practices { padding: 104px 0; background: var(--night); color: var(--bone); }
.c-practices__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.c-practices__head p { margin: 0; color: var(--muted-dark); }
.c-index { border-top: 1px solid var(--line-dark); }
.c-index__row { position: relative; display: grid; grid-template-columns: 1.2fr 1fr 150px; gap: 32px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line-dark); }
.c-index h3 { font: 400 clamp(34px, 3.6vw, 52px)/1 var(--serif); }
.c-index h3 a { text-decoration: none; }
.c-index__subs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; }
.c-index__subs a { display: inline-block; padding: 4px 0; font-size: 14px; color: var(--muted-dark); text-decoration: none; }
.c-index__subs a:hover { color: #fff; text-decoration: underline; }
.c-index__blurb { margin: 0; font-size: 15px; color: var(--muted-dark); }
.c-index__img { width: 150px; aspect-ratio: 5 / 6; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.c-index__row:hover .c-index__img { filter: none; }

/* Partner band */
.c-band { position: relative; margin: 0; background: var(--bone); }
.c-band img { width: 100%; height: auto; }
.c-band figcaption { position: relative; margin-top: -1px; }
.c-band figcaption span { display: inline-block; max-width: 760px; padding: 26px 32px 0 0; font: 400 clamp(22px, 2.4vw, 32px)/1.15 var(--serif); border-top: 3px solid var(--clay); }

/* Team */
.c-team { padding: 96px 0; }
.c-team__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.c-team__grid { display: flex; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--line); }
.c-team__grid > li { flex: 0 0 20%; }
.c-team__grid li + li { border-left: 1px solid var(--line); }
.c-person { display: block; padding: 22px 18px 6px; text-decoration: none; }
.c-person img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; filter: grayscale(1); transition: filter .4s; background: var(--bone-2); }
.c-person:hover img { filter: none; }
.c-person__title { display: block; margin-top: 16px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); }
.c-person__name { display: block; margin-top: 6px; font: 400 24px/1.1 var(--serif); }

/* How we excel */
.c-excel { padding: 104px 0; background: var(--bone-2); }
.c-excel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.c-excel__quote { margin-top: 32px; font: italic 400 clamp(26px, 2.6vw, 36px)/1.2 var(--serif); color: var(--green); }
.c-excel__body { color: var(--body); }
.c-excel dl { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.c-excel dt { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #87452a; margin-bottom: 10px; } /* a darker clay: about 5:1 on bone-2 */
.c-excel dd { margin: 0; font-size: 15px; }

/* For all */
.c-forall { padding: 160px 0 120px; color: #fff; background: linear-gradient(90deg, rgba(10,18,16,.9) 0%, rgba(10,18,16,.55) 60%, rgba(10,18,16,.2) 100%), var(--bg-img) center 60% / cover no-repeat var(--night); }
.c-forall .c-h2 { max-width: 760px; margin-bottom: 24px; }
.c-forall p { max-width: 600px; font-size: 19px; color: #e5e7e4; }

/* Community */
.c-community { padding: 104px 0; }
.c-community__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.c-community__head p { margin: 0; color: var(--body); }
.c-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.c-strip figure { margin: 0; }
.c-strip img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.c-strip figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.c-orgs { margin: 40px 0 28px; font: 400 clamp(20px, 1.8vw, 26px)/1.5 var(--serif); color: var(--green); }
.c-orgs span + span::before { content: " / "; color: var(--clay-deep); } /* clay was 2.3:1 on bone */

/* Offices */
.c-offices { padding: 104px 0; background: var(--night); color: var(--bone); }
.c-offices .c-h2 { margin-bottom: 44px; }
.c-office-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.c-office-grid li { padding: 30px 24px 10px 0; }
.c-office-grid li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.c-office-grid h3 { font: 400 34px/1 var(--serif); margin-bottom: 18px; }
.c-office-grid address { color: var(--muted-dark); font-size: 15px; }
.c-office-grid p { margin: 14px 0; }
.c-office-grid a[href^="tel"] { font-weight: 700; text-decoration: none; }
.c-note { color: var(--clay); font-size: 14px; }

/* News */
.c-news { padding: 96px 0; }
.c-news__list li { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); }
.c-news__list li:last-child { border-bottom: 1px solid var(--line); }
.c-news__list time { font: 600 13px/2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--clay-deep); }
.c-news__list h3 { font: 400 28px/1.12 var(--serif); text-wrap: pretty; }
.c-news__list h3 a { text-decoration: none; }
.c-news__list h3 a:hover { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; }
.c-news__list p { margin: 0; font-size: 15px; color: var(--muted); }

@media (max-width: 1120px) {
  .c-index__row { grid-template-columns: 1fr 1fr; }
  .c-index__img { display: none; }
  .c-team__grid > li { flex-basis: 33.333%; }
  .c-team__grid li:nth-child(4) { border-left: 0; }
  .c-office-grid { grid-template-columns: 1fr 1fr; }
  .c-office-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .c-statement__cols, .c-excel__grid, .c-community__head { grid-template-columns: 1fr; gap: 28px; }
  .c-cities { grid-template-columns: 1fr 1fr; }
  .c-cities li:nth-child(3) { border-left: 0; }
  .c-cities li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .c-index__row { grid-template-columns: 1fr; gap: 12px 16px; }
  .c-strip { grid-template-columns: 1fr 1fr; }
  .c-strip figure:first-child { grid-column: 1 / -1; }
  .c-news__list li { grid-template-columns: 1fr; gap: 8px; }
  .c-statement { padding: 80px 0 72px; }
  .c-practices, .c-team, .c-excel, .c-community, .c-offices, .c-news { padding-block: 72px; }
  /* For All band, 561 to 900 px: the paragraph runs nearly the full width, over the light fog on the
     right of the photo, so the overlay stays dark under the text (WCAG 1.4.3, 4.5:1). Phones use the
     stacked layout in the 560 px block below. */
  .c-forall { background: linear-gradient(90deg, rgba(10,18,16,.85) 0, rgba(10,18,16,.6) 640px, rgba(10,18,16,.3) 100%), var(--bg-img) center 60% / cover no-repeat var(--night); }
}
@media (max-width: 560px) {
  .c-hero { min-height: 680px; }
  /* "compassionate," fits a 320px screen (WCAG 1.4.10); long words break rather than overflow
     when a reader applies their own text spacing (1.4.12). */
  .c-hero__title { font-size: clamp(40px, 13vw, 46px); overflow-wrap: break-word; hyphens: auto; }
  .c-hero__foot { flex-direction: column; align-items: start; }
  .c-hero__actions, .c-hero__actions .c-btn { width: 100%; }
  .c-cities a { padding: 16px; font-size: 19px; }
  .c-statement { padding: 56px 0 52px; }
  .c-practices, .c-team, .c-excel, .c-community, .c-offices, .c-news { padding-block: 52px; }
  .c-practices__head, .c-team__head { flex-direction: column; align-items: start; margin-bottom: 28px; }
  .c-team__grid > li { flex-basis: 50%; }
  .c-team__grid li:nth-child(odd) { border-left: 0; }
  .c-team__grid li:nth-child(4) { border-left: 1px solid var(--line); }
  .c-person { padding: 18px 10px 4px; }
  .c-person__name { font-size: 20px; }
  .c-office-grid, .c-excel dl { grid-template-columns: 1fr; }
  .c-office-grid li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .c-band figcaption { position: static; padding: 0; }
  .c-band figcaption span { display: block; max-width: none; }
  /* Phones: the photo fills the top 380px, centred on the bridge's main tower, so the bridge shows
     above the heading; the text sits below it on the gradient into night. (380px tall is 570px wide,
     wider than any screen this rule covers.) */
  .c-forall { padding: 300px 0 64px; background: linear-gradient(180deg, rgba(10,18,16,.1) 0, rgba(10,18,16,.25) 180px, rgba(10,18,16,.85) 300px, var(--night) 380px), var(--bg-img) 50% 0 / auto 380px no-repeat var(--night); }
}
