/* ============ Papi Restaurant ============ */

:root {
  --green: #1f3a2e;
  --cream: #f6f1e8;
  --navy: #28303f;
  --text: #2a2e2a;
  --accent: #9b6b3f;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-script: 'Allura', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.papi { overflow-x: hidden; }

/* ============ Nav ============ */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px;
  z-index: 50;
  color: #f6f1e8;
  transition: background 320ms ease, color 320ms ease, box-shadow 320ms ease;
}
.nav--scrolled {
  background: var(--cream);
  color: var(--green);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.nav__logo {
  display: grid;
  align-items: center;
  transform: translateY(2px);
}
.nav__logo-img {
  grid-area: 1 / 1;
  display: block;
  height: 40px;
  width: auto;
  transition: opacity 220ms ease;
}
.nav__logo-img--green { opacity: 0; }
.nav--scrolled .nav__logo-img--cream { opacity: 0; }
.nav--scrolled .nav__logo-img--green { opacity: 1; }
.nav__links {
  display: flex; align-items: center; gap: 32px;
  font-size: 14px; letter-spacing: 0.02em;
}
.nav__links a {
  position: relative; padding: 8px 2px;
  opacity: 0.92;
  transition: opacity 200ms ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a:hover { opacity: 1; }
.nav__ig { display: inline-flex; align-items: center; }
.nav__ig::after { display: none; }
.nav__mobile-reserve { display: none; }

.nav__cta {
  background: var(--cream);
  color: var(--green);
  border: none;
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.nav__cta:hover { background: var(--green); color: var(--cream); }
.nav--scrolled .nav__cta {
  background: var(--green); color: var(--cream);
}
.nav--scrolled .nav__cta:hover { background: var(--text); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  z-index: 2;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}
.nav--open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  color: #f6f1e8;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(31,58,46,0.20), rgba(31,58,46,0.10));
}
.hero__title {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  text-align: center;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
  width: min(900px, 90vw);
}
.hero__mobile-cta {
  display: none;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.85;
}
.hero__scroll-line {
  width: 1px; height: 56px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; left: 0; top: -56px; width: 100%; height: 56px;
  background: linear-gradient(180deg, transparent, var(--cream));
  animation: scrollDown 2.4s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(112px); }
}

.hero__addr, .hero__tel {
  position: absolute; bottom: 28px;
  font-size: 13px; letter-spacing: 0.04em;
}
.hero__addr { left: 36px; }
.hero__tel  { right: 36px; }

/* ============ Green Band ============ */

.band {
  background: var(--green);
  color: var(--cream);
  padding: 92px 36px;
  text-align: center;
}
.band p {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  font-weight: 400;
}
.band em {
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ============ Cuisine Section ============ */

.cuisine {
  position: relative;
  background: var(--cream);
  padding: 80px 36px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.cuisine__pasta { grid-column: 1; grid-row: 1; padding-right: 20px; }
.cuisine__pasta img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.cuisine__right { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 36px; padding-top: 80px; }
.cuisine__copy { max-width: 360px; }
.cuisine__copy h2 {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.15;
  margin-bottom: 18px;
}
.cuisine__copy p {
  font-size: 14px;
  color: rgba(42,46,42,0.78);
  margin: 0 0 22px;
  line-height: 1.65;
}
.cuisine__team img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.cuisine__wine {
  grid-column: 1; grid-row: 2;
  margin-top: -40px;
  margin-left: 80px;
  width: 60%;
}
.cuisine__wine img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.link-underline {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color 200ms ease, letter-spacing 200ms ease;
}
.link-underline:hover { color: var(--accent); letter-spacing: 0.22em; }

/* ============ Pasta Full-bleed ============ */

.bleed {
  position: relative;
  width: 100%;
  margin-top: 40px;
}
.bleed__img {
  width: 100%;
  height: clamp(440px, 60vw, 720px);
  object-fit: cover;
  display: block;
}
.bleed__card {
  position: absolute;
  right: clamp(20px, 6vw, 96px);
  bottom: clamp(20px, 6vw, 96px);
  background: var(--green);
  color: var(--cream);
  padding: 44px 44px 40px;
  width: min(420px, 86vw);
}
.bleed__card h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  margin-bottom: 14px;
}
.bleed__card p {
  font-size: 14px;
  opacity: 0.88;
  margin: 0 0 22px;
  line-height: 1.6;
}
.bleed__links { display: flex; flex-direction: column; gap: 10px; }
.link-light {
  font-size: 13px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(246,241,232,0.4);
  padding-bottom: 6px;
  width: max-content;
  transition: border-color 200ms ease;
}
.link-light:hover { border-color: var(--cream); }

/* ============ Reservation block ============ */

.reservation {
  padding: 100px 36px 80px;
  text-align: center;
  background: var(--cream);
}
.reservation h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  margin-bottom: 16px;
}
.reservation__lede {
  font-size: 14px;
  max-width: 540px;
  margin: 0 auto 56px;
  color: rgba(42,46,42,0.7);
}
.reservation__stage {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--navy);
  padding: 80px 40px;
}
.reservation__widget {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 56px 48px;
  margin: 0 auto;
  width: min(520px, 100%);
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
  transition: transform 220ms ease, box-shadow 220ms ease;
  border-radius: 0;
  cursor: pointer;
}
.reservation__widget--ot {
  background: #fff;
  padding: 32px 24px;
  cursor: default;
  width: min(560px, 100%);
  min-height: 560px;
  overflow: hidden;
}
.reservation__widget--ot:hover {
  transform: none;
  box-shadow: none;
}
.reservation__widget--ot > div[id^="ot-widget-container"] {
  width: 288px !important;
  max-width: 100%;
  margin: 0 auto;
}
.reservation__widget--ot iframe {
  display: block;
  margin: 0 auto;
  width: 288px !important;
  max-width: 100%;
  border: 0;
}
.reservation__widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
}
.reservation__widget-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.reservation__widget-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}
.reservation__widget-help {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  text-align: center;
  margin: 0;
  line-height: 1.7;
}
.reservation__fine {
  max-width: 720px;
  margin: 56px auto 0;
  font-size: 12px;
  color: rgba(42,46,42,0.6);
  line-height: 1.8;
  text-align: center;
}

