/* ============================================================
   KACTCO — Kozhikode Taluk Kalluchethu Vyavasaya Thozhilali
   Sahakarana Sangham Ltd. (Reg. D/2729)
   Brand stylesheet — Silver Jubilee edition · v4 (heritage refresh)
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
  /* Brand palette (from logo / membership card) */
  --purple-950: #220e2b;
  --purple-900: #2f1339;
  --purple-800: #3e1b4a;
  --purple-700: #4a1e5c;
  --purple-600: #5d2a6e;   /* primary */
  --purple-500: #74428a;
  --purple-400: #8a5a9c;
  --purple-200: #d8c4e2;
  --purple-100: #efe6f3;
  --purple-050: #f7f1fa;

  --gold-700: #a87a05;     /* accessible gold for text on light */
  --gold-600: #c99500;
  --gold-500: #f2c200;     /* accent / CTA */
  --gold-400: #f6cb1a;
  --gold-200: #f8e69a;
  --gold-100: #fdf4cf;

  --ink: #271430;
  --ink-soft: #4a3a52;
  --muted: #6f6077;
  --line: #e8ddef;
  --line-soft: #f0e9f3;
  --paper: #faf6f0;        /* warm parchment tint */
  --paper-deep: #f4ede3;
  --white: #ffffff;

  /* Typography */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mal: "Noto Sans Malayalam", var(--font-body);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-btn: 6px;
  --shadow: 0 24px 60px -28px rgba(34, 14, 43, 0.42);
  --shadow-sm: 0 10px 30px -16px rgba(34, 14, 43, 0.34);
  --shadow-xs: 0 2px 10px -4px rgba(34, 14, 43, 0.18);
  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

/* ---- Reset / base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: clamp(15.5px, 0.4vw + 14.5px, 17px);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Smooth page transitions ------------------------------ */
/* Gentle fade-in on every page load — masks the chrome injection and gives a
   smooth feel between pages. Skipped for users who prefer reduced motion. */
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageFade .35s ease both; }
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-200); color: var(--purple-900); }

.mal { font-family: var(--font-mal); }

/* ---- i18n language toggle --------------------------------- */
html[data-lang="en"] .lang-ml { display: none !important; }
html[data-lang="ml"] .lang-en { display: none !important; }
.lang-ml { font-family: var(--font-mal); }

