/* =========================================================
   MASALA THEORY
   Contemporary culinary-theory / shared-table editorial identity
   HTML5 + CSS3 only
   ========================================================= */

:root {
  --cardamom: #24342b;
  --cream: #f5eedf;
  --charcoal: #1d1c19;
  --chilli: #c9633f;
  --chilli-dark: #a94f31;
  --turmeric: #d5b470;
  --sage: #c8d1c5;
  --warm-white: #fffdf8;
  --wine: #6e2e2a;
  --muted: #746f66;
  --line: rgba(29,28,25,0.14);
  --light-line: rgba(255,255,255,0.18);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  --shell: min(1220px, calc(100% - 64px));
  --section-space: 88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--chilli);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--chilli);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-170%);
  padding: 10px 14px;
  background: var(--charcoal);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,238,223,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
}

.brand {
  display: inline-grid;
  line-height: 0.9;
  text-decoration: none;
}

.brand-main {
  color: var(--cardamom);
  font: 700 1.35rem/0.9 var(--serif);
  letter-spacing: -0.03em;
}

.brand-sub {
  margin-top: 6px;
  color: var(--chilli);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}

.desktop-nav a {
  position: relative;
  color: #5d5a53;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--chilli);
  transition: right 160ms ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.mobile-nav {
  display: none;
}

/* Type / buttons */

.eyebrow {
  margin: 0 0 16px;
  color: var(--chilli);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #edb39c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  font-size: clamp(4.2rem, 7.2vw, 7.2rem);
}

h1 span {
  display: block;
  color: var(--chilli);
  font-style: italic;
}

h2 {
  font-size: clamp(2.55rem, 4.6vw, 4.7rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--chilli);
  color: white;
}

.button-primary:hover {
  background: var(--chilli-dark);
}

.button-outline {
  border-color: var(--charcoal);
  background: transparent;
}

.button-outline:hover {
  background: var(--charcoal);
  color: white;
}

.button-light {
  background: white;
  color: var(--charcoal);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 900;
  text-underline-offset: 5px;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link-light {
  color: white;
}

/* Hero */

.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 12% 8%, rgba(213,180,112,0.22), transparent 30%),
    var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(54px, 7vw, 96px);
  align-items: center;
}

.hero-copy {
  padding: 48px 0;
}

.hero-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.location-line {
  margin: 30px 0 0;
  color: #6b655d;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  padding: 0 0 52px 46px;
}

.hero-main-image {
  height: 610px;
  margin: 0;
  overflow: hidden;
  border-radius: 220px 28px 28px 28px;
  background: var(--sage);
}

.hero-main-image img {
  transition: transform 380ms ease;
}

.hero-main-image:hover img {
  transform: scale(1.02);
}

.theory-note {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 310px;
  display: grid;
  gap: 7px;
  padding: 20px 22px;
  background: var(--cardamom);
  color: white;
  box-shadow: 0 18px 36px rgba(36,52,43,0.14);
}

.note-number {
  color: #e9b399;
  font-size: 0.65rem;
  font-weight: 900;
}

.theory-note small {
  color: var(--turmeric);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.theory-note p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.8rem;
}

/* Story */

.story {
  background: var(--warm-white);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.2fr 1fr;
  gap: 58px;
}

.story-index span {
  display: block;
  color: var(--chilli);
  font-size: 0.8rem;
  font-weight: 900;
}

.story-index small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-copy h2 {
  max-width: 900px;
}

.story-columns {
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 52px;
  margin-left: auto;
}

.story-columns p {
  color: var(--muted);
}

.story-columns .lead {
  color: var(--charcoal);
  font: 400 1.2rem/1.6 var(--serif);
}

/* Menu ledger */

.menu {
  background: var(--cream);
}

.menu-heading {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 40px;
}

.menu-heading > p {
  color: var(--muted);
}

.menu-ledger {
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
}

.menu-ledger article {
  min-height: 138px;
  display: grid;
  grid-template-columns: 64px 1fr 110px;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.menu-number {
  color: var(--chilli);
  font-size: 0.66rem;
  font-weight: 900;
}

.menu-ledger h3 {
  margin-bottom: 7px;
  font: 700 1.8rem/1.1 var(--serif);
}

.menu-ledger p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.menu-mark {
  justify-self: end;
  color: var(--cardamom);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

/* Dining */

.dining {
  background: white;
}

.dining-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 58px;
  align-items: center;
}

.dining-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.dining-principles {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.dining-principles article {
  display: grid;
  grid-template-columns: 44px 110px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.dining-principles article > span {
  color: var(--chilli);
  font-size: 0.65rem;
  font-weight: 900;
}

.dining-principles h3 {
  margin: 0;
  font-family: var(--serif);
}

.dining-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.dining-image {
  height: 610px;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 92% 0, 100% 92%, 8% 100%);
}

/* Signature */

.signature {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  color: white;
}

.signature-image,
.signature-overlay {
  position: absolute;
  inset: 0;
}

.signature-overlay {
  background: linear-gradient(90deg, rgba(29,28,25,0.9) 0%, rgba(29,28,25,0.72) 42%, rgba(29,28,25,0.18) 80%);
}

.signature-copy {
  position: relative;
  z-index: 2;
  padding-block: 100px;
}

.signature-copy h2 {
  max-width: 760px;
}

.signature-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255,255,255,0.72);
}

/* Plant-led */

.plant {
  background: var(--sage);
}

.plant-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 62px;
  align-items: start;
}

.plant-intro > p:not(.eyebrow) {
  color: #586158;
}

.plant-list {
  border-top: 1px solid rgba(36,52,43,0.2);
}

.plant-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(36,52,43,0.2);
}

