/* =====================================================================
   MATRIMONY — CORE STYLESHEET
   Design language: warm "wedding invitation" aesthetic —
   deep green + gold on soft paper, serif display / clean sans body.
   ===================================================================== */

:root {
  --green: #16A34A;
  /* primary */
  --green-bright: #22C55E;
  /* secondary / hover */
  --forest: #0F5132;
  /* deep accent, headings on light */
  --gold: #C9A227;
  /* celebratory accent, badges, dividers */
  --blush: #F3FBF6;
  /* page background */
  --paper: #FFFFFF;
  /* card background */
  --ink: #333333;
  /* body text */
  --ink-soft: #6E7A72;
  /* muted text */
  --line: #D9EFE1;
  /* hairline borders */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(15, 81, 50, 0.08);
  --shadow-lift: 0 16px 40px rgba(15, 81, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--blush);
  line-height: 1.6;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--forest);
  margin: 0 0 12px;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------------------------------------------------------------------
   Signature ornament — a repeating green/gold "mandala arc" divider,
   used behind the hero and as a section motif. Pure CSS, no images.
--------------------------------------------------------------------- */
.ornament-divider {
  height: 40px;
  background:
    radial-gradient(circle at 10px 0, transparent 12px, var(--gold) 13px, transparent 14px) repeat-x;
  background-size: 40px 40px;
  opacity: 0.35;
  margin: 0 auto;
  max-width: 320px;
}

/* ---------------------------------------------------------------------
   Header / Nav
--------------------------------------------------------------------- */
.site-header {
  background: transparent;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--forest);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-text em {
  font-style: italic;
  color: var(--green);
}

.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.brand-icon {
  color: var(--green);
  font-size: 1.3rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-panel-eyebrow,
.nav-panel-divider,
.nav-panel-footer {
  display: none;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--green);
}

.nav-cta,
.nav-cta-outline {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta {
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.3);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

.nav-cta-outline {
  border: 1.5px solid var(--green);
  color: var(--green) !important;
}

.nav-cta-outline:hover {
  background: var(--blush);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--forest);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* ---------------------------------------------------------------------
   Flash messages
--------------------------------------------------------------------- */
.flash {
  padding: 12px 0;
  text-align: center;
  font-weight: 500;
}

.flash-success {
  background: #E7F7EF;
  color: #1B7A43;
}

.flash-error {
  background: #FDECEE;
  color: #B3261E;
}

.flash-info {
  background: #FFF4E5;
  color: #8A5A00;
}

/* ---------------------------------------------------------------------
   Hero  (left-aligned content so the couple photo on the right
   stays fully visible instead of being covered by centered text)
--------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;

  min-height: 100vh;
  padding: 60px 0 80px;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;

  background:
    linear-gradient(rgba(255, 255, 255, .10),
      rgba(255, 255, 255, .15)),
    url("../images/hero-desktop.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
  margin: 0 auto 0 8%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 1px 6px rgba(255, 255, 255, .7);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  max-width: 620px;
  margin: 0 0 18px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .15);
}

.hero h1 em {
  color: var(--green);
}

.hero p.lead {
  max-width: 520px;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  text-shadow: 0 2px 8px rgba(255, 255, 255, .8);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lift);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--forest);
  color: var(--forest);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Quick search widget on hero (left aligned, narrower so it
   doesn't stretch across the photo, 2-column grid with full-width button) */
.quick-search {
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 20px;
  max-width: 100%;
  width: 720px;
  margin: 46px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px;
  align-items: end;
  text-align: left;
}

.quick-search .field label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-search select,
.quick-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--blush);
}

.quick-search button {
  white-space: nowrap;
}

/* hero-photo-wrap / hero-photo-bg / hero-text-top / hero-text-bottom:
   on desktop the photo already lives as a CSS background on .hero
   itself, so the wrapper is neutralised (display:contents drops it
   out of the layout) and the <img> is hidden. On mobile (below)
   this wrapper becomes the actual photo card. */
.hero-photo-wrap {
  display: contents;
}

.hero-photo-bg {
  display: none;
}

.hero-text-top,
.hero-text-bottom {
  display: contents;
}

/* ---------------------------------------------------------------------
   Sections generic
--------------------------------------------------------------------- */
.section {
  padding: 74px 0;
}

.section-alt {
  background: var(--paper);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-header .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
}

.section-header p {
  color: var(--ink-soft);
}

/* Centered CTA under a section (e.g. "Read More Success Stories") */
.section-cta-center {
  text-align: center;
  margin-top: 32px;
}

/* Stats — ring badges (signature motif echoing wedding rings) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 10px;
}

.stat-ring {
  text-align: center;
  padding: 30px 14px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--gold);
}

.stat-ring .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--green);
  font-weight: 700;
}

.stat-ring .label {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* Feature / step cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Desktop-only 4-column variant, used for the "Recently active
   profiles" grid. Mobile/tablet media queries below still apply
   because this doesn't carry any extra specificity of its own —
   unlike an inline style, which would block the responsive rules. */
