/* ============================================================
   Shared interior-page components
   Layered on top of home.css (tokens, buttons, .wre-section,
   .wre-head, .wre-wrap, grids) and used by every page on the new
   design — savings, education, and any that follow. Page-specific
   pieces live in that page's own stylesheet.
   Scoped to #wrehome so the shared design-system rules apply.
   ============================================================ */

/* ---- extra icon tints ---- */
#wrehome .ic-blue500 {
  color: #3b82f6;
}
#wrehome .ic-purple500 {
  color: #a855f7;
}
#wrehome .ic-sky500 {
  color: #0ea5e9;
}
#wrehome .ic-emerald600 {
  color: #059669;
}
#wrehome .ic-stone600 {
  color: #57534e;
}
#wrehome .ic-green500 {
  color: #22c55e;
}
#wrehome .ic-primary {
  color: var(--primary);
}
#wrehome .ic-white {
  color: #fff;
}

/* ============================================================
   Page hero — visual on one side, copy on the other
   ============================================================ */
#wrehome .wre-ph-hero {
  padding: 5rem 1.5rem;
  background: linear-gradient(
    135deg,
    #fdfaf7,
    #fff 50%,
    rgba(255, 247, 237, 0.5)
  );
}
#wrehome .wre-ph-hero-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
/* grid tracks default to min-width:auto, so a single nowrap descendant (a
   truncating label, a value pill) can push a column past the viewport.
   Let the columns shrink and have the content clip/ellipsize instead. */
#wrehome .wre-ph-hero-grid > *,
#wrehome .wre-ph-split > * {
  min-width: 0;
}
#wrehome .wre-ph-hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 3.75rem);
  line-height: 1.05;
  color: var(--foreground);
  margin-bottom: 1rem;
}
#wrehome .wre-ph-hero-copy h1 .accent {
  color: var(--primary);
}
#wrehome .wre-ph-hero-copy .lede {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  margin-bottom: 1.5rem;
}
/* award / value pill under the headline */
#wrehome .wre-ph-award {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
/* checklist */
#wrehome .wre-ph-checks {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.625rem;
}
#wrehome .wre-ph-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--foreground);
}
#wrehome .wre-ph-checks svg {
  color: var(--primary);
  flex: none;
  margin-top: 0.125rem;
}
#wrehome .wre-ph-actions {
  display: flex;
  gap: 1rem;
}

/* ---- hero mockup shell + floating chips ---- */
#wrehome .wre-ph-mock-outer {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
}
#wrehome .wre-ph-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
#wrehome .wre-ph-chip--tr {
  top: -0.75rem;
  right: -0.75rem;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.25);
}
#wrehome .wre-ph-chip--tr.wre-ph-chip--ink {
  background: var(--ink-dark);
  box-shadow: var(--shadow-lg);
}
#wrehome .wre-ph-chip--bl {
  bottom: -0.75rem;
  left: -0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: var(--shadow-lg);
}
#wrehome .wre-ph-chip .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #4ade80;
}

/* ============================================================
   Split section — copy on one side, visual on the other
   ============================================================ */
#wrehome .wre-ph-split {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
#wrehome .wre-ph-h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--foreground);
  margin-bottom: 1.25rem;
}
#wrehome .wre-ph-lede {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  margin-bottom: 1.5rem;
}
#wrehome .wre-ph-body {
  color: var(--muted-foreground);
  line-height: 1.625;
  margin-bottom: 2rem;
}

/* ---- visual panel with a floating caption card ---- */
#wrehome .wre-ph-visual {
  position: relative;
}
#wrehome .wre-ph-photo {
  height: 30rem;
  border-radius: 1.5rem;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent),
    linear-gradient(135deg, #e8602a, #f08c1a 55%, #8b2e4a);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
}
#wrehome .wre-ph-photo--alt {
  height: 28.75rem;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent),
    linear-gradient(135deg, #2c1a0e, #8b2e4a 55%, #e8602a);
}
/* photo variant: a real image fills the frame, with the same dark scrim over
   it so the floating caption card stays legible. Must come after --alt so it
   clears that gradient background. */
