/* ===========================================================
   Kyfesto Cafe — "Golden Hour" design system
   Palette, type and motion per the website blueprint.
   =========================================================== */

:root {
  --espresso: #2B211A;
  --ink: #33291F;
  --clay: #B5683C;
  --clay-dark: #9d5530;
  --cream: #F4EDE2;
  --cream-2: #EADFCE;
  --brass: #B08D3E;
  --sage: #7E8567;
  --grey: #6E6258;
  --white: #fffdf9;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(43, 33, 26, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, iframe { max-width: 100%; }

a { color: var(--clay); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--clay-dark); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--espresso); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: .9rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn--solid { background: var(--clay); color: #fff; box-shadow: 0 10px 26px -12px rgba(181,104,60,.8); }
.btn--solid:hover { background: var(--clay-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(181,104,60,.9); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }

/* ---------- intro ("door opening") ---------- */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(120% 120% at 50% 30%, #3a2c20 0%, #1a130d 80%);
  display: grid; place-items: center;
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}
.intro.is-done { opacity: 0; visibility: hidden; }
.intro__logo {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 4.5rem);
  letter-spacing: .35em;
  color: var(--cream);
  padding-left: .35em;
  opacity: 0;
  transform: translateY(10px);
  animation: introGlow 1.6s var(--ease) forwards .15s;
  text-shadow: 0 0 40px rgba(176,141,62,.5);
}
@keyframes introGlow {
  0% { opacity: 0; transform: translateY(12px); filter: brightness(.4); }
  100% { opacity: 1; transform: translateY(0); filter: brightness(1.05); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: .65rem 0;
}
.nav.is-scrolled {
  background: rgba(244, 237, 226, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -18px rgba(43,33,26,.6);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .04em;
  color: #fff; display: flex; gap: .4em;
}
.nav__brand span { color: var(--brass); }
.nav.is-scrolled .nav__brand { color: var(--espresso); }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-family: var(--sans); font-size: .9rem; font-weight: 500; color: #fff; position: relative;
}
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px;
  background: var(--clay); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--clay); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: .6rem 1.25rem; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: #fff; transition: .3s var(--ease); }
.nav.is-scrolled .nav__burger span { background: var(--espresso); }
.nav__mobile { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -8% 0 0 0; height: 116%;
  background-image: url('https://images.unsplash.com/photo-1453614512568-c4024d13c247?auto=format&fit=crop&w=1800&q=75');
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,19,13,.55) 0%, rgba(26,19,13,.25) 35%, rgba(43,33,26,.78) 100%),
    radial-gradient(80% 60% at 50% 0%, rgba(176,141,62,.35) 0%, transparent 60%);
}
.hero__content { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 7rem 1.4rem 4rem; }
.hero__title {
  color: #fff; font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 500; max-width: 14ch; margin-bottom: 1.3rem;
}
.hero__title em { font-style: italic; color: var(--cream); }
.hero__sub { color: rgba(255,255,255,.9); font-size: clamp(1.02rem, 1.6vw, 1.28rem); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero .eyebrow { color: var(--cream-2); }
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 1.5rem; animation: bob 2.2s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ---------- proof bar ---------- */
.proof {
  background: var(--espresso); color: var(--cream);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding: 2.2rem 1.4rem;
  text-align: center;
}
.proof__item strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: #fff; }
.proof__item span { font-size: .82rem; color: rgba(244,237,226,.75); letter-spacing: .02em; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 6rem 1.4rem; }
.section__head { max-width: 60ch; margin-bottom: 2.6rem; }
.section__head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .8rem; }
.section__lead { color: var(--grey); font-size: 1.06rem; }

/* ---------- menu / cards ---------- */
.menu__cat { font-size: 1.5rem; color: var(--clay); margin: 1.6rem 0 1.2rem; font-style: italic; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -28px rgba(43,33,26,.6); }
.card__img { height: 170px; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.card:hover .card__img { transform: scale(1.06); }
.card__body { padding: 1.1rem 1.2rem 1.4rem; }
.card__body h4 { font-size: 1.15rem; margin-bottom: .4rem; }
.card__body p { font-size: .9rem; color: var(--grey); }
.menu__note { margin-top: 2.4rem; text-align: center; color: var(--grey); font-style: italic; letter-spacing: .02em; }

/* ---------- story ---------- */
.story { padding-top: 2rem; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: center; }
.story__img { height: 480px; border-radius: var(--radius); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.story__text h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 1.2rem; }
.story__text p { color: var(--ink); margin-bottom: 1rem; }
.story__text blockquote {
  margin-top: 1.6rem; padding-left: 1.2rem; border-left: 3px solid var(--clay);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--espresso);
}
.story__text cite { display: block; font-size: .85rem; font-style: normal; color: var(--grey); margin-top: .5rem; }

