/* ============================================================
   /home3 — Profile Badge System card
   Loaded after maajee.css + site2.css (see new2/_top.php $n2ExtraCss).
   Only the featured-profile card differs from /home2; everything
   else on the page is inherited.
   ============================================================ */

:root {
  /* Larka / Larki use the site's own two brand colours — emerald and gold —
     rather than a maroon invented for this page. The gold pairing is the one
     .btn-gold already uses: gold ground, dark-gold ink. */
  --gold-head:    #C9A227;
  --gold-ink:     #3D3106;
  --gold-tint:    #FBF3DC;
  --gold-label:   #8C6D1B;   /* label ink that reads on the cream wash */
  --gold-wash:    #FDFAF0;   /* Larki card ground */
  --emerald-wash: #F4F9F6;   /* Larka card ground */
  --check-blue:   #1D8EF0;
  --new-green:    #2E9E4F;
}

/* one card per row on phones: the card is a horizontal layout
   (thumbnail left, details right) and does not survive a 2-up grid */
/* 7 Nov 2026: the featured block is a grid of 12, not a carousel of 8. Two across on phones (as
   asked for back on 5 Nov), three from 1024px — so 12 profiles land in 4 rows on desktop and
   6 on a phone, with nothing hidden behind a swipe. */
.rcards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rcard {
  /* tinted card: the whole card takes a pale wash of its gender colour
     instead of a solid header bar, so it sits with the ivory page */
  border: 1px solid #BCD8CC;
  border-radius: var(--radius);
  background: var(--emerald-wash);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.rcard--bride { border-color: #E8D9A8; background: var(--gold-wash); }

/* ---------- family label (no bar — a coloured line above the body) ---------- */
.rcard__head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 12px 0;
  background: none;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.rcard--bride .rcard__head { color: var(--gold-label); }
.rcard__head svg { flex: none; width: 14px; height: 14px; }

/* ---------- body ---------- */
.rcard__body { padding: 7px 12px 12px; }
.rcard__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rcard__thumb {
  width: 56px; height: 56px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--emerald-light);
  display: grid;
  place-items: center;
  color: var(--muted-green);
}
.rcard--bride .rcard__thumb { background: var(--gold-tint); color: var(--gold-ink); }
.rcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Privacy: the photo stays blurred until the families connect. The radius is
   tuned to this 56px box — home2's blur(5px) is sized for its large 4:3 photo
   and at thumbnail size flattens the picture into a plain colour swatch. */
.rcard__thumb img.is-blur { filter: blur(6px) saturate(.95); transform: scale(1.12); }

.rcard__main { flex: 1; min-width: 0; }

.rcard__idrow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rcard__id {
  font-size: 19px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -.01em;
}
.rcard__check { color: var(--check-blue); flex: none; }
.rcard__crown { color: var(--gold); flex: none; }

.rcard__new {
  margin-left: auto;
  background: var(--new-green);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* one line: MBA | 28 Years | Lahore */
.rcard__line {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--charcoal);
  line-height: 1.45;
}
.rcard__sep { color: #C9C9C9; margin: 0 5px; }

/* ---------- badge row ---------- */
.rcard__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.rbadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--charcoal);
  background: #fff;
  white-space: nowrap;
}
.rbadge svg { flex: none; }
/* a badge that is a link is a saved search on /profiles */
a.rbadge { text-decoration: none; transition: var(--transition); }
a.rbadge:hover { border-color: var(--emerald); background: var(--emerald-light); color: var(--emerald); }
a.rbadge:hover svg { color: var(--emerald); }

