/* ==========================================================================
   Sky Capital — entity page (capital.html)
   Builds on tokens/primitives defined in styles.css. Presentation is fully
   scoped to body.capital-page so the approved Holdings homepage,
   Properties, Insurance, Tours and Contact pages are unaffected. Container,
   hero, card and modal conventions mirror the already-approved Insurance/
   Tours recipes so the entity feels part of the same system.
   ========================================================================== */

body.capital-page {
  background: var(--bg);
}

/* [hidden] ties on specificity with the flex/grid display rules below, so
   without this the browser's cascade order lets display:grid/flex win and a
   "hidden" modal / finder-results / row still renders. Same fix as
   properties.css / contact.css / insurance.css / tours.css. */
.cmodal-overlay[hidden],
.finder-results[hidden],
.enquiry-context[hidden],
.enquiry-form[hidden],
.enquiry-form .form-row[hidden],
.quick-quote-success[hidden] {
  display: none !important;
}

/* ---- Fixed chrome (utility bar + header), same recipe as Insurance/Tours -- */

.capital-utility {
  background: var(--brand-blue);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  position: fixed;
  inset: 0 0 auto;
  z-index: 101;
  width: 100%;
}

.capital-utility__inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  height: var(--utility-h-mobile);
}

@media (min-width: 768px) {
  .capital-utility__inner {
    height: var(--utility-h);
  }
}

/* ≥1024px: genuine three-zone layout (Holdings link / Our Businesses / contact
   cluster) instead of the compact two-item flex row used below that width.
   Grid, not hard-coded margins, so centering stays real at every width in
   this range and the right cluster can never collide with the group toggle. */
@media (min-width: 1024px) {
  .capital-utility__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
  }
}

.capital-utility__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.capital-utility__back:hover {
  opacity: 0.85;
}

/* Below 1024px, the group toggle isn't a grid cell yet — push it (and the
   contact/social cluster after it) to the right edge, next to the Holdings
   link, matching the approved compact/mobile arrangement. */
.capital-utility .entity-group-toggle {
  margin-left: auto;
}

@media (min-width: 1024px) {
  .capital-utility__back {
    grid-column: 1;
    justify-self: start;
  }

  .capital-utility .entity-group-toggle {
    grid-column: 2;
    justify-self: center;
    margin-left: 0;
  }

  .capital-utility__right {
    grid-column: 3;
    justify-self: end;
  }
}

.capital-utility__right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.capital-utility__contact {
  display: none;
  align-items: center;
  gap: 1.1rem;
}

.capital-utility__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.capital-utility__contact a:hover {
  color: var(--white);
}

@media (min-width: 560px) {
  .capital-utility__contact {
    display: inline-flex;
  }

  /* .capital-utility__contact a sets display:inline-flex at specificity
     (0,1,1) — a plain single-class selector here would lose that tie and
     stay visible regardless of this media query. Qualifying with the
     .capital-utility__contact ancestor raises this to (0,2,0) so the hide
     rule actually wins, independent of source order. */
  .capital-utility__contact .capital-utility__contact--email {
    display: none;
  }
}

@media (min-width: 760px) {
  .capital-utility__contact .capital-utility__contact--email {
    display: inline-flex;
  }
}

/* Compact office-location item. Held back until 1180px — the entity-group
   toggle next to it has previously collided with the phone number at
   1024px, so location only ever appears once there's clearly spare room. */
.capital-utility__contact .capital-utility__contact--location {
  display: none;
}

@media (min-width: 1180px) {
  .capital-utility__contact .capital-utility__contact--location {
    display: inline-flex;
  }
}

.capital-utility .social-icons {
  display: none;
}

@media (min-width: 900px) {
  .capital-utility .social-icons {
    display: flex;
  }
}

body.capital-page .header {
  top: var(--utility-h-mobile);
}

body.capital-page .capital-hero {
  margin-top: calc(var(--utility-h-mobile) + var(--header-h-mobile));
}

@media (min-width: 768px) {
  body.capital-page .header {
    top: var(--utility-h);
  }

  body.capital-page .capital-hero {
    margin-top: calc(var(--utility-h) + var(--header-h));
  }
}