.grid-4-desktop {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.card .icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
}

/* Profile / match cards */
.profile-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
}

.profile-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.profile-card .photo {
  height: 220px;
  background: linear-gradient(135deg, #DFF5E6, #FDF6DA);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 2.4rem;
  position: relative;
}

.profile-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card .plan-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-card .body {
  padding: 18px 20px;
}

.profile-card h4 {
  margin-bottom: 2px;
  font-size: 1.05rem;
}

.profile-card .meta {
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.profile-card .actions {
  display: flex;
  gap: 8px;
}

/* Testimonials */
.testimonial {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

/* Grid that holds the "Words from our members" cards — stretched
   height so photo + quote + name align evenly across the row. */
.testimonial-grid {
  align-items: stretch;
}

.testimonial-story {
  display: flex;
  flex-direction: column;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 2px solid var(--gold);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-sub {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 2px;
}

.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.testimonial p.text {
  color: var(--ink-soft);
  font-style: italic;
  margin: 6px 0 16px;
}

.testimonial .who {
  font-weight: 600;
  color: var(--forest);
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--forest), var(--green));
  border-radius: 24px;
  padding: 54px 40px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 26px;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--green);
  box-shadow: none;
}

/* ---------------------------------------------------------------------
   Forms (login / register / profile)
--------------------------------------------------------------------- */
.form-shell {
  max-width: 480px;
  margin: 60px auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 40px 36px;
}

.form-shell.wide {
  max-width: 760px;
}

.form-shell h2 {
  text-align: center;
}

.form-shell .subtitle {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--blush);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}

