/* SOP template R2: before/after split. Every size is laid out at its real pixel size. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: block; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: block; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 600; font-display: block; src: url("../fonts/poppins-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 700; font-display: block; src: url("../fonts/poppins-latin-700-italic.woff2") format("woff2"); }

.cd-r2 {
  --orange: #F15A29;
  --black: #1A1617;
  --neutral: #D5D6CC;
  --accent: var(--orange);
  /* SOP 8.1: 8–10% safe padding on all sides, extra bottom padding for UI overlays */
  --pad-x: 108px;
  --pad-top: 108px;
  --pad-bottom: 189px;
  /* SOP type sizes ×2 on a 1080-wide canvas */
  --logo-w: 300px;
  --gap-logo: 56px;
  --fs-hook: 48px;
  --fs-promise: 60px;
  --fs-usp: 50px;
  --fs-num: 38px;
  --fs-label: 28px;
  --fs-cta: 36px;
  --icon: 40px;

  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--black);
  color: #fff;
  font-family: "Poppins", sans-serif;
  line-height: 1.2;
  text-align: left;
}
.cd-r2 *, .cd-r2 *::before, .cd-r2 *::after { box-sizing: border-box; margin: 0; }

/* Square: same layout, about 10% tighter so the house stays visible */
.cd-r2.fmt-1x1 {
  --pad-bottom: 151px;
  --logo-w: 260px;
  --gap-logo: 36px;
  --fs-hook: 44px;
  --fs-promise: 54px;
  --fs-usp: 46px;
  --fs-num: 34px;
  --fs-label: 26px;
  --fs-cta: 34px;
  --icon: 34px;
}
/* Stories: 250 px top and bottom kept free of text and logo */
.cd-r2.fmt-9x16 { --pad-top: 250px; --pad-bottom: 250px; }
/* Commercial: navy accent (SOP 6) */
.cd-r2.unit-commercial { --accent: #293376; }

.cd-r2 .photo { position: absolute; inset: 0; }
.cd-r2 .photo img, .cd-r2 .photo .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: blur(3px);
}
.cd-r2 .photo.before { -webkit-mask-image: linear-gradient(90deg, #000 44%, transparent 56%); mask-image: linear-gradient(90deg, #000 44%, transparent 56%); }
.cd-r2 .photo.before img, .cd-r2 .photo.before .ph { filter: grayscale(1) blur(3px); }
.cd-r2 .ph { background: linear-gradient(180deg, #7ea6dc 0%, #c9dbf1 46%, #b8a189 47%, #8c7259 100%); }

.cd-r2 .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(26, 22, 23, 0) 50%,
    rgba(26, 22, 23, 0.80) 76%,
    rgba(26, 22, 23, 0.94) 100%);
}

.cd-r2 .content {
  position: absolute;
  inset: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex;
  flex-direction: column;
}

.cd-r2 .logo {
  align-self: flex-start;
  padding: 18px 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.cd-r2 .logo img { display: block; width: var(--logo-w); height: auto; }

.cd-r2 .ribbons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: var(--gap-logo) 0 0 8px;
  transform: rotate(-4deg);
  transform-origin: left center;
}
.cd-r2 .rb {
  position: relative;
  padding: 6px 26px 8px;
  font-style: italic;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.cd-r2 .hook { z-index: 2; margin: 0 0 -4px 48px; border-radius: 10px; background: var(--black); color: #fff; font-size: var(--fs-hook); font-weight: 700; }
.cd-r2 .promise { z-index: 1; border-radius: 6px; background: #fff; color: var(--black); font-size: var(--fs-promise); font-weight: 700; }
.cd-r2 .usp { z-index: 2; margin: -6px 0 0 32px; border-radius: 6px; background: var(--accent); color: #fff; font-size: var(--fs-usp); font-weight: 600; }

.cd-r2 .spacer { flex: 1; }

.cd-r2 .trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(26, 22, 23, 0.86);
}
.cd-r2 .item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 10px; text-align: center; }
.cd-r2 .item + .item { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.cd-r2 .item svg { width: var(--icon); height: var(--icon); margin-bottom: 6px; color: var(--orange); }
.cd-r2 .item strong { color: #fff; font-size: var(--fs-num); font-weight: 700; line-height: 1.1; }
.cd-r2 .item span { color: var(--neutral); font-size: var(--fs-label); line-height: 1.2; }

.cd-r2 .cta {
  align-self: center;
  margin-top: 24px;
  padding: 16px 44px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: var(--fs-cta);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
