/* Nidaan — public site. Khadi / clay / monsoon-green. Mobile-first. */

:root {
  --ink: #161410;
  --ink-soft: #3d3830;
  --paper: #f3efe6;
  --paper-deep: #e8e0d2;
  --line: #cfc4b2;
  --green: #1a4f3c;
  --green-deep: #0f3328;
  --green-mid: #2a6b52;
  --clay: #9c5538;
  --clay-soft: #c47855;
  --warn: #8a3b1e;
  --white: #fffdf8;
  --focus: #1a4f3c;
  --max: 42rem;
  --wide: 68rem;
  --nav-h: 3.5rem;
  --font-display: "Fraunces", "Noto Serif Devanagari", Georgia, serif;
  --font-body: "Figtree", "Noto Sans Devanagari", system-ui, sans-serif;
  /* Figtree/Fraunces: use 500/600/700 — 550 maps via browser synthesis if needed */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(42, 107, 82, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(156, 85, 56, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

/* Language: both strings in DOM; hide inactive. Works without JS if html[lang] set. */
html[lang="en"] [lang="hi"],
html[lang="hi"] [lang="en"] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--clay);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.65rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--nav-h);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--green-deep);
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-toggle,
.nav-toggle {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 0.35rem;
  cursor: pointer;
}

.lang-toggle:hover,
.nav-toggle:hover {
  border-color: var(--green-mid);
  color: var(--green);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.site-nav {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-nav[hidden] {
  display: none !important;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  max-width: var(--wide);
  margin-inline: auto;
}

.site-nav a {
  display: block;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-left: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border-left-color: var(--green);
  color: var(--green-deep);
}

@media (min-width: 920px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    border-top: 0;
    background: transparent;
    margin-left: auto;
  }

  .site-nav[hidden] {
    display: block !important;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .brand {
    flex: 0 0 auto;
  }

  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    padding: 0;
    justify-content: flex-end;
  }

  .site-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
    border-left: 0;
    border-radius: 0.3rem;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    border-left: 0;
  }

  .header-actions {
    order: 3;
    margin-left: 0.5rem;
  }

  .site-nav {
    order: 2;
    flex: 1;
  }
}

/* —— Layout —— */
main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.5rem 1.1rem 3.5rem;
}

.page-lead {
  max-width: var(--max);
  margin: 0 0 1.75rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.6rem;
}

h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--green-deep);
}

h1.brand-hero {
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  letter-spacing: 0.04em;
  color: var(--green-deep);
}

.lead {
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1rem;
  font-weight: 600;
}

.sub {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
  margin: 2.25rem 0 0.75rem;
  color: var(--green-deep);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.4rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

.prose {
  max-width: var(--max);
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--green-mid);
}

/* —— Hero —— */
.hero {
  padding: 1.25rem 0 0.5rem;
  max-width: var(--max);
}

.hero-panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.15rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--green) 92%, black), var(--green-mid));
  color: var(--white);
  border-radius: 0.2rem 0.75rem 0.75rem 0.2rem;
  box-shadow: 8px 10px 0 color-mix(in srgb, var(--clay) 45%, transparent);
}

.hero-panel p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  opacity: 0.95;
}

/* —— Tiles —— */
.tile-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .tile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.1rem 1rem 1.15rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 0.5rem;
  transition: border-color 0.15s, transform 0.15s;
}

a.tile:hover {
  border-color: var(--green-mid);
  transform: translateY(-2px);
  color: inherit;
}

.tile-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.65rem;
  color: var(--green);
}

.tile h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--green-deep);
}

.tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* —— Callouts —— */
.split {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 2rem;
}

@media (min-width: 720px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.callout {
  padding: 1.15rem 1.1rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 0.45rem;
}

.callout h3 {
  margin-top: 0;
}

.callout.green {
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
  background: color-mix(in srgb, var(--green) 6%, var(--white));
}

.callout.clay {
  border-color: color-mix(in srgb, var(--clay) 35%, var(--line));
  background: color-mix(in srgb, var(--clay) 7%, var(--white));
}

.callout.plain {
  background: transparent;
  border-style: dashed;
}

.dont {
  border-left: 4px solid var(--warn);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
  background: color-mix(in srgb, var(--warn) 8%, var(--white));
}

.dont strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--warn);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  max-width: var(--max);
}

.steps li {
  position: relative;
  padding: 0.85rem 0 0.85rem 3rem;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

/* —— CTAs —— */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.4rem;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--green);
  color: var(--green-deep);
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}

.cta-cards {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .cta-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-card {
  padding: 1.2rem 1.1rem;
  background: var(--green-deep);
  color: var(--white);
  border-radius: 0.5rem;
}

.cta-card.alt {
  background: var(--clay);
}

.cta-card p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.cta-card .who {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.45rem;
}

/* —— Two cameras —— */
.pair {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

@media (min-width: 720px) {
  .pair {
    grid-template-columns: 1fr 1fr;
  }
}

.pair-card {
  padding: 1.25rem 1.15rem;
  background: var(--white);
  border-radius: 0.5rem;
  border-top: 4px solid var(--green);
}

.pair-card:nth-child(2) {
  border-top-color: var(--clay);
}

.pair-card .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}

.pair-card h3 {
  margin-top: 0;
}

.rule {
  font-weight: 700;
  color: var(--green-deep);
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1.5px dashed var(--green-mid);
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--green) 5%, var(--white));
  max-width: var(--max);
}

/* —— Form —— */
.form {
  max-width: 28rem;
  margin: 1.25rem 0;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 0.35rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: color-mix(in srgb, var(--green) 12%, var(--white));
  border: 1.5px solid var(--green-mid);
  border-radius: 0.4rem;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--green-deep);
  color: color-mix(in srgb, var(--white) 88%, transparent);
  padding: 1.75rem 1.1rem 2.25rem;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin: 0 0 0.35rem;
}

.footer-line {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.footer-deny {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  opacity: 0.8;
  max-width: 36rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: color-mix(in srgb, var(--white) 85%, transparent);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .hero-panel {
    animation: rise 0.7s ease-out both;
  }

  .tile {
    animation: rise 0.55s ease-out both;
  }

  .tile:nth-child(1) { animation-delay: 0.05s; }
  .tile:nth-child(2) { animation-delay: 0.12s; }
  .tile:nth-child(3) { animation-delay: 0.19s; }
  .tile:nth-child(4) { animation-delay: 0.26s; }

  .cta-card {
    animation: rise 0.6s ease-out both;
  }

  .cta-card.alt {
    animation-delay: 0.1s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
