.residency-page {
  --residency-navy: #0b1d3a;
  --residency-navy-deep: #071529;
  --residency-gold: #c6a86b;
  --residency-red: #b80000;
  --residency-ink: #1a1a1a;
  --residency-muted: #666;
  --residency-line: #e8e4de;
  --residency-warm: #f7f5f2;
  background: #fff;
  color: var(--residency-ink);
  font-family: var(--wp--preset--font-family--body, "Montserrat", sans-serif);
}

.residency-page :where(.wp-block-group, .wp-block-columns, .wp-block-image, .wp-block-buttons, p, h1, h2, h3, ul, figure) {
  margin-block-start: 0;
  margin-block-end: 0;
}

.residency-container {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: 1072px;
  padding-inline: 24px;
  width: 100%;
}

.residency-hub-page .residency-container { max-width: 1200px; }

/* Anchor targets must clear the fixed header (68px) + sticky anchor-nav (~53px) */
.residency-page [id^="section-"] { scroll-margin-top: calc(var(--amlaw-header-height, 68px) + 56px); }

/* Shared visa-contact block is reused on residency pages; --visa-navy is scoped
   to .visa-page so it resolves empty here — map it to the residency palette. */
.residency-page .visa-contact-section { background: var(--residency-navy, #0b1d3a); }
.residency-page .visa-contact-form h3 { color: var(--residency-navy, #0b1d3a); }
.residency-page .visa-contact-grid strong { color: var(--residency-gold, #c6a86b); }

.residency-section {
  padding-block: 96px;
}

.residency-section--warm { background: var(--residency-warm); }
.residency-section--dark { background: var(--residency-navy); color: #fff; }
.residency-section--deep { background: var(--residency-navy-deep); color: #fff; }
.residency-section--center { text-align: center; }

.residency-eyebrow {
  color: var(--residency-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  margin-bottom: 14px !important;
  text-transform: uppercase;
}

.residency-page h1,
.residency-page h2,
.residency-page h3 {
  color: var(--residency-navy);
  font-family: var(--wp--preset--font-family--display, "Libre Baskerville", serif);
  letter-spacing: 0;
}

.residency-page h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.residency-page h3 { font-size: 22px; line-height: 1.3; }
.residency-section--dark h2,
.residency-section--dark h3,
.residency-section--deep h2,
.residency-section--deep h3 { color: #fff; }

.residency-section-heading { margin-bottom: 48px !important; }
.residency-section-heading > p:last-child {
  color: var(--residency-muted);
  font-size: 18px;
  line-height: 1.75;
  margin: 20px auto 0 !important;
  max-width: 760px;
}

.residency-hero {
  align-items: flex-end;
  background: var(--residency-navy);
  display: flex;
  min-height: 720px;
  overflow: hidden;
  position: relative;
}

.residency-hero__media,
.residency-hero__media::after {
  inset: 0;
  position: absolute;
}

.residency-hero__media img { height: 100%; object-fit: cover; width: 100%; }
.residency-hero__media::after {
  background: linear-gradient(to top, rgba(11,29,58,.97), rgba(11,29,58,.6) 45%, rgba(11,29,58,.1));
  content: "";
}

.residency-hero__inner {
  color: #fff;
  padding-bottom: 84px;
  padding-top: 180px;
  position: relative;
  z-index: 1;
}

.residency-hero--hub { align-items: center; min-height: 760px; text-align: center; }
.residency-hero--hub .residency-hero__media img { opacity: .65; }
.residency-hero--hub .residency-hero__media::after { background: linear-gradient(to bottom, rgba(11,29,58,.45), rgba(11,29,58,.78) 85%); }
.residency-hero--hub .residency-hero__inner { max-width: 1152px; padding: 128px 48px 80px; }
.residency-hero--hub .residency-eyebrow { font-size: 11px; line-height: 1.5; margin-bottom: 24px !important; }
.residency-hero--hub h1 { font-size: clamp(45px, 7vw, 83.2px); line-height: 1.02; margin-bottom: 28px !important; max-width: none; }
.residency-hero--hub .residency-hero__intro { font-size: 20px; line-height: 1.4; margin-bottom: 40px !important; max-width: 672px; }

.residency-hero h1 {
  color: #fff;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.04;
  margin-bottom: 24px !important;
  max-width: 900px;
}

.residency-hero--hub h1 { margin-inline: auto; }
.residency-country-page .residency-hero { min-height: 795px; }
.residency-country-page .residency-hero__inner { max-width: 1024px; padding: 88px 40px 96px; }
.residency-country-page .residency-hero h1 { font-size: clamp(35px, 5.5vw, 72px); max-width: 768px; }
.residency-country-page .residency-hero__divider { background: var(--residency-gold); height: 1px; margin-block: 0 20px; width: 40px; }
.residency-country-page .residency-hero__intro { font-size: 18px; line-height: 1.625; max-width: 576px; }
.residency-country-page .residency-hero__back a { color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.residency-country-page .residency-hero__back a:hover { color: #fff; }
.residency-hero h1 em { color: var(--residency-gold); font-weight: 400; }
.residency-hero__intro { color: rgba(255,255,255,.72); font-size: 19px; line-height: 1.7; max-width: 680px; }
.residency-hero--hub .residency-hero__intro { margin-inline: auto; }
.residency-hero .wp-block-buttons { gap: 14px; justify-content: inherit; margin-top: 34px; }
.residency-hero .wp-block-button__link,
.residency-cta .wp-block-button__link {
  background: var(--residency-red);
  border: 1px solid var(--residency-red);
  border-radius: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 16px 28px;
  text-transform: uppercase;
}
.residency-button--gold .wp-block-button__link { background: var(--residency-gold); border-color: var(--residency-gold); color: var(--residency-navy); }
.residency-button--outline .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.42); }
.residency-hub-page .residency-hero .wp-block-button__link { border-radius: 9999px; font-size: 14px; font-weight: 600; letter-spacing: 0; padding: 16px 32px; text-transform: none; }
.residency-hub-page .residency-hero .wp-block-buttons { justify-content: center; margin: 0 0 56px !important; }
.residency-hub-page .residency-hero .wp-block-button__link { line-height: 21px; }
.residency-hub-page .residency-hero .wp-block-button:first-child .wp-block-button__link:hover { background: #ff1a0a; filter: none; transform: none; }
.residency-hub-page .residency-hero .residency-button--gold .wp-block-button__link:hover { background: #d9be7e; border-color: #d9be7e; filter: none; transform: none; }
.residency-page .wp-block-button__link:hover { filter: brightness(1.12); transform: translateY(-1px); }

.residency-hero-stats {
  border-top: 1px solid rgba(255,255,255,.16);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto !important;
  max-width: 896px;
  padding-top: 40px;
}
.residency-hero-stat { padding-inline: 16px; text-align: center; }
.residency-hero-stat strong { color: #fff; display: block; font-family: var(--wp--preset--font-family--display, serif); font-size: clamp(26px, 3vw, 38.4px); font-weight: 400; line-height: 1.2; }
.residency-hero-stat span { color: rgba(255,255,255,.55); display: block; font-size: 14px; line-height: 21px; margin-top: 4px; }

.residency-anchor-nav { background: #fff; border-bottom: 1px solid #e0ddd8; position: sticky; top: var(--amlaw-header-height, 68px); z-index: 40; }
.residency-anchor-nav .wp-block-navigation { flex-wrap: nowrap; gap: 28px; min-height: 52px; overflow-x: auto; }
.residency-anchor-nav a { color: #555; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.residency-anchor-nav a:hover { color: var(--residency-gold); }

.residency-pillar-grid,
.residency-country-grid,
.residency-benefit-grid,
.residency-service-grid,
.residency-why-grid,
.residency-review-grid,
.residency-investment-grid {
  display: grid;
  gap: 20px;
}
.residency-pillar-grid { grid-template-columns: repeat(4, 1fr); }
.residency-country-grid,
.residency-benefit-grid,
.residency-service-grid,
.residency-why-grid,
.residency-review-grid,
.residency-investment-grid { grid-template-columns: repeat(3, 1fr); }

.residency-hub-page .residency-section-heading .residency-eyebrow { font-size: 16px; margin-bottom: 12px !important; }
.residency-hub-page .residency-section-heading { margin-bottom: 48px !important; }
.residency-heading-divider { background: var(--residency-gold); height: 1px; margin: -28px auto 48px !important; width: 40px; }
.residency-pillar { border: 1px solid var(--residency-line); border-radius: 2px; padding: 32px; text-align: left; transition: border-color .3s ease; }
.residency-pillar:hover { border-color: var(--residency-gold); }
.residency-pillar__icon { align-items: center; background: rgba(198,168,107,.09); border-radius: 50%; color: var(--residency-gold); display: flex; font-size: 24px; height: 48px; justify-content: center; margin-bottom: 20px !important; width: 48px; }
.residency-pillar__icon svg { height: 24px; width: 24px; }
.residency-pillar h3 { font-size: 24px; margin-bottom: 10px !important; }
.residency-pillar p:last-child,
.residency-card p:last-child,
.residency-service p:last-child,
.residency-review p { color: #777; font-size: 14px; line-height: 1.7; }

.residency-country-card {
  background: #fff;
  border: 1px solid var(--residency-line);
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.residency-hub-page .residency-country-card.amlaw-reveal.is-visible:hover { transform: none; }
.residency-country-card__media { height: 224px; overflow: hidden; position: relative; }
.residency-country-card__media > * { margin-block-start: 0 !important; }
.residency-country-card .wp-block-image { height: 100%; overflow: hidden; }
.residency-country-card .wp-block-image img { height: 100%; object-fit: cover; transition: transform .55s ease; width: 100%; }
.residency-hub-page .residency-country-card:hover .wp-block-image img { transform: scale(1.05); }
.residency-country-card__media::after { background: linear-gradient(to top, rgba(11,29,58,.88), rgba(11,29,58,.15) 60%); content: ""; inset: 0; position: absolute; }
.residency-country-card__caption { bottom: 20px; color: #fff; left: 24px; position: absolute; right: 24px; z-index: 1; }
.residency-country-card__caption p { margin: 0 !important; }
.residency-country-card__caption p:first-child { font-family: var(--wp--preset--font-family--display, serif); font-size: 29px; }
.residency-country-card__caption p:last-child { color: rgba(255,255,255,.75); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.residency-country-card__body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.residency-country-card__body > * { margin-block-start: 0 !important; }
.residency-country-card__investment { color: var(--residency-navy); font-family: var(--wp--preset--font-family--display, serif); font-size: 38px; line-height: 1.1; margin-bottom: 4px !important; }
.residency-country-card__investment span { color: #888; font-family: var(--wp--preset--font-family--body); font-size: 14px; }
.residency-country-card__note { color: #999; font-size: 14px; line-height: 1.375; margin-bottom: 16px !important; }
.residency-country-card__summary { color: #555; font-size: 16px; line-height: 1.625; margin-bottom: 20px !important; min-height: 0; }
.residency-country-card__highlights { list-style: none; margin: 0 0 24px !important; padding: 0; }
.residency-country-card__highlights li { color: #444; font-size: 16px; line-height: 1.375; margin-bottom: 12px; padding-left: 26px; position: relative; }
.residency-country-card__highlights li::before { color: var(--residency-gold); content: "✓"; left: 0; position: absolute; }
.residency-country-card__footer { border-top: 1px solid #f0ede8; margin-top: auto !important; padding-top: 20px; }
.residency-country-card__footer > * { margin-block-start: 0 !important; }
.residency-country-card__best-label { color: #999; font-size: 11px; font-weight: 600; letter-spacing: .2em; margin-bottom: 6px !important; text-transform: uppercase; }
.residency-country-card__best { color: var(--residency-navy); font-size: 16px; line-height: 1.375; margin-bottom: 20px !important; }
.residency-country-card__footer > p:last-child a { background: var(--residency-navy); box-sizing: border-box; color: #fff; display: block; font-size: 12px; font-weight: 600; letter-spacing: .15em; padding: 12px 20px; text-align: center; text-transform: uppercase; width: 100%; }
.residency-hub-page .residency-country-card__footer > p:last-child a { transition: opacity .2s ease; }
.residency-hub-page .residency-country-card__footer > p:last-child a:hover { opacity: .9; }

.residency-compare-wrap { border: 1px solid var(--residency-line); border-radius: 2px; overflow-x: auto; }
.residency-compare { border-collapse: collapse; min-width: 760px; width: 100%; }
.residency-compare th,
.residency-compare td { border-top: 1px solid var(--residency-line); padding: 20px; text-align: center; vertical-align: top; }
.residency-compare th { background: #fff; border-left: 1px solid var(--residency-line); padding: 20px; text-align: center; vertical-align: bottom; }
.residency-compare th:first-child { border-left: 0; text-align: left; width: 22%; }
.residency-compare th:first-child span { color: #888; font-size: 11px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.residency-compare th strong { color: var(--residency-navy); display: block; font-family: var(--wp--preset--font-family--display, serif); font-size: 24px; font-weight: 400; margin-top: 6px; }
.residency-compare th small { color: var(--residency-gold); display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 18px; margin-top: 6px; text-transform: uppercase; }
.residency-compare__flag { display: block; font-size: 30px; line-height: 36px; }

/* 7.6 — SVG flags replacing emoji flags */
.residency-flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(10,31,68,.18); display: inline-block; height: 1.1em; object-fit: cover; vertical-align: -0.15em; width: 1.5em; }
.residency-country-card__caption .residency-flag { height: 26px; vertical-align: -4px; width: 39px; }
.residency-compare__flag .residency-flag { height: 36px; margin-inline: auto; width: 54px; }
.residency-lead-form [data-residency-next] .residency-flag { flex: 0 0 auto; height: 18px; margin-right: 10px; vertical-align: middle; width: 27px; }
.residency-flag--globe { border-radius: 50%; box-shadow: none; }
.residency-compare tbody tr:nth-child(odd) { background: var(--residency-warm); }
.residency-compare td + td { border-left: 1px solid var(--residency-line); }
.residency-compare td:first-child { color: var(--residency-navy); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-align: left; text-transform: uppercase; width: 22%; }
.residency-compare td:not(:first-child) { color: #444; font-size: 15px; line-height: 1.375; }
.residency-disclaimer { color: #999; font-size: 11px; line-height: 1.6; margin-top: 18px !important; }

.residency-lead-grid,
.residency-route-grid,
.residency-lifestyle-grid,
.residency-team-grid { gap: 64px; }
.residency-copy p { color: var(--residency-muted); font-size: 16px; line-height: 1.75; margin-top: 16px !important; }
.residency-section--dark .residency-copy p { color: rgba(255,255,255,.64); }
.residency-stats { border: 1px solid rgba(255,255,255,.12); gap: 0; }
.residency-stats > .wp-block-column { padding: 28px 14px; text-align: center; }
.residency-stats > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255,255,255,.12); }
.residency-stat__value { color: var(--residency-gold); font-family: var(--wp--preset--font-family--display, serif); font-size: clamp(24px, 3vw, 38px); }
.residency-stat__label { color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .12em; margin-top: 8px !important; text-transform: uppercase; }

.residency-card,
.residency-service,
.residency-review,
.residency-investment {
  border: 1px solid var(--residency-line);
  min-height: 100%;
  padding: 28px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.residency-card:hover,
.residency-service:hover,
.residency-review:hover,
.residency-investment:hover { border-color: rgba(198,168,107,.65); box-shadow: 0 10px 28px rgba(11,29,58,.08); transform: translateY(-4px); }
.residency-card__number { color: var(--residency-gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; margin-bottom: 18px !important; }
.residency-card h3,
.residency-service h3,
.residency-review h3,
.residency-investment h3 { margin-bottom: 12px !important; }
.residency-investment__amount { color: var(--residency-gold); font-family: var(--wp--preset--font-family--display, serif); font-size: 38px; margin-bottom: 14px !important; }

.residency-fit { gap: 0; }
.residency-fit > .wp-block-column { padding: 72px max(32px, calc((100vw - 1120px) / 2)); }
.residency-fit > .wp-block-column:first-child { background: var(--residency-navy); color: #fff; padding-left: max(32px, calc((100vw - 1120px) / 2)); padding-right: 56px; }
.residency-fit > .wp-block-column:last-child { background: #fff; padding-left: 56px; padding-right: max(32px, calc((100vw - 1120px) / 2)); }
.residency-fit h2 { font-size: 32px; margin-bottom: 28px !important; }
.residency-fit > .wp-block-column:first-child h2 { color: #fff; }
.residency-fit ul { list-style: none; padding: 0; }
.residency-fit li { line-height: 1.55; margin-bottom: 15px; padding-left: 28px; position: relative; }
.residency-fit li::before { color: var(--residency-gold); content: "✓"; left: 0; position: absolute; }
.residency-fit > .wp-block-column:last-child li::before { color: #aaa; content: "×"; }

.residency-route-grid .wp-block-image,
.residency-lifestyle-grid .wp-block-image { height: 390px; overflow: hidden; }
.residency-route-grid img,
.residency-lifestyle-grid img { height: 100%; object-fit: cover; width: 100%; }
.residency-check-list { list-style: none; padding: 0; }
.residency-check-list li { color: var(--residency-navy); line-height: 1.55; margin-top: 14px; padding-left: 28px; position: relative; }
.residency-check-list li::before { color: var(--residency-gold); content: "✓"; left: 0; position: absolute; }

.residency-process { margin-inline: auto; max-width: 820px; }
.residency-process__step { border: 1px solid var(--residency-line); margin: 0 0 18px 64px !important; padding: 25px 28px; position: relative; }
.residency-process__number { align-items: center; background: var(--residency-navy); border-radius: 50%; color: #fff !important; display: flex; font-size: 10px !important; font-weight: 700; height: 42px; justify-content: center; left: -64px; margin: 0 !important; position: absolute; top: 20px; width: 42px; }
.residency-process__step:not(:last-child)::after { background: rgba(198,168,107,.35); content: ""; height: calc(100% + 19px); left: -44px; position: absolute; top: 62px; width: 1px; }
.residency-process__step p { color: #666; font-size: 14px; line-height: 1.65; margin-top: 8px !important; }

.residency-section--dark .residency-service { background: linear-gradient(160deg, #0e2347, #081830); border-color: rgba(255,255,255,.1); }
.residency-section--dark .residency-service p { color: rgba(255,255,255,.52); }
.residency-hub-page .residency-team { align-items: center; gap: 56px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.residency-hub-page .residency-team .residency-copy h2 { font-size: clamp(35px, 4.5vw, 54px); line-height: 1.05; margin-bottom: 24px !important; }
.residency-hub-page .residency-team .residency-copy h2 em { color: var(--residency-gold); font-weight: 400; }
.residency-hub-page .residency-team__divider { background: var(--residency-gold); height: 1px; margin-bottom: 28px !important; width: 40px; }
.residency-hub-page .residency-team .residency-copy p { color: rgba(255,255,255,.65); font-size: 18px; line-height: 1.625; margin-top: 0 !important; }
.residency-hub-page .residency-team .residency-copy .residency-eyebrow { color: var(--residency-gold); font-size: 13px; margin-bottom: 14px !important; }
.residency-hub-page .residency-team .residency-copy .residency-team__note { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 16px !important; }
.residency-hub-page .residency-team .residency-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.residency-hub-page .residency-team .residency-service { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); border-radius: 2px; min-height: 0; padding: 24px; }
.residency-hub-page .residency-team .residency-service:hover { border-color: rgba(198,168,107,.5); box-shadow: none; transform: none; }
.residency-hub-page .residency-team .residency-service__icon { color: var(--residency-gold); margin-bottom: 16px !important; }
.residency-hub-page .residency-team .residency-service__icon svg { height: 20px; width: 20px; }
.residency-hub-page .residency-team .residency-service h3 { font-size: 18px; margin-bottom: 8px !important; }
.residency-hub-page .residency-team .residency-service p:last-child { font-size: 14px; line-height: 1.625; }
.residency-review { background: linear-gradient(160deg, #0e2347, #081830); border-color: rgba(198,168,107,.18); }
.residency-review p { color: rgba(255,255,255,.64); }
.residency-review h3 { color: #fff; font-family: inherit; font-size: 14px; margin-top: 24px !important; }
.residency-stars { color: var(--residency-gold) !important; letter-spacing: .12em; }

.residency-hub-page .residency-faq-container { max-width: 944px; }
.residency-faq { border: 0; }
.residency-faq details { border-bottom: 1px solid var(--residency-line); padding-inline: 24px; }
.residency-faq details:last-child { border-bottom: 0; }
.residency-faq summary { color: var(--residency-navy); cursor: pointer; font-family: var(--wp--preset--font-family--display, serif); font-size: 18px; font-weight: 400; line-height: 1.375; list-style: none; padding-block: 20px; position: relative; }
.residency-faq summary::after { border-bottom: 1.5px solid var(--residency-gold); border-right: 1.5px solid var(--residency-gold); content: ""; height: 8px; position: absolute; right: 3px; top: 24px; transform: rotate(45deg); transition: transform .2s ease; width: 8px; }
.residency-faq details[open] summary::after { transform: rotate(225deg); }
.residency-faq summary::-webkit-details-marker { display: none; }
.residency-faq details p { color: #666; font-size: 14px; line-height: 1.7; padding: 0 36px 20px 0; }

.residency-cta { background: var(--residency-navy); color: #fff; padding-block: 84px; text-align: center; }
.residency-cta h2 { color: #fff; }
.residency-cta > p:not(.residency-eyebrow) { color: rgba(255,255,255,.62); line-height: 1.7; margin: 18px auto 0 !important; max-width: 650px; }
.residency-cta .wp-block-buttons { justify-content: center; margin-top: 30px; }

.residency-section--lead { background-image: linear-gradient(to bottom, rgba(11,29,58,.85), rgba(11,29,58,.97)), url("../images/residency/global-hero.png"); background-position: center; background-size: cover; }
.residency-section--lead .residency-lead-grid { align-items: center; gap: 64px; }
.residency-section--lead .residency-copy h2 { font-size: clamp(35px, 5vw, 58px); line-height: 1.2; margin-bottom: 16px !important; }
.residency-section--lead .residency-copy h2 em { color: var(--residency-gold); font-weight: 400; }
.residency-lead__divider { background: var(--residency-gold); height: 1px; margin-bottom: 24px !important; width: 32px; }
.residency-section--lead .residency-copy > p { font-size: 18px; line-height: 1.625; max-width: 448px; }
.residency-section--lead .residency-check-list { margin-top: 28px !important; }
.residency-section--lead .residency-check-list li { color: rgba(255,255,255,.7); font-size: 16px; margin-top: 12px; }
.residency-lead-form { background: #fff; border-radius: 2px; color: var(--residency-ink); padding: 32px; }
.residency-lead-form h3 { font-size: 22px; margin-bottom: 24px !important; }
.residency-lead-form__question { color: var(--residency-navy); font-family: var(--wp--preset--font-family--display, serif); font-size: 18px; margin-bottom: 20px !important; }
.residency-lead-form [data-residency-next] { align-items: center; background: transparent; border: 1px solid #e0ddd8; color: var(--residency-navy); cursor: pointer; display: flex; font: inherit; font-size: 14px; font-weight: 600; justify-content: space-between; margin-top: 8px; padding: 14px 20px; text-align: left; transition: background .2s ease, border-color .2s ease; width: 100%; }
.residency-lead-form [data-residency-next]:hover { background: rgba(198,168,107,.08); border-color: var(--residency-gold); }
.residency-lead-form [data-residency-next][aria-pressed="true"] { background: rgba(198,168,107,.08); border-color: var(--residency-gold); }
.residency-lead-form__help { color: #888; font-size: 12px; margin: -12px 0 16px !important; }
.residency-lead-form__row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.residency-lead-form label { color: #777; display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; margin-bottom: 14px; text-align: left; text-transform: uppercase; }
.residency-lead-form input,
.residency-lead-form select,
.residency-lead-form textarea { background: #f7f5f0; border: 1px solid #e0ddd8; box-sizing: border-box; color: var(--residency-ink); display: block; font: inherit; margin-top: 7px; padding: 12px; transition: border-color .2s ease; width: 100%; }
.residency-lead-form input::placeholder,
.residency-lead-form textarea::placeholder { color: #bbb; }
.residency-lead-form input:focus,
.residency-lead-form select:focus,
.residency-lead-form textarea:focus { border-color: var(--residency-navy); outline: none; }
.residency-lead-form .residency-lead-form__submit { background: #b80000; border: 0; color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .12em; padding: 16px; text-transform: uppercase; transition: opacity .2s ease; width: 100%; }
.residency-lead-form .residency-lead-form__submit:hover:not(:disabled) { background: #ff1a0a; }
.residency-lead-form .residency-lead-form__submit:hover { opacity: .9; }
.residency-lead-form__privacy { color: #888; font-size: 10px; margin-top: 12px !important; text-align: center; }

@media (max-width: 900px) {
  .residency-section { padding-block: 76px; }
  .residency-pillar-grid { grid-template-columns: 1fr 1fr; }
  .residency-country-grid,
  .residency-benefit-grid,
  .residency-service-grid,
  .residency-why-grid,
  .residency-review-grid,
  .residency-investment-grid { grid-template-columns: 1fr 1fr; }
  .residency-lead-grid,
  .residency-route-grid,
  .residency-lifestyle-grid,
  .residency-team-grid { gap: 36px; }
  .residency-hub-page .residency-team { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .residency-container { padding-inline: 20px; }
  .residency-section { padding-block: 64px; }
  .residency-hero,
  .residency-hero--hub { min-height: 650px; }
  .residency-country-page .residency-hero { min-height: 775px; }
  .residency-hero__inner,
  .residency-hero--hub .residency-hero__inner { padding-block: 130px 54px; }
  .residency-hero--hub .residency-hero__inner { padding: 96px 24px 64px; }
  .residency-hero--hub h1 { font-size: 44.8px; }
  .residency-country-page .residency-hero__inner { padding: 98px 20px 86px; }
  .residency-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .residency-hero__intro { font-size: 16px; }
  .residency-hero-stats { gap: 8px; margin-top: 42px !important; padding-top: 26px; }
  .residency-hero-stat { padding-inline: 4px; }
  .residency-hero-stat span { font-size: 9px; }
  .residency-anchor-nav { display: none; }
  .residency-pillar-grid,
  .residency-country-grid,
  .residency-benefit-grid,
  .residency-service-grid,
  .residency-why-grid,
  .residency-review-grid,
  .residency-investment-grid { grid-template-columns: 1fr; }
  .residency-country-card__summary { min-height: 0; }
  .residency-hub-page .residency-team .residency-service-grid { grid-template-columns: 1fr; }
  .residency-hub-page .residency-faq-container { padding-inline: 16px; }
  .residency-hub-page .residency-faq details { padding-inline: 0; }
  .residency-benefit-grid { display: flex; margin-inline: -20px; overflow-x: auto; padding: 0 20px 16px; scroll-snap-type: x mandatory; }
  .residency-benefit-grid > * { flex: 0 0 256px; scroll-snap-align: start; }
  .residency-fit { display: block; }
  .residency-fit > .wp-block-column,
  .residency-fit > .wp-block-column:first-child,
  .residency-fit > .wp-block-column:last-child { padding: 54px 24px; }
  .residency-route-grid,
  .residency-lifestyle-grid { display: flex; flex-direction: column; }
  .residency-route-grid .wp-block-image,
  .residency-lifestyle-grid .wp-block-image { height: 280px; }
  .residency-process__step { margin-left: 50px !important; padding: 22px; }
  .residency-process__number { height: 36px; left: -50px; width: 36px; }
  .residency-process__step:not(:last-child)::after { left: -32px; top: 56px; }
  .residency-lead-form { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .residency-page *,
  .residency-page *::before,
  .residency-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .residency-hub-page .amlaw-reveal { transform: translateY(24px); transition-duration: 650ms; }
  .residency-hub-page .residency-hero--hub .amlaw-reveal { transform: translateY(20px); transition-duration: 700ms; }
  .residency-country-page .amlaw-reveal { transform: translateY(32px); transition-duration: 720ms; }
  .residency-country-page .amlaw-reveal.amlaw-reveal--left { transform: translateX(-32px); }
  .residency-country-page .amlaw-reveal.amlaw-reveal--right { transform: translateX(32px); }
  .residency-page .amlaw-reveal.is-visible { transform: none; }
}
