/* ==========================================================================
   Cresvia Portugal Access — shared stylesheet
   Values transcribed from the approved design-canvas artboards (1440px).
   Desktop rendering is intended to match the mockups exactly; the media
   queries below add the mobile/tablet behaviour the mockups did not cover.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --gold:        #B79A5B;
  --gold-dark:   #8a7440;
  --gold-hover:  #6f5c30;
  --ink:         #17171F;
  --cream:       #ECE3CB;
  --page:        #FBF9F4;
  --body:        #4B4B55;
  --body-soft:   #5B5B66;
  --border:      #EAE2CC;
  --rule-dark:   #2A2A33;
  --foot-muted:  #B0ADA5;
  --foot-dim:    #8b8880;
  --on-dark:     #FBF9F4;
  --on-dark-mid: #C9C6BC;
  --on-dark-lo:  #EDEAE0;
  --cream-text:  #5b5240;
  --cream-note:  #7a7260;
  --arrow:       #D2C7A2;

  --sora: 'Sora', system-ui, -apple-system, sans-serif;
  --work: 'Work Sans', system-ui, -apple-system, sans-serif;

  --gutter: 64px;
  --maxw: 1440px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--work);
  font-weight: 400;
}

h1, h2, h3 { font-family: var(--sora); margin: 0; }

img { max-width: 100%; }

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold-hover); }

:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

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

/* ---------- layout helpers ---------- */
.page { max-width: var(--maxw); margin: 0 auto; background: var(--page); }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* two-column band: text + image */
.split {
  display: flex;
  gap: 56px;
  align-items: center;
}
.split > * { flex: 1 1 0; min-width: 0; }

