:root {
  --primary: #0f3a68;
  --secondary: #1e5a96;
  --accent: #6ea6d9;
  --dark: #0b2a4a;
  --text: #1f2a37;
  --muted: #5d6a79;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --line: rgba(15, 58, 104, 0.14);
  --shadow: 0 18px 50px rgba(11, 42, 74, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(110, 166, 217, 0.18), transparent 35%),
    linear-gradient(180deg, #fefefe 0%, #f7f8fb 100%);
}

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

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

.container {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(15, 58, 104, 0.08);
  box-shadow: 0 8px 28px rgba(11, 42, 74, 0.08);
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 16px));
  opacity: 0;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: nowrap;
  padding: 18px 0 14px;
}

.meta-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: auto;
  font-size: 0.68rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-nav a {
  color: #546579;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  transition: color 180ms ease, opacity 180ms ease;
}

.meta-nav a:hover,
.meta-nav a:focus-visible {
  color: var(--secondary);
}

.meta-nav a[href^="tel:"] {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--primary);
  line-height: 1;
  min-width: 232px;
  transform-origin: left center;
  transition: transform 220ms ease, filter 220ms ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 7px 10px rgba(15, 58, 104, 0.14));
}

.brand:focus-visible {
  outline: 2px solid rgba(30, 90, 150, 0.38);
  outline-offset: 6px;
  border-radius: 8px;
}

.brand-copy {
  display: block;
}

.brand-mark {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 3.73rem;
  letter-spacing: 0.04em;
}

.brand-emblem {
  width: 97px;
  height: auto;
  flex: 0 0 auto;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.brand:hover .brand-emblem,
.brand:focus-visible .brand-emblem {
  transform: rotate(-3deg) scale(1.045);
}

.brand-subtitle,
.brand-caption {
  display: block;
  margin-top: 8px;
  letter-spacing: 0.36em;
  font-size: 0.86rem;
}

.brand-subtitle {
  width: fit-content;
  transform: scaleX(1.1);
  transform-origin: left center;
}

.brand-caption {
  margin-top: 10px;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  opacity: 0.82;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  flex: 1 1 520px;
  font-size: 0.98rem;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: #1d1f25;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.main-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ea6d9, #1e5a96);
  transform: translateY(-5px) scaleX(0.25);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 240ms cubic-bezier(.22, 1, .36, 1),
    opacity 160ms ease;
}

.main-nav a.is-active {
  color: var(--secondary);
  font-weight: 700;
  background: transparent;
  box-shadow: none;
}

.main-nav a.is-active::before {
  transform: translateY(-5px) scaleX(0.25);
  opacity: 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--secondary);
  transform: translateY(-1px);
}

.main-nav a:visited {
  color: #1d1f25;
}

.main-nav a.is-active:visited,
.main-nav a:hover:visited,
.main-nav a:focus-visible:visited {
  color: var(--secondary);
}

.main-nav a:hover::before,
.main-nav a:focus-visible::before {
  transform: translateY(3px) scaleX(1);
  opacity: 1;
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--secondary);
  opacity: 0.85;
}

.aube-home-cta {
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  padding: 17px 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.btn img {
  width: 20px;
  height: 20px;
}

.btn-small span {
  display: inline-block;
  line-height: 1.05;
  text-align: left;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 58, 104, 0.16);
}

.btn-small {
  padding: 18px 24px;
  min-width: 230px;
  animation: aubeFloat 8.5s ease-in-out infinite;
}

.header-actions .btn-small:hover,
.header-actions .btn-small:focus-visible {
  animation-play-state: paused;
}

@keyframes aubeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #124d8f);
}

.btn-outline {
  color: var(--secondary);
  border: 2px solid rgba(30, 90, 150, 0.48);
  background: rgba(255, 255, 255, 0.84);
}

.hero {
  position: relative;
  overflow: clip;
  padding: 34px 0 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 38%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78) 24%, transparent 44%),
    radial-gradient(circle at 24% 54%, rgba(255, 255, 255, 0.75), transparent 32%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: 28px;
}

