/* keralachristianmatrimony.co.uk — modern homepage stylesheet (2026 redesign).
 * Adapted from the chavarafamilywelfarecentre.com design system.
 * 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
 * brand 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); }

/* ------------------------------------------------------------------ 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;
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 118px;
  color: #fff;
  /* Light purple overlay so the couple photo stays clearly visible; it fades
     to near-transparent on the right, with just enough darkening behind the
     headline for the white text to stay 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/banner.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 30px;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------------------------------------------------------------- sections */
.section { padding: 84px 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); }

/* Match cards (community / brides / grooms links) */
.match-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.match-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  text-align: center;
  padding: 34px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  filter: brightness(1.08);
}
/* The three card graphics are 370×145 line drawings whose motif sits in a
   circle dead centre, so a centred square window crops straight to it. */
.match-card img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  object-fit: none;
  object-position: center;
}
.match-card h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}

/* Long-form copy */
.prose {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink-soft);
}
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  margin: 40px 0 16px;
  padding-top: 26px;
  border-top: 2px solid var(--bg-brand-primary-weakest, #f3e9f3);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}
.prose a { color: var(--purple); font-weight: 600; }

/* ------------------------------------------------------------- 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, .match-card { transition: none; }
}
