/* ==========================================================================
   GoldenGate Agency Corp — site.css
   Single stylesheet for all pages. Original code.
   UPDATE_SPEC v2 desktop-parity pass applied (measured at 1440px).
   Contents:
     1.  Tokens + base reset
     2.  Utilities (skip link, visually hidden, containers, buttons)
     3.  Header + nav (solid interior variant + transparent home variant)
     4.  Hero (home, 100vh)
     5.  Intro band
     6.  Stats band (letters left / stats right, crossfade layers)
     7.  Display headings
     8.  Bordered expertise cards (home 3x2 grid, title-on-border)
     9.  Mission band
     10. Portfolio cards (rounded style, home featured + portfolio grid)
     11. CTA band (nested white frame)
     12. Footer
     13. Expertise page (legacy blocks + spec s8 zigzag rows + Why Partner)
     14. Contact page (form, messages, contact boxes, spec s10 compact)
     15. Legal pages
     16. Motion preferences
   Breakpoints: 991px, 767px, 600px (portfolio grids), 479px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens + base reset
   -------------------------------------------------------------------------- */

:root {
  --navy: #000000;
  --ink: #1a1b1f;
  --white: #ffffff;
  --light: #f4f4f4;
  --card-bg: #f5f5f7;
  --line: #000000;
  --gold: #9c7420;
  --gold-bright: #c6982f;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-60: rgba(255, 255, 255, 0.6);
  --overlay-navy: rgba(0, 0, 0, 0.5);
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Marcellus", Georgia, "Times New Roman", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

a {
  color: inherit;
}

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

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

/* --------------------------------------------------------------------------
   2. Utilities
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -200px;
  left: 16px;
  z-index: 1200; /* above the absolute home header (z-index 1000) */
  background: var(--navy);
  color: var(--gold);
  padding: 12px 24px;
  font-size: 16px;
  text-decoration: underline;
}

.skip-link:focus {
  top: 16px;
}

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

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

.container--narrow {
  max-width: 880px;
}

.section {
  padding: 64px 0;
}

.btn {
  display: inline-block;
  background: #000;
  color: var(--white);
  border: 1px solid #000;
  border-radius: 0;
  padding: 14px 40px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

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

/* Button variant used inside navy bands: white outline keeps it visible. */
.btn--on-navy {
  border: 1px solid var(--white);
}

.btn--on-navy:hover {
  background: #000;
  border-color: var(--white);
  opacity: 0.85;
}

/* Form submit — matches the reference: navy, full width, uppercase, spaced. */
.btn--submit {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
  width: 100%;
  padding: 12px 25px;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn--submit:hover {
  background: #32343a;
  border-color: #32343a;
}

/* --------------------------------------------------------------------------
   3. Header + nav  (spec s1)
   Default .site-header = INTERIOR variant: normal flow, solid navy.
   Home page adds .site-header--transparent: absolute, transparent, floats
   over the 100vh hero photo.
   Heights: 120px desktop, 80px at <=991px. Logo 84px desktop, 56px mobile.
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  background: var(--navy);
}

.site-header--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border: 0;
  z-index: 1000;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 152px;
  padding: 0 32px;
}

.site-nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav__logo img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav__menu a {
  display: inline-block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 2px;
  transition: color 0.2s ease;
}

.site-nav__menu a:hover {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* Subtle keyboard-focus ring instead of the heavy global gold box. */
.nav-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

  .site-nav {
    min-height: 104px;
    padding: 0 20px;
  }

  .site-nav__logo img {
    height: 84px;
  }

  /* Reference behavior: full-viewport translucent-black overlay with the
     links CENTERED, so the page/hero shows through behind it. */
  .site-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    height: calc(100vh - 80px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 0;
    overflow-y: auto;
  }

  .nav-open .site-nav__menu {
    display: flex;
  }

  .site-nav__menu a {
    display: block;
    text-align: center;
    padding: 16px 32px;
    min-height: 44px;
  }
}

/* --------------------------------------------------------------------------
   4. Hero (home)  (spec s2)
   Full 100vh, starts at page top behind the absolute transparent header.
   Top padding keeps the centered content clear of the 120px header.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 140px 24px 80px;
}

.hero--home {
  background-image: url("../images/hero-skyline.jpg");
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-navy);
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--gold);
  max-width: 1000px;
}

.hero__title {
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.25;
}

.hero__rule {
  width: min(560px, 82%);
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 28px auto;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 400;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   5. Intro band  (spec s6)
   -------------------------------------------------------------------------- */

.intro {
  background: var(--white);
  text-align: center;
}

.intro__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.intro__line1 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.intro__line2 {
  margin-top: 28px;
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 300;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   6. Stats band  (spec s3)
   Desktop: the GG monogram LEFT (skyline photos show through the mark via
   mask-image on stats-mask.png — the monogram only, strokes dilated so
   more photo reads through), stats RIGHT as a single left-aligned vertical
   column, all vertically centered in a ~650px band.
   Monogram width: min(calc(100vw - 560px), 520px) — 560px covers the side
   paddings, flex gap and the fixed-width stats column; height follows the
   mask's 1200:1402 aspect ratio (taller than wide).
   <=991px: monogram ~60vw centered, stats fall back to the 2-column grid
   below (1 column <=479px).
   Two identical masked layers are stacked in one grid cell; js/site.js
   toggles .stats-letters__layer--alt .is-visible to crossfade (6s).
   -------------------------------------------------------------------------- */

.stats {
  background: var(--navy);
  color: var(--gold);
  overflow: hidden;
}

.stats__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 650px;
  padding: 24px 64px;
}

.stats-letters {
  display: grid;
  justify-items: start;
  min-width: 0;
  user-select: none;
}

.stats-letters__layer {
  grid-area: 1 / 1;
  width: min(calc(100vw - 560px), 520px);
  aspect-ratio: 1200 / 1402;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: url("../images/stats-mask.png");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("../images/stats-mask.png");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.stats-letters__layer--alt {
  opacity: 0;
  transition: opacity 2.4s ease-in-out;
}

.stats-letters__layer--alt.is-visible {
  opacity: 1;
}

/* Right-hand column of stat pairs (value + label), left-aligned. */
.stats__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex-shrink: 0;
  text-align: left;
}

.stat__value {
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold);
}

