/* Odissi Kala Kunj
   Palette is taken from the logo: cream ground, dark bark brown, copper. */
:root {
  --cream: #FEF1E1;        /* exact logo background */
  --cream-deep: #F6E2C8;
  --bark: #441F05;         /* logo dancer */
  --bark-soft: #5A3318;
  --copper: #A9672B;       /* logo ring and ornaments */
  --copper-ink: #8A4F1C;   /* copper dark enough for small text on cream */
  --line: rgba(68, 31, 5, 0.18);

  --display: "Gilda Display", "Palatino Linotype", Georgia, serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --odia: "Noto Sans Oriya", "Kalinga", "Nirmala UI", serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--bark);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-ink); text-underline-offset: 0.2em; }
a:hover { color: var(--bark); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.9rem; }
p { margin: 0 0 1.1rem; max-width: 62ch; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--bark); color: var(--cream); padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.6rem var(--gutter);
  background: rgba(254, 241, 225, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--bark);
  font-family: var(--display); font-size: 1.35rem; white-space: nowrap;
}
.brand img { border-radius: 50%; }
.nav { margin-left: auto; display: flex; gap: 1.75rem; }
.nav a { color: var(--bark); text-decoration: none; font-weight: 500; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--copper); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--bark); color: var(--cream);
  font: 700 1rem/1 var(--body);
  padding: 1rem 1.5rem;
  border: 2px solid var(--bark); border-radius: 2px;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--copper-ink); border-color: var(--copper-ink); color: var(--cream); }
.btn-quiet { background: transparent; color: var(--bark); }
.btn-quiet:hover { background: var(--bark); border-color: var(--bark); color: var(--cream); }
.btn-small { padding: 0.65rem 1.1rem; font-size: 0.95rem; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; overflow-x: clip;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.odia {
  font-family: var(--odia); font-weight: 700;
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.25; color: var(--copper);
  margin-bottom: 0.4rem; max-width: none;
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 1.25rem; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; max-width: 34ch; margin-bottom: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.25rem; }

.facts { margin: 0; display: grid; gap: 0.9rem; border-top: 1px solid var(--line); padding-top: 1.25rem; max-width: 34rem; }
.facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; }
.facts dt { font-weight: 700; color: var(--copper-ink); }
.facts dd { margin: 0; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 26rem; }
.hero-logo { position: relative; z-index: 1; width: min(100%, 24rem); border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.curve { position: absolute; z-index: 0; height: 124%; width: auto; left: 86%; top: 50%; transform: translate(-50%, -50%); overflow: visible; }
.curve path {
  fill: none; stroke: var(--copper); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
/* One orchestrated moment: the tribhangi line draws itself once. */
@media (prefers-reduced-motion: no-preference) {
  .curve path { animation: draw 2.6s cubic-bezier(.5, 0, .2, 1) 0.2s both; }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

/* Sections */
.block { padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.block > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.block-tint { background: var(--cream-deep); }
.block-dark { background: var(--bark); color: var(--cream); }
.block-dark a { color: var(--cream); }
.block-head { margin-bottom: 2.5rem; }
.block-head p { font-size: 1.15rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-body h3 { margin-bottom: 1.25rem; }

/* Recital sequence: genuinely ordered, so numbered */
.recital { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.recital li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.recital li:last-child { border-bottom: 1px solid var(--line); }
.recital li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--copper);
}
.recital strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.recital span { grid-column: 2; }

/* Lineage */
.lineage { list-style: none; margin: 0; padding: 0 0 0 1.75rem; border-left: 2px solid var(--copper); display: grid; gap: 1.75rem; }
.lineage li { position: relative; display: grid; }
.lineage li::before {
  content: ""; position: absolute; left: calc(-1.75rem - 7px); top: 0.55rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--cream); border: 2px solid var(--copper);
}
.lineage strong { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.25; }
.lineage span { color: rgba(254, 241, 225, 0.78); }

/* Levels: ruled columns, not boxed cards */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--bark); }
.level { padding: 1.5rem clamp(1rem, 2.5vw, 2rem) 0.5rem 0; }
.level + .level { padding-left: clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.level p { margin-bottom: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--cream); }
.gallery figcaption { font-size: 0.95rem; padding-top: 0.4rem; }
.gallery-empty { grid-column: 1 / -1; padding: 2rem 0; border-top: 1px solid var(--line); }
.gallery-empty p { margin-bottom: 0.5rem; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
address { font-style: normal; margin-bottom: 1.25rem; }
.contact-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 6rem 1fr; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { font-weight: 700; color: var(--copper-ink); }

.enquiry label { display: block; font-weight: 700; margin: 1.1rem 0 0.35rem; }
.enquiry input, .enquiry select, .enquiry textarea {
  width: 100%; font: inherit; color: var(--bark);
  background: #FFF8EE; border: 1.5px solid var(--bark); border-radius: 2px; padding: 0.75rem 0.85rem;
}
.enquiry textarea { resize: vertical; }
.form-note { min-height: 1.5rem; margin: 0.9rem 0; color: var(--copper-ink); font-weight: 500; }
.form-note.is-error { color: #9B1C1C; }

.map-wrap { position: sticky; top: 6rem; }
.map-wrap iframe { width: 100%; height: 28rem; border: 1.5px solid var(--bark); border-radius: 2px; background: var(--cream-deep); }

/* Footer */
.foot {
  background: var(--bark); color: var(--cream);
  display: flex; align-items: center; gap: 1.25rem;
  padding: 2.5rem var(--gutter);
}
.foot img { border-radius: 50%; }
.foot p { margin: 0 0 0.3rem; }
.foot-name { font-family: var(--display); font-size: 1.4rem; }
.foot-small { font-size: 0.9rem; opacity: 0.75; }

/* Small screens */
@media (max-width: 62rem) {
  .hero, .split, .visit-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 22rem; order: -1; }
  .hero-logo { width: min(70%, 18rem); }
  .map-wrap { position: static; }
}
@media (max-width: 46rem) {
  .top { flex-wrap: wrap; gap: 0.4rem 1rem; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 40px; height: 40px; }
  .btn-small { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 1.25rem; overflow-x: auto; padding-bottom: 0.2rem; }
  .levels { grid-template-columns: 1fr; }
  .level + .level { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1rem; }
  .facts div { grid-template-columns: 4.5rem 1fr; }
  .contact-list li { grid-template-columns: 6rem 1fr; }
  .foot { flex-direction: column; text-align: center; }
}
