/* UK Meal Club — homepage styles */

:root {
  --green-deep: #16412c;
  --green-deep-dark: #0e2e1e;
  --cream: #fbf5e9;
  --cream-alt: #f3ead5;
  --gold: #c9932f;
  --text: #201c14;
  --text-muted: #4b463c;
  --white: #ffffff;
  --border: #e4d9c0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(22, 65, 44, 0.12);
  --header-height: 72px;
  --mobile-bar-height: 64px;
  --max-width: 1180px;
  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--green-deep-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.35em; }

p { margin: 0 0 1em; color: var(--text); }

a { color: var(--green-deep); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--green-deep-dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  min-height: 44px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--green-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-deep-dark); }
.btn-secondary {
  background: var(--white);
  color: var(--green-deep-dark);
  border-color: var(--green-deep);
}
.btn-secondary:hover { background: var(--cream-alt); }
.btn-ghost {
  background: transparent;
  color: var(--green-deep-dark);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--cream-alt); }
.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
  padding: 0.55em 1.2em;
  font-size: 0.95rem;
}
.btn-outline:hover { background: var(--green-deep); color: var(--white); }
.btn-large { padding: 0.9em 1.7em; font-size: 1.05rem; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 245, 233, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-height);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; }

.primary-nav { display: none; flex: 1; }
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--gold); }

.header-actions { display: none; flex-shrink: 0; align-items: center; gap: 10px; }
.header-book-btn { padding: 0.65em 1.1em; font-size: 0.92rem; }
.header-order-btn { padding: 0.65em 1.2em; font-size: 0.92rem; }

.mobile-nav { margin-left: auto; position: relative; }
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--white);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-icon,
.mobile-nav-icon::before,
.mobile-nav-icon::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-deep-dark);
  position: relative;
}
.mobile-nav-icon::before { position: absolute; top: -6px; }
.mobile-nav-icon::after { position: absolute; top: 6px; }
.mobile-nav[open] summary { background: var(--cream-alt); }
.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 220px;
}
.mobile-nav nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mobile-nav nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav nav a:hover { background: var(--cream-alt); }
.mobile-nav nav .btn { margin-top: 4px; justify-content: center; }

@media (min-width: 900px) {
  .primary-nav { display: block; }
  .header-actions { display: flex; }
  .mobile-nav { display: none; }
}

/* Hero */
.hero {
  display: grid;
  gap: 0;
}
.hero-media { width: 100%; }
.hero-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.hero-content {
  padding: 32px 20px 40px;
  background: var(--cream);
}
.hero-eyebrow {
  color: var(--green-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 0.6em;
}
.hero-title { margin-bottom: 0.4em; }
.hero-supporting {
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 18px;
}
.hero-book-link {
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.hero-book-link a {
  color: var(--green-deep-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-anniversary {
  display: inline-block;
  background: var(--cream-alt);
  border: 1px solid var(--border);
  color: var(--green-deep-dark);
  padding: 0.5em 1em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .hero-media { height: 100%; }
  .hero-image { height: 100%; min-height: 480px; }
  .hero-content { padding: 48px; }
}

/* Trust */
.trust { padding: 44px 0; }
.lede {
  max-width: 70ch;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.trust-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 600;
}
.trust-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
@media (min-width: 700px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Dishes */
.dishes { padding: 44px 0; background: var(--cream-alt); }
.section-intro { color: var(--text-muted); max-width: 60ch; }
.dish-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .dish-grid { grid-template-columns: repeat(3, 1fr); }
}
.dish-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.dish-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.dish-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dish-card-body h3 { margin-bottom: 0.2em; }
.dish-card-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.9em;
}
.dish-card-body .btn { align-self: flex-start; margin-top: auto; }

.dish-card-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-deep-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dish-card-placeholder-label {
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-align: center;
}

/* Ordering choices */
.ordering-choices { padding: 44px 0; }
.choice-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
}
@media (min-width: 700px) {
  .choice-grid { grid-template-columns: repeat(4, 1fr); }
}
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  font-weight: 700;
  color: var(--green-deep-dark);
  min-height: 44px;
  box-shadow: var(--shadow);
}
.choice-card:hover { background: var(--cream-alt); }
.choice-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-deep);
}

/* Catering */
.catering {
  padding: 48px 0;
  background: var(--green-deep-dark);
  color: var(--cream);
}
.catering h2 { color: var(--cream); }
.catering p { color: var(--cream); opacity: 0.92; max-width: 65ch; }
.catering .btn-secondary { background: var(--cream); color: var(--green-deep-dark); border-color: var(--cream); }
.catering .btn-secondary:hover { background: var(--white); }

/* Story */
.story { padding: 48px 0; }
.story p { max-width: 70ch; font-size: 1.02rem; }