.stat__label {
  margin-top: 6px;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 300;
  color: var(--gold);
}

@media (max-width: 991px) {
  .stats__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    gap: 0;
    padding: 64px 24px;
  }

  .stats-letters {
    justify-items: center;
  }

  .stats-letters__layer {
    width: min(60vw, 400px);
  }

  .stats__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 48px;
    margin-top: 72px;
    text-align: left;
  }
}

@media (max-width: 479px) {
  .stats__list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   7. Display headings  (spec s4 heading scale)
   Section headings (home "Our Expertise" / "Our Portfolio"): 50px/400.
   Page h1s use the --rule modifier: 50px/500 + short centered underline.
   Pages can tune the underline width with --rule-w (expertise ~130px,
   portfolio ~150px).
   -------------------------------------------------------------------------- */

.display-heading {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
}

.display-heading--rule {
  font-weight: 500;
}

.display-heading--rule::after {
  content: "";
  display: block;
  width: var(--rule-w, 150px);
  height: 1px;
  background: var(--line);
  margin: 24px auto 0;
}

/* --------------------------------------------------------------------------
   8. Bordered expertise cards (home)  (spec s4)
   3 columns x 2 rows at >=992px (2 cols <=991px, 1 col <=767px).
   Cards stretch to equal row height; the Learn More button sticks to the
   bottom via flex column + margin-top:auto. The card title sits centered
   ON the 2px top border: its white background breaks the border line.
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.card-bordered {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--line);
  padding: 44px 20px 28px;
  text-align: center;
}

.card-bordered__title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  padding: 0 16px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  width: max-content;
  max-width: calc(100% - 24px);
}

.card-bordered__body {
  font-size: 20px;
  font-weight: 400;
  line-height: 2;
  margin-bottom: 28px;
}

.card-bordered .btn {
  margin-top: auto;
  align-self: center;
  font-size: 16px;
  font-weight: 400;
  padding: 9px 20px;
}

/* With 7 cards the last one lands alone on the bottom row: center it. */
.card-grid > .card-bordered:last-child:nth-child(3n + 1) {
  grid-column: 2;
}

@media (max-width: 991px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid > .card-bordered:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .card-bordered__title {
    font-size: 19px;
    padding: 0 14px;
  }
}

/* --------------------------------------------------------------------------
   9. Mission band  (spec s5)
   -------------------------------------------------------------------------- */

.mission {
  background: var(--navy);
  color: var(--gold);
}

.mission__inner {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.mission__logo {
  flex-shrink: 0;
  width: 180px;
}

.mission__divider {
  align-self: stretch;
  width: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.mission__body {
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .mission__inner {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .mission__logo {
    width: 150px;
  }

  .mission__divider {
    align-self: center;
    width: 140px;
    height: 1px;
  }
}

/* --------------------------------------------------------------------------
   10. Portfolio cards  (spec s9)
   Shared rounded card style: #f5f5f7 bg, radius 14px, padding 26px,
   centered text; address 24px/400; image radius 6px, 3:4 cover,
   max-height 520px; borough 18px/300. Cards without an image render
   naturally shorter (grids use align-items:start).

   CLASS CONTRACT for the portfolio page agent (spec s9):
     <div class="portfolio-grid">
       <article class="property-card">
         <h2 class="property-card__address">...</h2>
         <div class="property-card__media"><img ...></div>   (omit if no image)
         <p class="property-card__borough">...</p>
       </article>
       ...
     </div>
   3 cols >=992px, 2 cols <=991px, 1 col <=600px. Keep content.json order.
   -------------------------------------------------------------------------- */

.property-card {
  background: #f0f0f0;
  border-radius: 15px;
  padding: 0 10px 20px;
  text-align: center;
}

.property-card__address {
  font-size: 24px;
  font-weight: 400;
  line-height: 38px;
  margin: 10px 0;
  padding: 10px 0;
}

.property-card__media {
  width: 90%;
  margin: 0 auto;
}

.property-card__media img {
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  border-radius: 10px;
}

.property-card__borough {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 300;
  color: #444444;
}

/* Home featured properties reuse the exact same card component. */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
  max-width: 1400px;
  margin: 64px auto 0;
  padding: 0 24px;
}

/* Portfolio page grid (spec s9). */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
  max-width: 1400px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.see-more {
  display: block;
  width: max-content;
  margin: 44px auto 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
}

.see-more:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

@media (max-width: 991px) {
  .featured-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .featured-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .property-card {
    padding: 0 8px 16px;
  }
}

/* --------------------------------------------------------------------------
   11. CTA band  (spec s7 — matches reference: WHITE card, 3px black border,
   dark text, black button, all on a navy section)
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--navy);
  padding: 50px 24px 64px;
}

/* Thin white outer frame (reference: 5px white padding around the box). */
.cta-band__outer {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--white);
  padding: 5px;
}

.cta-band__inner {
  background: var(--white);
  border: 3px solid #000;
  padding: 50px 30px;
  text-align: center;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band__body {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 2;
  max-width: 880px;
  margin: 0 auto;
  color: var(--ink);
}

.cta-band__inner .btn {
  margin-top: 24px;
  width: 50%;
  min-width: 220px;
}

@media (max-width: 600px) {
  .cta-band__inner .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--gold);
  padding: 56px 0 44px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  font-weight: 400;
}

.site-footer__brand {
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}

.site-footer a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.site-footer__contact {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.9;
}

.site-footer__address {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.7;
}

.site-footer__bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  flex-wrap: wrap;
}

.site-footer__legal {
  font-size: 12px;
  line-height: 1.8;
}

.site-footer__credit {
  font-size: 12px;
  line-height: 1.8;
  white-space: nowrap;
  margin-left: auto;
}

.site-footer__credit a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-footer__credit a:hover {
  border-bottom-color: currentColor;
}

@media (max-width: 767px) {
  .site-footer__inner {
    padding: 0 24px;
  }
}

/* --------------------------------------------------------------------------
   13. Expertise page
   13a. Legacy blocks (page-hero, expertise-section, image-band) kept
        working until expertise.html adopts the spec s8 zigzag rows.
   13b. Spec s8 page title block + alternating two-column service rows.
   13c. Why Partner With Us band (spec s8.4 sizes + 3-column card row).
   -------------------------------------------------------------------------- */

/* ---- 13a. Legacy blocks ---- */

.page-hero {
  width: 100%;
}

.page-hero img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.expertise-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 88px 24px 0;
}

