/*
 * Saba Palace — hand-written additions on top of the Webflow export.
 * Kept in its own file so a fresh Webflow export does not overwrite it.
 *
 * Palette taken from the logo (bronze + maroon) and the printed menu (cream paper).
 * Contrast on cream: ink 14.1, ink-soft 7.5, maroon 7.9, maroon-deep 11.6, bronze 4.7.
 */

:root {
  --sp-cream: #f5eee0;
  --sp-cream-deep: #ebe0c8;
  --sp-ink: #2b1d14;
  --sp-ink-soft: #5b4838;
  --sp-maroon: #8a1c3c;
  --sp-maroon-deep: #5c1227;
  --sp-bronze: #8d620a;
  --sp-bronze-dark: #74500a;
  --sp-bronze-light: #d9b56b;
  --sp-rule: rgba(141, 98, 10, .28);

  --sp-font-display: "Amiri", "Amiri Fallback", "Times New Roman", serif;
  --sp-font-body: "Alegreya Sans", "Alegreya Sans Fallback", Arial, sans-serif;
}

/* ---------- Fonts (self-hosted, SIL Open Font License, from @fontsource 5.2.8) ---------- */

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/amiri-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Only downloads when a page shows Arabic text. */
@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/amiri-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-sans-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/alegreya-sans-latin-700.woff2") format("woff2");
}

/* Metric-matched fallbacks (measured in the browser) so text does not jump when the fonts arrive. */
@font-face {
  font-family: "Amiri Fallback";
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Times New Roman");
  font-weight: 700;
  size-adjust: 101.5%;
  ascent-override: 110%;
  descent-override: 62%;
}

@font-face {
  font-family: "Alegreya Sans Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 85.3%;
  ascent-override: 105%;
  descent-override: 35%;
}

/* ---------- Type system ----------
 * display  Amiri 700         h1, h2, h3, dish names, testimonial
 * body     Alegreya Sans 400 17px / 1.55, 65ch measure
 * label    Alegreya Sans 700 nav, buttons, prices, captions
 */