.rbadge--managed,
.rbadge--serious {
  border-color: #A9CFBE;
  background: var(--emerald-light);
  color: var(--emerald);
}
.rbadge--managed svg,
.rbadge--serious svg { color: var(--emerald); }
/* 13 Nov 2026: bride cards keep their badges in gold, so each card uses one colour only */
.rcard--bride .rbadge--managed,
.rcard--bride .rbadge--serious { border-color: #E3CF8E; background: var(--gold-soft, #F6EFD8); color: #7A5E14; }
.rcard--bride .rbadge--managed svg,
.rcard--bride .rbadge--serious svg { color: var(--gold-label); }
/* 13 Nov 2026: Family Managed is confirmed on a call, so it is a solid badge (Self Managed stays soft) */
.rbadge.rbadge--family { border-color: var(--emerald); background: var(--emerald); color: #fff; font-weight: 600; }
.rbadge.rbadge--family svg { color: #fff; }
.rcard--bride .rbadge.rbadge--family { border-color: var(--gold-label); background: var(--gold-label); color: #fff; }
.rcard--bride .rbadge.rbadge--family svg { color: #fff; }

/* 6 Nov 2026: View Profile. The card's id and thumbnail were the only way in, which is a small
   target; this is the obvious one. The bride cards take the gold so the button sits with the
   rest of the card rather than cutting an emerald band across it. */
.rcard__view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  min-height: 42px;
  padding: 9px;
  border: 2px solid var(--emerald);
  border-radius: 12px;
  background: var(--emerald);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
}
.rcard__view:hover { background: var(--emerald-dark, #0A4F3B); border-color: var(--emerald-dark, #0A4F3B); color: #fff; }
.rcard__view svg { flex: none; }
/* 13 Nov 2026: bright brand gold with dark ink, the same pairing as .btn-gold (was a dull olive #8C6D1B) */
.rcard--bride .rcard__view { background: var(--gold-head); border-color: var(--gold-head); color: var(--gold-ink); }
.rcard--bride .rcard__view svg { color: var(--gold-ink); }
.rcard--bride .rcard__view:hover { background: #B08D1F; border-color: #B08D1F; color: var(--gold-ink); }

/* the attributes on the one-line summary are searches too */
.rcard__line a {
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px dotted var(--field-border);
}
.rcard__line a:hover { color: var(--emerald); border-bottom-color: var(--emerald); }

/* like, sitting at the end of the id row */
.rcard__like {
  margin-left: 4px;
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--field-border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.rcard__like:hover { border-color: #E89B9B; color: #D14D4D; background: #FEF5F5; }
.rcard__like[aria-pressed="true"] { border-color: #D14D4D; background: #FEF2F2; color: #D14D4D; }
.rcard__like[aria-pressed="true"] .heart-o { display: none; }
.rcard__like .heart-f { display: none; }
.rcard__like[aria-pressed="true"] .heart-f { display: block; }

/* flag images come from countryFlagHtml() — same source the rest of the site uses */
.rbadge .country-flag {
  width: 15px; height: 11px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  display: block;
  flex: none;
}

/* ---------- wider screens ---------- */
@media (min-width: 768px) {
  .rcards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .rcard__head { font-size: 12.5px; padding: 13px 14px 0; }
  .rcard__body { padding: 8px 14px 14px; }
  .rcard__id { font-size: 20px; }
  .rcard__line { font-size: 14px; }
}

@media (min-width: 1024px) {
  .rcards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .rcard { transition: var(--transition); }
  .rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
}

/* the legend above the grid, explaining what each badge means */
.badge-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.badge-key__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.badge-key__item b { color: var(--charcoal); font-weight: 600; }

/* ---------- page-level adjustments for /home3 ---------- */

/* the reassurance line directly under the hero buttons */
.hero__reassure {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.82);
}
@media (min-width: 768px) { .hero__reassure { font-size: 13.5px; } }

/* two trust cards instead of four: a 1x2 grid on phones, and at desktop
   the pair sits on opposite corners of the photo rather than all four */
.float-cards--2 { grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) {
  .float-cards--2 .fc-1 { top: 8%;    left: -7%;  }
  .float-cards--2 .fc-3 { bottom: 14%; right: -7%; left: auto; }
}

/* three process steps, not five */
@media (min-width: 1024px) {
  .tl--3 .tl__list { grid-template-columns: repeat(3, 1fr); }
}

/* three reasons, not six */
@media (min-width: 1024px) {
  #why-us .features { grid-template-columns: repeat(3, 1fr); }
}

/* The hero is a named-area grid from 768px up; without its own area the
   reassurance line is auto-placed into the first free cell (above the
   eyebrow). Give it a row of its own, directly under the buttons. */
@media (min-width: 768px) {
  .hero {
    grid-template-areas:
      ".        photo"
      "eyebrow  photo"
      "title    photo"
      "lead     photo"
      "cta      photo"
      "reassure photo"
      ".        photo";
    grid-template-rows: 1fr auto auto auto auto auto 1fr;
  }
  .hero__reassure { grid-area: reassure; margin-top: 2px; }
}

/* ============================================================
   5 Nov 2026 — wireframe changes on /home3
   ============================================================ */
/* four process steps: 2 x 2 on phones (the default), all four in one row on desktop */
@media (min-width: 768px) { .tl--4 .tl__item { flex-basis: 25%; } }   /* 8 Nov 2026: four steps in one row on tablets too (was 3 + 1) */
.tl__more { text-align: center; margin-top: 18px; }

/* "Why we review" */
.review-box { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-left: 5px solid var(--emerald); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-soft); }
.review-box__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-light); color: var(--emerald); }
.review-box .section__title { margin-bottom: 6px; }
.review-box p { line-height: 1.6; color: var(--text-muted); }
.review-box__note { margin-top: 8px; font-weight: 600; color: var(--emerald) !important; }

/* "Families who found their rishta" */
.stories { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
@media (min-width: 768px) { .stories:has(.story--clip):has(.story--text) { grid-template-columns: 1fr 1.4fr; } }
.story { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.story--clip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 160px; background: #111; color: #fff; font-weight: 600; text-decoration: none; }
.story__play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); font-size: 22px; }
.story--text p { font-size: 15px; line-height: 1.7; font-style: italic; }
.story--text footer { margin-top: 10px; font-size: 13px; color: var(--text-muted); font-style: normal; }
.story--invite { text-align: center; }
.story--invite p { margin-bottom: 12px; line-height: 1.6; }

/* Hero: the four labels sit ON the photo at every width (5 Nov 2026). Desktop keeps maajee.css's floating
   positions; phones and tablets get smaller labels in the photo's corners, clear of the caption at the bottom. */
@media (max-width: 1023px) {
  .float-cards--on { display: block; position: absolute; inset: 0; margin: 0; pointer-events: none; }
  .float-cards--on .float-card { position: absolute; width: max-content; max-width: calc(50% - 14px); white-space: normal; font-size: 11.5px; padding: 6px 9px; gap: 6px; pointer-events: auto; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
  .float-cards--on .fc-icon { width: 22px; height: 22px; border-radius: 6px; }
  .float-cards--on .fc-icon svg { width: 13px; height: 13px; }
  .float-cards--on .fc-1 { top: 10px;    left: 10px; }
  .float-cards--on .fc-2 { top: 54px;    right: 10px; }
  .float-cards--on .fc-3 { bottom: 136px; left: 10px; }
  .float-cards--on .fc-4 { bottom: 88px;  right: 10px; }
}

/* Featured profiles carousel (5 Nov 2026): 8 cards in one swipeable row — about 1.15 cards on phones (the next one
   peeks in, so it reads as "swipe"), 2 on tablets, 3 on desktop; arrow buttons from tablet up */
.rc-carousel { position: relative; }
.rcards.rcards--carousel {
  display: grid; grid-auto-flow: column; grid-template-columns: none;
  grid-auto-columns: 86%; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 2px;
  padding: 4px 2px 14px; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.rcards--carousel > .rcard { scroll-snap-align: start; }
.rcards--carousel:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }
.rc-nav { display: none; }
@media (min-width: 768px) {
  .rcards.rcards--carousel { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
  .rc-nav {
    display: grid; place-items: center;
    position: absolute; top: 42%; z-index: 3;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); background: #fff; color: var(--emerald);
    font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-soft);
  }
  .rc-nav--prev { left: -14px; } .rc-nav--next { right: -14px; }
  .rc-nav:disabled { opacity: .35; cursor: default; }
  .rc-carousel--static .rc-nav { display: none; }
}
@media (min-width: 1024px) {
  .rcards.rcards--carousel { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; }
  .rc-nav--prev { left: -22px; } .rc-nav--next { right: -22px; }
}

/* Rishta cards: a thick coloured left edge that follows the card's rounded corners (groom emerald, bride gold) */
/* 6 Nov 2026: the colour strip sits on TOP of the card in every view
   (it used to be a left edge above 768px and a top bar only on phones). */
.rcard { border-top: 5px solid var(--emerald); }
.rcard--bride { border-top-color: var(--gold); }

/* Phones (5 Nov 2026): one full-width card at a time (auto-slides, see home3.php), the colour strip on TOP of the card
   instead of the left edge, and dots under the row. Tablet / desktop keep the left edge and the arrows. */
.rc-dots { display: none; }
@media (max-width: 767px) {
  .rcards.rcards--carousel { grid-auto-columns: 100%; grid-template-rows: auto auto; gap: 12px; scroll-padding-left: 0; padding-left: 0; padding-right: 0; scrollbar-width: none; }   /* 6 Nov 2026: two cards per slide, one above the other */
  .rcards.rcards--carousel::-webkit-scrollbar { display: none; }
  .rcards--carousel > .rcard { scroll-snap-align: center; }
  .rc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
  .rc-dots span { width: 7px; height: 7px; border-radius: 50%; background: #CFD8D3; transition: width .25s, background .25s; }
  .rc-dots span.is-on { width: 18px; border-radius: 4px; background: var(--emerald); }
}

/* ---------- 6 Nov 2026: stats band (Admin → CMS → Stats) under the trust strip ---------- */
.stats-band { display: grid; grid-template-columns: repeat(var(--sb-n, 4), 1fr); gap: 1px; background: var(--emerald-deep, #0a4a37); color: #fff; }
.stats-band__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 12px; background: var(--emerald, #0E674D); text-align: center; }
.stats-band__num { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; line-height: 1.1; color: var(--gold, #D9B33B); }
.stats-band__suffix { margin-left: 1px; }
.stats-band__label { font-size: .88rem; opacity: .9; }
@media (max-width: 767px) { .stats-band { grid-template-columns: repeat(2, 1fr); } .stats-band__item { padding: 18px 10px; } .stats-band__item:last-child:nth-child(odd) { grid-column: 1 / -1; } }


/* ---------- 6 Nov 2026: match % pill on the featured cards (logged-in members with requirements) ---------- */
.rcard__match { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; background: #fff; border: 1.5px solid var(--mc, #0F6B50); color: var(--mc, #0F6B50); }
.rcard__match svg { fill: currentColor; }

/* 8 Nov 2026: every rishta card the same height, View Profile on the bottom line.
   The card is a column and the button takes the spare space above it, so cards side by side in a
   row (which the grid already stretches to the same height) end on the same line. */
.rcard { display: flex; flex-direction: column; }
.rcard__body { display: flex; flex-direction: column; flex: 1; }
.rcard__view { margin-top: auto; }
.rcard__body > .rcard__view { margin-top: auto; }
.rcard__body > :nth-last-child(2) { margin-bottom: 0.75rem; }
/* ---------- Find by profile number (8 Nov 2026, Version 1.1 locked decision 2) ----------
   First thing on the home page: deep green band, white field, gold Find button (parent-ui.css sizes). All sizes in rem (borders / focus rings in px). */
.find { background: linear-gradient(160deg, #103C2D, #124F3A); padding: 1.125rem var(--gutter) 1.25rem; }
.find__form { max-width: 40rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.625rem; }
.find__title { color: #fff !important; font-weight: 700; font-size: 1.125rem !important; line-height: 1.35; }
.find__row { display: flex; gap: 0.625rem; }
.find__input { flex: 1 1 auto; min-width: 0; border: 2px solid transparent; border-radius: 0.875rem; padding: 0 1rem;
  background: #fff; color: #1d2421; font-size: 1.125rem !important; letter-spacing: .02em; }
.find__input:focus { outline: none; border-color: #D9B23A; box-shadow: 0 0 0 4px rgba(217, 178, 58, .3); }
.find__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.5rem;
  padding: 0 1.375rem; border: 0; border-radius: 0.875rem; cursor: pointer; font: inherit; font-weight: 500; font-size: 1rem; /* 12 Nov 2026: not bold */
  background: linear-gradient(135deg, #D9B23A, #C9A227); color: #3A2A08; }
.find__btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
.find__btn:hover { background: #B8921F; }
.find__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.find__hint { margin: 0; color: rgba(255, 255, 255, .78); font-size: .875rem; }
.find__msg { margin: 0; background: #FFF7E6; color: #7A5A12; border-radius: 0.625rem; padding: 0.625rem 0.75rem; font-size: .9375rem; }
.find__msg a { color: #0F6B50; font-weight: 700; text-decoration: underline; }
@media (min-width: 768px) { .find { padding: 1.375rem var(--gutter) 1.5rem; } .find__title { font-size: 1.25rem !important; } }

/* 8 Nov 2026: home page only — one full-width card per row on phones (Browse keeps 2 across). */
@media (max-width: 767px) { .rcards.rcards--home { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
/* 13 Nov 2026 (owner): phones show only the first 4 featured profiles (tablet and desktop keep all 12; "See all" opens the rest) */
@media (max-width: 767px) { .rcards.rcards--home > .rcard:nth-child(n+5) { display: none; } }