.expertise-section:last-of-type {
  padding-bottom: 96px;
}

.expertise-section__heading {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 300;
  line-height: 1.2;
}

.expertise-section__heading::after {
  content: "";
  display: block;
  width: 88px;
  height: 2px;
  background: var(--line);
  margin-top: 18px;
}

.expertise-section p {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.85;
}

/* Full-width photo band between sections. */
.image-band {
  margin-top: 88px;
}

.image-band img {
  width: 100%;
  height: 60vh;
  max-height: 640px;
  object-fit: cover;
}

/* Panels that contain text graphics must never be cropped:
   letterbox them on navy instead. */
.image-band--contain {
  background: var(--navy);
}

.image-band--contain img {
  object-fit: contain;
}

/* ---- 13b. Spec s8: page title block + zigzag service rows ----
   CLASS CONTRACT for the expertise page agent:
     <div class="page-title-block">
       <h1 class="display-heading display-heading--rule">Our Expertise</h1>
     </div>
     <section class="expertise-row" id="investment">
       <div class="expertise-row__media"><img src="images/..." alt="..."></div>
       <div class="expertise-row__content">
         <div class="expertise-row__text">
           <h2 class="expertise-row__heading">...</h2>
           <p>...</p>
         </div>
       </div>
     </section>
   Default row = image LEFT / text RIGHT. Add .expertise-row--flip for
   text LEFT / image RIGHT rows. Rows using the panel images
   (insurance-panel.jpg, xrf-panel.jpg) ALSO add .expertise-row--contain
   so the baked-in text letterboxes on navy instead of cropping.
   <=767px rows stack: image on top (~52vh), then text. */

