/* Readability, consistency and multilingual font fixes - 2026-12-02. Remove the <link> to this file in header.php to undo. */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Kannada:wght@400;600;700&family=Noto+Serif+Devanagari:wght@400;600;700&family=Noto+Sans+Devanagari:wght@400;500;600&display=swap");

/* 1. Kannada & Sanskrit (Devanagari) text uses matching Noto fonts instead of random device fallbacks */
.font-display { font-family: Cinzel, "Noto Serif Kannada", "Noto Serif Devanagari", serif; }
.font-body    { font-family: Lora, "Noto Serif Kannada", "Noto Serif Devanagari", serif; }
.font-sans    { font-family: Inter, "Noto Sans Kannada", "Noto Sans Devanagari", sans-serif; }
body          { font-family: Lora, "Noto Serif Kannada", "Noto Serif Devanagari", serif; }

/* 2. Body text slightly darker so it passes WCAG AA contrast on cream and beige sections (was 4.0:1) */
:root { --muted-foreground: 145 22% 31%; }

/* 3. Gold/saffron text on light backgrounds: deeper shade for legibility (bright gold stays on dark green) */
:is(.bg-background, .bg-card, .card-elevated, .bg-secondary, .bg-muted) :is(.text-gold, .text-accent):not(:is(.bg-primary, .bg-foreground, .contact-hero-bg, [class*="bg-black"], [class*="from-black"], [class*="bg-primary/"]) *) { color: hsl(38 92% 29%); }
:is(.bg-background, .bg-card, .card-elevated, .bg-secondary, .bg-muted) .text-saffron:not(:is(.bg-primary, .bg-foreground) *) { color: hsl(22 85% 35%); }

/* 4. Consistent heading weights; legal pages use the heading font */
h1.font-display, h2.font-display { font-weight: 700; }
.legal-cms-content h2, .legal-cms-content h3, .legal-cms-content h4 { font-family: Cinzel, "Noto Serif Kannada", "Noto Serif Devanagari", serif; color: hsl(var(--foreground)); }

/* 5. Phones: larger tap targets for top-bar icons, minimum 13px for small text */
@media (max-width: 639px) {
  .bg-primary .sm\:hidden > a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }
  main p.text-xs, footer p.text-xs, footer a.text-xs, footer li.text-xs { font-size: .8125rem; line-height: 1.25rem; }
}

/* 6. Never allow sideways scrolling on small screens; images never overflow their box */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* 7. Gold text on dark green sections: slightly brighter so small text passes 4.5:1 */
.bg-primary :is(.text-gold, .text-accent) { color: hsl(43 92% 58%); }

/* 8. Gold gradient headings: deeper gold on light sections, bright gold kept on dark green */
.text-gradient-gold { background-image: linear-gradient(135deg, hsl(38 92% 27%), hsl(40 85% 36%)) !important; }
:is(.bg-primary, .contact-hero-bg, [class*="bg-black"], [class*="from-black"]) .text-gradient-gold { background-image: linear-gradient(135deg, hsl(43 92% 58%), hsl(43 75% 66%)) !important; }

/* 9. Orange (saffron) buttons: deeper orange so white text passes contrast */
.btn-saffron, .bg-saffron.text-white { background-image: linear-gradient(135deg, hsl(22 85% 40%), hsl(24 82% 43%)) !important; background-color: hsl(22 85% 40%) !important; }

/* 10. Phones: left-align body text (justified text leaves big gaps on narrow screens, worst in Kannada) */
@media (max-width: 639px) { .text-justify { text-align: left !important; } }
