/* =========================================================
   SHAFFA
   Courtyard table / spice geometry identity
   HTML5 + CSS3 only
   ========================================================= */

:root {
  --eucalyptus: #283a36;
  --eucalyptus-deep: #1c2d29;
  --limestone: #f2eee7;
  --charcoal: #1a201f;
  --pomegranate: #a9473f;
  --pomegranate-dark: #8e3832;
  --saffron: #c99d5d;
  --sage: #b7c7c0;
  --warm-white: #fffdf9;
  --aubergine: #583a46;
  --muted: #6c706d;
  --line: rgba(26,32,31,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: 80px;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--limestone);
  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(--pomegranate);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--pomegranate);
  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);
}

/* Header */

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

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

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

.brand-main {
  color: var(--eucalyptus);
  font: 700 1.34rem/1 var(--serif);
  letter-spacing: -0.035em;
}

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

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

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

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

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

.mobile-nav {
  display: none;
}

/* Type + controls */

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

.eyebrow-light {
  color: #efb0aa;
}

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.045em;
}

h1 {
  max-width: 780px;
  font-size: clamp(4rem, 7.1vw, 7.2rem);
}

h2 {
  font-size: clamp(2.4rem, 4.4vw, 4.5rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  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: 2px;
  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(--pomegranate);
  color: white;
}

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

.button-secondary {
  background: var(--eucalyptus);
  color: white;
}

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

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

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

.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 74px;
  background:
    linear-gradient(rgba(40,58,54,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,58,54,0.035) 1px, transparent 1px),
    var(--limestone);
  background-size: 46px 46px;
}

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

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

.hero-lead {
  max-width: 650px;
  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;
}

.hero-location {
  margin: 30px 0 0;
  color: #676965;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-courtyard {
  position: relative;
  min-height: 620px;
  padding-left: 88px;
}

.hero-main-photo {
  position: absolute;
  inset: 0 0 82px 88px;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 4%, 100% 0, 92% 100%, 6% 94%);
}

.hero-side-photo {
  position: absolute;
  left: 0;
  top: 76px;
  width: 244px;
  height: 294px;
  margin: 0;
  border: 10px solid var(--limestone);
}

.table-code {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(410px, 74%);
  display: grid;
  gap: 7px;
  padding: 20px 22px;
  background: var(--aubergine);
  color: white;
}

.table-kicker {
  color: #efb0aa;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.table-code small {
  color: rgba(255,255,255,0.64);
  line-height: 1.45;
}

/* Story */

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

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

.section-marker span {
  display: block;
  color: var(--pomegranate);
  font-size: 0.8rem;
  font-weight: 900;
}

.section-marker 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: 920px;
}

.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.18rem/1.62 var(--serif);
}

/* Menu + signature */

.menu-signature {
  background: var(--sage);
}

.menu-signature-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 18px;
}

.menu-panel {
  padding: 34px;
  background: white;
  border: 1px solid var(--line);
}

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

.menu-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.menu-list article > span {
  color: var(--pomegranate);
  font-size: 0.64rem;
  font-weight: 900;
}

.menu-kicker {
  margin-bottom: 4px;
  color: var(--eucalyptus);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.menu-list h3 {
  margin-bottom: 5px;
  font-family: var(--serif);
}

.menu-list p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.signature-panel {
  display: grid;
  grid-template-rows: 1.08fr 0.92fr;
  background: var(--aubergine);
  color: white;
}

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

.signature-copy {
  padding: 30px;
}

.signature-copy .eyebrow {
  color: #efb0aa;
}

.signature-copy h3 {
  font: 700 2.3rem/1.03 var(--serif);
}

.signature-copy p {
  color: rgba(255,255,255,0.66);
}

/* Long lunch */

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

.long-lunch-grid {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 64px;
  align-items: start;
}

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

.dining-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dining-principles article {
  min-height: 240px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dining-principles span {
  color: var(--pomegranate);
  font-size: 0.64rem;
  font-weight: 900;
}

.dining-principles h3 {
  margin: 44px 0 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
}

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

.long-lunch-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--eucalyptus);
  font: italic 1.08rem/1.4 var(--serif);
}

/* Food + bar */

.food-bar {
  background: var(--limestone);
}

.food-bar-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
}

.food-feature {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
}

