/* The public website (server/site.ts). Plain CSS, separate from the ordering app. */

@font-face {
  font-family: 'Hind';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/hind-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Hind';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/hind-600.woff2') format('woff2');
}
/* The rupee sign lives in a separate small file. */
@font-face {
  font-family: 'Hind';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/hind-rupee-400.woff2') format('woff2');
  unicode-range: U+20B9;
}
@font-face {
  font-family: 'Hind';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/hind-rupee-600.woff2') format('woff2');
  unicode-range: U+20B9;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-condensed-rupee-600.woff2') format('woff2');
  unicode-range: U+20B9;
}

:root {
  --brown: #2a1e17;
  --green: #123a24; /* logo green: the first screen and the Kulhad Club, next to the logo's own colours */
  --gold: #e5b94e;
  --clay: #c8682c;
  --bg: #f5f5f3;
  --surface: #ffffff;
  --muted: #6b6b66;
  --line: #e2e2de;
  --bar-h: 58px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--bar-h); /* the sticky bar shouldn't cover what a link jumps to */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--brown);
  font: 16px/1.55 'Hind', system-ui, sans-serif;
}

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

a {
  color: inherit;
}

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

.hero a:focus-visible,
.site-bar a:focus-visible,
.club a:focus-visible,
.foot a:focus-visible {
  outline-color: var(--gold);
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 20px;
}

.num {
  font-family: 'Barlow Condensed', 'Hind', sans-serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--brown);
}

.btn-dark {
  background: var(--brown);
  color: #ffffff;
}

.btn-ghost {
  border-color: rgb(244 234 210 / 0.55);
  color: #f4ead2;
}

.btn-line {
  border-color: var(--brown);
}

.btn-off {
  background: var(--line);
  color: #4d443d;
}

@media (hover: hover) {
  .btn-gold:hover {
    background: #eec766;
  }

  .btn-dark:hover {
    background: #46342a;
  }

  .btn-ghost:hover {
    background: rgb(255 255 255 / 0.1);
  }

  .btn-line:hover {
    background: var(--surface);
  }
}

/* ---------- first screen: fills the screen, nothing below peeks in ---------- */

.hero {
  display: flex;
  flex-direction: column;
  min-height: max(100vh, 540px);
  min-height: max(100svh, 540px);
  background: var(--green);
  color: #f4ead2;
}

.hero-in {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.6svh, 22px);
  padding-block: clamp(12px, 3svh, 24px) 4px;
  text-align: center;
}

.hero-logo {
  flex: none;
  width: 168px;
  width: clamp(112px, min(52vw, 27svh), 240px);
  border-radius: 50%;
}

.hero-text {
  width: 100%;
}

.hero h1 {
  font-weight: 600;
}

.hero-name {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  color: var(--gold);
}

.hero-line {
  display: block;
  font-size: clamp(30px, 8.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 12px;
  margin-inline: auto;
  max-width: 34ch;
  font-size: 17px;
  line-height: 1.45;
}

.status {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  font-weight: 600;
}

.status .dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #58c98a;
}

.status.closed .dot {
  background: none;
  box-shadow: inset 0 0 0 2px #f4ead2;
}

.offer {
  margin-top: 12px;
  margin-inline: auto;
  padding: 10px 14px;
  max-width: 44ch;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.08);
}

.hero-actions {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-top: 18px;
  margin-inline: auto;
}

.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: var(--gold);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .scroll-hint svg {
    animation: hint 2.6s ease-in-out infinite;
  }

  @keyframes hint {
    0%,
    60%,
    100% {
      transform: translateY(0);
    }
    80% {
      transform: translateY(5px);
    }
  }

  .btn,
  .menu-rows a,
  .row-chevron,
  .leader {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  }
}

/* ---------- slim bar: right after the first screen, then stuck to the top ---------- */

.site-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--green);
  border-bottom: 2px solid var(--gold);
}

.site-bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(var(--bar-h) - 2px);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.site-brand img {
  flex: none;
}

.site-order {
  flex: none;
  min-height: 44px;
  padding: 8px 16px;
}

/* ---------- sections ---------- */

.band {
  padding-top: 44px;
}

.band h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

/* Choorma Special */
.special-band h2 {
  text-align: center;
}

.specials {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.specials li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.specials img,
.photo-blank {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  background: var(--line);
}

.special-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px 12px;
  padding: 14px 16px 16px;
}

.special-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.specials .num {
  font-size: 24px;
  line-height: 1;
}

.special-body .btn {
  grid-column: 1 / -1;
}

/* The menu rows read like the printed menu: name, dotted line, price. */
.menu-rows {
  margin-top: 8px;
}

.menu-rows li {
  border-bottom: 1px solid var(--line);
}

.menu-rows a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline: -10px;
  padding: 12px 6px 12px 10px;
  border-radius: 10px;
  text-decoration: none;
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.row-name {
  font-size: 18px;
  font-weight: 600;
}