/* ---------- gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.gallery__tile {
  background-size: cover; background-position: center; border-radius: var(--radius);
  transition: transform .5s var(--ease), filter .5s var(--ease); filter: saturate(.95);
}
.gallery__tile:hover { transform: scale(1.02); filter: saturate(1.1) brightness(1.03); }
.gallery__tile:nth-child(1) { grid-row: span 2; }
.gallery__tile:nth-child(6) { grid-row: span 2; }
.gallery__hint { margin-top: 1.2rem; text-align: center; font-size: .82rem; color: var(--grey); font-style: italic; }

/* ---------- reserve ---------- */
.reserve { padding-top: 2rem; }
.reserve__card {
  background: linear-gradient(160deg, #3a2c20, #221a12);
  color: var(--cream); border-radius: 22px; padding: 3rem;
  display: grid; grid-template-columns: .9fr 1.3fr; gap: 2.6rem; align-items: start;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.reserve__card::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(176,141,62,.28), transparent 65%);
}
.reserve__intro { position: relative; }
.reserve__intro h2 { color: #fff; font-size: 2.2rem; margin-bottom: .8rem; }
.reserve__intro p { color: rgba(244,237,226,.82); }
.reserve__intro .eyebrow { color: var(--brass); }
.reserve__form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .78rem; letter-spacing: .04em; color: rgba(244,237,226,.85); text-transform: uppercase; }
.field label span { text-transform: none; color: rgba(244,237,226,.5); }
.field input, .field select {
  font-family: var(--sans); font-size: .95rem; padding: .7rem .8rem; border-radius: 10px;
  border: 1px solid rgba(244,237,226,.22); background: rgba(255,255,255,.06); color: #fff;
  transition: border .25s var(--ease), background .25s var(--ease);
}
.field input::placeholder { color: rgba(244,237,226,.45); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brass); background: rgba(255,255,255,.1); }
.field select option { color: #111; }
.reserve__submit { grid-column: 1 / -1; margin-top: .4rem; }
.reserve__fallback { grid-column: 1 / -1; font-size: .86rem; color: rgba(244,237,226,.75); text-align: center; }
.reserve__fallback a { color: var(--brass); }

/* ---------- visit ---------- */
.visit__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.6rem; }
.visit__row { padding: 1rem 0; border-bottom: 1px solid var(--cream-2); }
.visit__row:last-child { border-bottom: 0; }
.visit__row h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); font-family: var(--sans); font-weight: 600; margin-bottom: .4rem; }
.visit__row p { color: var(--ink); }
.link { font-weight: 600; }
.visit__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- footer ---------- */
.footer { background: var(--espresso); color: var(--cream); text-align: center; padding: 3.4rem 1.4rem; }
.footer__brand { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .06em; }
.footer__brand span { color: var(--brass); margin-left: .35em; }
.footer__tag { font-style: italic; color: rgba(244,237,226,.8); margin: .6rem 0 1.2rem; font-family: var(--serif); }
.footer__meta { font-size: .85rem; color: rgba(244,237,226,.6); margin-bottom: .8rem; }
.footer__copy { font-size: .78rem; color: rgba(244,237,226,.45); }

/* ---------- mobile action bar ---------- */
.actionbar { display: none; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--espresso); color: var(--cream); padding: .85rem 1.4rem; border-radius: 999px;
  box-shadow: var(--shadow); font-size: .9rem; z-index: 500; transition: transform .5s var(--ease);
  max-width: 90vw; text-align: center;
}
.toast.is-show { transform: translateX(-50%) translateY(0); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .story__grid { grid-template-columns: 1fr; gap: 2rem; }
  .story__img { height: 320px; }
  .reserve__card { grid-template-columns: 1fr; padding: 2.2rem; }
  .visit__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile {
    display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start;
    background: rgba(244,237,226,.98); backdrop-filter: blur(10px);
    padding: 1.2rem 1.6rem 1.8rem; max-height: 0; overflow: hidden;
    transition: max-height .4s var(--ease), padding .4s var(--ease);
  }
  .nav__mobile.is-open { max-height: 360px; }
  .nav__mobile a { color: var(--ink); font-weight: 500; }
  .nav.is-scrolled .nav__brand, .nav__brand { color: var(--espresso); }
  .nav { background: rgba(244,237,226,.92); backdrop-filter: blur(10px); }
  .nav__burger span { background: var(--espresso); }
  .proof { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .section { padding: 4rem 1.2rem; }
  .reserve__form { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery__tile:nth-child(1), .gallery__tile:nth-child(6) { grid-row: span 1; }
  body { padding-bottom: 64px; }
  .actionbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: var(--espresso); box-shadow: 0 -6px 24px -16px rgba(0,0,0,.6);
  }
  .actionbar a {
    color: var(--cream); text-align: center; padding: 1rem .5rem; font-size: .9rem; font-weight: 600;
    border-right: 1px solid rgba(244,237,226,.12);
  }
  .actionbar a:last-child { border-right: 0; }
  .actionbar a:first-child { background: var(--clay); color: #fff; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .intro { display: none; }
}