.hero-copy {
  padding: 72px 0 72px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--secondary);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 2.9vw, 2.35rem);
  line-height: 1.12;
  max-width: 640px;
}

.hero-title__word {
  display: inline-block;
  white-space: nowrap;
}

.hero-title__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotate(4deg);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.hero-title__letter.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.script-word {
  margin: 6px 0 12px;
  font-family: "Allura", cursive;
  color: #5b97d8;
  font-size: clamp(3.6rem, 7vw, 5.7rem);
  line-height: 0.88;
}

.script-word::after {
  content: "";
  display: block;
  width: 310px;
  max-width: 100%;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d89ca 0%, #4d89ca 82%, transparent 100%);
}

.intro {
  max-width: 590px;
  margin: 30px 0 0;
  font-size: 1.08rem;
  line-height: 1.72;
  color: #2f3f54;
}

.intro__poetic {
  display: inline-block;
  color: #244f75;
  font-family: "Playfair Display", serif;
  font-size: 1.04em;
  font-style: italic;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.hero-actions .btn-primary img {
  filter: brightness(0) invert(1);
}

.hero-visual {
  position: relative;
  padding-top: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f7f8fb;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.hero-visual.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-visual > img {
  width: 100%;
  min-height: 720px;
  height: 100%;
  object-fit: cover;
  object-position: center -110px;
  margin-bottom: -60px;
  border-radius: 0;
}

.hero-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .42) 48%, #ffffff 100%);
  pointer-events: none;
  border-radius: 0 0 18px 18px;
}

/* Seller estimate page */
.seller-estimate {
  position: relative;
  isolation: isolate;
  min-height: 980px;
  padding: 62px 0 80px;
  overflow: hidden;
  background: url("../images/chateau-frontenac-quebec.webp") center / cover no-repeat;
}

.seller-estimate::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(235, 246, 255, .96) 0%, rgba(235, 246, 255, .82) 43%, rgba(235, 246, 255, .2) 72%),
    linear-gradient(180deg, rgba(225, 242, 255, .88) 0%, rgba(225, 242, 255, .2) 58%, rgba(5, 34, 61, .62) 100%);
}

