/* =====================================================================
   MATRIMONY — CORE STYLESHEET
   Design language: warm "wedding invitation" aesthetic —
   deep rose + gold on blush paper, serif display / clean sans body.
   ===================================================================== */

:root {
  --rose: #D81B60;
  /* primary */
  --rose-bright: #FF4081;
  /* secondary / hover */
  --maroon: #6B1029;
  /* deep accent, headings on light */
  --gold: #C9A227;
  /* celebratory accent, badges, dividers */
  --blush: #FFF8FB;
  /* page background */
  --paper: #FFFFFF;
  /* card background */
  --ink: #333333;
  /* body text */
  --ink-soft: #7A6A70;
  /* muted text */
  --line: #F1D9E2;
  /* hairline borders */

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(107, 16, 41, 0.08);
  --shadow-lift: 0 16px 40px rgba(107, 16, 41, 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(--maroon);
  margin: 0 0 12px;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------------------------------------------------------------------
   Signature ornament — a repeating rose/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: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--maroon);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-text em {
  font-style: italic;
  color: var(--rose);
}

.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.brand-icon {
  color: var(--rose);
  font-size: 1.3rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--rose);
}

.nav-cta,
.nav-cta-outline {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta {
  background: linear-gradient(135deg, var(--rose), var(--rose-bright));
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(216, 27, 96, 0.3);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

.nav-cta-outline {
  border: 1.5px solid var(--rose);
  color: var(--rose) !important;
}

.nav-cta-outline:hover {
  background: var(--blush);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--maroon);
  cursor: pointer;
}

/* ---------------------------------------------------------------------
   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  (UPDATED: 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(--rose);
  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(--rose);
}

.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(--rose), var(--rose-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(--maroon);
  color: var(--maroon);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Quick search widget on hero (UPDATED: 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;
}

/* ---------------------------------------------------------------------
   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);
}

/* 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(--rose);
  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;
}

.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(--rose), var(--rose-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;
}

.profile-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.profile-card .photo {
  height: 220px;
  background: linear-gradient(135deg, #FBE1EA, #FDEFDA);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  font-size: 2.4rem;
  position: relative;
}

.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;
}

.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(--maroon);
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--maroon), var(--rose));
  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(--rose);
  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(--maroon);
  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(--rose);
  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(--rose);
  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(--maroon);
}

.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(--rose);
  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(--rose), 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(--maroon);
  color: #F3D9E1;
  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: #F3D9E1;
  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: #F3D9E1;
  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: #F3D9E1;
  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: #F3D9E1;
  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(243, 217, 225, 0.7);
}

/* ---------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------- */
@media (max-width: 960px) {
  .quick-search {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .quick-search button {
    grid-column: 1 / -1;
  }

  .grid-3 {
    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;
  }
}

@media (max-width: 680px) {
  .brand {
    font-size: 1.05rem;
    gap: 8px;
  }

  .brand-logo {
    height: 34px;
    width: 34px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  /* Hero collapses back to centered on small screens where there's
     no room to sit content beside the photo */
  .hero {
    text-align: center;
  }

  .hero .container {
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero h1,
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .quick-search {
    grid-template-columns: 1fr;
    margin-left: auto;
    margin-right: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .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;
  }
}

/* ==========================================================
   MOBILE RESPONSIVE
========================================================== */

@media (max-width: 768px) {

  /* Header */
  .site-header {
    padding: 12px 0;
  }

  .header-inner {
    justify-content: space-between;
  }

  .main-nav {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero */

  .hero {
    min-height: 100vh;
    padding: 90px 20px 60px;
    justify-content: center;
    text-align: center;

    background:
      linear-gradient(rgba(255, 255, 255, .12),
        rgba(255, 255, 255, .18)),
      url("../images/hero-mobile.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero .container {
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-eyebrow {
    font-size: .75rem;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 0 auto 20px;
  }

  .hero .lead {
    font-size: 1rem;
    margin: 0 auto 30px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Search */

  .quick-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
    margin: 30px auto 0;
  }

  .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 */

  .grid-3 {
    grid-template-columns: 1fr;
  }

}