/* ===========================================================
   Monks Indian Bistro — base
   Tokens, reset, typography, buttons, icons, motion primitives
   =========================================================== */

:root {
  /* colour */
  --charcoal: #171514;
  --charcoal-2: #24201e;
  --burgundy: #641f2d;
  --burgundy-mid: #7a2838;
  --burgundy-deep: #42151f;
  --cream: #f2e8d8;
  --cream-2: #fff9ef;
  --ink: #201b18;
  --muted: #bfb1a0;
  --copper: #b9784a;
  --copper-soft: #d7a984;
  --white: #f7f0e5;
  --line-dark: rgba(255, 255, 255, .09);
  --line-light: rgba(32, 27, 24, .10);

  /* type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --section-pad: clamp(80px, 9vw, 150px);
  --container: min(1240px, calc(100% - 48px));
  --header-h: 78px;

  /* motion */
  --ease: cubic-bezier(.22, .7, .2, 1);
  --fast: 180ms;
  --mid: 320ms;
  --slow: 620ms;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  background: var(--charcoal);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; }

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

/* --- images -------------------------------------------------
   Every photo starts transparent and fades in once decoded, so
   swapping in real photography never causes a hard flash.
------------------------------------------------------------ */
.media {
  opacity: 0;
  transition: opacity var(--slow) var(--ease);
  background: #2a2421;
}
.media.is-loaded { opacity: 1; }

/* --- icons --------------------------------------------------
   Icons are injected from assets/js/icons.js and inherit colour
   and size from their parent (`font-size` controls the box).
------------------------------------------------------------ */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  flex: none;
}
.icon svg { width: 100%; height: 100%; display: block; }

/* --- type ---------------------------------------------------- */
.eyebrow {
  margin: 0 0 18px;
  color: var(--copper-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.eyebrow.dark { color: #8d3f48; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: .87;
  letter-spacing: -.035em;
}
h1 em, h2 em, h3 em { color: #a83a49; font-style: normal; }
.section-cream h2 em { color: var(--burgundy); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap;
}
.text-link .icon { font-size: 15px; transition: transform var(--fast) var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }
.dark-link { color: #6b3139; }

/* --- buttons -------------------------------------------------- */
.button {
  padding: 15px 22px;
  border-radius: 999px;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  transition: transform var(--fast) var(--ease), background var(--fast) linear,
              border-color var(--fast) linear;
}
.button .icon { font-size: 16px; transition: transform var(--fast) var(--ease); }
.button:hover .icon { transform: translateX(4px); }
.button:active { transform: translateY(1px) scale(.99); }

.button-primary { background: var(--burgundy); color: var(--cream); }
.button-primary:hover { background: var(--burgundy-mid); transform: translateY(-2px); }
.button-ghost { border: 1px solid rgba(255, 255, 255, .16); color: var(--white); }
.button-ghost:hover { border-color: rgba(185, 120, 74, .7); background: rgba(255, 255, 255, .04); }

/* --- scroll reveals ------------------------------------------
   One shared transition; `--i` staggers children of a group.
------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--slow) var(--ease),
              transform 760ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .media { opacity: 1; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
