/* FF&E brand program page (resources/views/frontend/ffe_brand/ffe_brand_program.blade.php).
   Everything is scoped to .ffp so the legacy site styles and this page don't affect each other. */

.ffp {
  --g: #8dc63f;
  --g-dark: #6fa82e;
  --g-soft: #eef7e1;
  --ink: #141414;
  --body: #444;
  --muted: #7a7a7a;
  --line: #e7e7e3;
  --soft: #f7f7f4;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: Poppins, "DM Sans", sans-serif;
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: clip;
}

.ffp *,
.ffp *::before,
.ffp *::after {
  box-sizing: border-box;
}

.ffp-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ffp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--g);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ffp-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.ffp-eyebrow--dark {
  color: var(--g-dark);
}

.ffp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 14px/1 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.ffp-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.ffp-btn--primary {
  background: var(--g);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(141, 198, 63, .9);
}

.ffp-btn--primary:hover {
  background: var(--g-dark);
  color: #fff;
}

.ffp-btn--ghost {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.ffp-btn--ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.ffp-btn--block {
  width: 100%;
}

/* ---------- Hero ---------- */
/* The legacy layout pads the body for the floating header; this page's dark hero runs under the header instead. */
body.v5-layout:not(.home-v5-page):has(.ffp) {
  padding-top: 0 !important;
}


.ffp-hero {
  position: relative;
  padding: 104px 0 30px;
  background:
    radial-gradient(900px 480px at 85% 20%, rgba(141, 198, 63, .16), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(255, 255, 255, .05), transparent 60%),
    #121212;
  color: #d9d9d9;
}

.ffp-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 198, 63, .5), transparent);
}

.ffp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
}

.ffp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #8f8f8f;
  font-size: 13px;
}

.ffp-crumbs a {
  color: #bdbdbd;
  text-decoration: none;
}

.ffp-crumbs a:hover {
  color: var(--g);
}

.ffp-crumbs [aria-current] {
  color: var(--g);
}

.ffp-hero__title {
  margin: 0 0 12px;
  color: #fff;
  font: 600 clamp(34px, 3.6vw, 46px)/1.04 var(--display);
  letter-spacing: -.01em;
  text-transform: none;
}

.ffp-hero__title em {
  display: block;
  color: var(--g);
  font-style: italic;
  font-weight: 500;
}

.ffp-hero__lead {
  max-width: 520px;
  margin: 0 0 18px;
  color: #bdbdbd;
  font-size: 15px;
  line-height: 1.7;
}

.ffp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.ffp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ffp-facts li {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.ffp-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.ffp-facts strong {
  color: #fff;
  font: 600 25px/1.1 var(--display);
}

.ffp-facts span {
  color: #8f8f8f;
  font-size: 12px;
  letter-spacing: .04em;
}

/* One product photo on a white card, with a soft green glow behind it. */
.ffp-hero__stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ffp-hero__stack::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(141, 198, 63, .28), transparent);
  filter: blur(10px);
}

.ffp-hero__card {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0;
  padding: 12px 12px 8px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .85);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.ffp-hero__card:hover {
  transform: translateY(-6px);
}

.ffp-hero__card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.ffp-hero__card figcaption {
  margin-top: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Collection ---------- */
.ffp-collection {
  padding: 56px 0 88px;
  background: var(--soft);
}

.ffp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 40px;
}

.ffp-title {
  margin: 0;
  color: var(--ink);
  font: 600 clamp(30px, 3.4vw, 44px)/1.1 var(--display);
  text-transform: none;
}

.ffp-head__note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ffp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ffp-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}

.ffp-card:hover,
.ffp-card:focus-visible {
  border-color: rgba(141, 198, 63, .55);
  box-shadow: 0 26px 50px -30px rgba(20, 20, 20, .45);
  transform: translateY(-6px);
}

.ffp-card:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 3px;
}

