/* christianmatrimonyapp.com — modern homepage stylesheet (2026 redesign).
 * Adapted from the chavarafamilywelfarecentre.com pattern. Loads before
 * css/site-extras.css, which supplies the brand tokens (--brand-primary,
 * --cm-aqua, …), the Uncut Sans font-face and the shared footer /
 * cookie-consent styling. Fallback values below match the same token sheet. */

:root {
  --ink: #1f2123;
  --ink-soft: #4a4d52;
  --ink-faint: #6f7378;
  --purple: #851f82;
  --purple-deep: #5c1259;
  --aqua: #8adee1;
  --paper: #ffffff;
  --paper-tint: #f6f3f6;
  --line: #e6e7e9;
  --radius: 16px;
  --shadow-soft: 0 6px 24px rgba(23, 4, 22, 0.08);
  --shadow-lift: 0 14px 40px rgba(23, 4, 22, 0.14);
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
:where(a) { color: var(--purple); }
.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 3000;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 6px 18px rgba(133, 31, 130, 0.35);
}
.btn-solid:hover { filter: brightness(1.12); box-shadow: 0 10px 26px rgba(133, 31, 130, 0.4); }
.btn-aqua {
  background: var(--aqua);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(20, 90, 92, 0.25);
}
.btn-aqua:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; }

/* Store badge buttons (hero) */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 10px 20px;
  border-radius: 14px;
  background: rgba(15, 3, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  background: rgba(15, 3, 14, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
}
.store-btn svg { width: 30px; height: 30px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.25; }
.store-btn small { font-size: 12px; opacity: 0.85; }
.store-btn strong { font-size: 19px; font-weight: 700; letter-spacing: 0.2px; }

/* ------------------------------------------------------------------ header */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-head.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(23, 4, 22, 0.07);
}
.site-head-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
  margin-right: auto;
}
.brand strong {
  color: var(--purple);
  font-size: 21px;
  letter-spacing: 0.2px;
}
.brand span {
  color: var(--ink-soft);
  font-size: 12.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: var(--paper-tint); color: var(--purple); }
.site-nav .nav-cta a {
  background: var(--purple);
  color: #fff;
  margin-left: 8px;
}
.site-nav .nav-cta a:hover { filter: brightness(1.12); }
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  cursor: pointer;
  /* Bars are drawn in CSS (middle bar = background, outer bars = pseudo
     elements) so an HTML formatter cannot strip them as empty markup. */
  background: linear-gradient(var(--ink), var(--ink)) center / 24px 2.5px no-repeat;
  border-radius: 10px;
  transition: background-size 0.2s ease;
}
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.nav-toggle::before { transform: translate(-50%, -50%) translateY(-7.5px); }
.nav-toggle::after { transform: translate(-50%, -50%) translateY(7.5px); }
.nav-toggle[aria-expanded="true"] { background-size: 0 2.5px; }
.nav-toggle[aria-expanded="true"]::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(23, 4, 22, 0.12);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 2px;
  }
  .site-nav a { display: block; padding: 12px 14px; border-radius: 10px; }
  .site-nav .nav-cta a { text-align: center; margin: 8px 0 0; }
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 110px;
  color: #fff;
  /* Light purple overlay: photo stays clearly visible, with left-side
     darkening plus text-shadow keeping the headline readable. */
  background:
    linear-gradient(100deg, rgba(40, 5, 38, 0.62) 0%, rgba(70, 10, 68, 0.38) 42%, rgba(133, 31, 130, 0.1) 78%, rgba(133, 31, 130, 0.03) 100%),
    url("../images/home-bg.jpg") center 40% / cover no-repeat;
}
.hero h1,
.hero p {
  text-shadow: 0 2px 14px rgba(20, 2, 19, 0.55);
}
.hero-inner { max-width: 720px; }
.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: normal;
  color: var(--aqua);
}
.hero p {
  margin: 0 0 32px;
  max-width: 560px;
  font-size: 18.5px;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------------------------------------------------------------- sections */
.section { padding: 92px 0 0; }
.section:last-of-type { padding-bottom: 92px; }
.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker {
  display: inline-block;
  color: var(--purple);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.6vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.section-head p { margin: 0; color: var(--ink-soft); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.about-media { position: relative; }
.about-media::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--paper-tint), #efe0ef);
  z-index: -1;
}
.about-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.about-copy p { margin: 0 0 18px; color: var(--ink-soft); }
.lead-purple {
  color: var(--purple) !important;
  font-weight: 700;
  font-size: 18px;
}
.value-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.value-chips li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-tint);
  border: 1px solid #eadfe9;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
}
.value-chips svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--purple);
}
.about-more { margin-top: 56px; max-width: 860px; }
.about-more h3 {
  margin: 36px 0 12px;
  font-size: 23px;
  font-weight: 800;
}
.about-more p { margin: 0 0 16px; color: var(--ink-soft); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { margin-right: 26px; max-width: 340px; }
}
@media (max-width: 480px) {
  .value-chips { grid-template-columns: 1fr; }
}

/* Screenshots */
.shots { background: linear-gradient(180deg, #fff 0%, var(--paper-tint) 120px); }
.shots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.shots-grid a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shots-grid a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.shots-grid img { display: block; width: 100%; }
@media (max-width: 1000px) {
  .shots-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .shots-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Spotlight (app features) */
.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.spotlight-phone { text-align: center; }
.spotlight-phone img {
  max-height: 500px;
  width: auto;
  filter: drop-shadow(0 24px 40px rgba(23, 4, 22, 0.25));
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-item + .feature-item { margin-top: 20px; }
.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.feature-item img {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.feature-item h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
@media (max-width: 1000px) {
  .spotlight-grid { grid-template-columns: 1fr; }
  .spotlight-phone { order: -1; }
  .spotlight-phone img { max-height: 380px; }
}

/* ------------------------------------------------------------- animations */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .store-btn, .feature-item { transition: none; }
}
