/* Your Medical Property | Lead Capture Page, October 26 optimisations.
   Mobile-first from Figma 4048:344 (390 wide); desktop from 3852:344 (1440).
   Fran's new "best practice" pieces are drawn in Barlow Condensed and Figtree;
   they use the brand's DIN Condensed and Avenir here so the page stays one family. */

@font-face { font-family: "DIN Condensed"; src: url("../assets/1fe5825b7ccb15a4.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("../assets/8138483017059522.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("../assets/20ea5752c7375308.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --purple: #3d215f;
  --pink: #e0678c;
  --grey: #f7f7f7;
  --line: #d9d9d9;
  --green: #59b658;
  --white: #fff;
  --display: "DIN Condensed", "Arial Narrow", sans-serif;
  --body: "Avenir", "Nunito Sans", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--purple); font: 400 18px/22px var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.pink { color: var(--pink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.h2 { font: 700 31.5px/31.5px var(--display); text-transform: uppercase; color: var(--purple); }
.h2 > span:not(.pink) { display: block; }
.properties .h2 .pink { display: block; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px; border-radius: 100px;
  font: 800 16px/19px var(--body); text-align: center; text-decoration: none; color: var(--purple);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--pink { background: var(--pink); }
.btn--outline { border: 2px solid var(--purple); }
.btn:focus-visible, .arrow:focus-visible, .property__cta:focus-visible, .thumbs button:focus-visible, .hero__link:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .btn--pink:hover { background: #d4567c; }
  .btn--outline:hover { background: var(--purple); color: var(--white); }
}

.arrow {
  flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--pink) url("../assets/ce1e559553244a6a.svg") center / 100% no-repeat;
  transition: transform 160ms var(--ease-out);
}
.arrow:active { transform: scale(0.94); }
.arrow--prev { rotate: 180deg; }

/* 01 Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--purple); color: var(--white); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__inner { position: relative; display: grid; gap: 24px; padding: 32px var(--gutter) 48px; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; }
.hero__logo { width: 144px; }
.hero__eyebrow { margin-bottom: 4px; font: 700 26px/30px var(--display); color: var(--grey); }
.hero__title { font: 700 51.8px/46.6px var(--display); letter-spacing: 0.93px; text-transform: uppercase; color: var(--grey); }
.hero__title .pink { display: block; }
.hero__capture { display: grid; gap: 24px; }
.hero__text { font-size: 16px; line-height: 20px; max-width: 290px; }
.hero__email {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid rgba(61, 33, 95, 0.5); border-radius: 6px;
  background: var(--white); color: #000; font: 400 16px var(--body);
}
.hero__email::placeholder { color: #999595; }
.hero__email:focus { outline: 3px solid var(--pink); outline-offset: 1px; }
.hero__cta { width: 100%; }
.hero__link { justify-self: start; font-size: 14px; line-height: 19px; font-weight: 800; text-underline-offset: 3px; }

/* 02 Trusted by + proof ---------------------------------------------------- */
.trust { padding: 24px var(--gutter) 32px; }
.trust__card {
  display: grid; gap: 16px; justify-items: center; padding: 24px; border-radius: 10px;
  background: var(--white); box-shadow: 0 4px 2px rgba(0, 0, 0, 0.1);
}
.trust__label { font: 800 22px/28px var(--body); text-align: center; }
.marquee {
  --marquee-gap: 32px;
  display: flex; width: 100%; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; flex: none; align-items: center; gap: var(--marquee-gap); padding-right: var(--marquee-gap);
  animation: marquee 40s linear infinite;
}
/* Logo heights from Figma 3852:403-3852:418 (desktop); mobile is two-thirds of that. */
.marquee__track img { width: auto; height: calc(var(--h) * 0.67px); max-width: none; }
.marquee__track li:nth-child(1) { --h: 53; }
.marquee__track li:nth-child(2) { --h: 55; }
.marquee__track li:nth-child(3) { --h: 45; }
.marquee__track li:nth-child(4) { --h: 62; }
.marquee__track li:nth-child(5) { --h: 33; }
.marquee__track li:nth-child(6) { --h: 36; }
.marquee__track li:nth-child(7) { --h: 38; }
.marquee__track li:nth-child(8) { --h: 43; }
.marquee__track li:nth-child(9) { --h: 56; }
.marquee__track li:nth-child(10) { --h: 30; }
.marquee__track li:nth-child(11) { --h: 31; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }

.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-top: 40px; font-size: 14px; line-height: 20px; color: #3d1f5c; }
.proof strong { display: block; margin-bottom: 8px; font: 700 32px/40px var(--display); color: var(--pink); }
.proof li:last-child strong { font-size: 28px; }

/* 03 Property carousel ------------------------------------------------------ */
.properties { padding: 40px 0; background: var(--grey); }
.properties__intro { display: grid; gap: 24px; margin-bottom: 24px; }
.properties__text { font-size: 14.4px; line-height: 17.6px; }

.carousel { position: relative; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > li { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; }

.property { display: flex; flex-direction: column; background: var(--purple); }
.property__status { display: grid; place-items: center; height: 44px; background: var(--pink); color: var(--white); font: 800 18px/1 var(--body); }
.property__img { width: 100%; aspect-ratio: 327 / 211; object-fit: cover; }
.property__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 0 16px; color: var(--white); }
.property__name { font-size: 18px; line-height: 24px; }
.property__cta {
  display: inline-grid; place-items: center; flex: none; min-width: 142px; height: 44px; padding: 0 16px; border-radius: 65px;
  background: var(--white); color: var(--purple); font: 800 14px/22px var(--body); text-decoration: none;
  transition: transform 160ms var(--ease-out);
}
.property__cta:active { transform: scale(0.97); }
.property--more { background: var(--purple); }
.property__more { position: relative; display: block; height: 100%; color: var(--white); text-decoration: none; }
.property__more img { width: 100%; height: 100%; object-fit: cover; }
.property__more span { position: absolute; inset: auto 0 24px; text-align: center; font: 800 18px/1 var(--body); }

.actions { display: grid; gap: 24px; margin-top: 24px; }
.actions .btn { width: 100%; }

/* 04 Premium listings ------------------------------------------------------- */
.premium { padding: 32px 0 40px; }
.premium__title { max-width: 290px; margin-bottom: 24px; font-size: 25.2px; line-height: 27.6px; }
.listing__card { overflow: hidden; border-radius: 12px; background: var(--grey); }
.gallery { position: relative; overflow: hidden; }
.gallery__track { display: flex; overflow: hidden; scroll-behavior: smooth; }
.gallery__track li { flex: 0 0 100%; }
.gallery__track img { width: 100%; aspect-ratio: 342 / 241.5; object-fit: cover; }
.listing__body { display: grid; gap: 16px; padding: 20px; }
.listing__status { display: flex; align-items: center; gap: 12px; font-size: 17.4px; line-height: 21px; text-transform: uppercase; color: var(--green); }
.listing__status::before { content: ""; width: 20px; height: 20px; background: url("../assets/76a636e5ac481902.png") center / contain no-repeat; }
.listing__name { font: 800 18px/24px var(--body); color: #000; text-transform: none; }
.listing__name::first-line { text-transform: uppercase; }
.listing__features li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--purple); }
.listing__features img { flex: none; width: 35px; height: 35px; object-fit: contain; }
.listing__features img[src$="icon-pin.svg"] { padding: 4px 9px; }
.listing__features img[src$="icon-eye.svg"] { padding: 7px 3px; }
.listing__features img[src$=".png"] { padding: 9px 4px; }
.listing__actions { display: grid; gap: 16px; }
.thumbs { display: none; }

/* 05 How we make it easy ---------------------------------------------------- */
.steps { padding: 32px 0; background: var(--grey); }
.steps__title { max-width: 210px; margin: 0 auto 24px; font-size: 25.2px; line-height: 26px; text-align: center; }
.steps__title .pink { color: inherit; }
.steps__carousel { padding: 24px 24px 24px; border-radius: 12px; background: var(--white); }
.step { display: grid; justify-items: center; gap: 12px; text-align: center; }
.step__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%; background: var(--pink); }
.step__icon img { width: 18.6px; height: 18.6px; }
.step__title { font: 700 24px/28px var(--display); text-transform: uppercase; }
.steps__nav { gap: 12px; margin-top: 24px; }
.steps__count { min-width: 40px; font-size: 14px; font-weight: 800; text-align: center; }

/* 06 Stocklist + form ------------------------------------------------------- */
.enquire { overflow-x: clip; padding: 40px 0 32px; background: var(--purple); color: var(--white); }
.enquire__grid { display: grid; gap: 24px; }
.enquire__title { font-size: 30.6px; line-height: 33px; color: var(--white); }
.enquire__text { margin-top: 24px; font-size: 16.2px; line-height: 20px; max-width: 260px; }

.stocklist { position: relative; height: 214px; margin-top: 24px; --s: 0.688; }
.stocklist__cover, .stocklist__page {
  position: absolute; width: 230px; overflow: hidden; border-radius: 4px; background: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35); transform-origin: 0 0; color: #333340;
}
.stocklist__cover { left: 34px; top: 26px; transform: scale(var(--s)) rotate(-6deg); }
.stocklist__page { left: 156px; top: 2px; padding: 16px; transform: scale(var(--s)) rotate(5deg); }
.stocklist__cover-head { display: grid; gap: 4px; padding: 16px 16px 14px; background: var(--pink); }
.stocklist__cover-title { font: 700 26px/24px var(--display); color: var(--white); text-transform: uppercase; }
.stocklist__cover-title span { display: block; color: #3d1f5c; }
.stocklist__cover-sub { font-size: 9px; line-height: 12px; color: var(--white); }
.stocklist__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 12px 6px; }
.stocklist__grid img { width: 100%; height: 66px; object-fit: cover; border-radius: 3px; }
.stocklist__cover-foot { padding: 6px 12px 12px; font-size: 9px; line-height: 12px; font-weight: 800; color: #3d1f5c; }
.stocklist__heading { margin-bottom: 10px; font: 700 19px/1 var(--display); color: #3d1f5c; text-transform: uppercase; }
.stocklist__page ul { display: grid; gap: 10px; }
.stocklist__page li { display: flex; align-items: center; gap: 10px; }
.stocklist__page li img { width: 62px; height: 40px; object-fit: cover; border-radius: 3px; }
.stocklist__page span { display: grid; gap: 1px; font-size: 9px; line-height: 12px; color: var(--pink); }
.stocklist__page b { font-size: 11px; font-weight: 800; color: #333340; }

.form { display: grid; gap: 20px; padding: 24px 20px; border: 1px solid var(--white); border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
.form__fields { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 18px; line-height: 22px; }
.field input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid rgba(61, 33, 95, 0.5); border-radius: 6px;
  background: var(--white); color: #000; font: 400 15px var(--body);
}
.field input::placeholder { color: #999595; }
.field input:focus { outline: 3px solid var(--pink); outline-offset: 1px; }
.form__submit { width: 100%; border: 0; cursor: pointer; }
.form__note { font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, 0.85); }

.footer { display: grid; gap: 24px; margin-top: 24px; }
.footer img { width: 132px; }
.footer a { justify-self: start; font-size: 12.8px; line-height: 15px; }

/* Tablet and up -------------------------------------------------------------- */
@media (min-width: 700px) {
  .properties__carousel .carousel__track > li { flex-basis: calc((100% - 28px) / 2); }
  .properties__carousel .carousel__track { gap: 28px; }
  .proof { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}

/* Desktop: Figma 1440 frame -------------------------------------------------- */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }

  .h2 { font-size: 42px; line-height: 42px; }

  .btn { min-height: 50px; padding: 12px 28px; }
  .btn--tall { min-height: 56px; }
  .arrow { width: 52px; height: 52px; }

  .hero { height: 633px; }
  .hero__inner { grid-template-columns: 1fr 476px; grid-template-rows: auto 1fr; gap: 0 48px; padding-top: 40px; padding-bottom: 0; }
  .hero__logo { grid-column: 1 / -1; width: 173px; }
  .hero__head { margin-top: 75px; }
  .hero--b .hero__head { margin-top: 123px; } /* B drops the eyebrow; the headline keeps A's position (3852:584) */
  .hero__eyebrow { font-size: 32px; line-height: 36px; margin-bottom: 12px; }
  .hero__title { font-size: 100px; line-height: 90px; letter-spacing: 1.8px; }
  .hero__title .pink { display: block; }
  .hero__capture { align-self: start; margin-top: 210px; gap: 16px; }
  .hero__text { max-width: none; font-size: 18px; line-height: 22px; }
  .hero__email { width: 469px; height: 67px; border-color: #000; border-radius: 10px; }
  .hero__cta { width: 263px; margin-top: 8px; }
  .hero__link { margin-top: -2px; }

  .trust { position: relative; z-index: 1; width: min(1212px, 100% - 2 * var(--gutter)); margin: -33px auto 0; padding: 0; }
  .trust__card { grid-template-columns: auto 2px minmax(0, 1fr); align-items: center; justify-items: start; gap: 32px; min-height: 158px; padding: 0 44px 0 48px; }
  .trust__label { font: 700 38px/36px var(--display); text-transform: uppercase; color: #3d1f5c; }
  .trust__colon { display: none; }
  .trust__card::before { content: ""; grid-column: 2; grid-row: 1; width: 2px; height: 70px; background: var(--pink); }
  .trust__label { grid-column: 1; grid-row: 1; }
  .marquee { grid-column: 3; grid-row: 1; --marquee-gap: 30px; }
  .marquee__track img { height: calc(var(--h) * 1px); }

  .proof { margin: 26px 0 0; padding: 0 6px 19px; font-size: 15px; }
  .proof li { white-space: nowrap; }
  .proof strong, .proof li:last-child strong { margin-bottom: 2px; font-size: 44px; line-height: 44px; }

  .properties { padding: 52px 0 43px; }
  .properties .wrap { max-width: 1292px; }
  .properties__intro { grid-template-columns: 456px 427px; justify-content: space-between; margin-bottom: 44px; }
  .properties__text { font-size: 18px; line-height: 22px; }
  .properties__carousel, .premium__carousel { max-width: 1036px; margin: 0 auto; }
  .properties__carousel .carousel__track { gap: 28px; }
  .properties__carousel .carousel__track > li { flex-basis: calc((100% - 56px) / 3); }
  .property__status { height: 51px; }
  .property__foot { min-height: 58px; padding: 0 20px 0 18px; }
  .property__cta { min-width: 123px; height: 32px; }

  .carousel__nav { margin-top: 24px; }
  .actions { display: flex; justify-content: center; gap: 12px; margin-top: 81px; }
  .actions .btn { width: auto; }
  .properties .actions .btn--pink { width: 274px; }
  .properties .actions .btn--outline { width: 190px; }

  .premium { padding: 66px 0 35px; }
  .premium__title { max-width: none; margin-bottom: 42px; font-size: 42px; line-height: 42px; text-align: center; }
  .premium__title .pink { display: inline; }
  .premium__carousel { max-width: 560px; }

  .steps { padding: 66px 0 43px; }
  .steps__title { max-width: none; margin-bottom: 50px; font-size: 42px; line-height: 42px; }
  .steps__title .pink { color: var(--pink); }
  .steps__carousel { padding: 0; background: none; }
  /* Figma columns: 271 wide, 11.5 apart (3852:423-3852:432); the line runs icon centre to icon centre. */
  .steps__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 11.5px; max-width: 1118px; margin: 0 auto; overflow: visible; }
  .steps__list::before { content: ""; position: absolute; left: 28px; right: calc((100% - 34.5px) / 4 - 28px); top: 27px; height: 2px; background: var(--pink); opacity: 0.6; }
  .step { position: relative; align-content: start; justify-items: start; gap: 0; text-align: left; }
  .step__icon { width: 56px; height: 56px; margin-bottom: 47px; }
  .step__icon img { width: 26px; height: 26px; }
  .step__title { margin-bottom: 16px; line-height: 24px; }
  .step p { max-width: 230px; }
  .step:nth-child(2) p { max-width: 215px; }
  .step:nth-child(3) p { max-width: 235px; }
  .step:nth-child(4) p { max-width: none; }
  .steps__nav { display: none; }
  .steps .actions { margin-top: 61px; }
  .steps .btn { width: 259px; font-size: 17px; }

  .enquire { padding: 98px 0 68px; }
  .enquire .wrap { max-width: 1280px; }
  .enquire__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 40px; }
  .enquire__title { font-size: 42px; line-height: 45.4px; }
  .enquire__text { max-width: 445px; margin-top: 24px; font-size: 18px; line-height: 22px; }
  .stocklist { --s: 1; width: 497px; height: 311px; margin: 26px 0 0 -23px; }
  .stocklist__cover { left: 54px; top: 32px; }
  .stocklist__page { left: 232px; top: 6px; }

  .form { align-self: start; gap: 0; padding: 26px 29px 31px; border-radius: 8px; }
  .form__fields { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
  .field input { height: 50px; }
  .form__submit { margin-top: 37px; }
  .form__note { margin-top: 12px; }

  .footer { display: flex; justify-content: space-between; align-items: center; margin-top: 103px; }
  .footer a { font-size: 16px; line-height: 24px; }
}

/* Wide desktop: arrows beside the carousels and the split premium card.
   Below 1240 there is no room for either, so both keep the stacked layout. */
@media (min-width: 1240px) {
  .carousel__nav { position: absolute; left: -92px; right: -92px; top: 150px; justify-content: space-between; margin: 0; pointer-events: none; }
  .carousel__nav .arrow { pointer-events: auto; }
  .premium__carousel { max-width: 1036px; }
  .form { margin-right: -10px; } /* Figma's form box overhangs the 1200 column to x 1330 */
  .premium__carousel .carousel__nav { top: 241px; }
  .listing { padding-bottom: 2px; }
  .listing:has(.thumbs) .listing__card { border-radius: 17px 17px 0 0; }
  /* Figma 3852:765: the 531px photo runs 16px under the info panel, so the
     panel's rounded corners show photo, and it fills the card's full height. */
  .listing__card { display: grid; grid-template-columns: 515px 1fr; border: 1px solid var(--line); border-radius: 17px; }
  .listing:has(.thumbs) .listing__card { border-bottom: 0; }
  .gallery { margin-right: -16px; }
  .gallery__track, .gallery__track li { height: 100%; }
  .gallery__track img { aspect-ratio: auto; height: 100%; min-height: 375px; }
  .listing__body { position: relative; grid-template-rows: auto auto 1fr auto; gap: 0; margin: -1px -1px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--grey); }
  .listing__status { padding: 26px 36px 0; }
  .listing__name { padding: 12px 36px 13px; font-size: 21.4px; line-height: 22px; }
  .listing__features { display: grid; grid-template-columns: 1fr 1fr; }
  .listing__features--cols { grid-auto-flow: column; grid-template-rows: 1fr 1fr; }
  .listing__features li { min-height: 84px; padding: 8px 16px 8px 26px; border-top: 1px solid var(--line); line-height: 22px; }
  .listing__features li:nth-child(odd) { border-right: 1px solid var(--line); }
  .listing__features--cols li:nth-child(odd) { border-right: 0; }
  .listing__features--cols li:nth-child(-n+2) { border-right: 1px solid var(--line); }
  .listing__actions { display: flex; gap: 12px; padding: 20px 22px; border-top: 1px solid var(--line); }
  .listing__actions .btn--pink { width: 274px; padding: 0 12px; }
  .listing__actions .btn--outline { flex: 1; }
  .thumbs {
    display: flex; gap: 24px; padding: 21px 25px 34px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 17px 17px;
    background: var(--grey); box-shadow: 0 3.5px 1.7px rgba(0, 0, 0, 0.05);
  }
  .thumbs button { flex: 1; max-width: 138px; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.5; transition: opacity 160ms ease; }
  .thumbs button[aria-current="true"] { opacity: 1; }
  .thumbs img { width: 100%; aspect-ratio: 138 / 77; object-fit: cover; }
  @media (hover: hover) and (pointer: fine) { .thumbs button:hover { opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 16px; }
  .marquee__track[aria-hidden] { display: none; }
  .gallery__track { scroll-behavior: auto; }
}
