/* ==========================================================================
   KIKO Peruvian Restaurant & Pisco Bar — Stylesheet
   Fine-dining palette: deep espresso/charcoal, antique gold, warm parchment,
   with a muted wine accent. Typography: Playfair Display + Montserrat.
   ========================================================================== */

:root {
  --noir:        #171210;
  --charcoal:    #241C17;
  --charcoal-70: rgba(36,28,23,.72);
  --parchment:   #F3ECDE;
  --parchment-2: #E9DEC7;
  --paper:       #FBF8F1;

  --gold:        #B4873B;
  --gold-light:  #D7B978;
  --gold-dark:   #8C6726;
  --wine:        #6E2430;
  --wine-light:  #8C3542;
  --sage:        #6C7A53;

  --shadow-soft: 0 14px 34px rgba(23,18,16,.22);
  --shadow-lift: 0 24px 50px rgba(23,18,16,.32);
  --radius: 10px;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.18; font-weight: 600; }
p { line-height: 1.75; margin: 0 0 1em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.kicker {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--gold-dark);
  margin: 0 0 .7em;
}
.kicker--center { text-align: center; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-sub { color: var(--charcoal-70); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 2em;
  border-radius: 2px;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--gold); color: var(--noir); box-shadow: var(--shadow-soft); border-color: var(--gold); }
.btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: var(--paper); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-sm { padding: .62em 1.3em; font-size: .72rem; }
.btn-lg { padding: 1.1em 2.6em; font-size: .86rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: rgba(23, 18, 16, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { height: 52px; width: auto; transition: height .3s ease; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.site-header.scrolled .brand-logo { height: 42px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) {
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  position: relative;
  padding: 4px 0;
  transition: color .25s ease;
}
.site-header.scrolled .main-nav a:not(.btn) { color: var(--parchment); text-shadow: none; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold-light); transition: width .25s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.is-current::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.social-icon--nav { width: 34px; height: 34px; color: #fff; flex-shrink: 0; }
.social-icon--nav svg { width: 16px; height: 16px; }
.site-header.scrolled .social-icon--nav { color: var(--parchment); }
.social-icon--nav:hover { background: var(--gold); color: var(--noir); border-color: var(--gold); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: none; background: rgba(255,255,255,.12);
  border-radius: 2px; cursor: pointer; z-index: 110;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: #fff; margin: 0 auto; transition: all .25s ease; }
.site-header.scrolled .nav-toggle { background: rgba(255,255,255,.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,10,8,.78) 0%, rgba(20,14,11,.55) 38%, rgba(10,7,6,.88) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff;
  padding: 40px 24px 60px;
}
.hero-logo {
  width: 130px; margin: 0 auto 20px;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.5));
}
.hero-kicker {
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  font-size: .76rem; color: var(--gold-light); margin-bottom: 1em;
}
.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 600;
  font-style: italic;
  text-shadow: 0 6px 30px rgba(0,0,0,.4);
  color: var(--parchment);
}
.hero-subtitle {
  max-width: 560px; margin: 0 auto 2.2em; font-size: 1.05rem;
  color: rgba(243,236,222,.85); font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.floating-img {
  position: absolute;
  border-radius: 4px;
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--paper);
  z-index: 1;
  object-fit: cover;
}
.floating-img--one {
  width: 230px; height: 180px;
  top: 16%; right: 6%;
  transform: rotate(5deg);
  animation: floatY 6s ease-in-out infinite;
}
.floating-img--two {
  width: 230px; height: 180px;
  bottom: 12%; left: 5%;
  transform: rotate(-6deg);
  animation: floatY 7s ease-in-out infinite .8s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
.floating-img--one { --r: 5deg; }
.floating-img--two { --r: -6deg; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 24px; height: 40px; border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px;
  background: var(--gold-light); border-radius: 2px; transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0% { opacity: 1; top: 7px; } 100% { opacity: 0; top: 20px; } }

/* ---------- About ---------- */
.about { padding: 7.5rem 0; background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4.5rem; align-items: center; }
.about-media { position: relative; width: 100%; min-width: 0; }
.about-media-accent {
  position: absolute; width: 100%; height: 100%; top: 22px; left: -22px;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}

.about-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--parchment-2);
}
.about-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
}
.about-slide.is-active { opacity: 1; }
.about-slide img { width: 100%; height: 100%; object-fit: cover; }
.about-slide img.img-missing { opacity: 0; }
.about-slide-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--parchment-2), var(--parchment));
  font-family: var(--font-display); font-style: italic; color: var(--gold-dark);
  opacity: 0;
}
.about-slide img.img-missing ~ .about-slide-fallback { opacity: .8; }
.about-carousel-dots {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; border: 1.3px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.25); padding: 0; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.dot.is-active { background: var(--gold-light); border-color: var(--gold-light); transform: scale(1.2); }
.about-copy h2 { font-size: clamp(2rem, 3vw, 2.7rem); font-style: italic; }
.about-copy p { color: var(--charcoal-70); font-size: 1.02rem; font-weight: 300; }
.about-actions { margin-top: 1.2rem; }