body.capital-page .nav-links {
  gap: 1.5rem;
}

button.header-cta {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---- Shared centred container (same formula as Properties/Insurance/Tours) - */

.capital-container {
  width: min(1320px, calc(100% - 36px));
  margin-inline: auto;
}

@media (min-width: 390px) {
  .capital-container {
    width: min(1320px, calc(100% - 44px));
  }
}

@media (min-width: 768px) {
  .capital-container {
    width: min(1320px, calc(100% - 64px));
  }
}

@media (min-width: 1024px) {
  .capital-container {
    width: min(1320px, calc(100% - 88px));
  }
}

@media (min-width: 1440px) {
  .capital-container {
    width: min(1320px, calc(100% - 112px));
  }
}

body.capital-page main [id] {
  scroll-margin-top: calc(var(--utility-h-mobile) + var(--header-h-mobile) + 18px);
}

@media (min-width: 768px) {
  body.capital-page main [id] {
    scroll-margin-top: calc(var(--utility-h) + var(--header-h) + 22px);
  }
}

/* ---- Typography scale (scoped override of styles.css .section-title) ------ */

body.capital-page .section-title h2 {
  margin-top: 0.55rem;
  font-size: 27px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  body.capital-page .section-title h2 {
    font-size: 31px;
  }
}

@media (min-width: 1024px) {
  body.capital-page .section-title h2 {
    font-size: 36px;
  }
}

body.capital-page .section-title p {
  margin-top: 12px;
  max-width: 640px;
  line-height: 1.65;
}

body.capital-page .eyebrow {
  font-size: 13px;
}

.section-title--centered {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-title--centered h2 {
  max-width: 720px;
  margin-inline: auto;
}

.section-title--centered p {
  max-width: 620px;
  margin-inline: auto;
}

body.capital-page .btn-primary .btn-arrow,
body.capital-page .btn-secondary .btn-arrow {
  transition: transform 0.2s var(--ease);
}

body.capital-page .btn-primary:hover .btn-arrow,
body.capital-page .btn-secondary:hover .btn-arrow {
  transform: translateX(3px);
}

.footer-brand__parent {
  margin-top: -0.6rem;
  color: var(--text-on-dark-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.whatsapp-btn {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.whatsapp-btn:hover {
  background: #1fb955;
  border-color: #1fb955;
}

/* ---- Section rhythm -------------------------------------------------------- */

.capital-section {
  padding: 40px 0;
}

@media (min-width: 768px) {
  .capital-section {
    padding: 56px 0;
  }
}

@media (min-width: 1024px) {
  .capital-section {
    padding: 64px 0;
  }
}

.capital-section--muted {
  background: var(--surface-muted);
}

.capital-section--compact {
  padding: 36px 0;
}

@media (min-width: 768px) {
  .capital-section--compact {
    padding: 44px 0;
  }
}

/* ---- Capital hero -------------------------------------------------------------- */

.capital-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: var(--brand-blue-deep);
}

@media (min-width: 768px) {
  .capital-hero {
    height: 380px;
  }
}

@media (min-width: 1024px) {
  .capital-hero {
    height: 410px;
  }
}

@media (min-width: 1180px) {
  .capital-hero {
    height: 430px;
  }
}

@media (min-width: 1440px) {
  .capital-hero {
    height: 460px;
  }
}

.capital-hero__media,
.capital-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.capital-hero__media img {
  object-fit: cover;
  object-position: center 30%;
}

.capital-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 16, 38, 0.8) 0%,
    rgba(10, 16, 38, 0.54) 38%,
    rgba(10, 16, 38, 0.14) 62%,
    rgba(10, 16, 38, 0) 80%
  );
}

.capital-hero .capital-container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.capital-hero__content {
  max-width: 560px;
  color: var(--white);
  padding: 1.5rem 0;
}

@media (min-width: 1024px) {
  .capital-hero__content {
    max-width: 600px;
  }
}

.capital-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.capital-hero__eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-green);
}

.capital-hero__headline {
  margin-top: 0.85rem;
  font-size: 31px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
}

