/* =========================================================
   Olive Tree Restaurant — Buxton
   Theme: olive green, cream, charcoal
   ========================================================= */

:root {
  --olive-900: #2c3416;
  --olive-800: #3d4a1f;
  --olive-700: #556b2f;
  --olive-600: #6b7f39;
  --olive-500: #8a9a4a;
  --olive-400: #a8b56a;
  --olive-100: #e8ecd5;
  --cream: #f8f5ee;
  --cream-dark: #ede7d6;
  --ink: #1f2410;
  --muted: #6b6f5a;
  --accent: #c8a96a;   /* warm brass accent */
  --white: #ffffff;

  --shadow-sm: 0 2px 6px rgba(44, 52, 22, 0.08);
  --shadow-md: 0 10px 30px rgba(44, 52, 22, 0.14);
  --shadow-lg: 0 24px 60px rgba(44, 52, 22, 0.22);

  --radius: 6px;
  --radius-lg: 14px;
  --max: 1180px;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-script: "Dancing Script", "Brush Script MT", cursive;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--olive-700); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--olive-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--olive-900);
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.3rem, 5vw + 1rem, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--olive-700); }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--olive-900); color: var(--white); padding: .75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Eyebrow / labels */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--olive-700);
  font-weight: 600;
  margin-bottom: .85rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(85, 107, 47, 0.12);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 96px; gap: 1rem;
}
.brand img { height: 68px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.8rem;
}
.primary-nav a {
  font-weight: 500; font-size: .95rem;
  color: var(--olive-900);
  position: relative;
  padding: 4px 0;
}
.primary-nav a:hover,
.primary-nav a:focus { color: var(--olive-700); }

.nav-cta {
  padding: 10px 22px;
  font-size: .9rem;
  border-radius: 999px;
  border-width: 1.5px;
  letter-spacing: .03em;
  box-shadow: var(--shadow-sm);
}
.nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-header .btn-primary {
  background: var(--olive-700);
  color: var(--cream);
  border-color: var(--olive-700);
}
.site-header .btn-primary:hover,
.site-header .btn-primary:focus {
  background: var(--olive-900);
  border-color: var(--olive-900);
  color: var(--cream);
}
.site-header .btn-ghost {
  background: var(--cream);
  color: var(--olive-900);
  border-color: var(--olive-700);
}
.site-header .btn-ghost:hover,
.site-header .btn-ghost:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--olive-900);
}

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--olive-900);
  margin: 5px 0; transition: transform .3s ease, opacity .3s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--olive-700);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--olive-900);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-ghost:hover, .btn-ghost:focus {
  background: var(--cream);
  color: var(--olive-900);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 80vh, 760px);
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-image {
  position: absolute; inset: 0;
  background-image: url("olive-tree-3.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,36,16,.35) 0%, rgba(31,36,16,.55) 60%, rgba(31,36,16,.75) 100%),
    linear-gradient(120deg, rgba(85,107,47,.55), rgba(31,36,16,.25));
  z-index: -1;
}
.hero-content {
  padding: 8rem 24px 6rem;
  max-width: 880px;
}
.hero .eyebrow { color: var(--olive-100); }
.hero h1 {
  color: var(--cream);
  font-family: var(--font-display);
  letter-spacing: -.01em;
}
.lede {
  font-size: clamp(1.05rem, .6vw + 1rem, 1.25rem);
  color: rgba(248,245,238,.92);
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .sub { color: var(--muted); font-size: 1.05rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.two-col .col-image img,
.two-col .col-image iframe {
  width: 100%;
  height: clamp(360px, 50vw, 540px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 0;
}

/* About */
.about { background: var(--cream); }
.about .badges {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.about .badges li {
  background: var(--olive-100);
  color: var(--olive-800);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 500;
}

/* Menu */
.menu-section { background: var(--olive-900); color: var(--cream); }
.menu-section h2 { color: var(--cream); }
.menu-section .eyebrow { color: var(--accent); }
.menu-section .sub { color: rgba(248,245,238,.75); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.menu-card {
  background: rgba(248,245,238,.05);
  border: 1px solid rgba(248,245,238,.12);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  position: relative;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.menu-card:hover {
  transform: translateY(-4px);
  background: rgba(248,245,238,.08);
  border-color: rgba(200,169,106,.45);
}
.menu-card h3 {
  color: var(--cream);
  font-family: var(--font-display);
  margin-bottom: .5rem;
  padding-right: 4.5rem;
}
.menu-card p { color: rgba(248,245,238,.78); font-size: .96rem; margin: 0; }
.menu-card .price {
  position: absolute;
  top: 1.8rem; right: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--accent);
}
.menu-note {
  text-align: center;
  margin-top: 2.5rem;
  color: rgba(248,245,238,.75);
  font-style: italic;
}
.menu-note a { color: var(--accent); }
.menu-note a:hover { color: var(--cream); }
.menu-cta,
.visit-cta,
.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.5rem;
  justify-content: center;
}
.visit-cta { justify-content: flex-start; }

/* ---------- Menu page ---------- */
.menu-hero {
  background: var(--olive-900);
  color: var(--cream);
  padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}
.menu-hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 4vw + 1rem, 3.8rem);
  margin-bottom: 1rem;
}
.menu-hero .eyebrow { color: var(--accent); }
.menu-hero .lede {
  color: rgba(248,245,238,.85);
  margin: 0 auto 2rem;
  max-width: 640px;
}
.menu-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .75rem;
  max-width: 820px;
  margin: 0 auto;
}
.menu-jump a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(248,245,238,.22);
  background: rgba(248,245,238,.05);
  color: var(--cream);
  font-size: .85rem;
  letter-spacing: .04em;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.menu-jump a:hover,
.menu-jump a:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--olive-900);
}

