/*
 * agent-v2.css — Mantle Realty Child Theme
 *
 * Purpose: styles for the LIVE single agent page template.
 * Scoped entirely under .mr-agent-v2 — does NOT affect global elements.
 * Loaded by functions.php on: is_singular('agents')
 * Depends on: tokens.css, base.css, components.css
 *
 * STATUS: This is the live agent template (rendered via the
 *   [mantle_agent_v2] shortcode / template-parts/agent-v2.php, which
 *   outputs the .mr-agent-v2 wrapper). The older agents.css layout has
 *   been retired and is no longer enqueued.
 *
 * HOW IT WORKS:
 *   - The [mantle_agent_v2] shortcode wraps its output in .mr-agent-v2.
 *   - Every selector here is prefixed with .mr-agent-v2, so nothing
 *     here can leak into other templates or global elements.
 *   - Do NOT add these rules to base.css or components.css.
 *
 * Sections:
 *   1.  CSS Variables (scoped)
 *   2.  Box-sizing / base reset (scoped)
 *   3.  Page shell / spacing
 *   4.  Shared utilities (eyebrow, title, button, inline link)
 *   5.  Hero
 *   6.  Primary Office strip
 *   7.  Bio + Fun Fact (story grid)
 *   8.  Social row
 *   9.  Reviews
 *   10. Helpful Next Steps
 *   11. Bottom CTA
 *   12. Responsive breakpoints
 *   13. Reduced-motion
 */


/* ============================================================
   1. CSS Variables — scoped to .mr-agent-v2
   ============================================================ */

.mr-agent-v2 {
  --v2-orange:       #f69320;
  --v2-blue:         #0A76B6;
  --v2-light-blue:   #40aee3;
  --v2-gray:         #718a94;
  --v2-text:         #18222c;
  --v2-text-soft:    #546575;
  --v2-line:         rgba(10, 118, 182, 0.12);
  --v2-line-strong:  rgba(10, 118, 182, 0.20);
  --v2-bg:           #ffffff;
  --v2-bg-soft:      #f5f9fc;
  --v2-navy:         #0d2d42;
  --v2-navy-2:       #102f45;
  --v2-navy-3:       #13283b;
  --v2-shadow-sm:    0 12px 28px rgba(10, 38, 64, 0.08);
  --v2-shadow-md:    0 22px 52px rgba(10, 38, 64, 0.12);
  --v2-shadow-lg:    0 34px 80px rgba(10, 38, 64, 0.14);
  --v2-radius-sm:    16px;
  --v2-radius-md:    24px;
  --v2-radius-lg:    32px;
  --v2-max:          1240px;
  --v2-speed:        0.28s ease;
}


/* ============================================================
   2. Box-sizing / base reset — scoped
   ============================================================ */

.mr-agent-v2 *,
.mr-agent-v2 *::before,
.mr-agent-v2 *::after {
  box-sizing: border-box;
}

.mr-agent-v2 a {
  text-decoration: none;
  color: inherit;
}

.mr-agent-v2 img {
  max-width: 100%;
  display: block;
}


/* ============================================================
   3. Page shell / spacing
   ============================================================ */

.mr-agent-v2 {
  background:
    radial-gradient(circle at top left, rgba(64, 174, 227, 0.09), transparent 22%),
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 18%, #ffffff 100%);
  color: var(--v2-text);
  font-family: "Montserrat", "Gotham", Arial, sans-serif;
}

.mr-agent-v2 .mr-agent-page {
  min-height: 100vh;
  padding: 28px 16px 68px;
}

.mr-agent-v2 .mr-shell {
  width: min(calc(100% - 8px), var(--v2-max));
  margin: 0 auto;
}

.mr-agent-v2 .mr-section + .mr-section {
  margin-top: 28px;
}


/* ============================================================
   4. Shared utilities
   ============================================================ */

/* Eyebrow label */
.mr-agent-v2 .mr-eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--v2-blue);
}

/* Section / card titles */
.mr-agent-v2 .mr-title,
.mr-agent-v2 .mr-card-title,
.mr-agent-v2 .mr-cta-title {
  font-family: "Gotham", "Montserrat", Arial, sans-serif;
  font-weight: 800;
  color: var(--v2-text);
  margin: 0;
}