.lang-switch {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; color: var(--purple-700);
  font: inherit; font-weight: 600; font-size: .85rem; padding: .45rem .85rem; border-radius: 999px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.lang-switch:hover { background: var(--purple-050); border-color: var(--purple-200); color: var(--purple-800); }
.lang-switch svg { width: 15px; height: 15px; }

/* ---- Headings --------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; color: var(--purple-800); margin: 0 0 .5em; text-wrap: balance; letter-spacing: -0.01em; }
h1[lang="ml"], .lang-ml h1, h1 .lang-ml, h2 .lang-ml, h3 .lang-ml { letter-spacing: normal; }
/* Malayalam script renders visually larger & heavier than the Spectral serif —
   scale it down and lighten the weight so both languages carry equal presence. */
h1 .lang-ml, h2 .lang-ml, h3 .lang-ml { font-size: 0.82em; font-weight: 600; line-height: 1.3; }
.lead, .hero__lead { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
h2 { font-size: clamp(1.85rem, 3vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
strong { font-weight: 700; color: var(--ink); }

/* ---- Helpers ---------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 5.5vw, 5rem); }
.section--tint { background: var(--paper); border-block: 1px solid var(--line-soft); }
.section--purple { background: var(--purple-900); color: rgba(255,255,255,.82); }
.section--purple h2, .section--purple h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; font-size: .76rem;
  color: var(--gold-700); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; border-radius: 2px;
}
.section__head { max-width: 62ch; margin-bottom: 2.25rem; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .eyebrow { justify-content: center; }
.section__head.center .eyebrow::after {
  content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; border-radius: 2px;
}
.lead { font-size: 1.12rem; color: var(--muted); line-height: 1.65; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; padding: .82rem 1.5rem;
  border-radius: var(--radius-btn); border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-500); color: var(--purple-900); box-shadow: 0 12px 26px -14px rgba(242,194,0,.7); }
.btn--gold:hover { background: var(--gold-400); box-shadow: 0 16px 30px -14px rgba(242,194,0,.8); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn--outline { background: transparent; color: var(--purple-700); border-color: var(--purple-200); }
.btn--outline:hover { background: var(--purple-600); color: var(--white); border-color: var(--purple-600); }
.btn--solid { background: var(--purple-600); color: #fff; }
.btn--solid:hover { background: var(--purple-700); }

/* ---- Top bar ---------------------------------------------- */
.topbar {
  background: var(--purple-950); color: rgba(255,255,255,.78);
  font-size: .82rem; letter-spacing: .01em;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: space-between; padding-block: .58rem; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; transition: color var(--transition); }
.topbar a:hover { color: var(--gold-400); }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar__group { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: center; }
.topbar__reg { color: var(--gold-200); font-weight: 600; letter-spacing: .04em; }

/* ---- Header / nav ----------------------------------------- */
#site-header { display: block; min-height: 122px; }
@media (max-width: 600px) { #site-header { min-height: 134px; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(34,14,43,.5); background: rgba(255,255,255,.97); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; flex-direction: row; align-items: center; gap: .75rem; line-height: 1; }
.brand__emblem { height: 60px; width: 60px; display: block; transition: transform var(--transition); }
.brand:hover .brand__emblem { transform: scale(1.04) rotate(-2deg); }
.brand__text { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.brand__logo { height: 31px; width: auto; display: block; }
.brand__sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; font-weight: 500; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--purple-700); letter-spacing: .02em; }
@media (max-width: 600px) {
  .brand__emblem { height: 52px; width: 52px; }
  .brand__logo { height: 26px; }
}
@media (max-width: 460px) {
  .brand__sub { display: none; }
  .brand__emblem { height: 46px; width: 46px; }
  .brand__logo { height: 23px; }
}

.nav__links { display: flex; align-items: center; gap: .1rem; }
.nav__links a:not(.nav__cta) {
  position: relative;
  display: inline-flex; align-items: center; line-height: 1.1;
  height: 42px; padding: 0 .8rem; border-radius: 7px;
  font-weight: 500; font-size: .92rem; color: var(--ink-soft);
  transition: background var(--transition), color var(--transition);
}
.nav__links a:hover { background: var(--purple-050); color: var(--purple-700); }
.nav__links a.is-active { color: var(--purple-700); font-weight: 600; }
.nav__links a:not(.nav__cta).is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--gold-500);
}
.nav__cta { margin-left: .5rem; padding: .55rem 1.1rem !important; font-size: .9rem; }

.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--purple-700); margin: 5px auto; transition: var(--transition); border-radius: 2px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Icon system ------------------------------------------ */
.ico { width: 1em; height: 1em; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- Palm motif ------------------------------------------- */
.palm-motif { position: absolute; pointer-events: none; color: var(--gold-400); opacity: .1; z-index: 0; }
.palm-rule { display: inline-flex; align-items: center; gap: .8rem; color: var(--gold-500); }
.palm-rule::before, .palm-rule::after { content: ""; height: 1px; width: 48px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.palm-rule::after { background: linear-gradient(90deg, var(--gold-500), transparent); }
.palm-rule .ico { width: 22px; height: 22px; opacity: .9; }

/* ---- Page hero (sub-pages) -------------------------------- */
.page-hero {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background:
    radial-gradient(130% 150% at 85% -10%, rgba(242,194,0,.14), transparent 55%),
    linear-gradient(140deg, var(--purple-900), var(--purple-700) 60%, var(--purple-600));
  padding-block: clamp(3.25rem, 7vw, 5rem);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin-bottom: .35em; }
.page-hero .accent { color: var(--gold-400); }
.page-hero__mal { font-family: var(--font-body); color: rgba(255,255,255,.86); font-weight: 500; margin: 0 auto; max-width: 60ch; letter-spacing: .02em; }
.page-hero .lang-ml { font-family: var(--font-mal); }
.page-hero .palm-motif { top: -40px; right: -30px; width: 320px; height: 320px; transform: rotate(8deg); }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; letter-spacing: .03em; }
.breadcrumb a:hover { color: var(--gold-400); }

/* ---- Home hero -------------------------------------------- */
.hero {
  position: relative; color: var(--white);
  background:
    radial-gradient(120% 130% at 88% -10%, rgba(242,194,0,.16), transparent 52%),
    linear-gradient(145deg, var(--purple-900) 0%, var(--purple-700) 55%, var(--purple-600) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 50% 130%, rgba(0,0,0,.4), transparent 60%);
  z-index: 0;
}
.hero .palm-motif { top: -60px; right: -40px; width: 460px; height: 460px; opacity: .09; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: .4em; line-height: 1.05; hyphens: none; overflow-wrap: break-word; }
.hero h1 .accent { color: var(--gold-400); font-style: italic; }
.hero .lang-ml h1, .hero h1 .lang-ml { font-size: 0.74em; line-height: 1.22; }
.hero__lead { color: rgba(255,255,255,.86); font-size: 1.13rem; max-width: 48ch; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600;
  padding: .5rem .95rem; border-radius: 999px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); color: #fff;
}
.chip svg { width: 14px; height: 14px; color: var(--gold-400); }
.chip--jubilee {
  background: rgba(242,194,0,.12); border-color: rgba(242,194,0,.4); color: var(--gold-200);
  letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; font-weight: 700; padding: .55rem 1.05rem;
}

/* Hero badge — refined gold-ring frame */
.hero__badge { justify-self: center; position: relative; }
.hero__badge::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px solid rgba(242,194,0,.35);
}
.hero__badge::after {
  content: ""; position: absolute; inset: -32px; border-radius: 50%;
  border: 1px dashed rgba(242,194,0,.2);
}
.hero__badge img { width: min(360px, 78%); margin-inline: auto; filter: drop-shadow(0 28px 46px rgba(0,0,0,.45)); animation: floaty 6s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---- Hero Direction B — split / institutional ------------- */
.hero--split { background: var(--paper); color: var(--ink); }
.hero--split::after { display: none; }
.hero--split .container { grid-template-columns: 1.1fr .9fr; align-items: stretch; gap: 0; padding-block: 0; }
.hero--split .hero__copy { padding: clamp(3.25rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem) clamp(3.25rem, 6vw, 5.5rem) 0; align-self: center; }
.hero--split h1 { color: var(--purple-800); }
.hero--split h1 .accent { color: var(--gold-700); }
.hero--split .hero__lead { color: var(--muted); }
.hero--split .hero__eyebrow .chip--jubilee { background: var(--gold-100); border-color: var(--gold-200); color: var(--gold-700); }
.hero--split .btn--ghost { color: var(--purple-700); border-color: var(--purple-200); }
.hero--split .btn--ghost:hover { background: var(--purple-600); color: #fff; border-color: var(--purple-600); }
.hero__panel {
  position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(242,194,0,.16), transparent 55%),
    linear-gradient(160deg, var(--purple-800), var(--purple-950));
  color: #fff; padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  border-radius: 0; overflow: hidden;
  margin-inline: calc(-1 * var(--gutter)) 0;
}
.hero__panel .palm-motif { top: -50px; right: -40px; width: 280px; height: 280px; }
.hero__panel-badge { position: relative; z-index: 1; text-align: center; }
.hero__panel-badge img { width: min(220px, 60%); margin-inline: auto; filter: drop-shadow(0 20px 36px rgba(0,0,0,.4)); }
.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; position: relative; z-index: 1; }
.cred-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; color: rgba(255,255,255,.9); }
.cred-list .ico { color: var(--gold-400); width: 20px; height: 20px; flex: none; margin-top: .1rem; }
.cred-list strong { color: #fff; }

/* ---- Stats ------------------------------------------------ */
/* Floating white card variant (Direction B / default) */
.stats-section .container { padding-top: 0; padding-bottom: clamp(2rem, 4vw, 3rem); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative; z-index: 5;
  margin-top: -3.75rem; overflow: hidden;
}
.stat { padding: 1.85rem 1rem; border-right: 1px solid var(--line); transition: background var(--transition); }
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--purple-050); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--purple-600); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num .unit { color: var(--gold-600); }
.stat__label { font-size: .82rem; color: var(--muted); margin-top: .5rem; letter-spacing: .02em; }