body {
  font-family: var(--sp-font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}

p {
  text-wrap: pretty;
}

h1, h2, h3,
.heading-style-h1,
.heading-style-h2,
.heading-style-h3,
.sp-dish-name {
  font-family: var(--sp-font-display);
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

.heading-style-h1 {
  font-size: 4rem;
  line-height: 1.05;
}

.heading-style-h2 {
  font-size: 2.75rem;
  line-height: 1.1;
}

.heading-style-h3 {
  font-size: 1.75rem;
  line-height: 1.2;
}

.text-size-regular {
  font-size: 1.125rem;
  line-height: 1.55;
}

.sp-hero .text-size-regular {
  font-size: 1.25rem;
  line-height: 1.5;
}

.text-size-large {
  font-size: 1.25rem;
  line-height: 1.4;
}

/* Prices and phone numbers: lining, even-width digits. */
.sp-dish-price,
.link-style {
  font-variant-numeric: lining-nums tabular-nums;
}

.nav-link-2,
.nav-link-2.w--current {
  font-size: 1.125rem;
  letter-spacing: 0;
}

.button {
  font-family: var(--sp-font-body);
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 700;
  letter-spacing: .01em;
}

/* Was 12px uppercase with 2px tracking: too small to read at a glance. */
.button-primary-2 {
  font-family: var(--sp-font-body);
  font-size: 1rem;
  line-height: 1.25rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  padding: .625rem 1.25rem;
}

/* About: long story text kept to a readable measure. */
.sp-story {
  max-width: 27em;
  font-size: 1.1875rem;
  line-height: 1.6;
}

/* About: the guest quote was a 32px heading squeezed into a narrow column. */
.testimonial-text {
  font-size: 1.5rem;
  line-height: 1.35;
  text-wrap: pretty;
}

/* ---------- Palette applied to the Webflow classes ---------- */

body {
  background-color: var(--sp-cream);
  color: var(--sp-ink);
}

::selection {
  background-color: var(--sp-maroon);
  color: var(--sp-cream);
}

.heading-style-h1,
.heading-style-h2,
.heading-style-h3,
.testimonial-content {
  color: var(--sp-maroon-deep);
}

.text-size-regular,
.link-style,
.link-style:hover {
  color: var(--sp-ink-soft);
}

.section-hero,
.section-testimonials,
.section-testimonials.padding-section-medium,
.section-featured.padding-section-medium {
  background-color: var(--sp-cream);
}

/* Main action: maroon at every width (Webflow switched it to tan below 479px). */
.button {
  color: var(--sp-cream);
  background-color: var(--sp-maroon);
  border-color: var(--sp-maroon);
}

.button:hover {
  color: var(--sp-cream);
  background-color: var(--sp-maroon-deep);
  border-color: var(--sp-maroon-deep);
}

/* Second action (nav "Order on WhatsApp"): bronze from the logo. */
.button-primary-2 {
  background-color: var(--sp-bronze);
}

.button-primary-2:hover {
  background-color: var(--sp-bronze-dark);
}

.button-primary-2:active {
  background-color: var(--sp-maroon-deep);
}

.button:focus-visible,
.button-primary-2:focus-visible,
.nav-link-2:focus-visible,
.nav-link-2[data-wf-focus-visible],
.link-style:focus-visible {
  outline: 2px solid var(--sp-maroon);
  outline-offset: 3px;
  color: inherit;
}

.nav-link-2:hover {
  text-decoration-color: var(--sp-bronze);
}

.menu-button-2.w--open {
  background-color: var(--sp-bronze);
}

.menu-button-2.w--open .icon {
  color: var(--sp-cream);
}

/* Current page: a bronze underline, same mark as the hover state. */
.nav-link-2.w--current {
  text-decoration: underline;
  text-decoration-color: var(--sp-bronze);
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

/* Header sits on the page cream at every width (transparent logo, no white band). */
.navbar-no-shadow-2 {
  background-color: var(--sp-cream);
}

@media screen and (max-width: 991px) {
  .nav-menu-2 {
    background-color: var(--sp-cream);
    box-shadow: 0 14px 24px -12px rgba(43, 29, 20, .22);
  }
}

.icon {
  color: var(--sp-bronze);
}

.featured-icon-wrap {
  background-color: var(--sp-bronze);
}

/* Header logo has width/height attributes (no layout shift); keep its proportions when CSS shrinks it. */
.navbar-brand-2 .image {
  height: auto;
}

@media screen and (min-width: 480px) {
  .navbar-brand-2 .image {
    width: 104px;
    max-width: none;
  }
}

/* ---------- Hero: food first ---------- */

/* Two classes, to outrank Webflow's .section-hero.padding-section-medium (12rem / 8.5rem top padding on tablet). */
.section-hero.sp-hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

/* Text only: the dish photos in the next section carry the food. */
.sp-hero-content {
  max-width: 44rem;
}

/* Webflow centres .hero-content and the h1 at 991px and below; keep one left edge with the buttons. */
.sp-hero .hero-content {
  text-align: left;
  align-items: flex-start;
  justify-items: start;
}

.sp-hero .heading-style-h1.text-align-left,
.sp-hero .max-width-medium {
  text-align: left;
}

.sp-hero .heading-style-h1 {
  font-size: 4rem;
  line-height: 1.02;
}

/* ---------- Calls to action ---------- */

.sp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

/* Outline version of the main button, for the second action beside it. */
.button.sp-button-secondary {
  color: var(--sp-maroon);
  background-color: transparent;
  border: 2px solid var(--sp-maroon);
}

.button.sp-button-secondary:hover {
  color: var(--sp-cream);
  background-color: var(--sp-maroon);
  border-color: var(--sp-maroon);
}

.sp-text-link {
  display: block;
  margin-top: .375rem;
  color: var(--sp-maroon);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.sp-text-link:hover {
  color: var(--sp-maroon-deep);
  text-decoration-thickness: 2px;
}

/* ---------- From our kitchen ---------- */

.sp-dishes {
  background-color: var(--sp-maroon-deep);
  color: var(--sp-cream);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.sp-dishes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.sp-dishes .heading-style-h2 {
  color: var(--sp-cream);
  margin: 0;
}

.sp-menu-link {
  color: var(--sp-cream);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.sp-menu-link:hover {
  text-decoration-thickness: 2px;
}

.sp-menu-link:focus-visible {
  outline: 2px solid var(--sp-cream);
  outline-offset: 4px;
  border-radius: 2px;
}

.sp-dish-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-dish {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.sp-dish-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
}

.sp-dish-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(217, 181, 107, .4);
}

.sp-dish-name {
  margin: 0;
  color: var(--sp-cream);
  font-size: 1.625rem;
  line-height: 1.15;
}

.sp-dish-price {
  color: var(--sp-bronze-light);
  font-size: 1.1875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sp-dish-note {
  margin: 0;
  color: #e9dcc6;
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: .005em;
}

/* ---------- Motion ----------
 * One authored moment: dishes are "served" one after another (clip-path uncover
 * from the bottom + a small scale settle), then their names and prices appear.
 * Everything else is static. Hidden start state only exists under .sp-motion,
 * which js/saba-palace.js adds, so content never depends on the script.
 */

:root {
  --sp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-motion .sp-dish-img {
  clip-path: inset(100% 0 0 0 round 5px);
  transform: scale(1.06);
  transition:
    clip-path 640ms var(--sp-ease-out),
    transform 900ms var(--sp-ease-out);
  transition-delay: calc(var(--sp-i, 0) * 80ms);
}

.sp-motion .sp-dish-row,
.sp-motion .sp-dish-note {
  opacity: 0;
  transition: opacity 400ms ease-out;
  transition-delay: calc(var(--sp-i, 0) * 80ms + 260ms);
}

.sp-motion .is-served .sp-dish-img {
  clip-path: inset(0 0 0 0 round 5px);
  transform: none;
}

.sp-motion .is-served .sp-dish-row,
.sp-motion .is-served .sp-dish-note {
  opacity: 1;
}

.sp-dish:nth-child(2) { --sp-i: 1; }
.sp-dish:nth-child(3) { --sp-i: 2; }
.sp-dish:nth-child(4) { --sp-i: 3; }

/* Button feedback: colour on hover, a small press on click. Replaces Webflow's `transition: all`. */
.button,
.button-primary-2 {
  transition:
    background-color 200ms ease-out,
    color 200ms ease-out,
    border-color 200ms ease-out,
    transform 120ms ease-out;
}

.button:active,
.button-primary-2:active {
  transform: scale(.97);
  transition-duration: 80ms;
}

.sp-menu-link,
.sp-text-link {
  transition: text-decoration-thickness 150ms ease-out, color 150ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  /* Keep the arrival, drop the movement: dishes simply fade in. */
  .sp-motion .sp-dish-img {
    clip-path: none;
    transform: none;
    opacity: 0;
    transition: opacity 300ms ease-out;
    transition-delay: 0ms;
  }

  .sp-motion .is-served .sp-dish-img {
    opacity: 1;
  }

  .sp-motion .sp-dish-row,
  .sp-motion .sp-dish-note {
    transition-delay: 0ms;
  }

  .button:active,
  .button-primary-2:active {
    transform: none;
  }
}

/* ---------- Contact ----------
 * Left: what to do (call / WhatsApp), then where and when.
 * Right: the map and the storefront photo, so visitors know what to look for.
 */

.sp-contact {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.sp-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.sp-contact-info .heading-style-h1 {
  margin: 0 0 1rem;
}

.sp-contact-lead {
  max-width: 26em;
  margin: 0 0 1.5rem;
}

.sp-contact-heading {
  margin: 3rem 0 .75rem;
}

.sp-contact-address {
  margin: 0 0 .75rem;
}

.sp-contact-media {
  display: grid;
  gap: 1.5rem;
}

.sp-map {
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--sp-cream-deep);
}

.sp-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sp-storefront {
  margin: 0;
}

.sp-storefront img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 5px;
}

.sp-storefront figcaption {
  margin-top: .5rem;
  text-align: left;
  color: var(--sp-ink-soft);
  font-size: 1rem;
  line-height: 1.4;
}

/* ---------- About ----------
 * Title and story read left to right like the rest of the site; the room
 * photos and the guest quote sit side by side underneath.
 */

.sp-about {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  column-gap: 4rem;
  align-items: start;
}

.sp-about > .testimonial-wrapper {
  grid-column: 1 / -1;
}

.sp-about-head {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.sp-about-head .heading-style-h1 {
  margin: 0;
}

.sp-about .testimonial-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  margin-top: 1rem;
}

.sp-gallery.w-container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.sp-gallery .w-slider {
  height: auto;
  background: transparent;
  border-radius: 5px;
  overflow: hidden;
}

.sp-gallery .w-slider-nav {
  bottom: .75rem;
  height: auto;
  padding-top: 0;
}

.sp-gallery-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sp-about .testimonial-content {
  max-width: none;
  gap: 1.5rem;
}

.sp-about .testimonial-text {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.3;
}

/* ---------- Footer ---------- */

.sp-footer {
  background-color: var(--sp-cream-deep);
  color: var(--sp-ink);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.sp-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

/* Full logo (trimmed, no built-in padding), so no negative margins needed. */
.sp-footer-logo {
  display: block;
  width: 8rem;
  height: auto;
  margin: 0 0 1rem;
}

.sp-footer p {
  margin: 0 0 .5rem;
  color: var(--sp-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.sp-footer-title {
  margin: 0 0 .75rem;
  color: var(--sp-maroon-deep);
  font-size: 1.375rem;
  line-height: 1.2;
}

.sp-footer-link {
  display: block;
  width: fit-content;
  padding: .25rem 0;
  color: var(--sp-maroon);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.sp-footer-link:hover {
  color: var(--sp-maroon-deep);
  text-decoration-thickness: 2px;
}

.sp-footer-link:focus-visible,
.sp-text-link:focus-visible {
  outline: 2px solid var(--sp-maroon);
  outline-offset: 3px;
  border-radius: 2px;
}

.sp-footer .sp-footer-legal {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sp-rule);
  font-size: .9375rem;
}

/* ---------- Breakpoints (match Webflow's) ---------- */

@media screen and (max-width: 991px) {
  .heading-style-h1 {
    font-size: 3.25rem;
  }

  .heading-style-h2 {
    font-size: 2.375rem;
  }

  .sp-hero .heading-style-h1 {
    font-size: 3rem;
  }

  .sp-dish-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .sp-contact-grid,
  .sp-about,
  .sp-about .testimonial-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sp-about .testimonial-text {
    font-size: 1.5rem;
  }

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

  .sp-footer-brand {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 767px) {
  .heading-style-h1 {
    font-size: 2.625rem;
    line-height: 1.08;
  }

  .heading-style-h2 {
    font-size: 2.125rem;
  }

  .heading-style-h3 {
    font-size: 1.5rem;
  }

  .testimonial-text {
    font-size: 1.375rem;
  }

  .sp-story {
    font-size: 1.125rem;
  }

  .sp-hero .text-size-regular {
    font-size: 1.125rem;
  }

  .section-hero.sp-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .sp-hero .heading-style-h1 {
    font-size: 2.5rem;
  }

  .sp-dishes {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .sp-dishes-head {
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 2rem;
  }

  .sp-contact {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .sp-contact-heading {
    margin-top: 2.25rem;
  }

  .sp-footer {
    padding-top: 2.5rem;
  }

  .sp-footer-grid {
    gap: 2rem 1.5rem;
  }
}

@media screen and (max-width: 479px) {
  /* Call and WhatsApp side by side, so both fit in the first screen. */
  .sp-hero .sp-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    width: 100%;
  }

  .sp-hero .sp-hero-actions .button {
    padding: .875rem .5rem;
    font-size: 1rem;
    line-height: 1.25rem;
    text-align: center;
    white-space: nowrap;
  }

  .sp-dish-list {
    gap: 1.25rem;
    row-gap: 2rem;
  }

  .sp-dish-name {
    font-size: 1.375rem;
    line-height: 1.15;
  }

  .sp-dish-row {
    flex-direction: column;
    gap: .125rem;
  }

  .sp-dish-note {
    font-size: 1rem;
    line-height: 1.5;
  }
}