/* Buttons — base */
.mr-agent-v2 .mr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: var(--v2-radius-sm);
  font-family: "Montserrat", "Gotham", Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--v2-speed),
    box-shadow var(--v2-speed),
    background var(--v2-speed),
    color var(--v2-speed),
    border-color var(--v2-speed);
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}

.mr-agent-v2 .mr-button:hover {
  transform: translateY(-2px);
}

.mr-agent-v2 .mr-button:focus-visible {
  outline: 2px solid var(--v2-light-blue);
  outline-offset: 3px;
}

/* Button variants */
.mr-agent-v2 .mr-button--dark {
  background: var(--v2-navy-3);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(19, 40, 59, 0.18);
}

.mr-agent-v2 .mr-button--dark:hover {
  background: #0d1d2c;
}

.mr-agent-v2 .mr-button--orange {
  background: linear-gradient(135deg, var(--v2-orange), #f7a43f);
  color: #13202c;
  box-shadow: 0 14px 28px rgba(246, 147, 32, 0.24);
}

.mr-agent-v2 .mr-button--orange:hover {
  box-shadow: 0 20px 34px rgba(246, 147, 32, 0.32);
}

.mr-agent-v2 .mr-button--ghost {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(10, 118, 182, 0.14);
  color: var(--v2-blue);
  box-shadow: var(--v2-shadow-sm);
}

.mr-agent-v2 .mr-button--ghost:hover {
  background: rgba(10, 118, 182, 0.06);
}

.mr-agent-v2 .mr-button--ghost-light {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.mr-agent-v2 .mr-button--ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Inline link */
.mr-agent-v2 .mr-inline-link {
  color: var(--v2-blue);
  font-weight: 800;
  transition: color var(--v2-speed), transform var(--v2-speed);
}

.mr-agent-v2 .mr-inline-link:hover {
  color: var(--v2-orange);
  transform: translateX(2px);
}


/* ============================================================
   5. Hero
   ============================================================ */

.mr-agent-v2 .mr-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--v2-radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,253,0.98));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--v2-shadow-lg);
}

/* Decorative blobs */
.mr-agent-v2 .mr-hero::before,
.mr-agent-v2 .mr-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(6px);
  opacity: 0.9;
}

.mr-agent-v2 .mr-hero::before {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -50px;
  background: rgba(64, 174, 227, 0.14);
}

.mr-agent-v2 .mr-hero::after {
  width: 180px;
  height: 180px;
  left: -45px;
  bottom: -45px;
  background: rgba(246, 147, 32, 0.12);
}

/* Hero two-column grid */
.mr-agent-v2 .mr-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.mr-agent-v2 .mr-hero-media {
  display: flex;
  justify-content: flex-start;
}

/* Photo card */
.mr-agent-v2 .mr-photo-card {
  position: relative;
  width: min(100%, 440px);
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(247,251,254,0.98));
  border: 1px solid rgba(255, 255, 255, 0.90);
  box-shadow: var(--v2-shadow-md);
  transition: transform var(--v2-speed), box-shadow var(--v2-speed);
}

.mr-agent-v2 .mr-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 76px rgba(10, 38, 64, 0.16);
}

/* Decorative orange glow behind photo */
.mr-agent-v2 .mr-photo-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246,147,32,0.24) 0%, rgba(246,147,32,0) 72%);
  pointer-events: none;
}

/* Headshot image */
.mr-agent-v2 .mr-headshot {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  background: #dbe8f0;
}

/* No-photo fallback — rendered instead of a broken img */
.mr-agent-v2 .mr-headshot-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.7;
  border-radius: 22px;
  background: linear-gradient(180deg, #dbe8f0, #c8dde9);
}

/* Photo card footer (office label + pill) */
.mr-agent-v2 .mr-photo-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  padding: 16px 4px 2px;
  position: relative;
  z-index: 1;
}

.mr-agent-v2 .mr-photo-footer p {
  margin: 0;
}

.mr-agent-v2 .mr-photo-footer .mr-label {
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--v2-blue);
  margin-bottom: 8px;
}

.mr-agent-v2 .mr-photo-footer .mr-office-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--v2-text);
}

.mr-agent-v2 .mr-photo-footer .mr-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(10, 118, 182, 0.07);
  border: 1px solid rgba(10, 118, 182, 0.10);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--v2-blue);
  text-align: right;
  flex-shrink: 0;
}