/* In-hero strip variant (Direction A) */
.hero-stats { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.14); margin-top: clamp(2rem, 4vw, 3rem); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: clamp(1.5rem, 3vw, 2.2rem); }
.hero-stat { text-align: center; padding: .3rem 1rem; border-right: 1px solid rgba(255,255,255,.14); }
.hero-stat:last-child { border-right: 0; }
.hero-stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat__num .unit { color: var(--gold-400); }
.hero-stat__label { font-size: .78rem; color: rgba(255,255,255,.72); margin-top: .45rem; letter-spacing: .03em; }

/* ---- About ------------------------------------------------ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; display: flex; justify-content: center; }
.about__media img { width: min(420px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow), 0 0 0 1px var(--gold-200); }
.about__media .palm-motif { color: var(--purple-200); opacity: .5; bottom: -28px; left: -28px; width: 150px; height: 150px; z-index: -1; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .85rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks li .ico { color: var(--gold-600); width: 20px; height: 20px; flex: none; margin-top: .15rem; }

/* ---- Cards / services ------------------------------------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1.4rem; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple-100); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--purple-050); border: 1px solid var(--purple-100); color: var(--purple-600);
  margin-bottom: 1.15rem; transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.card__icon .ico { width: 26px; height: 26px; stroke-width: 1.5; }
.card:hover .card__icon { background: var(--purple-600); border-color: var(--purple-600); color: var(--gold-400); }
.card h3 { color: var(--purple-800); margin-bottom: .45rem; font-size: 1.18rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.6; }
.card__meta {
  margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--line);
  font-size: .82rem; font-weight: 700; color: var(--purple-600); letter-spacing: .01em;
}
/* Director / leadership card variant */
.card--person .eyebrow { margin-bottom: .55rem; font-size: .68rem; }
.card--person h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.card--person p { display: flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--purple-600); }
.card--person p .ico { width: 16px; height: 16px; color: var(--gold-600); }

