/* Marathi version: language switch and Devanagari typography.
   To remove Marathi, delete this file and the blocks marked MARATHI START / END in the pages. */

/* Language switch in the header (used on both languages) */
.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-dark);
}

/* On English pages the switch invites Marathi readers, so it is filled in white to stand out */
.lang-switch[lang="mr"] {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-primary);
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.lang-switch[lang="mr"]:hover,
.lang-switch[lang="mr"]:focus-visible {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

/* Phones: slightly smaller switch */
@media (max-width: 575.98px) {
  .lang-switch { padding: 0 0.625rem; }
  .lang-switch[lang="mr"] { font-size: 0.9375rem; }
}

/* Narrow phones: a smaller logo and switch keep them on one line with the menu button */
@media (max-width: 374.98px) {
  .site-header .site-logo { height: 2.2rem; }
  .lang-switch { padding: 0 0.5rem; font-size: 0.875rem; }
  .lang-switch[lang="mr"] { font-size: 0.875rem; }
}

/* Narrow desktops: tighten the header further to make room for the switch */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .site-logo { height: 2.25rem; }
  .site-header .navbar-nav .nav-link { padding-inline: 0.3rem; font-size: 0.9375rem; }
  .site-header .header-call { --bs-btn-padding-x: 0.625rem; --bs-btn-font-size: 0.9375rem; }
  .lang-switch { padding: 0 0.625rem; font-size: 0.875rem; }
  .lang-switch[lang="mr"] { font-size: 0.9375rem; }
}

/* Devanagari: Inter has no Marathi letters, so Latin text stays in Inter and Marathi uses Noto Sans */
html:lang(mr) {
  --font-heading: "Inter", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", system-ui, sans-serif;
  --font-body: var(--font-heading);
  --bs-body-font-family: var(--font-body);
  --bs-body-line-height: 1.8;
}

/* Marks above and below the letters need more height, and letters must not be squeezed together */
html:lang(mr) :is(h1, h2, h3, p, a, button, label, strong, address) { letter-spacing: normal; }
html:lang(mr) :is(h1, h2, h3) { line-height: 1.4; }
html:lang(mr) .hero h1 { line-height: 1.35; }