#wrehome .wre-ph-photo--img {
  display: block;
  position: relative;
  overflow: hidden;
  background: none;
}
#wrehome .wre-ph-photo--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#wrehome .wre-ph-photo--img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}
#wrehome .wre-ph-photo-card {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
}
#wrehome .wre-ph-photo-card .ic {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 0.75rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
}
#wrehome .wre-ph-photo-card .ic--amber {
  background: #fef3c7;
  color: #d97706;
}
#wrehome .wre-ph-photo-card .k {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}
#wrehome .wre-ph-photo-card .v {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
#wrehome .wre-ph-photo-card .s {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ============================================================
   "Why it matters" card
   ============================================================ */
#wrehome .wre-ph-why {
  text-align: center;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition:
    transform 0.3s,
    border-color 0.3s,
    background 0.3s;
}
#wrehome .wre-ph-why:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(var(--primary-rgb), 0.3);
  background: rgba(255, 241, 228, 0.4);
}
#wrehome .wre-ph-why .ic {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
}
#wrehome .wre-ph-why h3 {
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
#wrehome .wre-ph-why p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  #wrehome .wre-ph-hero {
    padding: 4rem 1.5rem;
  }
  #wrehome .wre-ph-hero-grid,
  #wrehome .wre-ph-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  /* copy first, visual second — matches the reference order swap */
  #wrehome .wre-ph-hero-media {
    order: 2;
  }
  #wrehome .wre-ph-hero-copy {
    order: 1;
  }
  #wrehome .wre-ph-photo,
  #wrehome .wre-ph-photo--alt {
    height: 22rem;
  }
}
@media (max-width: 640px) {
  #wrehome .wre-ph-actions {
    flex-direction: column;
  }
  #wrehome .wre-ph-chip--tr {
    right: 0;
  }
  #wrehome .wre-ph-chip--bl {
    left: 0;
  }
}

/* ============================================================
   Two-column card grid
   ============================================================ */
#wrehome .wre-ph-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ---- gradient feature / service card ---- */
#wrehome .wre-ph-feat {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
#wrehome .wre-ph-feat:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-card-hover);
}
#wrehome .wre-ph-feat .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
#wrehome .wre-ph-feat .ic {
  width: 3rem;
  height: 3rem;
  flex: none;
  background: #fff;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
#wrehome .wre-ph-feat h3 {
  font-size: 1.0625rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
#wrehome .wre-ph-feat p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}
#wrehome .wre-ph-feat .foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
/* tag chip */
#wrehome .wre-ph-feat .tag {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
#wrehome .tag--rose { background: #ffe4e6; border-color: transparent; color: #be123c; }
#wrehome .tag--sky { background: #e0f2fe; border-color: transparent; color: #0369a1; }
#wrehome .tag--violet { background: #ede9fe; border-color: transparent; color: #6d28d9; }
#wrehome .tag--emerald { background: #d1fae5; border-color: transparent; color: #047857; }
#wrehome .tag--amber { background: #fef3c7; border-color: transparent; color: #b45309; }
#wrehome .tag--blue { background: #dbeafe; border-color: transparent; color: #1d4ed8; }
#wrehome .tag--purple { background: #f3e8ff; border-color: transparent; color: #7e22ce; }

/* tinted icon chips */
#wrehome .ic--rose { background: #ffe4e6; color: #f43f5e; }
#wrehome .ic--sky { background: #e0f2fe; color: #0ea5e9; }
#wrehome .ic--violet { background: #ede9fe; color: #8b5cf6; }
#wrehome .ic--emerald { background: #d1fae5; color: #059669; }
#wrehome .ic--amber { background: #fef3c7; color: #d97706; }
#wrehome .ic--blue { background: #dbeafe; color: #2563eb; }
#wrehome .ic--purple { background: #f3e8ff; color: #9333ea; }