@media (min-width: 768px) {
  .capital-hero__headline {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .capital-hero__headline {
    font-size: 42px;
  }
}

@media (min-width: 1180px) {
  .capital-hero__headline {
    font-size: 46px;
  }
}

@media (min-width: 1440px) {
  .capital-hero__headline {
    font-size: 50px;
  }
}

.capital-hero__text {
  margin-top: 0.9rem;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .capital-hero__text {
    font-size: 16.5px;
  }
}

.capital-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.capital-hero__actions .btn {
  min-height: 45px;
}

/* ---- Finder ------------------------------------------------------------------- */

.finder-results {
  max-width: 640px;
  margin: 28px auto 0;
  padding: 20px;
  border-radius: 14px;
  background: rgba(0, 168, 89, 0.06);
  border: 1px solid rgba(0, 168, 89, 0.2);
}

.finder-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.finder-results__head span {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.92rem;
}

.finder-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: none;
  background: none;
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

.recommendation-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 14px;
}

.recommendation-card .icon-circle {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.recommendation-card__text {
  flex: 1;
  min-width: 0;
}

.recommendation-card__title {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 16px;
}

.recommendation-card__desc {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.recommendation-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 14px;
}

.recommendation-card__actions .btn {
  min-height: 40px;
  height: 40px;
  font-size: 0.86rem;
}

@media (max-width: 480px) {
  .recommendation-card {
    flex-direction: column;
  }
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 560px) {
  .finder-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .finder-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .finder-tile {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

.finder-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.finder-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 49, 107, 0.24);
}

.finder-tile.is-active {
  background: rgba(0, 168, 89, 0.07);
  border-color: rgba(0, 168, 89, 0.4);
}

.finder-tile .icon-circle {
  width: 44px;
  height: 44px;
}

.finder-tile__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.3;
}

/* ---- Financial Solutions — desktop split explorer ------------------------------ */

.solution-explorer {
  display: none;
  margin-top: 32px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}

@media (min-width: 900px) {
  .solution-explorer {
    display: grid;
    grid-template-columns: 34% 1fr;
  }
}

.solution-nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-soft);
  background: var(--surface-muted);
}

.solution-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid var(--border-soft);
  transition: background-color 0.2s var(--ease);
}

.solution-nav-item:last-child {
  border-bottom: none;
}

.solution-nav-item:hover {
  background: rgba(30, 49, 107, 0.05);
}

.solution-nav-item.is-active {
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--brand-green);
}

.solution-nav-item .icon-circle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.solution-nav-item .icon-circle svg {
  width: 17px;
  height: 17px;
}

.solution-nav-item__title {
  flex: 1;
  min-width: 0;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 14.5px;
}

.solution-nav-item.is-active .solution-nav-item__title {
  font-weight: 700;
}

.solution-nav-item__arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.solution-nav-item.is-active .solution-nav-item__arrow {
  color: var(--brand-green);
  transform: translateX(2px);
}

.solution-content {
  padding: 28px 32px;
}

.solution-content .icon-circle {
  width: 50px;
  height: 50px;
}

.solution-content__category {
  display: block;
  margin-top: 16px;
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-content__title {
  margin-top: 4px;
  color: var(--brand-blue);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}

.solution-content__desc {
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 15px;
  max-width: 60ch;
}

.solution-content__highlights {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

.solution-content__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
}

.solution-content__highlights li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand-green);
}

.solution-content__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.solution-content__actions .btn {
  min-height: 44px;
}

/* ---- Financial Solutions — mobile/tablet accordion ------------------------------ */

.solution-accordion {
  margin-top: 28px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}

@media (min-width: 900px) {
  .solution-accordion {
    display: none;
  }
}

.solution-acc-row + .solution-acc-row {
  border-top: 1px solid var(--border-soft);
}

.solution-acc-trigger {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s var(--ease);
}

.solution-acc-trigger:hover {
  background: var(--surface-muted);
}

.solution-acc-trigger .icon-circle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.solution-acc-trigger__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.solution-acc-trigger__title {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 15.5px;
}

