/* ================================
   PESTO - single page restaurant
   Clean, minimal, elegant style
   ================================ */

:root{
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #6a6f77;
  --line: rgba(31,35,40,.18);
  --gold: #c7a85a;
  --shadow: 0 18px 40px rgba(0,0,0,.18);
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.center{ text-align: center; }

/* Top bar */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(255,255,255,.0);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.topbar.is-solid{
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}
.topbar__inner{
  height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Brand */
.brand{
  display: grid;
  gap: 2px;
  line-height: 1;
}
.brand__word{
  font-family: Cinzel, serif;
  letter-spacing: .22em;
  font-weight: 700;
  font-size: 16px;
}
.brand__sub{
  font-family: Cinzel, serif;
  letter-spacing: .35em;
  font-weight: 400;
  font-size: 10px;
  opacity: .75;
  text-transform: uppercase;
}

/* Nav */
.nav{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a{
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 6px;
  opacity: .86;
  position: relative;
}
.nav a::after{
  content:"";
  position:absolute;
  left:6px; right:6px; bottom:6px;
  height:1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover{ opacity: 1; }
.nav a:hover::after{ transform: scaleX(1); }

/* Mobile nav toggle */
.nav-toggle{
  margin-left: auto;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span{
  width: 18px; height: 2px;
  background: var(--text);
  display: block;
  opacity: .85;
}

/* Hero */
.hero{
  position: relative;
  height: 100svh;
  min-height: 680px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity .45s ease;
}
.hero__overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 35%, rgba(0,0,0,.35), rgba(0,0,0,.62));
}
.hero__content{
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding-top: 80px; /* room for topbar */
  padding-bottom: 34px;
}

.hero__meta{
  align-self: start;
  justify-self: center;
  text-align: center;
  font-family: "Marck Script", cursive;
  font-size: 20px;
  color: rgba(255,255,255,.85);
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.hero__meta-line{ margin: 6px 0; }

.hero__center{
  align-self: center;
  justify-self: center;
  text-align: center;
  padding: 0 10px;
}

.logo-lockup__title{
  font-family: Cinzel, serif;
  font-size: clamp(44px, 6vw, 84px);
  letter-spacing: .18em;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.logo-lockup__sub{
  margin-top: -6px;
  font-family: Cinzel, serif;
  letter-spacing: .55em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.hero__headline{
  margin: 22px 0 24px;
  font-family: Cinzel, serif;
  letter-spacing: .14em;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 34px);
  color: var(--gold);
  text-shadow: 0 14px 28px rgba(0,0,0,.45);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 34px;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn--ghost{
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.75);
}

.section .btn--ghost{
  color: var(--text);
  border-color: rgba(31,35,40,.35);
  background: transparent;
}
.section .btn--ghost:hover{
  background: rgba(31,35,40,.04);
}

/* Slider controls */
.hero__controls{
  align-self: end;
  justify-self: center;
  display: grid;
  grid-template-columns: 52px auto 52px;
  align-items: center;
  gap: 18px;
}
.hero__arrow{
  width: 52px;
  height: 52px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  cursor: pointer;
}
.hero__arrow svg{ width: 22px; height: 22px; }
.hero__arrow:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.75);
}

.hero__dots{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.dot{
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.dot.is-active{
  background: var(--gold);
  transform: scaleY(1.4);
}

.hero__scroll{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.9);
  opacity: .85;
}
.hero__scroll svg{ width: 26px; height: 26px; }
.hero__scroll:hover{ opacity: 1; }

/* Sections */
.section{
  padding: 76px 0;
  border-top: 3px solid rgba(31,35,40,.8);
}
.section--tight{
  padding: 64px 0;
}
.section__kicker{
  font-family: Cinzel, serif;
  font-size: 22px;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.lead{
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
}
.section-title{
  text-align: center;
  margin-bottom: 22px;
}
.section-title h2{
  font-family: Cinzel, serif;
  font-weight: 400;
  letter-spacing: .08em;
  margin: 0;
  font-size: 32px;
}
.muted{ color: var(--muted); margin-top: 8px; }

/* Collage */
.collage{
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr 1.25fr;
  align-items: stretch;
}
.collage img{
  border-radius: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.collage__tall{
  grid-row: span 2;
}
@media (max-width: 980px){
  .collage{
    grid-template-columns: 1fr 1fr;
  }
  .collage__tall{
    grid-column: 1 / -1;
    grid-row: auto;
    height: 420px;
  }
}
@media (max-width: 620px){
  .collage{
    grid-template-columns: 1fr;
  }
}

/* Two columns */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.text-block h2{
  font-family: Cinzel, serif;
  letter-spacing: .06em;
  font-weight: 400;
  margin: 0 0 10px;
}
.text-block p{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
@media (max-width: 860px){
  .two-col{ grid-template-columns: 1fr; }
}

/* Specials */
.specials{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.special{
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.special img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform .5s ease;
}
.special__overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0,0,0,.58), rgba(0,0,0,.18));
  color: #fff;
}
.special__price{
  font-family: Cinzel, serif;
  letter-spacing: .08em;
  font-size: 26px;
  margin-bottom: 8px;
}
.special__name{
  font-family: Cinzel, serif;
  letter-spacing: .08em;
  font-size: 18px;
  margin-bottom: 6px;
}
.special__note{
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.special:hover img{ transform: scale(1.12); }
@media (max-width: 860px){
  .specials{ grid-template-columns: 1fr; }
  .special img{ height: 300px; }
}

/* Menu tabs + list */
.menu-tabs{
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 30px;
}
.menu-tab{
  border: 0;
  background: transparent;
  padding: 10px 0;
  cursor: pointer;
  font-family: Cinzel, serif;
  letter-spacing: .1em;
  font-size: 12px;
  opacity: .55;
  text-transform: uppercase;
  position: relative;
}
.menu-tab::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.menu-tab.is-active{
  opacity: .9;
}
.menu-tab.is-active::after{
  transform: scaleX(1);
}

.menu-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 60px;
  margin-top: 6px;
}
.menu-item{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 16px;
  align-content: start;
}
.menu-item__name{
  font-family: Cinzel, serif;
  letter-spacing: .03em;
  font-size: 20px;
  font-weight: 400;
}
.menu-item__price{
  font-family: Cinzel, serif;
  letter-spacing: .03em;
  font-size: 18px;
  opacity: .85;
}
.menu-item__desc{
  grid-column: 1 / -1;
  font-family: "Marck Script", cursive;
  color: rgba(31,35,40,.55);
  font-size: 18px;
  line-height: 1.4;
  margin-top: -2px;
}
@media (max-width: 980px){
  .menu-grid{ grid-template-columns: 1fr; }
}

/* Form */
.form{
  max-width: 520px;
  margin: 0 auto;
}
.form__row{
  margin: 0 0 18px;
}
.form__row--triple{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
.input{
  width: 100%;
  height: 52px;
  border: 1px solid rgba(31,35,40,.16);
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  background: transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus{
  border-color: rgba(199,168,90,.7);
  box-shadow: 0 0 0 4px rgba(199,168,90,.14);
}
.form__msg{
  margin: 14px 0 0;
  color: var(--muted);
  min-height: 1.2em;
}
@media (max-width: 620px){
  .form__row--triple{ grid-template-columns: 1fr; }
}

/* Map */
.map{
  border-top: 3px solid rgba(31,35,40,.8);
}
.map iframe{
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* Footer */
.footer{
  padding: 46px 0 60px;
  border-top: 3px solid rgba(31,35,40,.8);
  position: relative;
}
.footer__line{
  font-family: "Marck Script", cursive;
  font-size: 20px;
  color: rgba(31,35,40,.7);
  margin: 6px 0;
}
.social{
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 18px 0 34px;
}
.social a{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(31,35,40,.55);
  transition: color .2s ease, transform .2s ease;
}
.social a svg{ width: 18px; height: 18px; }
.social a:hover{
  color: rgba(31,35,40,.85);
  transform: translateY(-1px);
}
.footer__copyright{
  color: rgba(31,35,40,.45);
  font-size: 13px;
}

/* To top button */
.to-top{
  position: absolute;
  right: 22px;
  top: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(31,35,40,.18);
  background: rgba(255,255,255,.8);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
}
.to-top:hover{ transform: translateY(-1px); }
.to-top svg{ width: 22px; height: 22px; }

/* Mobile nav */
@media (max-width: 820px){
  .nav-toggle{ display: inline-flex; }
  .nav{
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px;
    display: grid;
    gap: 6px;
    transform: translateY(-120%);
    transition: transform .25s ease;
  }
  .nav.is-open{ transform: translateY(0); }
  .nav a{ padding: 12px 6px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto; }
}