/* ---------- Reserve banner ---------- */
.cta-banner {
  background: linear-gradient(145deg, var(--noir), var(--charcoal) 60%, var(--wine));
  color: var(--parchment);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner-inner { max-width: 520px; margin: 0 auto; }
.cta-icon { font-size: 2.2rem; display: block; margin-bottom: .4em; }
.cta-banner h3 { color: #fff; font-size: 1.9rem; font-style: italic; }
.cta-banner p { color: rgba(243,236,222,.78); font-weight: 300; margin-bottom: 1.6em; }

/* ---------- Menu ---------- */
.menu { padding: 7.5rem 0; background: var(--parchment); }

.menu-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 3rem;
}
.menu-tab {
  font-family: var(--font-body);
  background: transparent;
  border: 1.5px solid var(--parchment-2);
  color: var(--charcoal-70);
  padding: .65em 1.4em;
  border-radius: 2px;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.menu-tab:hover { border-color: var(--gold); color: var(--charcoal); }
.menu-tab.is-active { background: var(--charcoal); border-color: var(--charcoal); color: var(--parchment); }

.menu-panel { display: none; max-width: 760px; margin: 0 auto; animation: fadeIn .35s ease; }
.menu-panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.menu-panel-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-dark);
  text-align: center;
  margin: 0 0 1.8rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--parchment-2);
}
.menu-panel-note--second { margin-top: 3rem; }
.menu-panel-note--highlight {
  background: var(--wine); color: #fff; font-style: normal; font-weight: 600;
  letter-spacing: .04em; border: none; border-radius: 2px; padding: .7rem 1rem;
  font-family: var(--font-body); font-size: .85rem; text-transform: uppercase;
}

.menu-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.menu-list--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.menu-item { margin-bottom: 1.6rem; }
.menu-item-row { display: flex; align-items: baseline; gap: .5em; }
.menu-item-row h4 {
  font-size: 1.12rem; margin: 0; white-space: nowrap; font-weight: 600;
}
.menu-item-sub {
  font-family: var(--font-body); font-weight: 400; font-style: italic;
  font-size: .82rem; color: var(--charcoal-70); white-space: nowrap;
}
.leader {
  flex: 1; border-bottom: 1.5px dotted var(--parchment-2); margin: 0 0 .35em;
  min-width: 20px;
}
.price {
  font-weight: 600; color: var(--gold-dark); font-family: var(--font-body);
  font-size: .95rem; white-space: nowrap;
}
.menu-item p { font-size: .9rem; color: var(--charcoal-70); margin: .3em 0 0; font-weight: 300; }
.tag { color: var(--wine); font-size: .7em; }

.menu-legend {
  text-align: center; font-size: .78rem; color: var(--charcoal-70);
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--parchment-2);
  font-weight: 300;
}

/* ---------- Visit ---------- */
.visit { padding: 7.5rem 0; background: var(--paper); }
.visit-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: stretch; }
.visit-info { display: flex; flex-direction: column; justify-content: center; }
.visit-info h3 { font-size: 1.6rem; font-style: italic; }
.visit-info p { color: var(--charcoal-70); font-weight: 300; }
.visit-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: .6rem 0 1rem; }
.visit-note { font-size: .82rem; color: var(--charcoal-70); opacity: .8; }
.visit-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); min-height: 320px; filter: grayscale(.25) contrast(1.05); }
.visit-grid { grid-template-columns: .85fr .9fr 1.1fr; } /* was .85fr 1.15fr — makes room for the review card */

