/*
  SarvaFM public site.
  Brand: charcoal #3E3E3E and yellow #FFC800, from the logo.
  One typeface, Anek Malayalam — Latin now, Malayalam when the site is translated,
  so the switch will not change how the site looks.
*/
:root {
  --ink: #3E3E3E;
  --ink-soft: #5C5C5C;
  --muted: #6A6A6A;
  --yellow: #FFC800;
  --paper: #FFFFFF;
  --mist: #F3F3F3;
  --line: #DDDDDD;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --font: "Anek Malayalam", "Noto Sans Malayalam", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body { margin: 0; }

img { max-width: 100%; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--yellow); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
}

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: var(--gutter); top: 1rem; z-index: 10;
  background: var(--yellow); padding: .5rem 1rem;
}

/* ---- header ---- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.wordmark span { color: var(--yellow); }

.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

/* ---- home: carousel ---- */

.hero-carousel {
  position: relative;
  height: clamp(28rem, 78vh, 42rem);
  overflow: hidden;
  background: var(--ink);
  color: #FFFFFF;
}

.slides { position: absolute; inset: 0; }

/* Slides sit side by side and the track moves; reduced motion swaps instantly. */
.slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform .8s cubic-bezier(.65, 0, .35, 1);
}
.slide { z-index: 0; }
.slide.is-active { transform: translateX(0); z-index: 2; }
.slide.is-leaving { transform: translateX(-100%); z-index: 1; }

/* Until a photo is added, each slide is a plain brand panel, so the slideshow
   still reads as deliberate rather than broken. */
.slide:nth-child(1) { background: #3E3E3E; }
.slide:nth-child(2) { background: #4A4A4A; }
.slide:nth-child(3) { background: #353535; }
.slide:nth-child(4) { background: #444444; }
.slide:nth-child(5) { background: #3A3A3A; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* A scrim under the caption only, so white text stays readable on any photo
   without darkening the whole image. */
.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30,30,30,.82) 0%, rgba(30,30,30,.55) 42%, rgba(30,30,30,0) 75%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(5rem, 12vh, 7rem);
  max-width: 36rem;
}

.hero-caption h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 1rem;
}

.hero-rule {
  display: block;
  width: 5rem;
  height: .5rem;
  background: var(--yellow);
  margin: 0 0 1.25rem;
}

.hero-lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  max-width: 32ch;
  margin: 0;
}

.hero-status { margin: 1rem 0 0; color: #D6D6D6; font-size: 1rem; }

.carousel-controls {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.cc-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid rgba(255,255,255,.7);
  background: rgba(30,30,30,.35);
  color: #FFFFFF;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cc-pause { font-size: .85rem; margin-left: auto; }

.dots { display: flex; gap: .5rem; }
.dot {
  width: 2rem;
  height: .3rem;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.dot[aria-selected="true"] { background: var(--yellow); }
/* Bigger hit area than the visible bar, for thumbs. */
.dot { position: relative; }
.dot::before { content: ""; position: absolute; inset: -.9rem 0; }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

@media (max-width: 40rem) {
  .hero-carousel::after {
    background: linear-gradient(0deg, rgba(30,30,30,.88) 0%, rgba(30,30,30,.5) 55%, rgba(30,30,30,.1) 100%);
  }
  .hero-caption { bottom: 5.5rem; }
}

/* ---- home: sections ---- */

.band { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.band--mist { background: var(--mist); }

.band-inner { max-width: 68rem; }

.band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  font-weight: 700;
}

/* A real sequence, so it is numbered. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  margin-bottom: .75rem;
}
.steps h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.split {
  display: grid;
  gap: 2rem 3.5rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.split h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.split p { margin: 0 0 1rem; color: var(--ink-soft); max-width: var(--measure); }

/* ---- policy pages ---- */

.doc {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 4rem;
  max-width: calc(var(--measure) + 2 * var(--gutter));
}

.doc h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 .5rem;
}

.doc .updated { color: var(--muted); margin: 0 0 2.5rem; font-size: .95rem; }

.doc h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 2.75rem 0 .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.doc h3 { font-size: 1.08rem; margin: 1.75rem 0 .5rem; }

.doc p, .doc li { max-width: var(--measure); }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin-bottom: .45rem; }

.doc .summary {
  border-left: .45rem solid var(--yellow);
  padding: .25rem 0 .25rem 1.25rem;
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; border-bottom: 2px solid var(--ink); }
td.money { white-space: nowrap; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 1rem 0 1.5rem; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; }

/*
  Details only the company can supply: registered name, address, phone,
  grievance officer. Highlighted so none reaches a live page unfilled.
  Delete the .fill class once each one is replaced.
*/
.fill {
  background: var(--yellow);
  padding: 0 .2em;
  font-weight: 600;
}

/* ---- footer ---- */

.site-foot {
  background: var(--ink);
  color: #EDEDED;
  padding: 3rem var(--gutter) 2.5rem;
  font-size: .95rem;
}
.site-foot a { color: #FFFFFF; }
.foot-grid {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  max-width: 68rem;
}
.site-foot h2 { font-size: 1rem; margin: 0 0 .6rem; color: #FFFFFF; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot p { margin: 0 0 .35rem; }
.site-foot .fill { color: var(--ink); }
.foot-base { margin-top: 2.5rem; color: #BDBDBD; font-size: .88rem; }

@media (max-width: 40rem) {
  .site-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .site-nav { gap: 1rem; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dd { margin-bottom: .6rem; }
}

@media print {
  .site-head nav, .skip { display: none; }
  .site-foot { background: none; color: var(--ink); }
  .site-foot a { color: var(--ink); }
}