/* card gradient fills */
#wrehome .grad--rose { background: linear-gradient(135deg, #fff1f2, rgba(253, 242, 248, 0.6)); border-color: rgba(255, 228, 230, 0.8); }
#wrehome .grad--sky { background: linear-gradient(135deg, #f0f9ff, rgba(239, 246, 255, 0.6)); border-color: rgba(224, 242, 254, 0.8); }
#wrehome .grad--violet { background: linear-gradient(135deg, #f5f3ff, rgba(250, 245, 255, 0.6)); border-color: rgba(237, 233, 254, 0.8); }
#wrehome .grad--emerald { background: linear-gradient(135deg, #ecfdf5, rgba(240, 253, 244, 0.6)); border-color: rgba(209, 250, 229, 0.8); }
#wrehome .grad--amber { background: linear-gradient(135deg, #fffbeb, rgba(255, 247, 237, 0.6)); border-color: rgba(254, 243, 199, 0.8); }
#wrehome .grad--blue { background: linear-gradient(135deg, #eff6ff, rgba(240, 249, 255, 0.6)); border-color: rgba(219, 234, 254, 0.8); }
#wrehome .grad--purple { background: linear-gradient(135deg, #faf5ff, rgba(245, 243, 255, 0.6)); border-color: rgba(243, 232, 255, 0.8); }

/* ============================================================
   Numbered list rows (split-section supporting points)
   ============================================================ */
#wrehome .wre-ph-list {
  display: grid;
  gap: 1rem;
}
#wrehome .wre-ph-litem {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(229, 216, 204, 0.6);
  border-radius: 1rem;
  background: linear-gradient(to right, #fdfaf7, #fff);
}
#wrehome .wre-ph-litem .n {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
#wrehome .wre-ph-litem p {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
/* value-row variant: label on the left, saving on the right */
#wrehome .wre-ph-vrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
}
#wrehome .wre-ph-vrow .lb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}
#wrehome .wre-ph-vrow .lb svg {
  color: var(--primary);
  flex: none;
}
#wrehome .wre-ph-vrow .vl {
  flex: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

/* ============================================================
   Closing CTA — soft gradient panel
   ============================================================ */
#wrehome .wre-ph-cta-wrap {
  max-width: 56rem;
  margin: 0 auto;
}
#wrehome .wre-ph-cta {
  text-align: center;
  padding: 4rem 3rem;
  border: 1px solid rgba(255, 237, 213, 0.8);
  border-radius: 1.5rem;
  background: linear-gradient(
    135deg,
    #fdfaf7,
    rgba(255, 247, 237, 0.6) 55%,
    rgba(255, 251, 235, 0.4)
  );
  box-shadow: 0 4px 40px rgba(232, 96, 42, 0.07);
}
#wrehome .wre-ph-cta h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--foreground);
  margin-bottom: 1.25rem;
}
#wrehome .wre-ph-cta .lede {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  max-width: 36rem;
  margin: 0 auto 2rem;
}
#wrehome .wre-ph-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
#wrehome .wre-ph-cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
#wrehome .wre-ph-cta-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
#wrehome .wre-ph-cta-trust svg {
  color: var(--primary);
}
#wrehome .wre-ph-cta-trust b {
  font-weight: 500;
  color: var(--foreground);
}

/* ============================================================
   Closing CTA — solid brand panel
   ============================================================ */
#wrehome .wre-ph-ctab {
  padding: 5rem 1.5rem;
  background: var(--primary);
}
#wrehome .wre-ph-ctab-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
#wrehome .wre-ph-ctab-inner .k {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}
#wrehome .wre-ph-ctab-inner h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
#wrehome .wre-ph-ctab-inner .lede {
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.75);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
#wrehome .wre-btn--white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}
#wrehome .wre-btn--white:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.02);
}
#wrehome .wre-btn--wline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}
#wrehome .wre-btn--wline:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  #wrehome .wre-ph-grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  #wrehome .wre-ph-cta {
    padding: 2.5rem 1.5rem;
  }
  #wrehome .wre-ph-cta-actions,
  #wrehome .wre-ph-ctab-inner .wre-ph-cta-actions {
    flex-direction: column;
  }
}