/* Hero content (right column) */
.mr-agent-v2 .mr-hero-content {
  max-width: 640px;
}

.mr-agent-v2 .mr-name {
  margin: 0 0 10px;
  font-family: "Gotham", "Montserrat", Arial, sans-serif;
  font-size: clamp(2.35rem, 4vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--v2-text);
}

.mr-agent-v2 .mr-role {
  margin: 0 0 16px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--v2-blue);
}

.mr-agent-v2 .mr-summary {
  margin: 0 0 24px;
  max-width: 58ch;
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--v2-text-soft);
  overflow-wrap: anywhere;
}

.mr-agent-v2 .mr-hero-actions,
.mr-agent-v2 .mr-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero meta dots row */
.mr-agent-v2 .mr-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--v2-gray);
  font-size: 0.92rem;
}

.mr-agent-v2 .mr-hero-meta span {
  position: relative;
}

.mr-agent-v2 .mr-hero-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(113, 138, 148, 0.45);
}


/* ============================================================
   6. Primary Office strip
   ============================================================ */

.mr-agent-v2 .mr-office-strip {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-radius: var(--v2-radius-md);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow-sm);
}

.mr-agent-v2 .mr-office-thumb img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--v2-radius-sm);
  background: #dbe8f0;
}

.mr-agent-v2 .mr-office-details p,
.mr-agent-v2 .mr-office-contact p {
  margin: 0;
}

.mr-agent-v2 .mr-office-title {
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--v2-text);
  margin-bottom: 8px;
}

.mr-agent-v2 .mr-office-address {
  display: inline-block;
  color: var(--v2-text-soft);
  line-height: 1.65;
  transition: color var(--v2-speed);
  overflow-wrap: anywhere;
}

.mr-agent-v2 .mr-office-address:hover {
  color: var(--v2-orange);
}

.mr-agent-v2 .mr-office-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.mr-agent-v2 .mr-office-phone {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--v2-text);
  white-space: nowrap;
  overflow-wrap: anywhere;
}

/* Hide office section when no office is mapped */
.mr-agent-v2 .mr-office-strip--empty {
  display: none;
}


/* ============================================================
   7. Bio + Fun Fact (story grid)
   ============================================================ */

.mr-agent-v2 .mr-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

/* When there is no fun fact, full-width bio */
.mr-agent-v2 .mr-story--no-fact {
  grid-template-columns: 1fr;
}

.mr-agent-v2 .mr-bio-card {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow-sm);
}

.mr-agent-v2 .mr-bio-card .mr-title {
  font-size: clamp(1.75rem, 2.7vw, 2.5rem);
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 20px;
}

/* WYSIWYG / richtext styles — scoped to prevent messy pasted content */
.mr-agent-v2 .mr-richtext {
  color: var(--v2-text-soft);
  font-size: 1rem;
  line-height: 1.88;
}

.mr-agent-v2 .mr-richtext > *:first-child { margin-top: 0; }
.mr-agent-v2 .mr-richtext > *:last-child  { margin-bottom: 0; }

.mr-agent-v2 .mr-richtext p,
.mr-agent-v2 .mr-richtext ul,
.mr-agent-v2 .mr-richtext ol,
.mr-agent-v2 .mr-richtext blockquote {
  margin: 0 0 16px;
}

.mr-agent-v2 .mr-richtext li {
  margin-bottom: 6px;
}

.mr-agent-v2 .mr-richtext h2,
.mr-agent-v2 .mr-richtext h3,
.mr-agent-v2 .mr-richtext h4 {
  margin: 24px 0 12px;
  color: var(--v2-text);
  font-family: "Gotham", "Montserrat", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.18;
}

.mr-agent-v2 .mr-richtext a {
  color: var(--v2-blue);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  font-weight: 700;
}

.mr-agent-v2 .mr-richtext a:hover {
  color: var(--v2-orange);
}

/* Tame wildly nested lists from pasted content */
.mr-agent-v2 .mr-richtext ul ul,
.mr-agent-v2 .mr-richtext ol ol,
.mr-agent-v2 .mr-richtext ul ol,
.mr-agent-v2 .mr-richtext ol ul {
  margin-top: 6px;
  margin-bottom: 0;
}


/* Fun fact card */
.mr-agent-v2 .mr-fact-card {
  position: sticky;
  top: 24px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #10283b 0%, #163954 100%);
  color: #ffffff;
  box-shadow: var(--v2-shadow-md);
  overflow: hidden;
}