/* Location */
.location { padding: 48px 0; background: var(--cream-alt); }
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-top: 20px;
  max-width: 560px;
}
.location-name { font-family: var(--font-heading); font-size: 1.3rem; color: var(--green-deep-dark); margin-bottom: 0.2em; }
.location-address { margin-bottom: 0.8em; }
.hours-table {
  border-collapse: collapse;
  margin: 16px 0 20px;
  width: 100%;
  max-width: 320px;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.hours-table th { font-weight: 600; color: var(--text); }

/* Footer */
.site-footer {
  background: var(--green-deep-dark);
  color: var(--cream);
  padding: 44px 0 20px;
  margin-bottom: var(--mobile-bar-height);
}
.footer-inner {
  display: grid;
  gap: 12px 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .footer-inner { grid-template-columns: repeat(4, 1fr); }
}
.footer-block a { color: var(--cream); }
.footer-block > p > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-brand { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 0.3em; }
.footer-heading { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 0.4em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-links a,
.footer-links .footer-link-pending {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  line-height: 1.3;
}
.footer-link-pending { color: rgba(251, 245, 233, 0.6); }
.footer-link-pending em { font-style: normal; font-size: 0.85em; margin-left: 0.35em; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 245, 233, 0.15);
  font-size: 0.85rem;
  color: rgba(251, 245, 233, 0.7);
}
.footer-note {
  color: rgba(251, 245, 233, 0.85);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===== Customer/food photo carousel ===== */
.gallery { padding: 44px 0 24px; }

.carousel {
  position: relative;
  margin-top: 24px;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  margin: 0 -4px;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}
.carousel-track:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.carousel-slide {
  flex: 0 0 82%;
  max-width: 360px;
  scroll-snap-align: start;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.carousel-slide figcaption {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.carousel-slide figcaption strong {
  font-family: var(--font-heading);
  color: var(--green-deep-dark);
  font-size: 1.05rem;
}
.carousel-slide figcaption span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.carousel-btn {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--green-deep-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}
.carousel-btn:hover { background: var(--cream-alt); }
/* Inset on tablet, where there isn't enough page margin for the buttons to sit outside
   the carousel without risking overflow — they rest just inside the edge slide instead. */
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}
.carousel-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}
.carousel-dot-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--green-deep);
  background: transparent;
  display: block;
}
.carousel-dot.is-active .carousel-dot-mark { background: var(--green-deep); }

.gallery-google-link {
  text-align: center;
  margin: 24px 0 0;
}

@media (min-width: 700px) {
  .carousel-slide { flex-basis: 46%; }
  .carousel-btn { display: flex; }
}
@media (min-width: 1000px) {
  .carousel-slide { flex-basis: 31%; }
  /* More page margin available at this width, so the buttons can sit fully outside
     the carousel edge instead of overlapping the first/last slide. */
  .carousel-prev { left: -18px; }
  .carousel-next { right: -18px; }
}

/* ===== Google reviews trust area ===== */
.reviews-trust {
  padding: 8px 0 44px;
}
.reviews-trust-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.reviews-trust-text p { margin-bottom: 0; color: var(--text-muted); }
@media (min-width: 700px) {
  .reviews-trust-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

/* ===== Visitor pathway cards ===== */
.choice-grid-pathways {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}
@media (min-width: 700px) {
  .choice-grid-pathways { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .choice-grid-pathways { grid-template-columns: repeat(3, 1fr); }
  .choice-card-primary { grid-column: span 3; }
}
.choice-grid-pathways .choice-card {
  display: block;
  text-align: left;
  padding: 0;
  overflow: hidden;
}
.choice-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.choice-card-body h3 { margin-bottom: 0.15em; }
.choice-card-body .btn { align-self: flex-start; margin-top: 10px; }
.choice-card-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}
.choice-card-primary {
  background: var(--green-deep);
  border-color: var(--green-deep);
}
.choice-card-primary h3,
.choice-card-primary p:not(.choice-card-note) { color: var(--white); }
.choice-card-primary .choice-card-note { color: rgba(255,255,255,0.75); }
.choice-card-primary .btn-primary {
  background: var(--white);
  color: var(--green-deep-dark);
}
.choice-card-primary .btn-primary:hover { background: var(--cream-alt); }

.choice-card-muted {
  background: var(--cream-alt);
  box-shadow: none;
}
.choice-card-muted h3 { font-size: 1.05rem; }
.choice-card-muted p { font-size: 0.94rem; }

/* Mobile bottom action bar */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--mobile-bar-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.mobile-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--green-deep-dark);
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 44px;
}
.mobile-bar-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--green-deep);
}
.mobile-bar-order {
  background: var(--green-deep);
  color: var(--white);
}
.mobile-bar-order .mobile-bar-icon { background: var(--gold); }

@media (min-width: 900px) {
  .mobile-bar { display: none; }
  .site-footer { margin-bottom: 0; }
}