.form-group .error-text {
  color: #B3261E;
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-group .hint-text {
  color: var(--ink-soft);
  font-size: 0.78rem;
  margin-top: 4px;
}

.form-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.form-footer-link a {
  color: var(--green);
  font-weight: 600;
}

.form-error-box {
  background: #FDECEE;
  color: #B3261E;
  border: 1px solid #F6C6CB;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

/* ---------------------------------------------------------------------
   Dashboard layout
--------------------------------------------------------------------- */
.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 40px 0 70px;
}

.dash-sidebar {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 20px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.dash-user-card {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.dash-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid var(--gold);
}

.dash-user-name {
  font-weight: 700;
  color: var(--forest);
}

.dash-user-id {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-plan-free {
  background: #EFEFEF;
  color: #666;
}

.badge-plan-silver {
  background: #E3E7EE;
  color: #45516B;
}

.badge-plan-gold {
  background: #FCEFC7;
  color: #8A6D00;
}

.badge-plan-platinum {
  background: #F1E4FF;
  color: #6A2FA0;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.dash-nav-link:hover {
  background: var(--blush);
}

.dash-nav-link.active {
  background: var(--green);
  color: #fff;
}

.dash-main .page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dash-panel {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  margin-bottom: 24px;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

table.data-table th {
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer {
  background: var(--forest);
  color: #DCEFE2;
  padding: 64px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-col a.footer-brand {
  display: flex;
  align-items: center;
  color: #fff;
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.footer-brand .brand-logo {
  background: #fff;
  padding: 4px;
  mix-blend-mode: normal;
}

.footer-brand .brand-text {
  color: #fff;
}

.footer-brand .brand-text em {
  color: var(--gold);
}

.footer-tagline {
  color: #DCEFE2;
  opacity: 0.75;
  font-size: 0.88rem;
  max-width: 260px;
  margin: 0;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: #DCEFE2;
  opacity: 0.8;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: opacity 0.2s, color 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: #DCEFE2;
  opacity: 0.85;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.footer-contact-item a {
  color: #DCEFE2;
  opacity: 1;
  margin: 0;
}

.footer-contact-item a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(220, 239, 226, 0.7);
}

/* ---------------------------------------------------------------------
   Responsive — tablet (960px)
--------------------------------------------------------------------- */
@media (max-width: 960px) {
  .quick-search {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .quick-search button {
    grid-column: 1 / -1;
  }

  .grid-3,
  .grid-4-desktop {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------------------------------------------------------------
   Responsive — mobile (768px)
   SINGLE mobile breakpoint. Everything mobile-related (nav, hero,
   search widget, stats, cards, footer) lives in this one block so
   there's no conflict between duplicate rules.
--------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Header */
  .site-header {
    padding: 10px 0;
  }

  .header-inner {
    height: 64px;
  }

  .brand {
    font-size: 1.05rem;
    gap: 8px;
  }

  .brand-logo {
    height: 34px;
    width: 34px;
  }

  /* Nav — plain dropdown under the header */
  .nav-toggle {
    display: block;
    transition: transform .25s ease, color .2s ease;
  }

  .header-inner:has(.main-nav.open) .nav-toggle {
    color: var(--green);
    transform: rotate(90deg);
  }

  .main-nav {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background:
      radial-gradient(circle at 100% 0%, rgba(201, 162, 39, .12), transparent 45%),
      linear-gradient(180deg, #FFFFFF 0%, var(--blush) 100%);
    padding: 4px 22px 28px;
    overflow-y: auto;
    border-bottom: none;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .28s ease, transform .28s ease, visibility 0s;
  }

  .nav-panel-eyebrow {
    display: block;
    text-align: center;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .72rem;
    font-weight: 700;
    margin: 18px 0 6px;
  }

  .nav-panel-divider {
    display: block;
    height: 30px;
    margin: 8px auto 6px;
    max-width: 200px;
    background: radial-gradient(circle at 10px 0, transparent 10px, var(--gold) 11px, transparent 12px) repeat-x;
    background-size: 32px 30px;
    opacity: .4;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--forest);
  }

  .main-nav a::before {
    content: attr(data-initial);
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green), var(--green-bright));
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 6px 14px rgba(22, 163, 74, .25);
  }

  .main-nav a::after {
    content: "\2192";
    margin-left: auto;
    color: var(--gold);
    font-size: 1.15rem;
    opacity: .75;
  }

  .main-nav a:last-of-type {
    border-bottom: none;
  }

  .main-nav a.nav-cta-outline,
  .main-nav a.nav-cta {
    font-family: var(--font-body);
    justify-content: center;
    text-align: center;
    margin: 8px 0 0;
    width: 100%;
    border-bottom: none;
    border-radius: 999px;
    padding: 15px 20px;
    font-size: .98rem;
  }

  .main-nav a.nav-cta-outline::before,
  .main-nav a.nav-cta::before,
  .main-nav a.nav-cta-outline::after,
  .main-nav a.nav-cta::after {
    content: none;
  }

  .main-nav a.nav-cta-outline {
    margin-top: 6px;
  }

  .main-nav a.nav-cta {
    margin-top: 12px;
    box-shadow: 0 12px 26px rgba(22, 163, 74, .3);
  }

  .nav-panel-footer {
    display: block;
    text-align: center;
    margin-top: auto;
    padding-top: 24px;
    color: var(--ink-soft);
    font-size: .78rem;
    letter-spacing: .04em;
  }

  /* ---------------------------------------------------------------
     Hero — mobile
     The couple photo becomes the actual background of the hero: a
     full-bleed card (.hero-photo-wrap) holding the <img> pinned
     absolute behind the text, plus a top/bottom gradient scrim so
     both the eyebrow/heading (top) and the lead/buttons (bottom)
     stay readable while sitting directly on the photo — matching
     the desktop hero, which does the same thing with a CSS
     background-image.
  ----------------------------------------------------------------- */
  .hero {
    min-height: auto;
    padding: 0 0 40px;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    background: var(--blush);
  }

  .hero .container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .hero-photo-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    min-height: 78vw;
    max-height: 640px;
    border-radius: 0;
  }

  .hero-photo-bg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    z-index: 0;
  }

  .hero-photo-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(20, 6, 12, .55) 0%,
        rgba(20, 6, 12, .05) 26%,
        rgba(20, 6, 12, .05) 55%,
        rgba(20, 6, 12, .70) 100%);
    pointer-events: none;
  }

  .hero-text-top,
  .hero-text-bottom {
    display: block;
    position: relative;
    z-index: 2;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-text-top {
    padding-top: 26px;
  }

  .hero-text-bottom {
    padding-bottom: 28px;
  }

  .hero-eyebrow {
    display: inline-block;
    font-size: .72rem;
    background: rgba(255, 255, 255, .9);
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    text-shadow: none;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin: 0 auto 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  }

  .hero h1 em {
    color: #A7F3C0;
  }

  .hero p.lead {
    font-size: 0.98rem;
    margin: 0 auto 24px;
    max-width: 100%;
    color: rgba(255, 255, 255, .92);
    background: none;
    padding: 0;
    border-radius: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-actions .btn-outline {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    color: #fff;
    backdrop-filter: blur(4px);
  }

  /* Quick search widget */
  .quick-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    margin: 22px 18px 0;
    width: auto;
    background: rgba(255, 255, 255, .96);
  }

  .quick-search .field {
    width: 100%;
  }

  .quick-search input,
  .quick-search select {
    width: 100%;
  }

  .quick-search button {
    width: 100%;
  }

  /* Statistics */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Cards — this now also correctly covers the "Recently active
     profiles" grid (.grid-3.grid-4-desktop) because the desktop
     override lives in a plain class, not an inline style, so it
     carries no extra specificity to fight this rule. */
  .grid-3,
  .grid-4-desktop {
    grid-template-columns: 1fr;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-shell {
    padding: 32px 22px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .cta-band {
    margin: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}