.ffp-card__media {
  position: relative;
  display: block;
  padding: 22px;
  background: #fff;
}

.ffp-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.ffp-card:hover .ffp-card__media img {
  transform: scale(1.05);
}

.ffp-card__zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s, transform .25s;
}

.ffp-card__zoom svg {
  width: 18px;
  height: 18px;
}

.ffp-card:hover .ffp-card__zoom,
.ffp-card:focus-visible .ffp-card__zoom {
  opacity: 1;
  transform: none;
}

.ffp-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

/* Product names in the site's normal font (Poppins), not the serif heading font. */
.ffp-card__name {
  color: var(--ink);
  font: 400 17px/1.4 var(--sans);
}

.ffp-card__code {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--g-soft);
  color: var(--g-dark);
  font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
}

/* ---------- Program description typography ---------- */
.ffp-prose {
  max-width: 760px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.85;
}

.ffp-prose h1,
.ffp-prose h2,
.ffp-prose h3,
.ffp-prose h4 {
  margin: 1.6em 0 .55em;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  text-transform: none;
}

.ffp-prose > :first-child {
  margin-top: 0;
}

.ffp-prose h1,
.ffp-prose h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.ffp-prose h3 {
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-size: 26px;
}

.ffp-prose h4 {
  font-size: 21px;
}

.ffp-prose p,
.ffp-prose li {
  font-size: 15.5px;
  line-height: 1.85;
}

.ffp-prose p {
  margin: 0 0 1.1em;
}

/* The description comes from the admin's rich-text editor, which saves inline sizes and alignment;
   the page's own type scale wins so every program looks the same. */
.ffp-prose h1,
.ffp-prose h2,
.ffp-prose h3,
.ffp-prose h4,
.ffp-prose p {
  text-align: left !important;
}

.ffp-prose [style*="font-size"],
.ffp-prose [style*="font-family"] {
  font-size: inherit !important;
  font-family: inherit !important;
}

.ffp-prose a {
  color: var(--g-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ffp-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.ffp-prose ul,
.ffp-prose ol {
  display: grid;
  gap: 12px;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.ffp-prose li {
  position: relative;
  padding: 14px 18px 14px 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  line-height: 1.65;
}

.ffp-prose li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Shared centred section heading ---------- */
.ffp-center-head {
  max-width: 860px;
  margin: 0 auto 44px;
  text-align: center;
}

.ffp-center-head .ffp-title {
  margin-bottom: 14px;
}

.ffp-center-head__lead {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
}

.ffp-center-head--dark .ffp-title {
  color: #fff;
}

.ffp-center-head--dark .ffp-center-head__lead {
  color: #a9a9a9;
  font-style: normal;
}

/* ---------- Package spaces: photo cards, 2 per row ---------- */
.ffp-spaces {
  padding: 56px 0 88px;
  background: #fff;
}

.ffp-spaces__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ffp-space {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: box-shadow .35s, transform .35s cubic-bezier(.2, .7, .2, 1);
}

.ffp-space:hover {
  box-shadow: 0 26px 50px -32px rgba(20, 20, 20, .45);
  transform: translateY(-4px);
}

.ffp-space__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.4;
  background: #1b1b1b;
  isolation: isolate;
}

.ffp-space__media img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.ffp-space__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78) 100%);
}

.ffp-space:hover .ffp-space__media img {
  transform: scale(1.06);
}

.ffp-space__icon {
  position: absolute;
  left: 24px;
  bottom: 70px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--g);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
}

.ffp-space__icon svg {
  width: 24px;
  height: 24px;
}

.ffp-space__title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  margin: 0;
  color: #fff;
  font: 600 20px/1.25 var(--sans);
  text-transform: none;
}

.ffp-space__text {
  margin: 0;
  padding: 20px 24px 24px;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- Why choose us (photo left, dark panel right) ---------- */
.ffp-why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #141414;
}

.ffp-why__photo {
  position: relative;
  min-height: 560px;
}

