/* ==========================================================================
   Skydime Insurance Agencies — entity page (insurance.html)
   Builds on tokens/primitives defined in styles.css. Presentation is fully
   scoped to body.insurance-page so the approved Holdings homepage,
   Properties, Property Details and Contact pages are unaffected. Container,
   hero and card conventions mirror the already-approved Properties recipe
   (assets/css/properties.css) so the entity feels part of the same system.
   ========================================================================== */

body.insurance-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" drawer / status bar / options block still renders. Same fix as
   properties.css and contact.css. */
.pmodal-overlay[hidden],
.finder-results[hidden],
.cover-explorer[hidden],
.pmodal-options[hidden],
.quick-quote[hidden],
.quick-quote-success[hidden],
.share-popover[hidden] {
  display: none !important;
}

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

.insurance-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%;
}

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

@media (min-width: 768px) {
  .insurance-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) {
  .insurance-utility__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
  }
}

.insurance-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);
}

.insurance-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. */
.insurance-utility .entity-group-toggle {
  margin-left: auto;
}

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

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

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

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

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

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

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

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

  /* .insurance-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
     .insurance-utility__contact ancestor raises this to (0,2,0) so the
     hide rule actually wins, independent of source order. */
  .insurance-utility__contact .insurance-utility__contact--email {
    display: none;
  }
}

@media (min-width: 760px) {
  .insurance-utility__contact .insurance-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. */
.insurance-utility__contact .insurance-utility__contact--location {
  display: none;
}

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

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

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

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

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

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

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

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

/* Mobile hamburger icon (.menu-toggle__bars) now lives in the shared
   assets/css/styles.css — it's a sitewide header primitive, not something
   Insurance needs its own copy of. See styles.css for the fix notes. */

/* ---- Header CTA button reset (now a <button data-open-general-modal>,
   not an <a>, so it can open the on-page modal instead of navigating) ---- */

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

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

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

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

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

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

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

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

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

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

body.insurance-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.insurance-page .section-title h2 {
    font-size: 31px;
  }
}

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

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

body.insurance-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;
}

/* ---- Small arrow micro-interaction on primary/secondary CTAs, same 3px
   translate already used sitewide (header-cta, entity cards, property cards) - */

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

body.insurance-page .btn-primary:hover .btn-arrow,
body.insurance-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;
}

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

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

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

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

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

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

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

/* ---- Insurance hero ---------------------------------------------------------- */

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

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

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

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

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

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

.insurance-hero__media img {
  object-fit: cover;
  object-position: center 32%;
}

.insurance-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 16, 38, 0.82) 0%,
    rgba(10, 16, 38, 0.58) 38%,
    rgba(10, 16, 38, 0.16) 62%,
    rgba(10, 16, 38, 0) 80%
  );
}

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

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

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

.insurance-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;
}

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

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

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

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

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

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

.insurance-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) {
  .insurance-hero__text {
    font-size: 16.5px;
  }
}

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

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

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

.finder-results {
  max-width: 720px;
  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;
}

.finder-results .cover-row-list {
  margin-top: 14px;
}

.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: 1024px) {
  /* 7 tiles in a 4-column grid leaves the last row's 3 items flush left
     under columns 1-3. Flexbox instead of grid at this breakpoint lets
     justify-content:center balance an incomplete last row automatically,
     at any width >=1024px, without hardcoded margins. */
  .finder-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

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

.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;
  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: 15.5px;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.3;
}

/* ---- Compact cover row (shared: Finder results, Personal/Business explorers,
   Insurance Solutions accordion panels) — the whole row is the tap target ---- */

.cover-row-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cover-row-list--2col {
  margin-top: 4px;
}

@media (min-width: 640px) {
  .cover-row-list--2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
  }
}

.cover-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.cover-row:hover {
  border-color: rgba(30, 49, 107, 0.26);
  transform: translateY(-2px);
}