.stack { display: flex; flex-direction: column; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--work);
  padding: 14px 26px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease;
  text-align: center;
}
.btn--gold    { background: var(--gold); color: var(--ink); }
.btn--gold:hover    { background: #a98d51; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--page); }
.btn--dark    { background: var(--ink); color: var(--page); }
.btn--dark:hover    { background: #26262f; color: var(--page); }

/* ---------- header / nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--border);
  background: var(--page);
  /* stays in view so the navigation and the CTA are always reachable */
  position: sticky;
  top: 0;
  z-index: 50;
}
/* in-page anchors must clear the sticky bar, otherwise the target
   heading ends up hidden underneath it */
[id] { scroll-margin-top: 96px; }
.nav__brand { display: flex; align-items: center; }
.nav__brand img { display: block; height: 26px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a { color: var(--body); }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__cta {
  padding: 11px 22px;
  background: var(--ink);
  color: var(--page);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.nav__cta:hover { background: #26262f; color: var(--page); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle svg { display: block; }

/* ---------- hero ---------- */
.hero { padding: 72px var(--gutter) 64px; }
.hero__col { gap: 22px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
}
.hero h1 {
  /* scales with the viewport: 40px at full width, down to 27px on phones.
     The approved artboard specified a fixed 44px at 1440px. */
  font-size: clamp(27px, 2.9vw, 40px);
  line-height: 1.14;
  font-weight: 800;
  color: var(--ink);
}
.hero h1 .accent { color: var(--gold); }
.hero__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  max-width: 520px;
}
.hero__actions { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.hero__img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* ---------- structure bar ---------- */
.structure-bar {
  background: var(--cream);
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.structure-bar__item { display: flex; align-items: center; gap: 16px; }
.structure-bar__item svg { flex-shrink: 0; }
.structure-bar__label {
  font-family: var(--sora);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

/* ---------- dark band ---------- */
.band-dark {
  background: var(--ink);
  padding: 80px var(--gutter);
}
.band-dark h2 { font-size: 28px; font-weight: 700; color: var(--on-dark); }
.band-dark__body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--on-dark-mid);
  max-width: 480px;
}
.band-dark__note {
  font-size: 15px;
  line-height: 1.7;
  color: var(--on-dark-mid);
  max-width: 480px;
  margin-top: 8px;
}
.band-dark__col { gap: 20px; }
.band-dark a { font-size: 14.5px; font-weight: 600; margin-top: 4px; }
.band-dark__img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.benefits { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.benefits li { display: flex; gap: 10px; align-items: baseline; }
.benefits__num { color: var(--gold); font-weight: 700; font-size: 14px; }
.benefits__text { color: var(--on-dark-lo); font-size: 14.5px; }
ul.benefits { list-style: none; padding: 0; margin: 6px 0 0; }

/* ---------- panel (bordered white card) ---------- */
.panel-band { padding: 0 var(--gutter) 88px; }
.panel {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
}
.panel__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel__head h2 { font-size: 26px; font-weight: 700; }
.panel__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}

/* three linked steps with arrows */
.chain {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.chain__step {
  flex: 1 1 0;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.chain__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chain__title { font-family: var(--sora); font-weight: 700; font-size: 15px; }
.chain__desc { font-size: 12.5px; color: var(--body-soft); line-height: 1.5; }
.chain__arrow { margin-top: 16px; flex-shrink: 0; }

/* ---------- card grid ---------- */
.card-band {
  padding: 0 var(--gutter) 88px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.card__title { font-family: var(--sora); font-weight: 700; font-size: 16px; }
.card__desc { font-size: 13.5px; line-height: 1.55; color: var(--body-soft); }

/* ---------- why bands ---------- */
.why { padding: 80px var(--gutter); }
.why__col { gap: 18px; }
.why h2 { font-size: 30px; font-weight: 700; }
.why--alt h2 { font-size: 28px; font-weight: 700; }
.why__body { font-size: 16px; line-height: 1.7; color: var(--body); }
.why--alt .why__body { font-size: 15.5px; }
.why__img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.why__img--bottom { object-position: center bottom; }
.why__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--body-soft);
}

/* ---------- cream band with stats ---------- */
.band-cream {
  background: var(--cream);
  padding: 72px var(--gutter);
  display: flex;
  gap: 56px;
  align-items: center;
}
.band-cream__text { flex: 1.3 1 0; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.band-cream__media { flex: 0.8 1 0; min-width: 0; }
.band-cream h2 { font-size: 28px; font-weight: 700; max-width: 520px; }
.band-cream__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.stats__item { display: flex; flex-direction: column; gap: 4px; }
.stats__value { font-family: var(--sora); font-weight: 800; font-size: 26px; }
.stats__label { font-size: 13px; color: var(--cream-text); }
.band-cream__note { font-size: 12.5px; color: var(--cream-note); line-height: 1.6; }

/* ---------- closing CTA with photo ---------- */
.cta-photo {
  position: relative;
  padding: 110px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  overflow: hidden;
}
.cta-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cta-photo__scrim {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 31, 0.62);
  z-index: 1;
}
.cta-photo > h2,
.cta-photo > p,
.cta-photo > a { position: relative; z-index: 2; }
.cta-photo h2 {
  font-size: 32px;
  font-weight: 800;
  max-width: 600px;
  color: var(--on-dark);
}
.cta-photo p {
  margin: 0;
  font-size: 15.5px;
  color: #E3E0D6;
  max-width: 460px;
}
.cta-photo .btn { margin-top: 6px; padding: 15px 30px; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  padding: 48px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.footer__logo {
  display: block;
  height: 24px;
  width: auto;
  /* the footer brand block is a column flex container: without this the
     logo gets stretched to the full container width */
  align-self: flex-start;
  flex: none;
}
.footer__contact {
  font-size: 13px;
  color: var(--foot-dim);
  line-height: 1.6;
}
.footer__contact a { color: var(--foot-dim); }
.footer__contact a:hover { color: var(--on-dark); }
.footer__disclaimer {
  font-size: 12px;
  color: var(--foot-muted);
  line-height: 1.7;
  max-width: 620px;
}
.footer__legal {
  border-top: 1px solid var(--rule-dark);
  padding-top: 18px;
  font-size: 12px;
  color: var(--foot-muted);
}
.footer__legal a { color: var(--foot-muted); text-decoration: underline; }
.footer__legal a:hover { color: var(--on-dark); }

/* ==========================================================================
   Responsive behaviour — not covered by the 1440px mockups.
   1080px: tighter gutters, 4-up grids become 2-up.
    860px: single column throughout, nav collapses to a menu button.
   ========================================================================== */

@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .card-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links { gap: 26px; }
  .panel { padding: 40px 32px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }
  /* not sticky on phones: a permanent bar costs too much of the screen */
  .nav { position: static; }
  [id] { scroll-margin-top: 16px; }

  /* nav becomes a disclosure menu */
  .nav { flex-wrap: wrap; padding: 16px var(--gutter); }
  .nav__toggle { display: block; order: 3; }
  .nav__brand img { height: 22px; }
  .nav__cta { order: 2; margin-left: auto; padding: 9px 15px; font-size: 13px; }
  .nav__links {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 16px;
    padding-top: 8px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    display: block;
    width: 100%;
    padding: 13px 0;
    border-top: 1px solid var(--border);
  }

  /* every two-column band stacks */
  .split,
  .band-cream {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  /* image-left bands: keep the image after the text when stacked */
  .split--media-first { flex-direction: column-reverse; }

  .structure-bar { grid-template-columns: 1fr; gap: 22px; padding: 32px var(--gutter); }
  .card-band { grid-template-columns: 1fr; padding-bottom: 56px; }
  .panel-band { padding-bottom: 56px; }
  .panel { padding: 28px 22px; }
  .panel__head { margin-bottom: 28px; }

  /* the arrow chain becomes a vertical list */
  .chain { flex-direction: column; align-items: flex-start; gap: 26px; }
  .chain__step {
    max-width: none;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }
  .chain__step > div:last-child { flex: 1; }
  .chain__arrow { display: none; }

  .hero { padding: 40px var(--gutter) 44px; }
  .hero__lead { font-size: 16px; }
  .hero__img { height: 260px; }
  .hero__actions .btn { flex: 1 1 auto; }

  .band-dark { padding: 52px var(--gutter); }
  .band-dark__img { height: 240px; }
  .why { padding: 52px var(--gutter); }
  .why h2, .why--alt h2 { font-size: 25px; }
  .why__img { height: 250px; }
  .band-cream { padding: 48px var(--gutter); }
  .band-cream__img { height: 240px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

  .cta-photo { padding: 64px var(--gutter); }
  .cta-photo h2 { font-size: 26px; }

  .footer { padding: 40px var(--gutter); }
  .footer__top { flex-direction: column; gap: 24px; }
  .footer__disclaimer { max-width: none; }
}

@media (max-width: 420px) {
  .structure-bar__label { font-size: 19px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ==========================================================================
   Subpage components
   ========================================================================== */

/* active nav item (mockups mark it with a gold underline) */
.nav__links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

/* ---------- page heads ---------- */
.pagehead {
  background: var(--cream);
  padding: 64px var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}
.pagehead h1 { font-size: 38px; line-height: 1.18; font-weight: 800; }
.pagehead p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--body); }
.pagehead--legal { max-width: 780px; padding-bottom: 48px; }
.pagehead--legal h1 { font-size: 36px; }
.pagehead--legal p { font-size: 15px; }

/* hero on cream with image (Golden Visa) */
.hero--cream { background: var(--cream); padding: 72px var(--gutter); }
.hero--cream .hero__col { gap: 20px; }
.hero--cream h1 { font-size: 38px; line-height: 1.18; font-weight: 800; max-width: 520px; }
.hero--cream .hero__lead { font-size: 16px; line-height: 1.7; max-width: 480px; }
.hero--cream .hero__img { height: 400px; }
.hero__note {
  font-size: 15px; line-height: 1.7; color: var(--body);
  max-width: 520px; margin: 8px 0 0;
}

/* About head with inline anchor link */
.abouthead {
  background: var(--cream);
  padding: 64px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.abouthead__row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.abouthead h1 { font-size: 38px; line-height: 1.18; font-weight: 800; max-width: 680px; }
.abouthead__link { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.abouthead__lead {
  font-size: 16px; line-height: 1.7; color: var(--body); max-width: 680px; margin: 0;
}
.statrow { display: flex; gap: 56px; margin-top: 16px; flex-wrap: wrap; }
.statrow__value { font-family: var(--sora); font-weight: 800; font-size: 30px; }
.statrow__label { font-size: 13px; color: var(--cream-text); }

/* ---------- generic content section ---------- */
.sec { padding: 72px var(--gutter) 24px; }
.sec > h2 { font-size: 26px; font-weight: 700; margin-bottom: 28px; }
.sec__lead {
  font-size: 15.5px; line-height: 1.7; color: var(--body);
  max-width: 760px; margin: 0 0 28px;
}
.sec__head { max-width: 780px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.sec__head h2 { font-size: 28px; font-weight: 700; }
.sec__head p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--body); }
.note { font-size: 12px; color: #8a8578; line-height: 1.6; margin: 14px 0 0; }
.note--italic { font-style: italic; }
.footnote {
  font-size: 11.5px; color: #8a8578; line-height: 1.6;
  margin: 36px 0 0; max-width: 820px;
}

/* ---------- grids and card variants ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card--tight { padding: 24px; gap: 10px; }
.card--tight .card__title { font-size: 15px; }
.card--sector { padding: 24px; gap: 10px; }
.card--sector .card__title { font-size: 14.5px; }
.card--provider { padding: 28px; }
.card--provider .card__title { font-weight: 800; }
.card__role {
  font-size: 12.5px; font-weight: 600; color: var(--gold-dark);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---------- key/value tables ---------- */
.dl {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 14px;
  padding: 8px 32px; background: #FFFFFF;
}
.dl__row { display: flex; gap: 64px; }
.dl__cell {
  flex: 1 1 0; min-width: 0;
  display: flex; justify-content: space-between; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid #F0EBDC;
}
.dl__row:last-child > .dl__cell { border-bottom: 0; }
.dl__cell--blank { border-bottom: 0; }
.dl__key { color: var(--body-soft); font-size: 14.5px; }
.dl__val { font-weight: 600; font-size: 14.5px; text-align: right; }
.dl--legal .dl__val { max-width: 60%; }

/* ---------- highlight boxes ---------- */
.callout-band { padding: 48px var(--gutter) 0; }
.callout {
  background: var(--ink); border-radius: 12px; padding: 22px 28px;
  font-size: 14px; color: var(--on-dark-lo); line-height: 1.6; margin: 0;
}
.callout strong { color: var(--on-dark); }
.box-cream {
  background: var(--cream); border-radius: 12px; padding: 26px 30px;
  margin-top: 24px; display: flex; flex-direction: column; gap: 8px;
}
.box-cream__title { font-family: var(--sora); font-weight: 700; font-size: 15px; margin: 0; }
.box-cream p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--body); }
.box-white {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px;
  padding: 32px 36px; display: flex; flex-direction: column; gap: 14px;
}
.box-white h2 { font-size: 20px; font-weight: 700; }
.box-white p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--body); }

/* ---------- horizontal process stepper ---------- */
.stepper { display: flex; align-items: flex-start; }
.stepper__step {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; flex: 1 1 0; text-align: center;
}
.stepper__num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sora); font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.stepper__num--first { background: var(--gold); }
.stepper__title { font-family: var(--sora); font-weight: 700; font-size: 14.5px; margin: 0; }
.stepper__desc { font-size: 12.5px; color: var(--body-soft); max-width: 150px; margin: 0; }
.stepper__arrow { margin-top: 20px; flex-shrink: 0; }

/* ---------- numbered list on dark ---------- */
.numlist { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.numlist li { display: flex; gap: 16px; }
.numlist__num {
  font-family: var(--sora); font-weight: 800; font-size: 20px;
  color: var(--gold); flex-shrink: 0;
}
.numlist__title {
  font-family: var(--sora); font-weight: 700; font-size: 15px;
  color: var(--on-dark); margin: 0 0 4px;
}
.numlist__desc { font-size: 13.5px; color: var(--foot-muted); line-height: 1.55; margin: 0; }
.eyebrow--dark { color: var(--gold); letter-spacing: 1px; margin: 0 0 8px; }

/* ---------- vertical timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline__item { display: flex; gap: 24px; }
.timeline__rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline__dot {
  width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.timeline__dot--final { background: var(--ink); }
.timeline__line { width: 2px; height: 56px; background: var(--arrow); }
.timeline__body { padding-bottom: 32px; }
.timeline__item:last-child .timeline__body { padding-bottom: 0; }
.timeline__title { font-family: var(--sora); font-weight: 700; font-size: 15.5px; margin: 0 0 4px; }
.timeline__desc {
  font-size: 13.5px; color: var(--body-soft); line-height: 1.55;
  max-width: 560px; margin: 0;
}

/* ---------- dark CTA bar ---------- */
.cta-bar {
  background: var(--ink); padding: 56px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-bar h2 { font-size: 24px; font-weight: 700; color: var(--on-dark); max-width: 460px; }
.cta-bar__actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }
.cta-bar .btn { padding: 14px 26px; font-size: 14.5px; white-space: nowrap; }
.btn--ghost {
  background: transparent; color: var(--on-dark); border-color: #45454f;
}
.btn--ghost:hover { background: #23232b; color: var(--on-dark); }

/* ---------- contact page ---------- */
.contact { padding: 72px var(--gutter) 96px; display: flex; gap: 72px; }
.contact > * { flex: 1 1 0; min-width: 0; }
.contact__left { display: flex; flex-direction: column; gap: 40px; }
.contact__intro { display: flex; flex-direction: column; gap: 16px; }
.contact__intro h1 { font-size: 38px; line-height: 1.18; font-weight: 800; }

.numsteps { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
.numsteps li { display: flex; gap: 16px; align-items: flex-start; }
.numsteps__num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sora); font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.numsteps__num--first { background: var(--gold); }
.numsteps__title { font-family: var(--sora); font-weight: 700; font-size: 15.5px; margin: 0 0 4px; }
.numsteps__desc { font-size: 13.5px; color: var(--body-soft); line-height: 1.55; margin: 0; }

.reg {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.reg__title { font-family: var(--sora); font-weight: 700; font-size: 15px; margin: 0; }
.reg p { font-size: 12.5px; color: #8a8578; line-height: 1.6; margin: 0; }

/* ---------- form ---------- */
.form {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 16px;
  padding: 36px; display: flex; flex-direction: column; gap: 18px;
}
.form__title { font-family: var(--sora); font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.form__row { display: flex; gap: 14px; }
.field { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 12.5px; color: var(--body-soft); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%; height: 42px;
  border: 1px solid #E0D8C0; border-radius: 8px; background: var(--page);
  padding: 0 14px; font-family: var(--work); font-size: 14px; color: var(--ink);
}
.field textarea { height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #a8a294; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a8578' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.field select:invalid { color: #8a8578; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-dark); outline: none;
  box-shadow: 0 0 0 3px rgba(183, 154, 91, .18);
}

.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input {
  width: 16px; height: 16px; margin: 2px 0 0;
  accent-color: var(--gold-dark); flex-shrink: 0; cursor: pointer;
}
.consent label { font-size: 12px; color: #8a8578; line-height: 1.5; cursor: pointer; }

.form__submit {
  margin-top: 8px; width: 100%; padding: 15px 0;
  border: 0; border-radius: 8px;
  font-family: var(--work); font-size: 14.5px; font-weight: 600;
  background: var(--ink); color: var(--page); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.form__submit:hover:enabled { background: #26262f; }
.form__submit:disabled { background: #D8D3C5; color: #8a8578; cursor: not-allowed; }

.form__status {
  margin: 0; font-size: 13.5px; line-height: 1.6;
  padding: 12px 14px; border-radius: 8px;
}
.form__status--ok { background: #ECF3EA; color: #2F5D3A; }
.form__status--error { background: #F7ECEC; color: #7A2E2E; }

/* ==========================================================================
   Subpage responsive behaviour
   ========================================================================== */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { gap: 44px; }
  .hero--cream h1, .pagehead h1, .abouthead h1, .contact__intro h1 { font-size: 33px; }
  .dl__row { gap: 40px; }
}

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .pagehead { max-width: none; padding: 44px var(--gutter) 40px; }
  .pagehead h1, .abouthead h1, .contact__intro h1, .hero--cream h1 { font-size: 28px; }
  .abouthead { padding: 44px var(--gutter) 40px; }
  .abouthead__row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .statrow { gap: 28px 40px; }
  .hero--cream { padding: 44px var(--gutter); }
  .hero--cream .hero__img { height: 240px; }
  /* Still normal reading size, not fine print: the compliance round of
     September 2026 required this note to be at body size, not small print. */
  .hero__note { font-size: 14px; margin-top: 14px; }

  .sec { padding: 48px var(--gutter) 16px; }
  .sec__head { margin-bottom: 28px; }

  .dl { padding: 4px 20px; }
  .dl__row { flex-direction: column; gap: 0; }
  .dl__cell { border-bottom: 1px solid #F0EBDC; }
  .dl__row:last-child > .dl__cell:last-child { border-bottom: 0; }
  .dl__cell--blank { display: none; }
  .dl--legal .dl__val { max-width: 62%; }

  .callout-band { padding: 32px var(--gutter) 0; }
  .box-white { padding: 24px 22px; }

  /* stepper unrolls into a vertical list */
  .stepper { flex-direction: column; gap: 22px; }
  .stepper__step {
    flex-direction: row; align-items: flex-start;
    text-align: left; width: 100%; gap: 16px;
  }
  .stepper__desc { max-width: none; }
  .stepper__arrow { display: none; }

  .cta-bar { flex-direction: column; align-items: flex-start; gap: 24px; padding: 44px var(--gutter); }
  .cta-bar h2 { font-size: 22px; }
  .cta-bar__actions { width: 100%; }
  .cta-bar .btn { flex: 1 1 auto; white-space: normal; }

  .contact { flex-direction: column; gap: 40px; padding: 44px var(--gutter) 56px; }
  .form { padding: 24px 20px; }
  .form__row { flex-direction: column; gap: 18px; }
}

/* label + text rows in the Golden Visa hero */
.spec-list { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.spec-list li { display: flex; gap: 12px; align-items: baseline; }
.spec-list__label {
  font-family: var(--sora); font-weight: 700; font-size: 14px; color: var(--gold);
  flex-shrink: 0; white-space: nowrap;
}
.spec-list__text { font-size: 14px; color: var(--body); flex: 1 1 auto; min-width: 0; }

/* optional select: keep the placeholder option looking like a placeholder */
.field select:has(option[value=""]:checked) { color: #8a8578; }

@media (max-width: 380px) {
  /* very narrow phones: the menu already contains Contact */
  .nav__cta { display: none; }
}

/* required-field marker and its legend */
.req { color: var(--gold-dark); font-weight: 600; }
.form__note { margin: -4px 0 0; font-size: 12px; color: #8a8578; }

/* keep addresses, postcodes and email addresses from breaking mid-token */
.nb { white-space: nowrap; }

/* ---------- service provider strip (home page) ---------- */
.providers {
  border-top: 1px solid var(--border);
  padding: 30px var(--gutter);
  display: flex;
  align-items: center;
  gap: 44px;
}
.providers__row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* capped so the logos stay a group on wide screens instead of drifting apart */
  max-width: 900px;
}
.providers__logo { display: block; width: auto; flex: none; }
/* heights tuned by optical weight, not uniform height, so each mark
   reads with the same presence */
.providers__logo--bison   { height: 30px; }
.providers__logo--kpmg    { height: 36px; }
.providers__logo--bdo     { height: 34px; }
.providers__logo--servulo { height: 50px; }

@media (max-width: 860px) {
  .providers {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 26px var(--gutter);
  }
  .providers__row {
    width: 100%;
    max-width: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 28px 40px;
  }
}

.footer__social {
  display: inline-flex;
  color: var(--foot-dim);
  margin-top: 6px;
  transition: color .15s ease;
}
.footer__social:hover { color: var(--on-dark); }

/* ---------- hero: gold rule, three facts, positioning line ---------- */
.hero__rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 2px 0;
}
.hero__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--sora);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.hero__subhead {
  margin: 0;
  font-family: var(--sora);
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.34;
  color: var(--ink);
  max-width: 560px;
}
.hero__subhead .accent { color: var(--gold); }

/* ---------- next steps on the home page ---------- */
.next-steps { padding: 72px var(--gutter) 88px; }
.numsteps--row { flex-direction: row; gap: 40px; }
.numsteps--row > li { flex: 1 1 0; min-width: 0; }

@media (max-width: 860px) {
  .next-steps { padding: 48px var(--gutter) 56px; }
  .numsteps--row { flex-direction: column; gap: 24px; }
}

/* ---------- sourced third-party figures (Golden Visa) ---------- */
.figband {
  background: var(--cream);
  padding: 34px var(--gutter) 38px;
}
/* both bands share the cream background, so a hairline keeps the two
   groups readable as separate sets */
.figband--second { border-top: 1px solid rgba(23, 23, 31, .10); }

.figcards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.figcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.figcard__num {
  font-family: var(--sora);
  font-weight: 800;
  font-size: 27px;
  line-height: 1;
  color: var(--ink);
}
.figcard__lab { font-size: 13.5px; line-height: 1.45; color: var(--body); }
/* pushed to the card foot, so the sources line up across equal-height cards */
.figcard__src {
  font-size: 10.5px;
  line-height: 1.5;
  color: #8a8578;
  margin-top: auto;
  padding-top: 4px;
}

@media (max-width: 1080px) {
  .figcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 860px) {
  .figband { padding: 28px var(--gutter) 30px; }
  .figcards { grid-template-columns: 1fr; }
  .figcard__src { margin-top: 4px; }
}

/* source note under the benefit tiles */
.figsource {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #8a8578;
}

/* photo at the head of a sector card, bleeding to the card edges */
.card__img {
  display: block;
  width: calc(100% + 48px);
  margin: -24px -24px 6px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

/* service provider logos on the About page: heights tuned by optical weight,
   in a fixed slot so the names below line up across all five cards */
.provider__logo {
  height: 40px;
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}
.provider__logo img { display: block; width: auto; }
.provider__logo--bison   { height: 22px; }
.provider__logo--kpmg    { height: 27px; }
.provider__logo--bdo     { height: 26px; }
.provider__logo--servulo { height: 38px; }
.provider__logo--cresvia { height: 24px; }

/* marketing-communication marking, shown above the footer on every page */
.marking {
  margin: 0;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #8a8578;
  letter-spacing: 0.2px;
}

/* TBA placeholder where a provider logo/name is withheld pending clearance */
.providers__tba,
.provider__tba {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sora);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #b5ada0;
  border: 1.5px dashed #d8cba0;
  border-radius: 6px;
}
.providers__tba { height: 34px; padding: 0 14px; font-size: 13px; }
.provider__tba { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- investment minimums (Golden Visa vs fund) ---------- */
.hero__minimums { margin: 4px 0 0; font-size: 14px; color: var(--body-soft); line-height: 1.6; }
.hero__minimums strong { color: var(--ink); font-weight: 700; }
.hero__minimums-sep { margin: 0 6px; color: var(--gold); }
.field__hint { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: #8a8578; }
.dl__sub { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--body-soft); }
/* Hero: two main buttons side by side, consultation button full width below */
.hero__actions { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; }
.hero__actions .hero__consult { grid-column: 1 / -1; }
@media (max-width: 860px) { .hero__actions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hero__actions { grid-template-columns: 1fr; } }
/* Keep button labels centred both ways when buttons in a row have different heights */
.hero__actions .btn { display: flex; align-items: center; justify-content: center; text-align: center; }
.hero__minimums-sep { display: none; }
.hero__minimums .nb { display: block; }

/* ---------- mobile sticky consultation button ---------- */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 249, 244, 0.96); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(23, 23, 31, 0.08);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-cta.is-visible { transform: translateY(0); }
  .sticky-cta__btn { display: flex; width: 100%; justify-content: center; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* Golden Visa page: consultation form section */
.contact--gv { border-top: 1px solid var(--border); margin-top: 40px; }
#consultation { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