.ffp-why__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ffp-why__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding: 72px 64px;
}

.ffp-why__title {
  margin: 0 0 18px;
  color: #fff;
  font: 600 clamp(30px, 3vw, 42px)/1.15 var(--display);
  text-transform: none;
}

.ffp-why__text {
  margin: 0 0 30px;
  color: #d4d4d4;
  font-size: 15px;
  line-height: 1.75;
}

.ffp-why__list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ffp-why__list li {
  position: relative;
  padding-left: 48px;
  color: #fff;
  font-size: 15px;
  line-height: 32px;
}

.ffp-why__list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--g);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238dc63f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Call to action: dark photo card on a white band ---------- */
.ffp-cta {
  padding: 40px 24px;
  background: #fff;
}

.ffp-cta__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 32px;
  border-radius: 22px;
  background:
    linear-gradient(rgba(10, 14, 10, .82), rgba(10, 14, 10, .82)),
    var(--cta-photo) center / cover no-repeat,
    #121212;
  text-align: center;
}

.ffp-cta h2 {
  margin: 0 0 14px;
  color: #fff;
  font: 600 clamp(28px, 3.2vw, 42px)/1.15 var(--display);
  text-transform: none;
}

.ffp-cta p {
  max-width: 720px;
  margin: 0 auto 30px;
  color: #d9d9d9;
  font-size: 15.5px;
  line-height: 1.7;
}

.ffp-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--g-dark);
  font: 600 15px/1 var(--sans);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.ffp-cta__btn svg {
  width: 18px;
  height: 18px;
  transition: transform .2s;
}

.ffp-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .6);
}

.ffp-cta__btn:hover svg {
  transform: translateX(3px);
}

/* ---------- Built around your property: dark icon grid with dividers ---------- */
.ffp-built {
  padding: 60px 0 96px;
  background: #0b0b0b;
}

.ffp-built__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.ffp-built__item {
  padding: 34px 28px 38px;
  border-bottom: 1px solid #262626;
  transition: background-color .3s;
}

.ffp-built__item:not(:nth-child(3n)) {
  border-right: 1px solid #262626;
}

.ffp-built__item:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.ffp-built__item:hover {
  background: #121212;
}

.ffp-built__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #151515;
  color: var(--g);
}

.ffp-built__icon svg {
  width: 24px;
  height: 24px;
}

.ffp-built__item h3 {
  margin: 0 0 10px;
  color: #fff;
  font: 600 20px/1.3 var(--sans);
  text-transform: none;
}

.ffp-built__item p {
  margin: 0;
  color: #a9a9a9;
  font-size: 14.5px;
  line-height: 1.65;
}

.ffp-built__action {
  margin-top: 48px;
  text-align: center;
}

/* ---------- Program description (admin) ---------- */
.ffp-about {
  padding: 52px 0 24px;
  background: #fff;
}

.ffp-about .ffp-prose {
  margin: 0 auto;
}

/* Short until "Read More": the text fades out at the bottom. */
.ffp-prose[data-ffp-collapsed] {
  max-height: 420px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.ffp-about__more {
  margin-top: 18px;
  text-align: center;
}

.ffp-more {
  min-height: 46px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--g);
  color: #fff;
  font: 700 13px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(141, 198, 63, .9);
  transition: background-color .2s, transform .2s;
}

.ffp-more:hover {
  background: var(--g-dark);
  transform: translateY(-1px);
}

/* ---------- FAQ (brand conversion page style) ---------- */
.ffp-faq {
  padding: 40px 0 96px;
  background: #fff;
}

.ffp-faq__title {
  margin: 0 0 40px;
  color: var(--ink);
  font: 700 clamp(26px, 3.4vw, 42px)/1.15 "DM Sans", var(--sans);
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.ffp-faq__list {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.ffp-faq__item {
  border-radius: 6px;
  background: #f2f2f2;
}

.ffp-faq__item[hidden] {
  display: none;
}

.ffp-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--ink);
  font: 500 15.5px/1.5 "DM Sans", var(--sans);
  list-style: none;
  cursor: pointer;
}