.cover-row__icon.icon-circle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.cover-row__icon.icon-circle svg {
  width: 18px;
  height: 18px;
}

.cover-row__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.cover-row__title {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 15px;
}

.cover-row__desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-row__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.82rem;
  transition: color 0.2s var(--ease);
}

.cover-row__cta svg {
  transition: transform 0.2s var(--ease);
}

.cover-row:hover .cover-row__cta {
  color: var(--brand-green);
}

.cover-row:hover .cover-row__cta svg {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  .cover-row__cta span {
    display: none;
  }
}

/* ---- Personal / Business local cover explorer (collapses in place) -------------- */

.cover-explorer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.cover-explorer.is-open {
  grid-template-rows: 1fr;
}

.cover-explorer__inner {
  overflow: hidden;
}

.cover-explorer .cover-row-list {
  padding-top: 16px;
}

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

/* ---- Insurance Solutions — category accordion ------------------------------------ */

.category-accordion {
  max-width: 900px;
  margin: 32px auto 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}

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

.accordion-row__heading {
  margin: 0;
}

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

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

.accordion-trigger .icon-circle {
  flex-shrink: 0;
}

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

.accordion-trigger__title {
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 16.5px;
}

.accordion-trigger__descriptor {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .accordion-trigger__descriptor {
    display: none;
  }
}

.accordion-trigger__count {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .accordion-trigger__count {
    display: none;
  }
}

.accordion-trigger__indicator {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.accordion-trigger__indicator::before,
.accordion-trigger__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);
}

.accordion-trigger__indicator::before {
  width: 12px;
  height: 2px;
}

.accordion-trigger__indicator::after {
  width: 2px;
  height: 12px;
}

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

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

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

.accordion-panel__inner {
  overflow: hidden;
}

.accordion-panel .cover-row-list {
  padding: 0 20px 20px;
}

/* ---- Editorial: Our Approach (image / text, 48/52) ----------------------------- */

.insurance-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .insurance-editorial {
    grid-template-columns: 48% 1fr;
    gap: 44px;
  }
}

.insurance-editorial__media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.insurance-editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insurance-editorial__copy h2 {
  margin-top: 0.5rem;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
  line-height: 1.22;
}

@media (min-width: 768px) {
  .insurance-editorial__copy h2 {
    font-size: 30px;
  }
}

@media (min-width: 1024px) {
  .insurance-editorial__copy h2 {
    font-size: 34px;
  }
}

.insurance-editorial__copy p {
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 15.5px;
  max-width: 52ch;
}

.insurance-editorial__copy .btn {
  margin-top: 20px;
  min-height: 44px;
}

/* ---- Personal / Business protection split -------------------------------------- */

.protection-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 700px) {
  .protection-split {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .protection-split {
    gap: 32px;
  }
}

.protection-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.protection-panel__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

.protection-panel__copy h3 {
  margin-top: 10px;
  color: var(--brand-blue);
  font-size: 21px;
  font-weight: 700;
}

.protection-panel__copy p {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

.protection-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 12px;
  border: none;
  background: none;
  padding: 0;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.protection-panel__link:hover {
  color: var(--brand-green);
}

.protection-panel__link svg {
  transition: transform 0.25s var(--ease);
}

.protection-panel__link[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.protection-panel .cover-explorer {
  margin-top: 4px;
}

/* ---- Why Skydime Insurance (value grid) ---------------------------------------- */

.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;
}

/* ---- Trusted Insurance Partners (logo grid) ------------------------------------
   Same card language as .value-item (white surface, border-soft, radius, hover
   lift). Logos keep their native aspect ratio — the fixed-height card plus
   object-fit: contain is what makes the grid look consistent, not resizing the
   source files. */

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

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

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

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

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

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(1);
}

@media (min-width: 768px) {
  .partner-card {
    height: 108px;
    padding: 20px;
  }
}

/* Some source logos carry more internal transparent padding than others
   (e.g. Heritage/ICEA/Jubilee), so they read visibly smaller than Britam/UAP/
   SIB/Prudential at the same card size even though the card itself is
   identical. Scaling the rendered <img> (never the source file) equalises
   the visual weight — deliberate, per-logo, applied only where needed. */
.partner-card--boost-lg img {
  transform: scale(1.4);
}

.partner-card--boost-md img {
  transform: scale(1.18);
}

/* ---- How We Help (horizontal numbered journey) --------------------------------- */

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

@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 ------------------------------------------------------------------ */

.insurance-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;
}