.solution-acc-trigger__desc {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.solution-acc-indicator {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.solution-acc-indicator::before,
.solution-acc-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--brand-blue);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.solution-acc-indicator::before {
  width: 11px;
  height: 2px;
}

.solution-acc-indicator::after {
  width: 2px;
  height: 11px;
}

.solution-acc-trigger[aria-expanded="true"] .solution-acc-indicator::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.solution-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.solution-acc-row.is-open .solution-acc-panel {
  grid-template-rows: 1fr;
}

.solution-acc-panel-inner {
  overflow: hidden;
}

.solution-acc-panel .solution-content {
  padding: 4px 18px 20px;
}

.solution-acc-panel .solution-content .icon-circle {
  display: none;
}

.solution-acc-panel .solution-content__category {
  margin-top: 0;
}

/* ---- Business / Individual pathways -------------------------------------------- */

.pathway-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

@media (min-width: 860px) {
  .pathway-split {
    gap: 40px;
  }
}

.pathway-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.pathway-panel__media,
.pathway-panel__copy {
  /* Grid items default to min-width:auto, which for a media element (and a
     nowrap button below) resolves to their intrinsic content size — wide
     enough at 320-430px to blow out the single 1fr column. Capping it at 0
     lets the track size to the actual available space instead. */
  min-width: 0;
}

@media (min-width: 700px) {
  .pathway-panel {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .pathway-panel--reverse .pathway-panel__media {
    order: 2;
  }
}

.pathway-panel__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.pathway-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pathway-panel__copy h3 {
  margin-top: 10px;
  color: var(--brand-blue);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .pathway-panel__copy h3 {
    font-size: 25px;
  }
}

.pathway-panel__copy p {
  margin-top: 10px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
  max-width: 46ch;
}

.pathway-panel__copy .btn {
  margin-top: 18px;
  min-height: 44px;
  white-space: normal;
  text-align: center;
}

/* ---- Who We Support (light icon-led) -------------------------------------------- */

.who-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 20px;
  margin-top: 32px;
}

.who-item {
  flex: 0 1 180px;
  max-width: 200px;
  text-align: center;
}

.who-item .icon-circle {
  margin-inline: auto;
}

.who-item h4 {
  margin-top: 12px;
  color: var(--brand-blue);
  font-size: 16px;
  font-weight: 700;
}

.who-item p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---- Why Sky Capital (value grid) — same recipe as Insurance/Tours ------------- */

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 28px;
}

@media (min-width: 560px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.value-item {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.value-item:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 49, 107, 0.24);
  box-shadow: var(--shadow-sm);
}

.value-item h3 {
  margin-top: 14px;
  color: var(--brand-blue);
  font-size: 19px;
  font-weight: 700;
}

.value-item p {
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

/* ---- How It Works — same recipe as Insurance/Tours ----------------------------- */

.how-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
  margin-top: 32px;
}

@media (min-width: 860px) {
  .how-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.how-step {
  position: relative;
  padding-top: 8px;
}

@media (min-width: 860px) {
  .how-step {
    padding: 8px 18px 0 0;
  }

  .how-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19px;
    left: 46px;
    width: calc(100% - 30px);
    height: 1px;
    background: var(--border);
  }
}

.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-muted);
  border: 1.5px solid var(--brand-green);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.how-step h3 {
  margin-top: 14px;
  color: var(--brand-blue);
  font-size: 18px;
  font-weight: 700;
}

.how-step p {
  margin-top: 6px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14.5px;
  max-width: 32ch;
}

/* ---- Final CTA ------------------------------------------------------------------ */

.capital-cta__panel {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 12% 15%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  color: var(--white);
  border-radius: 16px;
  border-top: 3px solid var(--brand-green);
  padding: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.capital-cta__panel h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.8rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.capital-cta__panel p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.capital-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.capital-cta__actions .btn {
  min-height: 45px;
}

@media (min-width: 860px) {
  .capital-cta__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---- Back to top (same recipe as Properties/Insurance/Tours) ------------------- */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 89;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.2s var(--ease);
}

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

.back-to-top:hover {
  background: var(--brand-blue);
  color: var(--white);
}

@media (min-width: 768px) {
  .back-to-top {
    right: 26px;
    bottom: 96px;
    width: 44px;
    height: 44px;
  }
}

/* ==================================================================================
   Capital enquiry modal — one premium responsive modal, narrower than the
   Tours/Insurance product modals since it only ever holds a form.
   ================================================================================== */

body.cmodal-open {
  overflow: hidden;
}

.cmodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 16, 38, 0.55);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.cmodal-overlay.is-open {
  opacity: 1;
}