.plant-list article > span {
  color: var(--wine);
  font-size: 0.65rem;
  font-weight: 900;
}

.plant-list h3 {
  font: 700 1.5rem/1.1 var(--serif);
}

.plant-list p {
  margin: 0;
  color: #586158;
  font-size: 0.84rem;
}

/* Takeaway / groups */

.home-groups {
  background: var(--warm-white);
}

.home-groups-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.service-panel {
  min-height: 660px;
  display: grid;
  overflow: hidden;
}

.service-panel figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.service-panel > div {
  padding: 30px;
}

.service-panel h3 {
  max-width: 500px;
  font: 700 clamp(2rem, 3.3vw, 3.25rem)/1.03 var(--serif);
}

.service-takeaway {
  grid-template-rows: 0.78fr 1.22fr;
  background: var(--wine);
  color: white;
}

.service-takeaway .eyebrow {
  color: #edb39c;
}

.service-takeaway p:not(.eyebrow) {
  color: rgba(255,255,255,0.68);
}

.service-groups {
  grid-template-rows: 1.2fr 0.8fr;
  background: var(--turmeric);
}

.service-groups p {
  color: #52472e;
}

/* Reservation */

.reservation {
  background: var(--cardamom);
  color: white;
}

.reservation-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.reservation .eyebrow {
  color: #edb39c;
}

.reservation h2 {
  color: white;
}

.reservation p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255,255,255,0.64);
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Contact */

.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
  align-items: start;
}

.visit-card {
  min-height: 520px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(rgba(36,52,43,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,52,43,0.08) 1px, transparent 1px),
    var(--sage);
  background-size: 38px 38px;
}

.visit-card address {
  display: grid;
  gap: 5px;
  margin: 26px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--chilli);
  font-style: normal;
}

.visit-card address span {
  color: #5d645e;
}

.visit-card > p:not(.eyebrow) {
  color: #5d645e;
}

.enquiry-card {
  padding: 34px;
  background: white;
  box-shadow: 0 18px 38px rgba(29,28,25,0.07);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(29,28,25,0.22);
  border-radius: 0;
  background: white;
  color: var(--charcoal);
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 11px;
}

.field textarea {
  min-height: 126px;
  padding: 10px 11px;
  resize: vertical;
}

/* Final CTA */

.final-cta {
  padding: 64px 0;
  background: var(--charcoal);
  color: white;
}

.final-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.final-cta h2 {
  color: white;
}

.final-cta p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255,255,255,0.64);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* Footer */

.site-footer {
  padding: 48px 0 24px;
  background: #131712;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1fr;
  gap: 52px;
}

.footer-brand {
  display: grid;
  align-content: start;
}

.footer-brand .brand-main {
  color: white;
}

.footer-brand .brand-sub {
  color: #edb39c;
}

.footer-brand p {
  margin: 20px 0 0;
  color: rgba(255,255,255,0.52);
  font-size: 0.82rem;
}

.footer-nav {
  display: grid;
  gap: 7px;
}

.footer-nav a,
.footer-bottom a {
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-address {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.footer-address strong {
  margin-bottom: 7px;
}

.footer-address span {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--light-line);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.42);
  font-size: 0.7rem;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hidden-targets {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive */

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 42px, 1020px);
  }

  .hero-grid {
    grid-template-columns: 0.86fr 1.14fr;
  }
}

@media (max-width: 920px) {
  :root {
    --shell: calc(100% - 34px);
    --section-space: 74px;
  }

  .desktop-nav {
    display: none;
  }

  .header-row {
    grid-template-columns: 1fr auto;
  }

  .mobile-nav {
    display: block;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-track {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-nav-track::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    flex: 0 0 auto;
    font-size: 0.67rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
  }

  .hero-grid,
  .story-grid,
  .dining-grid,
  .plant-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 10px;
  }

  .hero-visual {
    min-height: 560px;
    padding-left: 0;
  }

  .hero-main-image {
    height: 520px;
  }

  .menu-heading {
    grid-template-columns: 1fr;
  }

  .home-groups-grid {
    grid-template-columns: 1fr;
  }

  .reservation-grid,
  .final-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-address {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid var(--light-line);
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 26px);
    --section-space: 60px;
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .header-row {
    min-height: 72px;
  }

  .header-row .button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.9rem);
  }

  h2 {
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .hero {
    padding-top: 30px;
  }

  .hero-visual {
    min-height: 470px;
    padding-bottom: 0;
  }

  .hero-main-image {
    height: 390px;
    border-radius: 120px 20px 20px 20px;
  }

  .theory-note {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin-top: -1px;
  }

  .story-grid {
    gap: 20px;
  }

  .story-columns,
  .menu-ledger article,
  .dining-principles article {
    grid-template-columns: 1fr;
  }

  .menu-ledger article {
    gap: 8px;
  }

  .menu-mark {
    justify-self: start;
  }

  .dining-image {
    height: 420px;
    clip-path: none;
  }

  .signature {
    min-height: 620px;
  }

  .signature-overlay {
    background: rgba(29,28,25,0.7);
  }

  .plant-list article {
    grid-template-columns: 36px 1fr;
  }

  .service-panel {
    min-height: 0;
  }

  .service-panel figure {
    height: 340px;
  }

  .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .reservation-actions,
  .final-actions {
    align-items: stretch;
  }

  .reservation-actions .button,
  .final-actions .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-address {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  :root {
    --shell: calc(100% - 20px);
  }

  .brand-main {
    font-size: 1.18rem;
  }

  .hero-main-image {
    height: 340px;
  }

  .service-panel > div,
  .enquiry-card,
  .visit-card {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