/* ============ Intimiste ============ */

.intimiste {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 36px;
  max-width: 1320px;
  margin: 0 auto;
}
.intimiste__copy {
  padding-left: clamp(20px, 5vw, 80px);
  max-width: 420px;
}
.intimiste__copy h2 {
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1.05;
  margin-bottom: 22px;
}
.intimiste__copy p {
  font-size: 14px;
  color: rgba(42,46,42,0.72);
  line-height: 1.7;
  margin: 0 0 28px;
}
.intimiste__img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ============ Instagram ============ */

.ig {
  position: relative;
  color: var(--cream);
  height: 360px;
  overflow: hidden;
}
.ig__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ig__veil {
  position: absolute; inset: 0;
  background: rgba(20,22,24,0.55);
}
.ig__inner {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  text-align: center;
}
.ig__inner h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0;
}
.ig__handle {
  font-size: 13px;
  letter-spacing: 0.08em;
}
.ig__cta {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-top: 1px solid rgba(246,241,232,0.5);
  border-bottom: 1px solid rgba(246,241,232,0.5);
  padding: 12px 22px;
  transition: background 220ms ease;
}
.ig__cta:hover { background: rgba(246,241,232,0.1); }

/* ============ Footer ============ */

.foot {
  position: relative;
  background: var(--cream);
  padding: 80px 36px 28px;
  color: var(--text);
  border-top: 1px solid rgba(31,58,46,0.08);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto 60px;
}
.foot__brand { display: flex; align-items: flex-start; }
.foot__logo {
  display: block;
  height: 56px;
  width: auto;
}
.foot__col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot__col p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(42,46,42,0.78);
  margin: 0 0 18px;
}
.foot__cta {
  margin-top: 10px;
  background: var(--green);
  color: var(--cream);
  padding: 12px 22px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  transition: background 220ms ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
}
.foot__cta:hover { background: var(--text); }
.foot__bar {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(31,58,46,0.08);
  font-size: 12px;
  color: rgba(42,46,42,0.55);
  max-width: 1280px;
  margin: 0 auto;
}
.foot__bar a:hover { color: var(--green); }
.foot__top {
  position: absolute;
  right: 36px; bottom: 28px;
  background: var(--green);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background 220ms ease, transform 220ms ease;
}
.foot__top:hover { background: var(--text); transform: translateY(-2px); }

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav__logo,
  .nav__toggle {
    position: relative;
    z-index: 2;
  }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--cream);
    color: var(--green);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 96px 28px 40px;
    font-size: clamp(28px, 9vw, 46px);
    font-family: var(--font-display);
    letter-spacing: 0;
    text-align: center;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 280ms ease, opacity 220ms ease;
  }
  .nav--open {
    background: var(--cream);
    color: var(--green);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  }
  .nav--open .nav__logo-img--cream { opacity: 0; }
  .nav--open .nav__logo-img--green { opacity: 1; }
  .nav--open .nav__links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 10px;
    opacity: 1;
    border-bottom: 1px solid rgba(31,58,46,0.1);
  }
  .nav__links a::after { display: none; }
  .nav__ig {
    min-height: 56px;
    border-bottom: 0;
  }
  .nav__ig svg {
    width: 24px;
    height: 24px;
  }
  .nav__mobile-reserve {
    display: flex;
    margin-top: 18px;
    min-height: 54px;
    background: var(--green);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .hero__mobile-cta {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: calc(var(--hero-scroll-offset, 56px) + 118px);
    transform: translateX(-50%);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(360px, calc(100vw - 56px));
    min-height: 54px;
    border: 1px solid currentColor;
    color: var(--cream);
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .hero {
    --hero-scroll-offset: clamp(48px, 8vh, 72px);
  }
  .hero__title {
    top: 48%;
  }
  .hero__scroll {
    bottom: var(--hero-scroll-offset);
  }
  .hero__addr, .hero__tel { font-size: 11px; }
  .hero__addr { left: 20px; }
  .hero__tel  { right: 20px; }
  .cuisine { grid-template-columns: 1fr; padding: 60px 20px; gap: 30px; }
  .cuisine__pasta, .cuisine__right { grid-column: 1; grid-row: auto; padding: 0; }
  .cuisine__right { padding-top: 0; }
  .cuisine__wine { grid-column: 1; grid-row: auto; margin: 0; width: 70%; }
  .intimiste { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px; }
  .intimiste__copy { padding-left: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__bar { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 620px) {
  .reservation {
    padding: 72px 16px 64px;
  }
  .reservation__lede {
    margin-bottom: 36px;
  }
  .reservation__stage {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 28px 10px 44px;
  }
  .reservation__widget--ot {
    width: min(460px, 100%);
    padding: 24px 0;
    min-height: 540px;
  }
}