.insurance-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;
}

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

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

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

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

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

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

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

.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;
  }
}

/* ---- Premium Product Modal + General Insurance Enquiry modal -------------------
   ONE shared overlay/dialog recipe (id differs, markup pattern identical) —
   centered on every breakpoint, sizing responds intelligently instead of
   swapping to a different component on mobile. -------------------------------- */

body.pmodal-open {
  overflow: hidden;
}

.pmodal-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);
}

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

.pmodal-dialog {
  position: relative;
  width: min(820px, calc(100vw - 48px));
  max-height: 90dvh;
  max-height: 90vh;
  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);
}

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

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

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

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

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

.pmodal-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);
}

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

.pmodal-body {
  padding: 22px 26px 28px;
}

.pmodal-icon.icon-circle {
  width: 52px;
  height: 52px;
  color: var(--brand-blue);
}

.pmodal-icon.icon-circle svg {
  width: 24px;
  height: 24px;
}

.pmodal-desc {
  margin-top: 16px;
  color: var(--text-muted);
  line-height: 1.62;
  font-size: 15.5px;
  max-width: 62ch;
}

.pmodal-options {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.pmodal-options__label {
  display: block;
  color: var(--brand-blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pmodal-options ul {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  list-style: none;
}

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

.pmodal-options li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
}

.pmodal-options li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-green);
  flex-shrink: 0;
}

.pmodal-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);
}

.pmodal-actions .btn {
  min-height: 44px;
}

.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;
}

.pmodal-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  border: none;
  background: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s var(--ease);
}

.pmodal-share-btn:hover {
  color: var(--brand-blue);
}

/* ---- Quick Quote / General Enquiry form (shared field styling) ------------------ */

.quick-quote {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.quick-quote__context {
  margin: 0;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--brand-blue);
  font-size: 0.86rem;
}

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

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

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

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

.quick-quote input,
.quick-quote select,
.quick-quote 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);
}

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

.quick-quote input.is-invalid,
.quick-quote select.is-invalid {
  border-color: #c0392b;
}

.quick-quote textarea {
  height: auto;
  min-height: 88px;
  padding: 0.6rem 0.85rem;
  resize: vertical;
}

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

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

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

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

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

.quick-quote__submit {
  width: 100%;
}

.quick-quote-success {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.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;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

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

/* ---- Mobile: full-height sheet-like modal with sticky header -------------------- */

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

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

  .pmodal-header {
    padding: 16px 18px;
  }

  .pmodal-title {
    font-size: 19px;
  }

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

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

  .pmodal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pmodal-actions .btn {
    width: 100%;
  }

  .pmodal-whatsapp-link,
  .pmodal-share-btn {
    justify-content: center;
  }

  .pmodal-share-btn {
    margin-left: 0;
  }
}

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

/* ---- Share popover (WhatsApp / Facebook / LinkedIn / Copy Link) ----------------- */

.share-popover {
  position: fixed;
  z-index: 310;
  display: grid;
  gap: 0.1rem;
  width: 190px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
}

.share-popover button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  height: 38px;
  padding: 0 0.65rem;
  border: none;
  background: none;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.share-popover button:hover {
  background: var(--surface-muted);
}

.share-popover i {
  width: 16px;
  text-align: center;
  color: var(--brand-blue);
}