.leader {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted #b9b9b2;
  transform: translateY(-4px);
}

.row-price {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.row-price .num {
  font-size: 22px;
  color: var(--brown);
}

.row-items {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.row-chevron {
  flex: none;
  display: flex;
  color: #8d8d86;
}

.menu-rows a:active {
  background: var(--surface);
}

@media (hover: hover) {
  .menu-rows a:hover {
    background: var(--surface);
  }

  .menu-rows a:hover .leader {
    border-bottom-color: var(--brown);
  }

  .menu-rows a:hover .row-chevron {
    color: var(--brown);
    transform: translateX(3px);
  }
}

.menu-cta {
  display: flex;
  max-width: 320px;
  margin: 22px auto 0;
}

/* Kulhad Club: the same card customers see in the app. */
.club {
  display: grid;
  gap: 20px;
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--green);
  color: #f4ead2;
}

.club h2 {
  color: var(--gold);
}

.club-deal {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  color: #ffffff;
}

.club-rule {
  margin-top: 8px;
  font-size: 15px;
  color: #d9ccb0;
}

.club-button {
  display: flex;
  margin-top: 16px;
}

.kulhads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.kulhads li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding-block: 8px 6px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.06);
}

.kulhads svg {
  width: 44px;
  height: 48px;
  overflow: visible;
}

.kulhads .body {
  fill: var(--clay);
  stroke: #a5521f;
  stroke-width: 1.5;
}

.kulhads .rim {
  fill: #d4a64a;
}

.kulhads .steam {
  fill: none;
  stroke: #e8d3a0;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.kulhads li.gift {
  flex-direction: column;
  gap: 2px;
  background: var(--gold);
  color: var(--brown);
  font-size: 14px;
  font-weight: 600;
}

.kulhads li.gift svg {
  width: 26px;
  height: 26px;
}

.ways {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.ways h3 {
  font-size: 18px;
  font-weight: 600;
}

.ways p {
  margin-top: 2px;
  max-width: 52ch;
  color: #4d443d;
}

.find {
  display: grid;
  gap: 20px;
  margin-top: 14px;
}

.hours {
  font-size: clamp(28px, 7.5vw, 38px);
  line-height: 1.1;
}

.hours + p {
  margin-top: 10px;
  color: #4d443d;
}

.address {
  max-width: 40ch;
  font-size: 18px;
}

.find-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- footer ---------- */

.foot {
  margin-top: 56px;
  padding-block: 36px 20px;
  background: var(--brown);
  color: #d9ccb0;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

.foot-brand,
.foot-visit {
  grid-column: 1 / -1;
}

.foot-brand img {
  margin-bottom: 10px;
}

.foot-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.foot-visit > p + a,
.foot-visit > a + p {
  margin-top: 4px;
}

.foot-visit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: #ffffff;
}

.foot-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: #ffffff;
  text-decoration: none;
}

.foot-links a:hover {
  text-decoration: underline;
}

.foot-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  font-size: 14px;
}

/* ---------- contact and policy pages ---------- */

.doc-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.doc-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.doc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.doc-order {
  min-height: 44px;
  padding: 8px 16px;
}

.doc {
  max-width: 720px;
  padding-block: 28px 8px;
}

.doc h1 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
}

.doc h2 {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 600;
}

.doc p,
.doc ul {
  margin-top: 8px;
}

.doc ul {
  padding-left: 20px;
  list-style: disc;
}

.doc li + li {
  margin-top: 6px;
}

.doc a {
  font-weight: 600;
}

.doc-date {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- wider screens ---------- */

@media (min-width: 640px) {
  .specials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .find-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .club-button {
    display: inline-flex;
  }
}

@media (min-width: 860px) {
  .hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 56px;
    padding-block: 40px 4px;
    text-align: left;
  }

  .hero-logo {
    order: 2;
    justify-self: end;
    width: min(100%, 440px);
    width: min(100%, 440px, 62svh);
  }

  .hero-line {
    font-size: clamp(42px, 4.4vw, 60px);
  }

  .hero-sub {
    margin-inline: 0;
    margin-top: 16px;
    font-size: 19px;
  }

  .status {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .offer {
    margin-inline: 0;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    max-width: none;
    margin-top: 26px;
    margin-inline: 0;
  }

  .band {
    padding-top: 64px;
  }

  .band h2 {
    font-size: 28px;
  }

  .menu-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }

  .club {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 40px;
    padding: 36px;
  }

  .ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .find {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .foot {
    margin-top: 80px;
    padding-block: 52px 24px;
  }

  .foot-grid {
    grid-template-columns: 1.25fr 1.5fr 0.8fr 0.8fr;
    gap: 40px;
  }

  .foot-brand,
  .foot-visit {
    grid-column: auto;
  }

  .foot-note {
    margin-top: 40px;
  }
}
