/* keralaweddingdirectory.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-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; }

/* ------------------------------------------------------------------ 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);
}
/* This site's original header holds only the logo — no menu and no CTA — so
 * there is no nav and no mobile toggle. */
.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) + 84px) 0 110px;
  color: #fff;
  /* Light purple overlay over the site's own banner photo: the image stays
     clearly visible, with left-side darkening plus text-shadow keeping the
     headline readable. */
  background:
    linear-gradient(100deg, rgba(40, 5, 38, 0.72) 0%, rgba(70, 10, 68, 0.5) 42%, rgba(133, 31, 130, 0.18) 78%, rgba(133, 31, 130, 0.06) 100%),
    url("../images/banner.jpg") center center / cover no-repeat;
}
.hero h1,
.hero p {
  text-shadow: 0 2px 14px rgba(20, 2, 19, 0.55);
}
.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;
  max-width: 620px;
  font-size: 18.5px;
  color: rgba(255, 255, 255, 0.92);
}
@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-head { max-width: 720px; 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;
  font-size: clamp(27px, 3.6vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.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 .section-head { margin-bottom: 24px; }
.about-copy p { margin: 0 0 18px; color: var(--ink-soft); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { margin-right: 26px; }
}

/* Supplier category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  height: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.cat-card h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
}
a.cat-card:hover {
  transform: translateY(-4px);
  border-color: #e3cfe2;
  box-shadow: var(--shadow-lift);
}
a.cat-card:hover h3 { color: var(--purple); }
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cat-card { padding: 22px 14px; }
}

/* Three-column keyword lists */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.list-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.list-grid li + li { margin-top: 12px; }
.list-grid a { color: var(--purple); text-decoration: none; }
.list-grid a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .list-grid { grid-template-columns: 1fr; gap: 12px; }
  .list-grid li + li { margin-top: 12px; }
}

/* Long-form prose */
.prose { max-width: 860px; }
.prose h2 {
  margin: 0 0 20px;
  font-size: clamp(27px, 3.6vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.prose h2 + p { margin-top: 0; }
.prose h3 {
  margin: 40px 0 14px;
  font-size: 23px;
  font-weight: 800;
}
.prose p { margin: 0 0 18px; color: var(--ink-soft); }

/* ------------------------------------------------------------- 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, .cat-card { transition: none; }
}