.ffp-faq__item summary::-webkit-details-marker {
  display: none;
}

.ffp-faq__item summary svg {
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform .25s;
}

.ffp-faq__item[open] summary svg {
  transform: rotate(180deg);
}

.ffp-faq__answer {
  padding: 0 22px 20px;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.75;
}

.ffp-faq__answer p {
  margin: 0 0 .8em;
}

.ffp-faq__answer > :last-child {
  margin-bottom: 0;
}

.ffp-faq__more {
  margin-top: 28px;
  text-align: center;
}

/* ---------- Product viewer ---------- */
.ffp-lock,
.ffp-lock body {
  overflow: hidden;
}

.ffp-viewer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  background: rgba(10, 10, 10, .9);
  backdrop-filter: blur(6px);
  animation: ffp-fade .25s ease;
}

.ffp-viewer[hidden] {
  display: none;
}

.ffp-viewer__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(980px, 100%);
  margin: 0;
}

.ffp-viewer__figure img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  object-fit: contain;
}

.ffp-viewer figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 16px;
  color: #bdbdbd;
  font-size: 13px;
  text-align: center;
}

.ffp-viewer figcaption strong {
  color: #fff;
  font: 600 24px/1.2 var(--display);
}

.ffp-viewer figcaption span {
  color: var(--g);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ffp-viewer figcaption em {
  font-style: normal;
  color: #8f8f8f;
}

.ffp-viewer__close,
.ffp-viewer__nav {
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 300 30px/1 var(--sans);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}

.ffp-viewer__nav {
  width: 52px;
  height: 52px;
}

.ffp-viewer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
}

.ffp-viewer__close:hover,
.ffp-viewer__nav:hover {
  border-color: var(--g);
  background: var(--g);
}