.visit-reviews {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.5rem; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 1rem;
}
.reviews-head { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.reviews-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 3px; }
.reviews-score { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal-70); }
.reviews-carousel { position: relative; min-height: 120px; width: 100%; }
.review-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: flex; flex-direction: column; justify-content: center; gap: .55rem; }
.review-slide.is-active { opacity: 1; }
.review-quote { font-family: var(--font-display); font-style: italic; font-size: .98rem; color: var(--charcoal); line-height: 1.55; }
.review-author { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.review-dots { display: flex; gap: 8px; }
.review-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.3px solid var(--gold); background: transparent; padding: 0; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.review-dot.is-active { background: var(--gold); transform: scale(1.2); }
.reviews-link { font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--wine); border-bottom: 1px solid var(--wine); padding-bottom: 1px; }
.reviews-link:hover { color: var(--gold-dark); border-color: var(--gold-dark); }
/* ---------- Contact ---------- */
.contact {
  padding: 7.5rem 0; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--wine), var(--charcoal) 70%);
  color: var(--parchment);
}
.contact-mark { width: 80px; margin: 0 auto 1.2rem; opacity: .92; }
.contact .kicker { color: var(--gold-light); }
.contact h2 { color: #fff; font-size: clamp(2rem, 3vw, 2.7rem); font-style: italic; }
.contact-email { font-size: 1.2rem; margin-bottom: 1.6rem; font-weight: 300; }
.contact-email a { border-bottom: 1px solid rgba(255,255,255,.5); }
.contact-socials { margin-bottom: 2rem; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1.3px solid currentColor;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { transform: translateY(-3px); }
.contact .social-icon:hover { background: var(--gold); color: var(--noir); border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--noir); color: var(--parchment-2); padding: 3.5rem 0 2rem; text-align: center; }
.footer-logo { height: 56px; margin: 0 auto 1.4rem; opacity: .92; }
.footer-nav { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.footer-nav a { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; opacity: .78; }
.footer-nav a:hover { opacity: 1; color: var(--gold-light); }
.footer-socials { margin-bottom: 1.4rem; }
.footer-socials .social-icon { color: var(--parchment-2); }
.footer-socials .social-icon:hover { background: var(--gold); color: var(--noir); border-color: var(--gold); }
.footer-fine { font-size: .83rem; opacity: .68; margin-bottom: .4rem; font-weight: 300; }
.footer-fine a { text-decoration: underline; }
.footer-copy { font-size: .75rem; opacity: .45; margin: 0; font-weight: 300; }

/* ---------- Page header (gallery) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--noir), var(--charcoal) 70%);
  color: var(--parchment);
  padding: 9rem 0 4rem;
  text-align: center;
}
.page-header h1 { color: #fff; font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-style: italic; }
.page-header-inner .section-sub { color: rgba(243,236,222,.75); }

/* ---------- Gallery ---------- */
.gallery-section { padding: 5rem 0 6rem; background: var(--paper); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 3rem; }
.gallery-filter {
  font-family: var(--font-body);
  background: transparent;
  border: 1.5px solid var(--parchment-2);
  color: var(--charcoal-70);
  padding: .6em 1.4em;
  border-radius: 2px;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.gallery-filter:hover { border-color: var(--gold); color: var(--charcoal); }
.gallery-filter.is-active { background: var(--charcoal); border-color: var(--charcoal); color: var(--parchment); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--parchment-2), var(--parchment));
  box-shadow: var(--shadow-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s ease; }
.gallery-item:hover img:not(.img-missing) { transform: scale(1.05); }
.gallery-item img.img-missing { opacity: 0; }
.gallery-item figcaption {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; color: var(--gold-dark);
  font-size: 1rem; opacity: 0; pointer-events: none;
}
.gallery-item img.img-missing ~ figcaption { opacity: .7; }
.gallery-item.is-hidden { display: none; }

.gallery-hint {
  text-align: center; font-size: .85rem; color: var(--charcoal-70);
  margin-top: 2.5rem; font-weight: 300;
}
.gallery-hint code {
  background: var(--parchment-2); padding: .15em .45em; border-radius: 3px; font-size: .88em;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: 0; right: -100%; width: min(320px, 82vw); height: 100vh;
    background: var(--noir); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 40px; gap: 24px; transition: right .35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .main-nav.open { right: 0; }
  .main-nav a:not(.btn) { color: var(--parchment); text-shadow: none; font-size: .95rem; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-left: 0; margin-top: 10px; width: 100%; }
  .nav-toggle { display: flex; }
  .floating-img--one { width: 150px; height: 115px; top: 9%; right: 3%; bottom: auto; }
  .floating-img--two { width: 140px; height: 108px; top: 9%; left: 3%; bottom: auto; }
  .menu-list--grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero { padding-top: 84px; }
  .hero-content { padding-top: 10px; }
  .hero-logo { width: 100px; margin-bottom: 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .floating-img--one { width: 104px; height: 82px; top: 8%; right: 3%; bottom: auto; animation: none; }
  .floating-img--two { width: 104px; height: 82px; top: 8%; left: 3%; bottom: auto; animation: none; }
  .visit-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .menu-item-row { flex-wrap: wrap; }
  .leader { display: none; }
  .menu-tabs, .gallery-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}

@media (max-width: 380px) {
  .floating-img { display: none; }
}