.food-image-grid {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.food-image-grid figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.food-large {
  grid-row: span 2;
}

.food-feature-copy {
  padding: 28px 14px 12px;
}

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

.food-feature-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

.bar-panel {
  padding: 34px;
  background: var(--eucalyptus);
  color: white;
}

.bar-panel .eyebrow {
  color: #efb0aa;
}

.bar-panel > p:not(.eyebrow) {
  color: rgba(255,255,255,0.64);
}

.drink-list {
  margin-top: 26px;
  border-top: 1px solid var(--light-line);
}

.drink-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--light-line);
}

.drink-list article > span {
  color: #efb0aa;
  font-size: 0.64rem;
  font-weight: 900;
}

.drink-list h3 {
  margin-bottom: 5px;
}

.drink-list p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
}

.responsible-note {
  margin: 20px 0 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.74rem;
}

/* Functions + gift */

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

.functions-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.functions-copy {
  padding: 34px;
  background: var(--warm-white);
  border: 1px solid var(--line);
}

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

.event-list {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.event-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.event-list article > span {
  color: var(--pomegranate);
  font-size: 0.64rem;
  font-weight: 900;
}

.event-list h3 {
  margin-bottom: 5px;
  font-family: var(--serif);
}

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

.gift-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(rgba(88,58,70,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,58,70,0.055) 1px, transparent 1px),
    var(--saffron);
  background-size: 42px 42px;
}

.gift-index {
  margin-bottom: auto;
  color: var(--aubergine);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.gift-panel h3 {
  font: 700 2.15rem/1.05 var(--serif);
}

.gift-panel p:not(.eyebrow) {
  color: #55452f;
}

/* Reservation */

.reservation {
  padding: 68px 0;
  background: var(--aubergine);
  color: white;
}

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

.reservation .eyebrow {
  color: #efb0aa;
}

.reservation h2 {
  color: white;
}

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

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

/* Visit + contact */

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

.visit-contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 18px;
}

.visit-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(rgba(40,58,54,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,58,54,0.05) 1px, transparent 1px),
    var(--sage);
  background-size: 40px 40px;
}

.visit-panel address {
  display: grid;
  gap: 5px;
  margin: 22px 0;
  padding-left: 16px;
  border-left: 3px solid var(--pomegranate);
  font-style: normal;
}

.visit-panel address span {
  color: #52605b;
}

.hours {
  margin: 8px 0 22px;
  border-top: 1px solid rgba(40,58,54,0.18);
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(40,58,54,0.18);
}

.hours span {
  color: #52605b;
}

.hours strong {
  text-align: right;
  font-size: 0.85rem;
}

.visit-panel > p:not(.eyebrow) {
  color: #52605b;
}

.contact-card {
  padding: 34px;
  background: white;
  box-shadow: 0 18px 38px rgba(26,32,31,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(26,32,31,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: #111614;
  color: white;
}

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

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

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

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

.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 {
  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 {
  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;
}

/* 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: 68px;
  }

  .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,
  .menu-signature-grid,
  .long-lunch-grid,
  .food-bar-grid,
  .functions-grid,
  .visit-contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .long-lunch-note {
    grid-column: auto;
  }

  .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: 56px;
  }

  .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(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.35rem);
  }

  .hero {
    padding-top: 30px;
  }

  .hero-courtyard {
    min-height: 480px;
    padding-left: 0;
  }

  .hero-main-photo {
    inset: 0 0 100px 0;
    clip-path: none;
  }

  .hero-side-photo {
    left: auto;
    right: 10px;
    top: 20px;
    width: 165px;
    height: 205px;
  }

  .table-code {
    left: 0;
    right: auto;
    width: min(340px, 92%);
  }

  .story-grid {
    gap: 20px;
  }

  .story-columns,
  .dining-principles,
  .concern-grid,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .food-image-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .food-image-grid figure,
  .food-large {
    height: 290px;
    grid-row: auto;
  }

  .hours div {
    flex-direction: column;
    gap: 4px;
  }

  .hours strong {
    text-align: left;
  }

  .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;
  }
}

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

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

  .brand-sub {
    font-size: 0.44rem;
  }

  .hero-courtyard {
    min-height: 440px;
  }

  .hero-side-photo {
    width: 136px;
    height: 170px;
  }

  .table-code {
    width: 94%;
    padding: 16px;
  }

  .menu-panel,
  .signature-copy,
  .bar-panel,
  .functions-copy,
  .gift-panel,
  .visit-panel,
  .contact-card {
    padding: 26px;
  }
}

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

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