@font-face {
  font-family: "Noto Serif Devanagari";
  src: url("../fonts/NotoSerifDevanagari-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif Devanagari";
  src: url("../fonts/NotoSerifDevanagari-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* Badi Kothi — badikothi.in
   Heritage letterhead style. Mobile-first. No framework. */

:root {
  --maroon: #54141b;
  --maroon-deep: #3a0d12;
  --maroon-soft: #7a2c34;
  --ivory: #fbf6ec;
  --ivory-2: #f3eadb;
  --ivory-3: #e8dcc6;
  --gold: #c4a15a;
  --gold-bright: #ead6a2;
  --gold-deep: #6b4e1c;
  --ink: #1a1410;
  --ink-muted: #4a4038;
  --whatsapp: #1f5c3a;
  --whatsapp-ink: #f6fff9;
  --placeholder-bg: #f8ebc7;
  --placeholder-ink: #5c3d0e;
  --focus: #8a6a2e;
  --header-h: 4.25rem;
  --font-dev: "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --font-lat: Georgia, "Times New Roman", serif;
  --shadow: 0 1px 2px rgba(26, 20, 16, 0.06);
  --radius: 4px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-lat);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
}

.hi { font-family: var(--font-dev); }

.lang-hi .en { display: none; }
.lang-en .hi { display: none; }

.lang-en .en { display: revert; }
.lang-hi .hi { display: revert; }

/* When JS is off, show both languages stacked */
.no-js .hi,
.no-js .en {
  display: revert;
}

.no-js .lang-switch {
  display: none;
}

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

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

a:hover {
  color: var(--maroon-soft);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold-bright);
  color: var(--maroon-deep);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(70rem, calc(100% - 1.75rem));
  margin-inline: auto;
}

/* ------ Header ------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--maroon-deep);
  color: var(--ivory);
  border-bottom: 1px solid rgba(196, 161, 90, 0.45);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  min-height: var(--header-h);
  padding-block: 0.45rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-dev);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.lang-en .brand-name {
  font-family: var(--font-lat);
  letter-spacing: 0.06em;
  text-transform: none;
}

.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-family: var(--font-lat);
  margin-top: 0.15rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-left: auto;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(234, 214, 162, 0.55);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
  line-height: 1.2;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--gold-bright);
  color: var(--maroon-deep);
  font-weight: 600;
}

.header-cta {
  display: none;
  gap: 0.4rem;
}

/* ------ Buttons ------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.btn-gold {
  background: var(--gold-bright);
  color: var(--maroon-deep);
  border-color: var(--gold-bright);
}

.btn-gold:hover {
  background: #f3e6bc;
  color: var(--maroon-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--gold);
}

.btn-ghost:hover {
  background: rgba(234, 214, 162, 0.12);
  color: var(--gold-bright);
}

.btn-wa {
  background: var(--whatsapp);
  color: var(--whatsapp-ink);
  border-color: var(--whatsapp);
}

.btn-wa:hover {
  background: #17492d;
  color: var(--whatsapp-ink);
}

.btn-maroon {
  background: var(--maroon);
  color: var(--ivory);
  border-color: var(--maroon);
}

.btn-maroon:hover {
  background: var(--maroon-soft);
  color: var(--ivory);
}

/* ------ Hero ------ */

.hero {
  background:
    linear-gradient(180deg, rgba(58, 13, 18, 0.25), rgba(58, 13, 18, 0.15)),
    var(--maroon);
  color: var(--ivory);
  text-align: center;
  padding: 2.5rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px solid rgba(196, 161, 90, 0.35);
  pointer-events: none;
}

.hero::after {
  inset: 0.9rem;
  border-width: 1px;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(42rem, calc(100% - 1.75rem));
  margin-inline: auto;
}

.hero-crest {
  width: 5.25rem;
  height: 5.25rem;
  margin: 0 auto 1.1rem;
}

.hero-kicker {
  font-family: var(--font-lat);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-bright);
  margin: 0 0 0.55rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-dev);
  font-weight: 600;
  font-size: clamp(2.35rem, 9vw, 4.6rem);
  line-height: 1.15;
  color: var(--ivory);
}

.lang-en .hero h1 {
  font-family: var(--font-lat);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.hero-latin {
  margin: 0.35rem 0 0;
  font-family: var(--font-lat);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--gold-bright);
}

.lang-en .hero-latin {
  display: none;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.15rem auto 1.1rem;
  color: var(--gold);
  width: min(18rem, 80%);
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}

.ornament-mark {
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid var(--gold-bright);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.hero-since {
  margin: 0;
  font-family: var(--font-dev);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--gold-bright);
  font-weight: 600;
}