.seller-estimate__grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(540px, 1.14fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.seller-estimate__intro {
  display: flex;
  flex-direction: column;
  min-height: 850px;
  padding: 38px 0 16px;
}

.seller-estimate__eyebrow {
  position: relative;
  margin: 0 0 30px;
  padding-bottom: 18px;
  color: var(--secondary);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.seller-estimate__eyebrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 46px;
  height: 3px;
  background: var(--secondary);
}

.seller-estimate__intro h1 {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: clamp(3.25rem, 5.2vw, 5.3rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
}

.seller-estimate__lead {
  max-width: 610px;
  margin: 0;
  color: #294867;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.58;
}

.seller-estimate__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

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

.seller-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
}

.seller-benefit h2 {
  margin: 0 0 7px;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: 1.02rem;
}

.seller-benefit p {
  margin: 0;
  color: #35516d;
  font-size: .88rem;
  line-height: 1.45;
}

.seller-estimate__signature {
  margin: auto 0 0;
  width: fit-content;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(235, 246, 255, .82);
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-style: italic;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(255, 255, 255, .9);
}

.seller-estimate__form {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(15, 58, 104, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 70px rgba(8, 41, 76, .16);
}

.seller-estimate__form-intro {
  margin-bottom: 26px;
}

.seller-estimate__form-intro .seller-estimate__eyebrow {
  margin-bottom: 18px;
  padding-bottom: 0;
}

.seller-estimate__form-intro .seller-estimate__eyebrow::after {
  display: none;
}

.seller-estimate__form-intro h2 {
  margin: 0 0 12px;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 3.8vw, 3.45rem);
  line-height: 1;
}

.seller-estimate__form-intro > p:last-child {
  margin: 0;
  color: #425466;
  line-height: 1.55;
}

.seller-estimate__form .wpcf7 {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-template-page-vendre .site-footer,
.page-id-18 .site-footer,
.page-id-17 .site-footer {
  margin-top: 0;
}

.buyer-alert-page {
  background-image: url("../images/image-quebec-rue.jpg");
  background-position: center;
}

.buyer-alert-page::before {
  background:
    linear-gradient(90deg, rgba(226, 238, 255, .93) 0%, rgba(226, 238, 255, .78) 43%, rgba(226, 238, 255, .14) 72%),
    linear-gradient(180deg, rgba(192, 215, 255, .72) 0%, rgba(192, 215, 255, .1) 58%, rgba(5, 25, 55, .62) 100%);
}

.buyer-alert-page .seller-estimate__benefits {
  grid-template-columns: 1fr;
  max-width: 520px;
  gap: 20px;
}

.buyer-alert-page .seller-benefit {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.buyer-alert-page .seller-benefit__icon {
  grid-row: 1;
  margin: 0;
}

.buyer-alert-page .seller-benefit h2 {
  margin-bottom: 4px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

@media (max-width: 1050px) {
  .buyer-alert-page::before {
    background:
      linear-gradient(180deg, rgba(226, 238, 255, .94) 0%, rgba(226, 238, 255, .78) 48%, rgba(5, 25, 55, .62) 72%, rgba(5, 25, 55, .74) 100%);
  }
}

@media (max-width: 1050px) {
  .seller-estimate__grid {
    grid-template-columns: 1fr;
    max-width: 780px;
  }

  .seller-estimate__intro {
    min-height: 650px;
  }

  .seller-estimate::before {
    background:
      linear-gradient(180deg, rgba(235, 246, 255, .96) 0%, rgba(235, 246, 255, .78) 48%, rgba(5, 34, 61, .62) 72%, rgba(5, 34, 61, .74) 100%);
  }
}

@media (max-width: 680px) {
  .seller-estimate {
    padding: 34px 0 52px;
    background-position: 38% center;
  }

  .seller-estimate__intro {
    min-height: 620px;
    padding-top: 14px;
  }

  .seller-estimate__intro h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .seller-estimate__benefits {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .seller-benefit {
    display: grid;
    grid-template-columns: 48px 1fr;
    text-align: left;
  }

  .seller-benefit__icon {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .seller-estimate__signature {
    margin-top: auto;
    padding: 16px 18px;
  }

  .seller-estimate__form {
    padding: 28px 22px;
    border-radius: 18px;
  }
}

.floating-card {
  position: absolute;
  right: 28px;
  bottom: 94px;
  width: 230px;
  padding: 20px 22px 18px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 58, 104, 0.96), rgba(18, 77, 143, 0.96));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floating-card > img:first-child {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
}

.floating-card p:last-of-type {
  margin: 0;
  line-height: 1.6;
}

.cityline {
  width: 100%;
  margin-top: 16px;
  opacity: 0.92;
}

.signature-band {
  margin-top: 20px;
  background: linear-gradient(90deg, #0f3a68 0%, #1b548e 100%);
  color: var(--white);
}

.signature-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 32px;
  align-items: center;
  padding: 18px 0 16px;
}

.signature-copy {
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.signature-name {
  margin: 0;
  font-family: "Allura", cursive;
  font-size: 3.3rem;
  line-height: 0.95;
}

.signature-role {
  margin: 8px 0 0;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.feature-list li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-list img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.services {
  background: linear-gradient(90deg, #0f3a68 0%, #1b548e 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 10px 0 26px;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-intro h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.14;
}

.testimonial-band .section-intro {
  margin-bottom: clamp(2.75rem, 5vw, 4rem);
}

.section-intro--light h2 {
  color: var(--white);
}

.service-card {
  display: flex;
  gap: 18px;
  padding: 10px 20px;
  min-height: 138px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 420ms ease,
    transform 420ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-radius 220ms ease;
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:not(:last-child) {
  border-right: 1px solid var(--line);
}

.service-card img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.service-card h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  line-height: 1.55;
  color: #334358;
}

.service-card:hover {
  background: rgba(15, 58, 104, 0.03);
  box-shadow: 0 12px 28px rgba(15, 58, 104, 0.08);
}

.service-card {
  border-right: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.service-card:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .22);
}

.service-card h2,
.service-card p {
  color: #fff;
}

.service-card img {
  filter: brightness(0) invert(1);
}

.service-card:hover {
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  border-radius: 14px;
}

.testimonial-gallery {
  background: linear-gradient(180deg, #0b2a4a 0%, #0f3a68 100%);
  color: var(--white);
  padding: 24px 0 28px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 28px;
  align-items: center;
}

.testimonial {
  margin: 0;
  padding: 12px 12px 12px 0;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.testimonial.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-intro h2 {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.section-intro h2.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9997;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  background: rgba(15, 58, 104, 0.94);
  color: #fff;
  box-shadow: 0 16px 28px rgba(11, 42, 74, 0.22);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #124d8f;
}

.back-to-top__icon {
  font-size: 1rem;
  line-height: 1;
}

.testimonial__quote {
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 8px;
  color: inherit;
  opacity: 0.45;
  font-family: Georgia, serif;
}

.testimonial p {
  margin: 0;
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.82;
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  font-size: 1.06rem;
}

.temo-stars {
  color: #f5a623;
  letter-spacing: 0.1em;
  font-size: 1rem;
}

.stars {
  letter-spacing: 0.22em;
}

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

.gallery img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 1180px) {
  .header-inner {
    justify-content: center;
  }

  .brand {
    min-width: 0;
    text-align: center;
  }

  .hero-grid,
  .signature-grid,
  .testimonial-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card:not(:last-child),
  .signature-copy {
    border-right: 0;
  }

  .services-grid {
    gap: 0;
  }

  .service-card {
    border-right: 0;
  }

  .service-card {
    min-height: auto;
    padding-inline: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    gap: 18px;
    padding: 20px 0 16px;
  }

  .main-nav {
    flex: 1 1 100%;
    gap: 12px 18px;
    font-size: 0.9rem;
  }

  .btn-small {
    min-width: 0;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy {
    padding: 28px 0 8px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.35rem, 4.2vw, 2rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  .script-word {
    font-size: clamp(3.1rem, 12vw, 4.6rem);
  }

  .hero-visual > img {
    min-height: 520px;
  }

  .floating-card {
    right: 20px;
    bottom: 20px;
    width: min(250px, calc(100% - 40px));
  }

  .feature-list,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    padding-block: 18px;
  }
}

@media (max-width: 680px) {
  .main-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 4.2vw, 2rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  .eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .intro {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-visual > img {
    min-height: 440px;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .signature-grid,
  .testimonial-grid {
    gap: 20px;
  }

  .signature-copy {
    padding-right: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 1200px);
  }

  .brand-mark {
    font-size: 2.35rem;
  }

  .main-nav {
    font-size: 0.86rem;
  }

  .btn,
  .btn-small {
    width: 100%;
    min-width: 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 4.2vw, 2rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  .script-word {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .script-word::after {
    width: 220px;
  }

  .signature-name {
    font-size: 2.3rem;
  }

  .signature-role {
    font-size: 0.92rem;
    letter-spacing: 0.08em;
  }

  .feature-list,
  .gallery {
    grid-template-columns: 1fr;
  }

  .service-card {
    flex-direction: column;
    gap: 12px;
  }

  .gallery img {
    height: 200px;
  }

  .testimonial footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .stars {
    letter-spacing: 0.14em;
  }
}


body {
  overflow-x: hidden;
}

/* Agency page */
.agency-page {
  color: var(--dark);
}

.agency-hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 29%, rgba(255, 255, 255, .35) 52%, rgba(255, 255, 255, 0) 72%),
    url("../images/image-quebec-vue-du-ciel.webp");
  background-position: center;
  background-size: cover;
}

.agency-hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 570px;
  padding-top: 68px;
  padding-bottom: 68px;
}

.agency-hero__copy {
  max-width: 570px;
}

.agency-eyebrow {
  margin: 0 0 20px;
  color: var(--secondary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.agency-hero h1 {
  margin: 0 0 24px;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.035em;
}

.agency-hero__copy > p:last-child {
  max-width: 530px;
  margin: 0;
  color: #294867;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.agency-values {
  position: absolute;
  top: 52px;
  right: 0;
  display: grid;
  gap: 7px;
  margin: 0;
  padding-bottom: 18px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.agency-values::after {
  content: "";
  width: 82px;
  height: 2px;
  margin-top: 5px;
  background: var(--primary);
}

.agency-pillars {
  padding: 58px 0 64px;
  background: #fbfaf7;
}

.agency-pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agency-pillar {
  padding: 0 34px;
  border-left: 1px solid rgba(15, 58, 104, .18);
}

.agency-pillar:first-child {
  padding-left: 0;
  border-left: 0;
}

.agency-pillar:last-child {
  padding-right: 0;
}

.agency-pillar h3 {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 18px;
  color: var(--primary);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.agency-pillar h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 2px;
  background: var(--gold);
}

.agency-pillar p {
  margin: 0;
  color: #294867;
  line-height: 1.6;
}

.agency-signature {
  padding: 38px 0 34px;
  background: linear-gradient(135deg, #082947, #0f3a68);
  color: #fff;
  text-align: center;
}

.agency-signature p {
  position: relative;
  margin: 0 0 10px;
  padding-bottom: 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.agency-signature p::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 48px;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

.agency-signature .container > span {
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .agency-signature p > span {
    display: block;
  }
}

.agency-team {
  padding: 76px 0 82px;
  background: #f3f6f8;
}

.agency-team__intro {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.agency-team__intro h2 {
  margin: 0;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.agency-team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.agency-profile {
  overflow: hidden;
  border: 1px solid rgba(15, 58, 104, .1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(11, 42, 74, .08);
}

.agency-profile > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 700ms ease;
}

.agency-profile:hover > img {
  transform: scale(1.018);
}

.agency-profile__content {
  padding: 32px 34px 36px;
}

.agency-profile__heading {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(15, 58, 104, .12);
}

.agency-profile h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.agency-profile__role {
  margin: 0;
  color: var(--secondary);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.agency-profile__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
}

.agency-profile__contact a {
  color: var(--secondary);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.agency-profile__contact a:last-child::after {
  content: " →";
}

.agency-profile__contact a[href^="mailto"]::after {
  content: none;
}

.agency-profile__contact a:hover,
.agency-profile__contact a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.agency-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.agency-social a {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--primary);
  background: #edf4fa;
  border: 1px solid #d7e4f0;
  border-radius: 50%;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.agency-social a:hover,
.agency-social a:focus-visible {
  color: #fff;
  background: var(--primary);
  transform: translateY(-2px);
}

.agency-social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.agency-profile__quote {
  margin: 0;
  color: #596b7d;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-style: italic;
}

.agency-profile__content > p:not(.agency-profile__quote) {
  margin: 0 0 18px;
  color: #354f68;
  line-height: 1.68;
}

.agency-profile__content > p:last-child {
  margin-bottom: 0;
}

.agency-contact {
  padding: 70px 0 18px;
}

.agency-contact__intro {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.agency-contact__intro h2 {
  margin: 0;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

@media (max-width: 980px) {
  .agency-hero {
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .9) 48%, rgba(255, 255, 255, .18) 100%),
      url("../images/image-quebec-vue-du-ciel.webp");
  }

  .agency-pillars__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 0;
  }

  .agency-pillar:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .agency-team__grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .agency-hero,
  .agency-hero__inner {
    min-height: 600px;
  }

  .agency-hero {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .88) 65%, rgba(255, 255, 255, .45) 100%),
      url("../images/image-quebec-vue-du-ciel.webp");
    background-position: 58% center;
  }

  .agency-hero__inner {
    align-items: flex-end;
    padding-top: 115px;
    padding-bottom: 44px;
  }

  .agency-values {
    top: 34px;
    left: 0;
    right: auto;
    grid-template-columns: repeat(3, auto);
    gap: 12px;
  }

  .agency-values::after {
    position: absolute;
    bottom: 0;
    left: 0;
  }

  .agency-hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .agency-pillars__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .agency-pillar,
  .agency-pillar:first-child,
  .agency-pillar:nth-child(3),
  .agency-pillar:last-child {
    padding: 30px 0;
    border: 0;
    border-top: 1px solid rgba(15, 58, 104, .14);
  }

  .agency-pillar:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .agency-signature p {
    letter-spacing: .1em;
  }

  .agency-team {
    padding: 54px 0 60px;
  }

  .agency-profile {
    border-radius: 16px;
  }

  .agency-profile__content {
    padding: 26px 22px 30px;
  }
}

iframe,
svg {
  max-width: 100%;
}

.header-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "meta meta"
    "nav cta";
  align-items: end;
  justify-content: end;
  gap: 6px 18px;
  flex: 1 1 620px;
  min-width: 0;
}

.header-actions > .main-nav {
  grid-area: nav;
  width: auto;
}

.header-actions > .btn-small {
  grid-area: cta;
  justify-self: end;
  width: 176px;
  min-width: 176px;
  justify-content: center;
  text-align: center;
}

.header-actions > .meta-nav {
  grid-area: meta;
  justify-self: end;
  justify-content: center;
  width: 176px;
  text-align: center;
  margin-top: -4px;
  margin-bottom: 6px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(15, 58, 104, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--dark);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle__icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 1180px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-actions {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    align-items: center;
    gap: 10px;
  }

  .main-nav {
    flex: 0 1 auto;
  }

  .meta-nav {
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 860px) {
  .header-inner {
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 12px;
  }

  .brand {
    text-align: left;
    max-width: calc(100% - 88px);
  }

  .brand-emblem {
    display: block;
    width: 58px;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .header-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 58, 104, 0.1);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(11, 42, 74, 0.08);
  }

  .meta-nav {
    justify-content: flex-start;
    gap: 10px;
    font-size: 0.68rem;
    margin: 0;
  }

  .site-header.is-menu-open .header-actions {
    display: flex;
  }

  .main-nav {
    display: grid;
    gap: 2px;
    flex: none;
  }

  .main-nav a {
    display: block;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(15, 58, 104, 0.03);
  }

  .main-nav a::before {
    inset: 0;
    bottom: 0;
    height: auto;
    background: linear-gradient(135deg, rgba(110, 166, 217, 0.2), rgba(15, 58, 104, 0.08));
  }

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

  .main-nav a.is-active {
    background: linear-gradient(135deg, rgba(110, 166, 217, 0.28), rgba(15, 58, 104, 0.1));
    box-shadow: inset 0 0 0 1px rgba(15, 58, 104, 0.12);
  }

  .main-nav a.is-active::before {
    opacity: 1;
    transform: none;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero-copy {
    padding: 18px 0 0;
  }

  .hero-visual > img {
    min-height: 420px;
  }

  .hero-visual::after {
    display: none;
  }

  .signature-grid {
    padding: 24px 0;
  }
}

@media (max-width: 680px) {
  .brand-mark {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .brand-emblem {
    width: 48px;
  }

  .brand-subtitle,
  .brand-caption {
    letter-spacing: 0.14em;
    font-size: 0.72rem;
  }

  .brand-subtitle {
    letter-spacing: 0.168em;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-visual > img {
    min-height: 340px;
    object-position: center -40px;
  }

  .floating-card {
    padding: 18px;
    margin-bottom: 24px;
  }

  .services-grid {
    padding: 12px 0;
  }

  .testimonial-band,
  .accueil-content,
  .content-page {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .header-inner {
    padding: 16px 0 14px;
  }

  .nav-toggle {
    width: 100%;
  }

  .brand {
    max-width: none;
    width: 100%;
  }

  .brand-emblem {
    width: 42px;
  }

  .site-header.is-hidden {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .back-to-top {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.85rem 0.95rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .intro {
    max-width: none;
  }

  .btn,
  .btn-small {
    padding: 15px 18px;
  }

  .service-card {
    padding: 16px 0;
  }
}

@media (max-width: 768px) {
  .page-id-19 .centris-reco-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .page-id-19 .centris-reco-card {
    padding: 1rem !important;
  }
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 58, 104, 0.12);
}

.post-nav__item {
  min-height: 100%;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(15, 58, 104, 0.04);
}

.post-nav__item--next {
  text-align: right;
}

.post-nav__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #718096;
}

.post-nav a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.45;
}

.post-nav a:hover {
  color: var(--primary);
}

@media (max-width: 680px) {
  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav__item--next {
    text-align: left;
  }
}

body.agency-motion-ready .agency-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

body.agency-motion-ready .agency-reveal--left {
  transform: translateX(-18px);
}

body.agency-motion-ready .agency-reveal--right {
  transform: translateX(18px);
}

body.agency-motion-ready .agency-reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.agency-pillar:nth-child(2).is-visible { transition-delay: 100ms; }
.agency-pillar:nth-child(3).is-visible { transition-delay: 180ms; }
.agency-pillar:nth-child(4).is-visible { transition-delay: 260ms; }
.agency-profile:nth-child(2).is-visible { transition-delay: 150ms; }

/* Courtier pages and profile cards */
.agency-pillar p,
.agency-profile__content,
.courtier-profile__bio {
  text-align: left;
}

.agency-team__intro > p:last-child {
  margin: 14px 0 0;
  color: #526b82;
  line-height: 1.6;
}

.agency-profile--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.agency-profile--link:hover,
.agency-profile--link:focus-visible {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(11, 42, 74, .15);
}

.agency-profile--link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.agency-profile__name {
  display: block;
  margin: 0 0 8px;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
}

.agency-profile__link-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-size: .9rem;
  font-weight: 700;
}

.courtier-profile {
  padding: clamp(42px, 7vw, 92px) 0;
  background: #f3f6f8;
}

.courtier-profile__layout {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(32px, 6vw, 84px);
}

.courtier-profile__portrait img {
  display: block;
  width: 100%;
  max-height: 720px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: 0 18px 48px rgba(11, 42, 74, .12);
}

.courtier-profile__main h1 {
  margin: 0 0 12px;
  color: var(--primary);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.courtier-profile__main h1 > .courtier-profile__name--nowrap {
  white-space: nowrap;
}

.courtier-profile__role {
  margin: 0;
  color: var(--secondary);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.55;
  text-transform: uppercase;
}

.courtier-profile__contact,
.courtier-profile__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
}

.courtier-profile__contact a,
.courtier-profile__social a,
.courtier-profile__back {
  color: var(--primary);
  font-weight: 700;
  text-decoration-color: rgba(15, 58, 104, .4);
  text-underline-offset: 4px;
}

.courtier-profile__bio {
  margin-top: 30px;
  color: #354f68;
  font-size: 1.05rem;
  line-height: 1.78;
}

.courtier-profile__bio p {
  margin: 0 0 20px;
}

.courtier-profile__bio strong {
  color: #173d62;
}

.courtier-profile__back {
  display: inline-block;
  margin-top: 30px;
}

@media (max-width: 760px) {
  .courtier-profile__layout {
    grid-template-columns: 1fr;
  }

  .courtier-profile__main h1 {
    font-size: clamp(1.75rem, 8.8vw, 2.5rem);
  }

  .courtier-profile__portrait img {
    width: min(100%, 520px);
    max-height: 520px;
    margin-inline: auto;
  }
}

/* Refined layout for the agency team cards */
.agency-team__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
  max-width: 1080px;
  margin-inline: auto;
}

.agency-profile--link {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  border-radius: 24px;
  text-align: center;
}

.agency-profile--link > img {
  display: block;
  width: 100%;
  height: clamp(190px, 21vw, 250px);
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  border-radius: 24px 24px 0 0;
  object-fit: cover;
  object-position: center 20%;
}

.agency-profile--link .agency-profile__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 14px clamp(18px, 2vw, 24px) 22px;
  text-align: center;
}

.agency-team__grid > br,
.agency-profile--link br {
  display: none !important;
}

.agency-profile--link .agency-profile__heading {
  width: 100%;
  justify-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.agency-profile--link .agency-profile__role {
  max-width: 34ch;
  margin-inline: auto;
}

.agency-profile--link .agency-profile__quote {
  color: #526b82;
  font-size: 1.2rem;
}

.agency-profile__link-label {
  margin-top: auto;
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  transition: background-color .2s ease, transform .2s ease;
}

.agency-profile--link:hover .agency-profile__link-label,
.agency-profile--link:focus-visible .agency-profile__link-label {
  color: #fff;
  background: var(--secondary);
  transform: translateY(-1px);
}

/* Courtier profile details */
.courtier-profile__layout {
  align-items: start;
}

.courtier-profile__portrait {
  position: sticky;
  top: 36px;
}

.courtier-profile__lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.courtier-profile__lightbox-trigger img {
  transition: transform .45s ease;
}

.courtier-profile__lightbox-trigger:hover img,
.courtier-profile__lightbox-trigger:focus-visible img {
  transform: scale(1.025);
}

.courtier-profile__lightbox-trigger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.courtier-profile__social {
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
}

.courtier-profile__social a {
  padding: 8px 11px;
  border: 1px solid #d6e2ed;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-size: .76rem;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.courtier-profile__social a:hover,
.courtier-profile__social a:focus-visible {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.courtier-profile__contact {
  gap: 12px;
  margin-top: 26px;
}

.courtier-profile__contact-card {
  display: flex;
  flex: 1 1 190px;
  align-items: center;
  gap: 13px;
  min-height: 74px;
  padding: 13px 16px;
  border: 1px solid rgba(15, 58, 104, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  text-decoration: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.courtier-profile__contact-card:hover,
.courtier-profile__contact-card:focus-visible {
  border-color: rgba(15, 58, 104, .42);
  box-shadow: 0 8px 24px rgba(11, 42, 74, .08);
  transform: translateY(-2px);
}

.courtier-profile__contact-card > svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  fill: none;
  stroke: var(--secondary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.courtier-profile__contact-card > span {
  display: grid;
  gap: 3px;
  text-align: left;
}

.courtier-profile__contact-card small {
  color: #60768a;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.courtier-profile__contact-card strong {
  color: var(--primary);
  font-size: .95rem;
}

.courtier-profile__bio {
  max-width: 68ch;
  margin-top: 34px;
  font-size: 1.06rem;
  line-height: 1.82;
}

.courtier-profile__bio p {
  margin-bottom: 22px;
}

.courtier-profile__back {
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(15, 58, 104, .3);
  font-size: .92rem;
  text-decoration: none;
}

.courtier-profile__back:hover,
.courtier-profile__back:focus-visible {
  border-color: var(--primary);
}

.courtier-lightbox {
  position: fixed;
  width: min(92vw, 1100px);
  max-width: none;
  max-height: 92vh;
  padding: 54px 18px 18px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 18px;
  background: #081b2b;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .45);
}

.courtier-lightbox::backdrop {
  background: rgba(3, 15, 26, .84);
  backdrop-filter: blur(5px);
}

.courtier-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 76px);
  margin-inline: auto;
  border-radius: 10px;
  object-fit: contain;
}

.courtier-lightbox__close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.courtier-lightbox__close span {
  font-size: 1.3rem;
  line-height: 1;
}

@media (max-width: 620px) {
  .agency-team__grid {
    grid-template-columns: 1fr;
  }

  .agency-profile--link {
    width: 100%;
  }

  .agency-profile--link > img {
    height: clamp(190px, 58vw, 250px);
  }

  .courtier-profile__portrait {
    position: static;
  }

  .courtier-profile__social {
    margin-bottom: 8px;
  }
}

@media (min-width: 621px) {
  .agency-page .agency-team .agency-team__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-profile--link,
  .courtier-profile__lightbox-trigger img,
  .courtier-profile__contact-card,
  .courtier-profile__social a {
    transition: none;
  }
}

.courtier-profile__bio {
  margin-top: 30px;
  padding: 24px 28px;
  border: 1px solid #dce6ef;
  border-left: 3px solid #b6cada;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 42, 74, .045);
  color: #263f56;
}

.courtier-profile__bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 680px) {
  .courtier-profile__bio {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.agency-motion-ready .agency-reveal {
    opacity: 0;
    transform: none;
    transition: opacity 260ms ease;
    will-change: opacity;
  }

  body.agency-motion-ready .agency-reveal.is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