.page-title-block {
  background: var(--white);
  padding: 60px 24px;
  --rule-w: 130px;
}

.expertise-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.expertise-row__media {
  min-width: 0;
}

.expertise-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Panel rows (insurance, xrf, roof) carry baked-in text to the edges, so they
   must show whole. Instead of letterboxing on a dark frame, the panel displays
   at its natural height across the column width: no crop, no border. The row
   centers it, so any leftover row height reads as plain page space. */
.expertise-row--contain {
  align-items: center;
}

.expertise-row--contain .expertise-row__media img {
  height: auto;
}

/* Photo rows can anchor a cover-crop to one side so the key subject is kept
   (e.g. the wall logo on the right of the asset-management photo). */
.expertise-row--align-right .expertise-row__media img {
  object-position: right center;
}

.expertise-row__content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.expertise-row--flip .expertise-row__media {
  order: 2;
}

.expertise-row--flip .expertise-row__content {
  order: 1;
  justify-content: flex-end;
}

.expertise-row__text {
  /* Spec s8.3 wants ~620px of text CONTENT; with border-box the 48px
     side paddings are inside max-width, so 716px = 620 + 2*48. */
  max-width: 716px;
  padding: 64px 48px;
}

.expertise-row__heading {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.3;
}

.expertise-row__heading::after {
  content: "";
  display: block;
  width: 88px;
  height: 1px;
  background: var(--line);
  margin-top: 16px;
}

.expertise-row__text p {
  margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 2.5;
}

@media (max-width: 767px) {
  .expertise-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .expertise-row__media,
  .expertise-row--flip .expertise-row__media {
    order: 0;
  }

  .expertise-row__content,
  .expertise-row--flip .expertise-row__content {
    order: 1;
    justify-content: center;
  }

  .expertise-row__media img {
    height: 52vh;
  }

  .expertise-row__text {
    padding: 48px 24px;
  }
}

/* ---- 13c. Why Partner With Us band ---- */

.why-partner {
  background: var(--navy);
  color: var(--gold);
  margin-top: 96px;
}

.why-partner__heading {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.why-partner__intro {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 980px;
  margin: 64px auto 0;
  padding: 0 24px;
}

.why-partner__logo {
  flex-shrink: 0;
  width: 150px;
}

.why-partner__rule {
  align-self: stretch;
  width: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.why-partner__intro p {
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 300;
  line-height: 1.85;
}

.why-cards {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 820px;
  margin: 80px auto 0;
  padding: 0 24px;
}

.why-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: start;
}

.why-card__icon {
  width: 56px;
  height: 56px;
  margin-top: 4px;
}

.why-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
  fill: none;
}

