/* ============================================================
   Noor — Find Your Life Partner
   Warm, respectful, family-friendly matchmaking design system
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --cream: #faf3e8;
  --sand: #f5ecdc;
  --paper: #fffdf8;
  --ink: #33261b;
  --ink-soft: #4a3a2e;
  --muted: #6f6153;
  --green: #186a43;
  --green-dark: #10502f;
  --green-soft: #e4f2ea;
  --gold: #c99a3f;
  --gold-soft: #f7ecd4;
  --line: #e6ebe2;
  --shadow-sm: 0 4px 14px rgba(20, 60, 42, 0.07);
  --shadow-md: 0 14px 34px rgba(20, 60, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 60, 42, 0.16);
  --radius: 20px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  overflow-wrap: break-word;
}

a {
  color: var(--green);
}

ul,
ol {
  padding-left: 1.2rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

svg.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

button {
  font: inherit;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 92px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--green);
  color: #fdf6ec;
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: #fdf6ec;
  box-shadow: 0 10px 22px rgba(142, 42, 51, 0.28);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--green);
  color: #fdf6ec;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.btn-outline:hover {
  background: var(--green);
  color: #fdf6ec;
}

.btn-sm {
  min-height: 44px;
  padding: 0.65rem 1.3rem;
  font-size: 0.92rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 243, 232, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(142, 42, 51, 0.3);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--green);
  border-color: var(--gold);
}

.nav-cta {
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 84px;
  background:
    radial-gradient(720px 380px at 88% -8%, rgba(201, 154, 63, 0.2), transparent 62%),
    radial-gradient(640px 420px at -8% 108%, rgba(142, 42, 51, 0.1), transparent 60%),
    radial-gradient(circle, rgba(142, 42, 51, 0.07) 1px, transparent 1px),
    var(--cream);
  background-size: auto, auto, 22px 22px, auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green);
}

.hero h1 {
  margin-top: 0.9rem;
}

.hero h1 .accent {
  color: var(--green);
  font-style: italic;
}

.hero-sub {
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 33rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.7rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
}

.badge .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), #3f9e6f);
  color: #fdf6ec;
  font-weight: 800;
}

.avatar-lg {
  width: 70px;
  height: 70px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hero-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.hero-card-name .age {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--muted);
}

.hero-card-city {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.compat-row {
  margin-top: 1.35rem;
}

.compat-bar {
  height: 8px;
  border-radius: 999px;
  background: #e6ece8;
  overflow: hidden;
}

.compat-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.compat-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
}

.hero-card-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
}

.float-chip .icon {
  width: 15px;
  height: 15px;
}

.float-chip-a {
  top: -18px;
  right: 8%;
}

.float-chip-b {
  bottom: -16px;
  left: -6%;
}

/* ---------- Stats ---------- */
.stats-wrap {
  margin-top: 64px;
}

.stats-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 92px 0;
}

.section-alt {
  background: var(--sand);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-sub {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.06rem;
}

/* ---------- How It Works ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--gold));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}

.step h3 {
  font-size: 1.32rem;
  margin-bottom: 0.55rem;
}

.step p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Featured Profiles ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.profile-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.profile-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.avatar-xl {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(60, 30, 20, 0.25);
}

.fictional-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(51, 38, 27, 0.78);
  color: #f9efdf;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}

.profile-city {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(51, 38, 27, 0.78);
  color: #f9efdf;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-body {
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.profile-name .age {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
}

.profile-sub {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-seeking {
  background: #faf0e0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  background: #f3e6cf;
  color: #8a6410;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}

.profile-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
}

.profiles-note {
  text-align: center;
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Safety & Privacy ---------- */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.safety-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.safety-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
}

.safety-icon .icon {
  width: 24px;
  height: 24px;
}

.safety-card h3 {
  font-size: 1.38rem;
  margin-bottom: 0.5rem;
}

.safety-card > p {
  color: var(--muted);
  font-size: 0.95rem;
}

.safety-note {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-dark);
}

.safety-note .icon {
  width: 15px;
  height: 15px;
}

.safety-banner {
  margin-top: 44px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
  color: #f8ecdd;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.safety-banner h3 {
  color: #fdf6ec;
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.safety-banner p {
  color: #efd9c6;
}

.assurances {
  list-style: none;
  padding: 0;
  margin-top: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.assurances li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 600;
  color: #f8ecdd;
}

.assurances .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.safety-banner-art {
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 0.8rem;
  text-align: center;
}

.safety-banner-shield {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(250, 243, 232, 0.12);
  border: 1px solid rgba(250, 243, 232, 0.35);
  display: grid;
  place-items: center;
  color: #f6e7c6;
}

.safety-banner-shield .icon {
  width: 40px;
  height: 40px;
}

.safety-banner-art p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}

/* ---------- Call to action ---------- */
.cta-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0d2b1e;
  color: #d7e6dc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}

.brand-footer {
  color: #f0f7f2;
}

.brand-footer .brand-mark {
  background: rgba(250, 243, 232, 0.12);
  box-shadow: none;
}

.footer-about p {
  margin-top: 1rem;
  color: #b7cec2;
  font-size: 0.95rem;
  max-width: 34ch;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #8bc4a6;
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  color: #d7e6dc;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(214, 236, 224, 0.14);
  padding: 24px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #a3c1b2;
}

.fictional-disclaimer {
  color: #8fb0a0;
}

/* ---------- Responsive: tablet & below ---------- */
@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .hero-visual {
    max-width: 480px;
  }

  .safety-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 0.6rem 1.4rem 1.2rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    display: block;
    padding: 0.95rem 0.2rem;
    font-size: 1.08rem;
    border-bottom: none;
  }

  .nav-cta {
    display: none;
  }
}

/* ---------- Responsive: small phones ---------- */
@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .stats-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.5rem 1.4rem;
  }

  .safety-banner {
    padding: 28px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .float-chip-b {
    left: 0;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
