/* chavaramalankaramatrimony.com — 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;
}
/* This site's original header has no menu — only the brand and one CTA, so
 * the nav is a single always-visible pill (no mobile toggle needed). */
.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, filter 0.15s ease;
}
.site-nav a:hover { background: var(--paper-tint); color: var(--purple); }
.site-nav .nav-cta a {
  background: var(--purple);
  color: #fff;
  padding: 10px 20px;
}
.site-nav .nav-cta a:hover { filter: brightness(1.12); background: var(--purple); color: #fff; }
@media (max-width: 640px) {
  .brand span { display: none; }
  .site-nav .nav-cta a { font-size: 14.5px; padding: 9px 16px; }
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 84px) 0 110px;
  color: #fff;
  /* No suitable photography exists in this site's images/ dir, so the hero
   * uses the brand purple gradient instead of an image. */
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 52%, #a13a9d 100%);
}
.hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 222, 225, 0.35), rgba(138, 222, 225, 0) 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -220px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1,
.hero p {
  text-shadow: 0 2px 14px rgba(20, 2, 19, 0.35);
}
.hero-inner { max-width: 760px; }
.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 p {
  margin: 0 0 32px;
  max-width: 620px;
  font-size: 18.5px;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
@media (max-width: 640px) {
  .hero { padding-bottom: 84px; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: 84px 0 0; }
.section:last-of-type { padding-bottom: 92px; }
.section-tint {
  margin-top: 84px;
  padding: 84px 0;
  background: var(--paper-tint);
}
.section-tint + .section { padding-top: 84px; }
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.section-head { margin: 0; }
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.section-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--purple), var(--aqua));
}
.section-body p { margin: 0 0 18px; color: var(--ink-soft); }
.section-body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .section { padding-top: 64px; }
  .section-tint { margin-top: 64px; padding: 64px 0; }
  .section-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Brides / grooms gradient cards */
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 38px 34px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #fff;
  background: linear-gradient(120deg, var(--purple-deep), var(--purple) 70%, #a13a9d);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.match-card svg {
  flex: none;
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}
.match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.match-card:hover svg { transform: translateX(5px); }
.match-card-aqua {
  background: linear-gradient(120deg, #2e8f93, var(--aqua));
  color: var(--ink);
}
@media (max-width: 640px) {
  .match-grid { grid-template-columns: 1fr; }
  .match-card { padding: 28px 26px; }
}

/* Closing CTA panel */
.cta-panel {
  background: linear-gradient(120deg, var(--purple-deep), var(--purple) 60%, #a13a9d);
  color: #fff;
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.cta-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.cta-panel p {
  margin: 0 auto 30px;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.92);
}
@media (max-width: 640px) {
  .cta-panel { padding: 44px 24px; }
}

/* ------------------------------------------------------------- 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, .match-card svg { transition: none; }
}