.cmodal-dialog {
  position: relative;
  width: min(680px, calc(100vw - 48px));
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s var(--ease);
}

.cmodal-overlay.is-open .cmodal-dialog {
  transform: translateY(0) scale(1);
}

.cmodal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 26px;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}

.cmodal-header__text {
  min-width: 0;
}

.cmodal-eyebrow {
  display: block;
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cmodal-title {
  margin-top: 4px;
  color: var(--brand-blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.cmodal-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--surface-muted);
  color: var(--brand-blue);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.cmodal-close:hover {
  background: var(--surface-strong);
}

.cmodal-body {
  padding: 22px 26px calc(28px + env(safe-area-inset-bottom, 0px));
}

.cmodal-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.enquiry-context {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(0, 168, 89, 0.08);
  border: 1px solid rgba(0, 168, 89, 0.22);
  color: var(--brand-blue);
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .cmodal-overlay {
    align-items: center;
    padding: 10px;
  }

  .cmodal-dialog {
    width: calc(100% - 0px);
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 15px;
  }

  .cmodal-header {
    padding: 14px 16px;
  }

  .cmodal-title {
    font-size: 18px;
  }

  .cmodal-close {
    width: 42px;
    height: 42px;
  }

  .cmodal-body {
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 340px) {
  .cmodal-overlay {
    padding: 8px;
  }
}

/* ---- Enquiry form ----------------------------------------------------------------- */

.enquiry-form {
  display: grid;
  gap: 20px;
}

.enquiry-group {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  border: none;
}

.enquiry-group + .enquiry-group {
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.enquiry-group legend {
  padding: 0 0 2px;
  color: var(--brand-blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.enquiry-form .form-row {
  display: grid;
  gap: 0.4rem;
}

.enquiry-form .form-grid-2 {
  display: grid;
  gap: 14px;
}

@media (min-width: 480px) {
  .enquiry-form .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.enquiry-form label,
.enquiry-form .form-row__legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
}

.enquiry-form label span:not(.req) {
  font-weight: 500;
  color: var(--text-muted);
}

.enquiry-form .req {
  color: var(--brand-green);
  font-weight: 700;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  height: 46px;
  padding: 0 0.85rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.enquiry-form input:focus-visible,
.enquiry-form select:focus-visible,
.enquiry-form textarea:focus-visible {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.16);
}

.enquiry-form input.is-invalid,
.enquiry-form select.is-invalid,
.enquiry-form textarea.is-invalid {
  border-color: #c0392b;
}

.enquiry-form textarea {
  height: auto;
  min-height: 84px;
  padding: 0.6rem 0.85rem;
  resize: vertical;
}

.enquiry-form .form-helper {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.enquiry-form .phone-field {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.5rem;
  min-width: 0;
}

.enquiry-form .phone-field select {
  padding: 0 0.35rem;
  font-size: 13px;
}

.enquiry-form .form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.enquiry-form .form-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--text);
  font-size: 0.88rem;
}

.enquiry-form .form-error {
  margin: 0;
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 600;
}

.enquiry-form__submit {
  width: 100%;
}

.quick-quote-success {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
}

.quick-quote-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 168, 89, 0.12);
  color: var(--brand-green);
}

.quick-quote-success h4 {
  color: var(--brand-blue);
  font-size: 1.1rem;
}

.quick-quote-success p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 46ch;
}

.quick-quote-success__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.3rem;
}

.quick-quote-success__actions .btn {
  min-height: 42px;
}

.pmodal-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #16793f;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s var(--ease);
}

.pmodal-whatsapp-link:hover {
  color: #0f5c2e;
}