.why-card__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.why-card__body {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .page-hero img {
    height: 52vh;
  }

  .image-band img {
    height: 44vh;
  }

  .why-partner__intro {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .why-partner__rule {
    align-self: center;
    width: 140px;
    height: 1px;
  }

  .why-card {
    grid-template-columns: 56px 1fr;
    gap: 20px;
  }

  .why-card__icon {
    width: 44px;
    height: 44px;
  }
}

/* --------------------------------------------------------------------------
   14. Contact page
   -------------------------------------------------------------------------- */

.contact-form {
  max-width: 880px;
  margin: 72px auto 0;
  padding: 0 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #dddddd;
  border-radius: 0;
  background: var(--white);
  padding: 14px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #767676;
  opacity: 1;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-field textarea {
  resize: vertical;
  min-height: 220px;
}

.contact-form .btn {
  display: block;
  margin: 40px auto 0;
  min-width: min(320px, 100%);
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Status message under the form; js/site.js fills it in. The element
   stays rendered from page load (never hidden or display:none) so the
   aria-live region is registered and its first update is announced.
   While empty it has no box; the state classes add the visible frame. */
.form-message {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.form-message.is-info,
.form-message.is-success,
.form-message.is-error {
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid;
}

.form-message.is-info {
  background: var(--light);
  border-color: var(--navy);
  color: var(--navy);
}

.form-message.is-success {
  background: #eef5ee;
  border-color: #1e5c2f;
  color: #1e5c2f;
}

.form-message.is-error {
  background: #faeeee;
  border-color: #8c1d1d;
  color: #8c1d1d;
}

@media (max-width: 767px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact boxes: plain icon (no box), uppercase title, detail line. */
.contact-boxes {
  display: flex;
  flex-direction: column;
  gap: 72px;
  max-width: 880px;
  margin: 96px auto 0;
  padding: 0 24px;
  text-align: center;
}

.contact-box__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-box__icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--navy);
  fill: none;
}

.contact-box__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-box__line {
  margin-top: 16px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 300;
  line-height: 1.6;
  color: #444444;
}

.contact-box__line a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-box__line a:hover {
  color: var(--gold);
}

/* ---- Spec s10: compact contact page ----
   CLASS CONTRACT for the contact page agent:
     - add .contact-compact to <main id="main"> on contact.html;
     - add .contact-boxes--row to the existing .contact-boxes section;
     - set the message textarea to rows="8";
     - h1 stays "display-heading display-heading--rule".
   Labels 12px/500/ls 1px uppercase; inputs 44px tall, 14px text (back to
   16px <=767px for iOS zoom prevention), #e4e4e4 borders, navy focus;
   submit 12px 44px; icon boxes in a 3-column row (stack <=767px) with
   plain 44px navy-stroke icons (no box), 14px titles, 16px lines, and a
   soft ambient shadow around the whole panel (reference: div-block-20). */

.contact-compact .section {
  padding: 60px 0;
}

.contact-compact .contact-form {
  margin-top: 40px;
}

.contact-compact .form-grid {
  gap: 22px 26px;
}

.contact-compact .form-field label {
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-compact .form-field input,
.contact-compact .form-field textarea {
  font-size: 14px;
  border-color: #e4e4e4;
}

.contact-compact .form-field input {
  height: 44px;
  padding: 0 14px;
}

.contact-compact .form-field textarea {
  padding: 12px 14px;
  min-height: 160px;
}

.contact-compact .form-field input:focus,
.contact-compact .form-field textarea:focus {
  border-color: var(--navy);
}

.contact-compact .contact-form .btn {
  min-width: 0;
  width: 100%;
  padding: 12px 25px;
  margin: 32px 0 0;
}

.contact-compact .contact-boxes {
  margin-top: 64px;
  padding: 48px 40px;
  background: var(--white);
  box-shadow: 0 0 20px 12px rgba(0, 0, 0, 0.2);
}

.contact-boxes--row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 1100px;
}

.contact-boxes--row .contact-box__icon {
  width: 44px;
  height: 44px;
}

.contact-boxes--row .contact-box__title {
  font-size: 14px;
  letter-spacing: 1px;
}

.contact-boxes--row .contact-box__line {
  font-size: 16px;
}

@media (max-width: 767px) {
  /* iOS zoom prevention: inputs never below 16px on small screens. */
  .contact-compact .form-field input,
  .contact-compact .form-field textarea {
    font-size: 16px;
  }

  .contact-boxes--row {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* --------------------------------------------------------------------------
   15. Legal pages
   -------------------------------------------------------------------------- */

.legal-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* Spec s11: legal page h1 matches the shared page-heading scale (50px/500). */
.legal-main h1 {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.legal-main h1::after {
  content: "";
  display: block;
  width: min(260px, 58%);
  height: 1px;
  background: var(--line);
  margin: 22px auto 0;
}

.legal-main h2 {
  margin-top: 48px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
}

.legal-main p {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
}

.legal-main a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-main .legal-updated {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: #555555;
}

/* --------------------------------------------------------------------------
   16. Motion preferences
   -------------------------------------------------------------------------- */

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

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