/* ---- Jubilee banner --------------------------------------- */
.jubilee {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--purple-700), var(--purple-950));
  color: #fff; border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem;
  padding: clamp(2.25rem, 5vw, 3.75rem);
}
.jubilee .palm-motif { position: absolute; top: -40px; left: 30%; width: 280px; height: 280px; opacity: .07; color: var(--gold-400); }
.jubilee > * { position: relative; z-index: 1; }
.jubilee h2 { color: #fff; }
.jubilee .gold { color: var(--gold-400); font-style: italic; }
.jubilee p { color: rgba(255,255,255,.85); margin: 0; max-width: 52ch; }
.jubilee img { width: min(210px, 40vw); filter: drop-shadow(0 18px 32px rgba(0,0,0,.4)); }

/* ---- Contact ---------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.contact__cards { display: grid; gap: 1.1rem; align-content: start; }
.info-card {
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm); padding: 1.35rem 1.55rem; transition: box-shadow var(--transition), transform var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.info-card h3 { font-size: 1.02rem; margin-bottom: .55rem; color: var(--purple-800); display: flex; align-items: center; gap: .55rem; }
.info-card h3 .ico { width: 18px; height: 18px; color: var(--gold-600); }
.info-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.info-card a { color: var(--purple-600); font-weight: 600; }
.info-card a:hover { color: var(--purple-800); }
.contact__form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.3rem); align-self: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .4rem; color: var(--purple-800); }
.field input, .field textarea {
  width: 100%; padding: .82rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: #fff; color: var(--ink); transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus { border-color: var(--purple-400); box-shadow: 0 0 0 3px var(--purple-100); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }

/* ---- Footer ----------------------------------------------- */
.site-footer { background: var(--purple-950); color: rgba(255,255,255,.68); padding-block: 3.25rem 1.5rem; position: relative; overflow: hidden; }
.site-footer .palm-motif { top: -30px; right: 4%; width: 240px; height: 240px; opacity: .06; }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.5rem; }
.footer__brand { margin-bottom: 1.15rem; }
.footer__brand img { height: 38px; width: auto; display: block; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1.1rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .92rem; }
.site-footer li { display: flex; align-items: center; gap: .5rem; }
.site-footer li .ico { width: 15px; height: 15px; color: var(--gold-500); opacity: .85; flex: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer__bottom {
  position: relative; z-index: 1;
  margin-top: 2.75rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .82rem;
}
.footer__credit strong { color: var(--gold-400); font-weight: 700; }

/* ---- Floating action buttons (WhatsApp / Call) ------------ */
.fab {
  position: fixed; right: clamp(12px, 3vw, 24px); bottom: clamp(12px, 3vw, 24px);
  z-index: 60; display: flex; flex-direction: column; gap: .65rem;
}
.fab a {
  position: relative; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab a:hover { transform: translateY(-3px) scale(1.05); }
.fab a svg { width: 26px; height: 26px; }
/* Back-to-top button — hidden until the user scrolls down a bit */
.fab__top {
  order: -1; appearance: none; border: 0; cursor: pointer; padding: 0;
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto;
  display: grid; place-items: center; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.85);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.fab__top svg { width: 22px; height: 22px; stroke: var(--purple-900); }
.fab--show-top .fab__top { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.fab__top:hover { transform: translateY(-3px) scale(1.05); }
.fab__wa { background: #25d366; }
.fab__call { background: linear-gradient(135deg, var(--purple-600), var(--purple-800)); }
.fab__call svg { fill: var(--gold-400); }
.fab__wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: fabpulse 2.4s infinite;
}
@keyframes fabpulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70%  { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* form button loading + honeypot */
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* map embed */
.map-embed { border: 0; width: 100%; height: 400px; border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block; }
@media (max-width: 600px) { .map-embed { height: 300px; } }

/* ---- History timeline ------------------------------------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--purple-400), var(--gold-500));
}
.timeline__item { position: relative; padding: 0 0 1.9rem 2.4rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold-200);
}
.timeline__year { font-family: var(--font-display); font-weight: 800; color: var(--purple-700); font-size: 1.15rem; }
.timeline__item p { margin: .25rem 0 0; color: var(--muted); }

/* ---- Rate table ------------------------------------------- */
.rate-table {
  width: 100%; max-width: 660px; margin: 1.9rem auto 0; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.rate-table caption { caption-side: bottom; font-size: .8rem; color: var(--muted); margin-top: .9rem; text-align: center; line-height: 1.6; }
.rate-table th, .rate-table td { padding: .8rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
.rate-table thead th { background: var(--purple-700); color: #fff; font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table th:last-child, .rate-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--purple-700); font-size: 1.02rem; }
.rate-table tbody tr:hover { background: var(--purple-050); }
.rate-table tr.rate-best td { background: var(--gold-100); }
.rate-table tr.rate-best td:first-child { font-weight: 600; color: var(--ink); }
.rate-table tr.rate-best td:last-child { color: var(--purple-900); }
.rate-table tr.rate-best td:first-child::after {
  content: "★ Best"; margin-left: .6rem; font-size: .64rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold-700); background: var(--gold-200); padding: .15rem .45rem; border-radius: 4px; vertical-align: middle;
}
html[data-lang="ml"] .rate-table tr.rate-best td:first-child::after { content: "★ മികച്ചത്"; }
.deposit-note { text-align: center; color: var(--muted); font-size: .9rem; max-width: 660px; margin: 1.3rem auto 0; }

/* ---- Reveal on scroll ------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .stat:hover, .info-card:hover { transform: none; }
  .hero__badge img { animation: none; }
  .fab__wa::after { animation: none; }
  .fab a:hover { transform: none; }
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__eyebrow, .hero__actions, .hero__chips { justify-content: center; }
  .hero__badge { order: -1; }
  .hero__badge img { width: min(240px, 56%); }
  .hero--split .container { grid-template-columns: 1fr; }
  .hero--split .hero__copy { padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem; text-align: center; }
  .hero--split .hero__eyebrow, .hero--split .hero__actions { justify-content: center; }
  .hero__panel { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .about, .contact { grid-template-columns: 1fr; }
  .jubilee { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .jubilee p { margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
  .hero-stat:nth-child(2n) { border-right: 0; }
  .hero-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 1.4rem; }
  .hero-stat:nth-last-child(-n+2) { padding-top: 1.4rem; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -3rem; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.4rem 1rem; }
  .stat:last-child { border-bottom: 0; }
  .hero-stats .container { grid-template-columns: 1fr; }
  .hero-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding: 1.1rem 1rem; }
  .hero-stat:last-child { border-bottom: 0; }
}
@media (max-width: 1024px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem;
    gap: .25rem; box-shadow: var(--shadow-sm);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: var(--transition);
  }
  .nav__links.open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.nav__cta) { height: auto; padding: .65rem .85rem; }
  .nav__links a:not(.nav__cta).is-active::after { left: .85rem; right: auto; width: 22px; bottom: 4px; }
  .nav__cta { margin: .6rem 0 0; text-align: center; justify-content: center; }
}