@keyframes ffp-fade {
  from { opacity: 0; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1099.98px) {
  .ffp-hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ffp-hero__stack {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .ffp-why {
    grid-template-columns: 1fr;
  }

  .ffp-why__photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .ffp-why__panel {
    max-width: none;
    padding: 56px 32px;
  }

  .ffp-built__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ffp-built__item,
  .ffp-built__item:not(:nth-child(3n)),
  .ffp-built__item:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid #262626;
  }

  .ffp-built__item:nth-child(odd) {
    border-right: 1px solid #262626;
  }

  .ffp-built__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 899.98px) {
  .ffp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* ---------- Phone ---------- */
@media (max-width: 599.98px) {
  .ffp-wrap {
    padding: 0 16px;
  }

  .ffp-hero {
    padding: 86px 0 28px;
  }

  .ffp-crumbs {
    margin-bottom: 22px;
  }

  .ffp-hero__lead {
    font-size: 15px;
  }

  .ffp-hero__actions {
    margin-bottom: 20px;
  }

  .ffp-hero__actions .ffp-btn {
    flex: 1 1 100%;
  }

  .ffp-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ffp-facts li {
    padding: 0 10px;
  }

  .ffp-facts strong {
    font-size: 22px;
  }

  .ffp-facts span {
    font-size: 11px;
    line-height: 1.4;
  }

  .ffp-hero__card {
    padding: 12px 12px 10px;
    border-radius: 16px;
  }

  .ffp-hero__card figcaption {
    font-size: 10px;
  }

  .ffp-collection,
  .ffp-about {
    padding: 36px 0 64px;
  }

  .ffp-grid {
    gap: 12px;
  }

  .ffp-card {
    border-radius: 16px;
  }

  .ffp-card__media {
    padding: 10px;
  }

  .ffp-card__zoom {
    display: none;
  }

  .ffp-card__body {
    gap: 6px;
    padding: 12px 12px 14px;
  }

  .ffp-card__name {
    font-size: 16px;
  }

  .ffp-card__code {
    max-width: 100%;
    padding: 3px 8px;
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .ffp-spaces,
  .ffp-built {
    padding: 36px 0 64px;
  }

  .ffp-center-head {
    margin-bottom: 30px;
  }

  .ffp-center-head__lead {
    font-size: 14.5px;
  }

  .ffp-spaces__grid {
    gap: 12px;
  }

  .ffp-space {
    border-radius: 14px;
  }

  .ffp-space__media {
    aspect-ratio: 4 / 4.2;
  }

  .ffp-space__text {
    padding: 12px 12px 14px;
    font-size: 12.5px;
    line-height: 1.55;
  }

  .ffp-space__icon {
    left: 12px;
    bottom: 58px;
    width: 34px;
    height: 34px;
  }

  .ffp-space__icon svg {
    width: 18px;
    height: 18px;
  }

  .ffp-space__title {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 14px;
    min-height: 2.5em;
    display: flex;
    align-items: flex-end;
  }

  .ffp-why__panel {
    padding: 44px 16px 52px;
  }

  .ffp-why__list li {
    padding-left: 42px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 32px;
    display: flex;
    align-items: center;
  }

  .ffp-cta {
    padding: 24px 12px;
  }

  .ffp-cta__inner {
    padding: 48px 20px;
    border-radius: 18px;
  }

  .ffp-cta__btn {
    width: 100%;
    justify-content: center;
  }

  .ffp-built__grid {
    grid-template-columns: 1fr;
  }

  .ffp-built__item,
  .ffp-built__item:nth-child(odd),
  .ffp-built__item:nth-last-child(-n + 2) {
    padding: 26px 4px 28px;
    border-right: 0;
    border-bottom: 1px solid #262626;
  }

  .ffp-built__item:last-child {
    border-bottom: 0;
  }

  .ffp-about {
    padding-top: 32px;
  }

  .ffp-faq {
    padding: 28px 0 64px;
  }

  .ffp-faq__item summary {
    padding: 16px;
    font-size: 14.5px;
  }

  .ffp-faq__answer {
    padding: 0 16px 16px;
  }

  .ffp-viewer {
    gap: 0;
    padding: 70px 12px 24px;
  }

  .ffp-viewer__nav {
    position: absolute;
    bottom: 24px;
    width: 46px;
    height: 46px;
  }

  .ffp-viewer__nav--prev {
    left: calc(50% - 56px);
  }

  .ffp-viewer__nav--next {
    right: calc(50% - 56px);
  }

  .ffp-viewer__figure img {
    max-height: calc(100vh - 230px);
    padding: 12px;
  }
}

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

/* ---------- Phone polish ----------
   Shorter page on phones: hero buttons side by side, package spaces as a swipe row with dots,
   "built around your property" as compact icon rows, smaller headings. */
.ffp-dots {
  display: none;
}

@media (max-width: 599.98px) {
  /* Hero */
  .ffp-hero__grid {
    gap: 26px;
  }

  .ffp-hero__title {
    font-size: 36px;
  }

  .ffp-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ffp-hero__actions .ffp-btn {
    flex: none;
    min-height: 40px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .ffp-facts {
    padding: 12px 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
  }

  .ffp-facts li,
  .ffp-facts li:first-child {
    align-items: center;
    padding: 0 6px;
    text-align: center;
  }

  .ffp-facts li:first-child {
    border-left: 0;
  }

  .ffp-facts strong {
    font-size: 21px;
  }

  .ffp-facts span {
    font-size: 10.5px;
  }

  .ffp-hero__stack {
    max-width: 290px;
  }

  /* Section headings */
  .ffp-title {
    font-size: 28px;
  }

  .ffp-center-head {
    margin-bottom: 22px;
  }

  .ffp-center-head__lead {
    font-size: 14px;
  }

  /* Package spaces: one card at a time, swipe for the next (first card starts at the left edge). */
  .ffp-spaces__grid {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 4px 16px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ffp-spaces__grid::-webkit-scrollbar {
    display: none;
  }

  .ffp-space {
    flex: 0 0 80vw;
    scroll-snap-align: center;
  }

  .ffp-space:hover {
    transform: none;
  }

  .ffp-space__media {
    aspect-ratio: 16 / 10;
  }

  .ffp-space__icon {
    left: 14px;
    bottom: 48px;
    width: 36px;
    height: 36px;
  }

  .ffp-space__icon svg {
    width: 19px;
    height: 19px;
  }

  .ffp-space__title {
    display: block;
    min-height: 0;
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 16px;
  }

  .ffp-space__text {
    padding: 12px 14px 16px;
    font-size: 13.5px;
    line-height: 1.6;
  }

  .ffp-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
  }

  .ffp-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d5d5d0;
    transition: width .25s, background-color .25s;
  }

  .ffp-dots button.is-active {
    width: 22px;
    background: var(--g);
  }

  /* Collection */
  .ffp-head {
    margin-bottom: 22px;
  }

  .ffp-card__name {
    font-size: 16px;
  }

  /* Why choose us */
  .ffp-why__photo {
    aspect-ratio: 16 / 10;
  }

  .ffp-why__title {
    font-size: 28px;
  }

  .ffp-why__text {
    margin-bottom: 22px;
    font-size: 14px;
  }

  .ffp-why__list {
    gap: 12px;
  }

  /* CTA */
  .ffp-cta {
    padding: 20px 12px;
  }

  .ffp-cta__inner {
    padding: 36px 18px;
  }

  .ffp-cta h2 {
    font-size: 27px;
  }

  .ffp-cta p {
    margin-bottom: 22px;
    font-size: 14px;
  }

  /* Built around your property: icon on the left, text on the right. */
  .ffp-built__item,
  .ffp-built__item:nth-child(odd),
  .ffp-built__item:nth-last-child(-n + 2) {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 18px 0;
  }

  .ffp-built__icon {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    margin: 2px 0 0;
  }

  .ffp-built__icon svg {
    width: 21px;
    height: 21px;
  }

  .ffp-built__item h3 {
    margin-bottom: 4px;
    font-size: 16px;
  }

  .ffp-built__item p {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .ffp-built__action {
    margin-top: 26px;
  }

  .ffp-built__action .ffp-btn {
    width: 100%;
  }

  /* Description + FAQ */
  .ffp-prose[data-ffp-collapsed] {
    max-height: 320px;
  }

  .ffp-prose h1,
  .ffp-prose h2 {
    font-size: 26px;
  }

  .ffp-prose h3 {
    font-size: 22px;
  }

  .ffp-prose p,
  .ffp-prose li {
    font-size: 14.5px;
    line-height: 1.75;
  }

  .ffp-faq__title {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .ffp-faq__list {
    gap: 10px;
  }
}

/* When the hero stacks (tablet and phone): breadcrumb and eyebrow, then the product image, then the rest of the text.
   The copy box dissolves so its children can be ordered around the image. */
@media (max-width: 1099.98px) {
  .ffp-hero__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ffp-hero__copy {
    display: contents;
  }

  .ffp-crumbs {
    order: -3;
  }

  .ffp-eyebrow {
    order: -2;
  }

  .ffp-hero__stack {
    order: -1;
    margin-bottom: 26px;
  }
}

@media (max-width: 599.98px) {
  .ffp-hero__stack {
    margin-bottom: 22px;
  }
}

.ffp-btn--outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.ffp-btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 599.98px) {
  /* Hero: a little room between the floating header and the image. */
  .ffp-hero {
    padding-top: 100px;
  }

  .ffp-hero__grid {
    gap: 22px;
  }

  .ffp-hero__stack {
    max-width: 300px;
  }

  .ffp-crumbs {
    margin-bottom: 14px;
    font-size: 12px;
  }

  /* Collection: one piece per row, all pieces shown. */
  .ffp-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Swipe cards keep the same height so the row looks even. */
  .ffp-spaces__grid {
    align-items: stretch;
  }

  .ffp-why__list li::before {
    width: 28px;
    height: 28px;
    background-size: 14px;
  }

  .ffp-why__list li {
    padding-left: 40px;
    min-height: 28px;
  }
}

/* ---------- Whole images, never cropped ----------
   Space cards: the full photo on white (product shots blend into it), then icon + title + text below.
   These come last so they replace the older overlay-card rules at every screen size. */
.ffp-space__media {
  aspect-ratio: 1200 / 650;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.ffp-space__media::after {
  display: none;
}

.ffp-space__media img {
  object-fit: contain;
}

.ffp-space:hover .ffp-space__media img {
  transform: none;
}

.ffp-space__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 22px 22px;
}

.ffp-space__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ffp-space__icon,
.ffp-space__title {
  position: static;
}

.ffp-space__icon {
  flex: none;
  width: 40px;
  height: 40px;
  box-shadow: none;
}

.ffp-space__icon svg {
  width: 21px;
  height: 21px;
}

.ffp-space__title {
  display: block;
  min-height: 0;
  color: var(--ink);
  font: 600 18px/1.3 var(--sans);
}

.ffp-space__text {
  padding: 0;
}

/* Hero: an uploaded image is shown as it is, larger, without the white card. */
.ffp-hero__stack.ffp-hero__stack--plain {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.ffp-hero__card.ffp-hero__card--plain {
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.ffp-hero__card--plain img {
  aspect-ratio: auto;
  height: auto;
  border-radius: 0;
  background: none;
}

/* Why choose us: the photo keeps its own shape. */
.ffp-why__photo {
  min-height: 0;
  aspect-ratio: auto;
}

.ffp-why__photo img {
  position: static;
  display: block;
  height: auto;
}

@media (max-width: 599.98px) {
  .ffp-space__body {
    padding: 14px 16px 18px;
  }

  .ffp-space__icon {
    width: 34px;
    height: 34px;
  }

  .ffp-space__icon svg {
    width: 18px;
    height: 18px;
  }

  .ffp-space__title {
    font-size: 16px;
  }
}

/* Collection cards with a product page: two green icons over the photo (eye = product page,
   magnifier = large image on this page). They appear on hover, and stay visible on touch screens. */
.ffp-card--split {
  cursor: default;
}

.ffp-card__icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .25s;
}

.ffp-card--split:hover .ffp-card__icons,
.ffp-card--split:focus-within .ffp-card__icons {
  opacity: 1;
}

.ffp-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--g);
  color: #fff;
  cursor: pointer;
  transform: translateY(8px);
  transition: transform .25s, background-color .2s;
}

.ffp-card--split:hover .ffp-card__icon,
.ffp-card--split:focus-within .ffp-card__icon {
  transform: none;
}

.ffp-card__icon:hover,
.ffp-card__icon:focus-visible {
  background: var(--ink);
  color: #fff;
}

.ffp-card__icon:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.ffp-card__icon svg {
  width: 20px;
  height: 20px;
}

a.ffp-card__name,
a.ffp-card__name:hover {
  color: var(--ink);
  text-decoration: none;
}

a.ffp-card__name:hover {
  color: var(--g-dark);
}

/* Touch screens have no hover: keep the icons visible, in the corner so the product stays clear. */
@media (hover: none) {
  .ffp-card__icons {
    inset: auto 10px 10px auto;
    opacity: 1;
  }

  .ffp-card__icon {
    width: 38px;
    height: 38px;
    transform: none;
  }

  .ffp-card__icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Hero with one button (the collection button's text left empty in admin): full width on phones. */
.ffp-hero__actions .ffp-btn:only-child {
  grid-column: 1 / -1;
}