.mr-agent-v2 .mr-fact-card::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(246, 147, 32, 0.12);
  pointer-events: none;
}

.mr-agent-v2 .mr-fact-label {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
}

.mr-agent-v2 .mr-fact-text {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  line-height: 1.84;
  color: rgba(255, 255, 255, 0.94);
  white-space: pre-line;
}


/* ============================================================
   8. Social row
   ============================================================ */

.mr-agent-v2 .mr-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(10, 118, 182, 0.10);
  align-items: center;
}

.mr-agent-v2 .mr-social-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--v2-text);
  margin-right: 2px;
}

.mr-agent-v2 .mr-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(10, 118, 182, 0.12);
  box-shadow: var(--v2-shadow-sm);
  color: var(--v2-blue);
  transition:
    transform var(--v2-speed),
    box-shadow var(--v2-speed),
    background var(--v2-speed),
    color var(--v2-speed),
    border-color var(--v2-speed);
}

.mr-agent-v2 .mr-social:hover {
  transform: translateY(-2px);
  box-shadow: var(--v2-shadow-md);
  background: var(--v2-blue);
  color: #ffffff;
}

.mr-agent-v2 .mr-social:focus-visible {
  outline: 2px solid var(--v2-light-blue);
  outline-offset: 3px;
}

.mr-agent-v2 .mr-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
  pointer-events: none;
}


/* ============================================================
   9. Reviews
   ============================================================ */

.mr-agent-v2 .mr-reviews {
  border-radius: 30px;
  background: linear-gradient(135deg, #0f2940 0%, #123553 100%);
  box-shadow: var(--v2-shadow-lg);
  overflow: hidden;
}

.mr-agent-v2 .mr-reviews-inner {
  padding: 40px 34px;
}

.mr-agent-v2 .mr-reviews .mr-eyebrow,
.mr-agent-v2 .mr-reviews .mr-title {
  color: #ffffff;
}

.mr-agent-v2 .mr-reviews .mr-title {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  max-width: 17ch;
}

.mr-agent-v2 .mr-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

/* Two reviews: two equal columns */
.mr-agent-v2 .mr-review-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* One review: single column, max-width */
.mr-agent-v2 .mr-review-grid--1 {
  grid-template-columns: minmax(0, 640px);
}

.mr-agent-v2 .mr-review-card {
  position: relative;
  padding: 26px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--v2-speed), border-color var(--v2-speed), box-shadow var(--v2-speed);
}

.mr-agent-v2 .mr-review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 147, 32, 0.32);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.mr-agent-v2 .mr-review-card::before {
  content: "\201C";
  position: absolute;
  left: 16px;
  top: 10px;
  font-size: 3rem;
  line-height: 1;
  color: rgba(246, 147, 32, 0.24);
  font-family: Georgia, serif;
  pointer-events: none;
}

.mr-agent-v2 .mr-review-quote {
  position: relative;
  z-index: 1;
  min-height: 142px;
  color: #d3e0e8;
  line-height: 1.82;
  font-style: italic;
}

.mr-agent-v2 .mr-review-author {
  margin: 18px 0 0;
  font-weight: 800;
  color: var(--v2-orange);
  font-style: normal;
}


/* ============================================================
   10. Helpful Next Steps
   ============================================================ */

.mr-agent-v2 .mr-links-card {
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow-sm);
}

.mr-agent-v2 .mr-links-card .mr-title {
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  line-height: 1.1;
  max-width: 16ch;
}

.mr-agent-v2 .mr-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.mr-agent-v2 .mr-link-card {
  display: flex;
  flex-direction: column;
  min-height: 208px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,253,0.98));
  border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow-sm);
  transition:
    transform var(--v2-speed),
    box-shadow var(--v2-speed),
    border-color var(--v2-speed),
    background var(--v2-speed);
  color: inherit;
}

.mr-agent-v2 .mr-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v2-shadow-md);
  border-color: rgba(246, 147, 32, 0.20);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,248,240,1));
}

.mr-agent-v2 .mr-link-card:focus-visible {
  outline: 2px solid var(--v2-light-blue);
  outline-offset: 3px;
}

.mr-agent-v2 .mr-link-type {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--v2-blue);
}