.lang-en .hero-since {
  font-family: var(--font-lat);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.hero-firm {
  margin: 0.85rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.hero-lead {
  margin: 0.55rem 0 0;
  color: #f3eadb;
  font-size: 1.05rem;
}

.hero-slogan {
  margin: 1.1rem 0 0;
  font-size: 1.02rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

/* ------ Sections ------ */

.section {
  padding: 2.75rem 0;
}

.section + .section {
  border-top: 1px solid var(--ivory-3);
}

.section-kicker {
  margin: 0 0 0.3rem;
  font-family: var(--font-lat);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-deep);
  font-weight: 600;
}

.section h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--maroon);
  font-family: var(--font-dev);
}

.lang-en .section h2 {
  font-family: var(--font-lat);
}

.section-intro {
  margin: 0 0 1.6rem;
  max-width: 38rem;
  color: var(--ink-muted);
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--ivory);
  border: 1px solid var(--ivory-3);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.35rem;
  border-top: 3px solid var(--gold);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: var(--maroon);
  line-height: 1.3;
  font-family: var(--font-dev);
}

.lang-en .card h3 {
  font-family: var(--font-lat);
}

.card p {
  margin: 0;
  color: var(--ink);
}

.card p + p {
  margin-top: 0.6rem;
}

/* ------ Visit ------ */

.visit-grid {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--ivory-2);
  border: 1px solid var(--ivory-3);
  padding: 1.25rem 1.2rem 1.4rem;
}

.panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--maroon);
  font-family: var(--font-dev);
}

.lang-en .panel h3 {
  font-family: var(--font-lat);
}

.address-block {
  margin: 0;
  font-style: normal;
  line-height: 1.7;
}

.address-block .firm {
  font-weight: 600;
  font-size: 1.1rem;
}

.tel-line {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-lat);
  letter-spacing: 0.02em;
}

.tel-line a {
  color: var(--maroon);
  text-decoration: none;
}

.tel-line a:hover {
  color: var(--maroon-soft);
  text-decoration: underline;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.map-placeholder {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border: 1px dashed var(--gold-deep);
  background: var(--ivory-2);
  color: var(--placeholder-ink);
}

.map-placeholder p {
  margin: 0;
  max-width: 22rem;
}

.map-placeholder a.btn {
  background: var(--maroon);
  color: var(--ivory);
  border-color: var(--maroon);
}

.map-placeholder a.btn:hover {
  background: var(--maroon-soft);
  color: var(--ivory);
}

/* ------ Placeholders ------ */

.placeholder {
  display: inline-block;
  padding: 0.05em 0.4em;
  border: 1px dashed var(--gold-deep);
  background: var(--placeholder-bg);
  color: var(--placeholder-ink);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  white-space: nowrap;
}

/* ------ Sticky mobile CTA ------ */

.sticky-cta {
  display: flex;
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: var(--maroon-deep);
  border-top: 1px solid rgba(196, 161, 90, 0.45);
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
}

.sticky-cta .btn {
  flex: 1;
}

/* ------ Footer ------ */

.site-footer {
  background: var(--maroon-deep);
  color: var(--ivory-2);
  padding: 2rem 0 5.5rem;
  text-align: center;
  border-top: 1px solid rgba(196, 161, 90, 0.4);
}

.site-footer .crest {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-name {
  font-family: var(--font-dev);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ivory);
}

.lang-en .footer-name {
  font-family: var(--font-lat);
}

.footer-meta {
  color: var(--gold-bright);
  font-size: 0.92rem;
}

.footer-domain {
  margin-top: 0.7rem !important;
  font-family: var(--font-lat);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.site-footer a {
  color: var(--gold-bright);
}

/* ------ 404 ------ */

.page-simple {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.page-simple h1 {
  margin: 0 0 0.6rem;
  color: var(--maroon);
  font-family: var(--font-dev);
}

.lang-en .page-simple h1 {
  font-family: var(--font-lat);
}

/* ------ Breakpoints ------ */

@media (min-width: 640px) {
  .header-cta {
    display: flex;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .visit-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
  }

  .hero {
    padding: 3.25rem 0 4rem;
  }

  .sticky-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 2.25rem;
  }
}

@media (max-width: 639px) {
  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
    font-size: 0.9rem;
  }

  body {
    padding-bottom: 0;
  }
}

/* ------ Print ------ */

@media print {
  .site-header,
  .sticky-cta,
  .hero-actions,
  .visit-actions,
  .lang-switch,
  .header-cta,
  .skip {
    display: none !important;
  }

  .lang-hi .en,
  .lang-en .hi,
  .hi,
  .en {
    display: revert !important;
  }

  body,
  .hero,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .hero,
  .card,
  .panel {
    border: 1px solid #ccc;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