.menu-list-section { padding: clamp(56px, 8vw, 100px) 0; }
.menu-list-section.food { background: var(--cream); }
.menu-list-section.drinks { background: var(--cream-dark); }

.menu-category { margin: 0 auto 3rem; max-width: 880px; }
.menu-category:last-child { margin-bottom: 0; }
.menu-category-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem);
  color: var(--olive-900);
  text-align: center;
  margin: 0 0 1.75rem;
  padding-bottom: .75rem;
  position: relative;
}
.menu-category-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--accent);
  margin: .75rem auto 0;
  border-radius: 2px;
}

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item {
  padding: 1.1rem 0;
  border-bottom: 1px dashed rgba(85, 107, 47, 0.22);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item-head {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.menu-item-head h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--olive-900);
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  font-weight: 600;
  flex: 0 1 auto;
}
.menu-item-head .dots {
  flex: 1 1 auto;
  border-bottom: 2px dotted rgba(85, 107, 47, 0.32);
  transform: translateY(-4px);
  min-width: 1.5rem;
}
.menu-item-head .price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--olive-700);
  white-space: nowrap;
}
.menu-item p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  max-width: 70ch;
}
.menu-list-section .menu-note {
  text-align: center;
  margin: 2.5rem auto 0;
  max-width: 720px;
  color: var(--muted);
  font-style: italic;
  font-size: .95rem;
}
.menu-list-section .menu-cta { margin-top: 2rem; }
.menu-list-section .menu-cta .btn-ghost {
  color: var(--olive-900);
  border-color: var(--olive-700);
}
.menu-list-section .menu-cta .btn-ghost:hover,
.menu-list-section .menu-cta .btn-ghost:focus {
  background: var(--olive-700);
  color: var(--cream);
}

@media (max-width: 540px) {
  .menu-item-head { flex-wrap: wrap; }
  .menu-item-head .dots { display: none; }
  .menu-item-head .price { margin-left: auto; }
}

/* Gallery */
.gallery { background: var(--cream-dark); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }

.gallery-grid figure:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.gallery-grid figure:nth-child(2) { grid-column: span 6; }
.gallery-grid figure:nth-child(3) { grid-column: span 3; }
.gallery-grid figure:nth-child(4) { grid-column: span 3; }
.gallery-grid figure:nth-child(5) { grid-column: span 12; grid-row: span 1; }

/* Visit */
.visit { background: var(--cream); }
.visit address { font-style: normal; margin: 1rem 0 1.5rem; }
.hours { margin: 1.5rem 0; }
.hours dl {
  display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.5rem;
  margin: .75rem 0;
}
.hours dt { font-weight: 600; color: var(--olive-800); }
.hours dd { margin: 0; color: var(--muted); }
.hours-note { font-size: .9rem; color: var(--muted); font-style: italic; }

/* Contact */
.contact { background: var(--olive-700); color: var(--cream); text-align: center; }
.contact h2 { color: var(--cream); }
.contact .eyebrow { color: var(--olive-100); }
.contact .sub { color: rgba(248,245,238,.85); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.contact-card {
  background: rgba(248,245,238,.07);
  border: 1px solid rgba(248,245,238,.18);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  color: var(--cream);
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  transition: transform .2s ease, background .2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  background: rgba(248,245,238,.13);
  color: var(--cream);
}
.contact-icon { font-size: 1.8rem; }
.contact-label {
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--olive-100);
}
.contact-card strong { font-size: 1.05rem; font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--olive-900);
  color: rgba(248,245,238,.78);
  padding: 4rem 0 1.5rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 { color: var(--olive-100); margin-bottom: .75rem; }
.site-footer a { color: var(--olive-100); }
.site-footer a:hover { color: var(--cream); }
.footer-logo { background: var(--cream); padding: 10px 14px; border-radius: var(--radius); width: auto; height: 76px; }
.footer-tag { margin-top: 1rem; font-style: italic; }
.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248,245,238,.12);
  text-align: center;
  color: rgba(248,245,238,.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .gallery-grid { grid-auto-rows: 180px; }
  .gallery-grid figure:nth-child(1) { grid-column: span 12; grid-row: span 2; }
  .gallery-grid figure:nth-child(2) { grid-column: span 12; }
  .gallery-grid figure:nth-child(3) { grid-column: span 6; }
  .gallery-grid figure:nth-child(4) { grid-column: span 6; }
  .gallery-grid figure:nth-child(5) { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 24px 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(85,107,47,.12);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav ul { flex-direction: column; gap: 1rem; }
  .nav-cta { width: 100%; }
  .hero-content { padding-top: 5rem; padding-bottom: 4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hours dl { grid-template-columns: 1fr 1fr; }
}

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

/* Subtle reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
