/* =========================================================
   Grazing Harts — Gastro Pub, Micklebring
   Modern, warm, inviting one-page site
   ========================================================= */

:root {
  --forest:   #1f2a23;   /* deep green-charcoal */
  --forest-2: #2c3a30;
  --cream:    #f6f1e7;   /* warm paper */
  --cream-2:  #efe7d6;
  --gold:     #c79a3e;   /* brass accent */
  --gold-dk:  #a87f2c;
  --wine:     #6e2a2a;
  --ink:      #232019;   /* near-black text */
  --muted:    #6f6a5f;
  --white:    #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Segoe UI", system-ui, sans-serif;
  /* Papyrus first (per brand preference); graceful fallback to the site serif
     instead of Comic Sans on devices without Papyrus. */
  --font-logo: "Papyrus", "Cormorant Garamond", Georgia, serif;

  --maxw: 1180px;
  --radius: 6px;
  --shadow: 0 18px 40px -18px rgba(0,0,0,.35);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.3);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: .3px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; }
p { font-size: 1.05rem; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Shared layout ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 1.5rem; }
.section__head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__intro { color: var(--muted); margin-top: 1rem; font-size: 1.12rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold-dk);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  padding: .95rem 1.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--forest); box-shadow: 0 8px 20px -8px rgba(199,154,62,.6); }
.btn--gold:hover { background: var(--gold-dk); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--ghost-light { border-color: var(--gold); color: var(--gold-dk); }
.btn--ghost-light:hover { background: var(--gold); color: var(--forest); }
.btn--block { display: block; text-align: center; width: 100%; }

/* ---------- Image placeholder system ---------- */
/* While a real photo is missing, show a tasteful labelled slot */
.img-slot { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%); }
.img-slot.missing img { display: none; }
.img-slot.missing::before {
  content: "📷";
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; opacity: .25; transform: translateY(-14px);
}
.img-slot.missing::after {
  content: attr(data-ph);
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 1rem 1.4rem; text-align: center;
  color: rgba(246,241,231,.75); font-size: .82rem; letter-spacing: .04em;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: .4rem 0;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .6rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav.scrolled { background: var(--forest); box-shadow: 0 4px 24px -8px rgba(0,0,0,.5); }

.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand__mark {
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  border: 1.5px solid var(--gold); color: var(--gold); border-radius: 50%;
}
.brand__logo {
  width: 34px; height: 52px; flex: 0 0 34px;
  display: block; color: var(--gold);
  transition: color .2s ease;
}
.brand:hover .brand__logo { color: #e3bd63; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { display: block; line-height: 0; }
/* Papyrus wordmark outlined to SVG — identical for every visitor, no font needed */
.brand__wordmark { display: block; height: 27px; width: auto; aspect-ratio: 632.75 / 121.53; }
.brand__wordmark--footer { height: 30px; }
.brand__sub { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--gold); }
.nav__cta { color: var(--forest) !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg.missing { background: linear-gradient(135deg, #1b241d, #38473b); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,20,16,.92) 0%, rgba(15,20,16,.5) 45%, rgba(15,20,16,.55) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 7rem 1.5rem 5rem; width: 100%; }
.hero__content h1 { margin: .3rem 0 1.4rem; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero__lead { max-width: 580px; font-size: 1.2rem; color: rgba(255,255,255,.9); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero__scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2;
  color: #fff; font-size: 1.5rem; animation: bob 1.8s ease-in-out infinite; opacity: .8;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__media { position: relative; height: 520px; }
.about__img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__img--1 { width: 72%; height: 70%; top: 0; left: 0; z-index: 1; }
.about__img--2 { width: 58%; height: 56%; bottom: 0; right: 0; z-index: 2; border: 6px solid var(--cream); }
.about__text h2 { margin: .4rem 0 1.3rem; }
.about__text p { color: #46423a; margin-bottom: 1.1rem; }
.about__points { list-style: none; margin-top: 1.6rem; display: grid; gap: .7rem; }
.about__points li { position: relative; padding-left: 1.8rem; color: var(--ink); font-weight: 400; }
.about__points li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-dk); }

/* ---------- Features ---------- */
.features { background: var(--forest); color: var(--cream); padding: clamp(3rem,6vw,4.5rem) 1.5rem; }
.features__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.feature { text-align: center; }
.feature__icon { display: block; margin-bottom: .8rem; color: var(--gold); line-height: 0; }
.feature__icon svg { width: 44px; height: 44px; }
.feature h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: .35rem; }
.feature p { font-size: .95rem; color: rgba(246,241,231,.75); }

/* ---------- Food gallery ---------- */
.food { background: var(--cream-2); }
.gallery {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  grid-auto-rows: 230px;
}
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery__item .img-slot { position: absolute; inset: 0; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 2.4rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(15,20,16,.9), transparent);
  color: #fff; font-size: .9rem; line-height: 1.4;
  display: flex; flex-direction: column;
}
.gallery__item figcaption strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }

/* ---------- Menus ---------- */
.menus { background: var(--cream); }
.menu-cards { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.menu-card {
  background: var(--white); border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius);
  padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex; flex-direction: column; align-items: center;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.menu-card__icon { font-size: 2.2rem; margin-bottom: .8rem; }
.menu-card h3 { margin-bottom: .5rem; }
.menu-card p { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; flex: 1; }
.menu-card__link { color: var(--gold-dk); font-weight: 500; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Reviews ---------- */
.reviews { background: var(--forest); color: var(--cream); }
.reviews .section__head h2 { color: var(--cream); }
.reviews__stars { color: var(--gold); font-size: 1.5rem; letter-spacing: 3px; margin-top: 1rem; }
.reviews__stars span { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,241,231,.7); margin-top: .4rem; }
.reviews__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.review {
  background: rgba(255,255,255,.05); border: 1px solid rgba(199,154,62,.25);
  border-radius: var(--radius); padding: 2rem 1.8rem; position: relative;
}
.review::before { content: "\201C"; font-family: var(--serif); font-size: 4rem; color: var(--gold); opacity: .4; position: absolute; top: .2rem; left: 1rem; line-height: 1; }
.review p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.4; margin-bottom: 1rem; padding-top: 1rem; }
.review cite { font-family: var(--sans); font-style: normal; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.reviews__cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Events ---------- */
.events { background: var(--cream-2); }
.events__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.events__text h2 { margin: .4rem 0 1.2rem; }
.events__text > p { color: #46423a; margin-bottom: 1.5rem; }
.events__list { list-style: none; display: grid; gap: 1rem; margin-bottom: 2rem; }
.events__list li { padding-left: 1.6rem; position: relative; color: #46423a; }
.events__list li::before { content: "›"; position: absolute; left: 0; color: var(--gold-dk); font-size: 1.3rem; line-height: 1.2; }
.events__list strong { color: var(--ink); }
.events__img { height: 460px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Visit ---------- */
.visit { background: var(--cream-2); }
.visit__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: stretch; }
.visit__info { display: flex; flex-direction: column; gap: 1.8rem; }
.visit__block h3 { color: var(--gold-dk); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.visit__block p { color: #46423a; }
.visit__block a { color: var(--wine); font-weight: 400; border-bottom: 1px solid transparent; transition: border-color .2s; }
.visit__block a:hover { border-color: var(--wine); }
.visit__social { display: flex; gap: 1.2rem; margin-top: .8rem; }
.visit__social a { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dk); }
.hours { width: 100%; max-width: 340px; border-collapse: collapse; }
.hours td { padding: .35rem 0; font-size: .98rem; color: #46423a; border-bottom: 1px dashed rgba(0,0,0,.12); }
.hours td:last-child { text-align: right; font-weight: 400; color: var(--ink); }
.visit__note { font-size: .82rem; color: var(--muted); margin-top: .6rem; font-style: italic; }
.visit__map { min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--forest); color: var(--cream); padding: 3rem 1.5rem 2rem; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.brand__logo--footer { width: 42px; height: 64px; flex: 0 0 42px; color: var(--gold); }
.footer__brand strong { font-family: var(--font-logo); font-size: 1.4rem; font-weight: 400; display: block; }
.footer__brand span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.footer__links a { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,241,231,.8); transition: color .2s; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { font-size: .78rem; color: rgba(246,241,231,.6); text-align: right; line-height: 1.7; }

/* ---------- Floating mobile book button ---------- */
.book-fab {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 90;
  background: var(--gold); color: var(--forest);
  padding: .85rem 2rem; border-radius: 50px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; font-size: .82rem;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.5); display: none;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about__grid, .events__grid, .visit__grid { grid-template-columns: 1fr; }
  .about__media { height: 420px; width: 100%; max-width: 460px; margin: 0 auto; }
  .events__img { height: 320px; order: -1; }
  .features__inner { grid-template-columns: repeat(2, 1fr); }
  .menu-cards { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__copy { text-align: center; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80%, 320px);
    background: var(--forest); flex-direction: column; justify-content: center;
    gap: 1.6rem; padding: 2rem; transform: translateX(100%); transition: transform .35s ease;
    box-shadow: -10px 0 40px -10px rgba(0,0,0,.6);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1rem; }
  .nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 300px; max-width: 460px; margin-left: auto; margin-right: auto; }
  .gallery__item--wide { grid-column: span 1; }
  .gallery__item--tall { grid-row: span 1; }
  .features__inner { grid-template-columns: 1fr; }
  .menu-cards { grid-template-columns: 1fr; max-width: 360px; }
  .hero__lead { font-size: 1.05rem; }
  .book-fab { display: block; }
  .nav__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}

/* ---------- On-page menu (HTML, SEO-friendly) ---------- */
.food-menu { background: var(--cream-2); }
.menu-cols { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; align-items: start; }
.menu-group { margin-bottom: .5rem; }
.menu-group__t { font-family: var(--serif); font-size: 1.7rem; color: var(--forest); display: flex; align-items: baseline; gap: .7rem; border-bottom: 1px solid rgba(199,154,62,.5); padding-bottom: .5rem; margin-bottom: 1rem; }
.menu-group__t span { font-family: var(--sans); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dk); }
.dish { margin-bottom: 1rem; }
.dish__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dish__name { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--ink); }
.dish__name .vt { font-family: var(--sans); font-size: .6rem; letter-spacing: .06em; color: var(--gold-dk); margin-left: .35rem; vertical-align: middle; }
.dish__price { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--gold-dk); white-space: nowrap; }
.dish__desc { font-size: .92rem; color: var(--muted); margin-top: .12rem; max-width: 96%; }
.dish--inline .dish__desc { color: #46423a; }
.food-menu__note { text-align: center; color: var(--muted); margin-top: 2.5rem; font-size: .98rem; }
.food-menu__note a { color: var(--gold-dk); border-bottom: 1px solid var(--gold); }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq__list { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid rgba(0,0,0,.12); }
.faq__item summary { font-family: var(--serif); font-size: 1.3rem; color: var(--forest); cursor: pointer; padding: 1.15rem 2.2rem 1.15rem 0; position: relative; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: .2rem; top: 1.1rem; color: var(--gold-dk); font-size: 1.6rem; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__a { color: #46423a; padding: 0 0 1.3rem; font-size: 1.02rem; line-height: 1.7; max-width: 92%; }
.faq__a a { color: var(--wine); border-bottom: 1px solid transparent; }
.faq__a a:hover { border-color: var(--wine); }

@media (max-width: 760px) {
  .menu-cols { grid-template-columns: 1fr; gap: 1.8rem; }
}