.mr-agent-v2 .mr-link-card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  line-height: 1.15;
  font-family: "Gotham", "Montserrat", Arial, sans-serif;
  font-weight: 800;
  color: var(--v2-text);
}

.mr-agent-v2 .mr-link-card p {
  margin: 0;
  color: var(--v2-text-soft);
  line-height: 1.72;
  font-size: 0.95rem;
}

.mr-agent-v2 .mr-link-cta {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  color: var(--v2-blue);
  font-weight: 800;
  font-size: 0.92rem;
}


/* ============================================================
   11. Bottom CTA
   ============================================================ */

.mr-agent-v2 .mr-bottom-cta {
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(64,174,227,0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(246,147,32,0.16), transparent 26%),
    linear-gradient(135deg, #0f2940 0%, #123553 100%);
  box-shadow: var(--v2-shadow-lg);
}

.mr-agent-v2 .mr-bottom-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
}

/* No image: full-width copy */
.mr-agent-v2 .mr-bottom-cta-grid--no-image {
  grid-template-columns: 1fr;
}

.mr-agent-v2 .mr-bottom-cta-copy {
  padding: 40px 34px;
  color: #ffffff;
}

.mr-agent-v2 .mr-bottom-cta-copy .mr-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.mr-agent-v2 .mr-bottom-cta-copy .mr-cta-title {
  color: #ffffff;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.08;
  max-width: 15ch;
  margin-bottom: 14px;
}

.mr-agent-v2 .mr-bottom-cta-copy p {
  max-width: 56ch;
  margin: 0 0 24px;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.mr-agent-v2 .mr-bottom-cta-media {
  min-height: 100%;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.mr-agent-v2 .mr-bottom-cta-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


/* ============================================================
   12. Responsive breakpoints
   ============================================================ */

@media (max-width: 1180px) {
  .mr-agent-v2 .mr-hero-grid,
  .mr-agent-v2 .mr-story,
  .mr-agent-v2 .mr-bottom-cta-grid {
    grid-template-columns: 1fr;
  }

  .mr-agent-v2 .mr-review-grid {
    grid-template-columns: 1fr;
  }

  .mr-agent-v2 .mr-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mr-agent-v2 .mr-fact-card {
    position: relative;
    top: auto;
  }

  .mr-agent-v2 .mr-bottom-cta-media {
    min-height: 260px;
  }

  .mr-agent-v2 .mr-story--no-fact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .mr-agent-v2 .mr-agent-page {
    padding: 14px 10px 48px;
  }

  .mr-agent-v2 .mr-hero-grid,
  .mr-agent-v2 .mr-bio-card,
  .mr-agent-v2 .mr-links-card,
  .mr-agent-v2 .mr-reviews-inner,
  .mr-agent-v2 .mr-bottom-cta-copy {
    padding: 24px;
  }

  .mr-agent-v2 .mr-office-strip {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mr-agent-v2 .mr-office-thumb img {
    height: 180px;
  }

  .mr-agent-v2 .mr-office-contact {
    align-items: flex-start;
  }

  .mr-agent-v2 .mr-photo-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .mr-agent-v2 .mr-review-grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mr-agent-v2 .mr-name {
    font-size: 2.3rem;
  }

  .mr-agent-v2 .mr-hero-actions,
  .mr-agent-v2 .mr-cta-actions {
    flex-direction: column;
  }

  .mr-agent-v2 .mr-button {
    width: 100%;
  }

  .mr-agent-v2 .mr-link-grid {
    grid-template-columns: 1fr;
  }

  .mr-agent-v2 .mr-social-row {
    gap: 10px;
  }

  .mr-agent-v2 .mr-social {
    width: 44px;
    height: 44px;
  }

  .mr-agent-v2 .mr-review-card,
  .mr-agent-v2 .mr-link-card {
    padding: 22px;
  }

  .mr-agent-v2 .mr-bottom-cta-copy {
    padding: 24px;
  }

  /* Phone and email must not overflow on mobile */
  .mr-agent-v2 .mr-office-phone,
  .mr-agent-v2 .mr-office-address {
    overflow-wrap: anywhere;
    min-width: 0;
    max-width: 100%;
  }
}


/* ============================================================
   13. Reduced-motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .mr-agent-v2 *,
  .mr-agent-v2 *::before,
  .mr-agent-v2 *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}