/* ============================================================
   STYLE.CSS — [CAFE NAME] Website
   ─────────────────────────────────────────────────────────
   Colour palette
     --bg:           #FAF8F5  warm off-white background
     --text:         #1A1007  deep dark espresso brown
     --accent:       #3B6B35  forest green
     --brown:        #7B5230  warm mid-brown (buttons, specials bg)
     --dark:         #1A1007  espresso (about & footer backgrounds)
   Fonts
     Playfair Display — headings
     DM Sans          — body
   ============================================================ */

/* ── Reset & CSS variables ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:             #FAF8F5;
  --text:           #1A1007;
  --accent:         #3B6B35;
  --accent-hover:   #2C5228;
  --accent-light:   #7B5230;
  --dark:           #1A1007;
  --brown:          #7B5230;
  --brown-light:    #C9AC8A;
  --muted:          #6B5843;
  --border:         #E0D8CE;
  --card-bg:        #FFFFFF;

  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'DM Sans', system-ui, -apple-system, sans-serif;

  --nav-h:          68px;
  --max-w:          1200px;
  --radius:         14px;
  --radius-sm:      8px;

  --shadow-sm:      0 1px 4px rgba(26,16,7,.07);
  --shadow-md:      0 4px 20px rgba(26,16,7,.11);
  --shadow-lg:      0 8px 32px rgba(26,16,7,.18);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--text);
}

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

section { padding: 6rem 0; }

/* ── Scroll-triggered fade-up ───────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
.fade-up[data-delay="1"] { transition-delay: .10s; }
.fade-up[data-delay="2"] { transition-delay: .20s; }
.fade-up[data-delay="3"] { transition-delay: .30s; }
.fade-up[data-delay="4"] { transition-delay: .40s; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,107,53,.35);
}
.btn--outline {
  background: var(--brown);
  color: #fff;
  border: 2px solid var(--brown);
}
.btn--outline:hover {
  background: #5C3A1A;
  border-color: #5C3A1A;
  color: #fff;
  transform: translateY(-2px);
}

.hero__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.hero-bean {
  display: inline-flex;
  align-items: center;
  margin: 0 -0.15em;
}

.hero-bean img {
  height: 1.3em;
  width: auto;
  margin-top: 0.3em;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(250, 248, 245, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  transition: opacity .2s;
}
.nav__logo:hover { opacity: .7; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  position: relative;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  padding: .2rem 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s ease;
}
.nav__links a:hover,
.nav__links a.active     { color: var(--text); }
.nav__links a.active::after,
.nav__links a:hover::after { width: 100%; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  transition: background .2s;
}
.nav__toggle:hover { background: var(--border); }
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
/* Animate hamburger → X */
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.hero__emblem {
  position: absolute;
  left: 5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 55%;
  width: auto;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .hero__emblem { display: none; }

  .menu__tabs {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: .5rem;
    padding: 0 1rem;
  }
  .menu__tabs::-webkit-scrollbar { display: none; }
  .menu__tab {
    flex: 0 0 auto;
    padding: .85rem 1rem;
  }
}

/* Subtle warm radial glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 80% 50%, rgba(59,107,53,.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(123,82,48,.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative grain texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  opacity: .4;
  pointer-events: none;
}

.hero__content { max-width: 680px; position: relative; z-index: 1; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.hero__tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-size: clamp(3.2rem, 8.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1.03;
  color: var(--text);
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
}

.hero__tagline {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__delivery {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.hero__delivery-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__delivery-links {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   WEEKEND SPECIALS
   ══════════════════════════════════════════════════════════ */
.specials {
  background: var(--accent-light);
  padding: 5rem 0;
}

.specials__header {
  text-align: center;
  margin-bottom: 3rem;
}

.specials__header .section-label {
  font-size: 1.2rem;
  color: var(--text);
}

.specials__title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--text);
}

.specials__subtitle {
  font-size: 1rem;
  color: var(--muted);
}

.specials__grid {
  display: flex;
  justify-content: center;
}

.special-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
  transition: transform .25s, box-shadow .25s;
}
.special-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.special-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #5a9653);
}

.special-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .28rem .8rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
  align-self: center;
}

.special-card__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.special-card__desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.special-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════
   ORDER ONLINE
   ══════════════════════════════════════════════════════════ */
.order-online {
  padding: 5rem 0;
  background: var(--bg);
}
.order-online__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.order-online__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: .5rem;
}
.order-online__header p { color: var(--muted); font-size: .97rem; }

.order-online__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.delivery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.delivery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.delivery-card__logo {
  width: 130px;
  height: 32px;
}
.delivery-card__cta {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .8;
}

/* Brand colours */
.delivery-card--ubereats  { background: #000; color: #fff; }
.delivery-card--justeat   { background: #ff8000; color: #fff; }
.delivery-card--deliveroo { background: #00CCBC; color: #fff; }

@media (max-width: 600px) {
  .order-online__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ══════════════════════════════════════════════════════════
   MENU
   ══════════════════════════════════════════════════════════ */
.menu { background: var(--bg); }

.menu__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.menu__header p { color: var(--muted); font-size: .97rem; }

.menu__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: .6rem;
}

/* ── Sticky tab bar ─────────────────────────────────────── */
.menu__tabs-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: rgba(250, 248, 245, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.menu__tabs {
  display: flex;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  gap: .25rem;
}

.menu__tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem .75rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  text-align: center;
}
.menu__tab:hover { color: var(--text); }
.menu__tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

/* ── Menu panels ────────────────────────────────────────── */
.menu__panel {
  display: none;
  animation: panelIn .3s ease both;
}
.menu__panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Section headers within a panel ────────────────────── */
.menu-section-header {
  padding: 1.25rem 0 .9rem;
  border-bottom: 1px solid var(--border);
  margin: 2.5rem 0 1.5rem;
}
.menu__panel > .menu-section-header:first-child { margin-top: 0; }

.menu-section-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.menu-section-header p {
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Menu items grid ────────────────────────────────────── */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

/* ── Individual menu card ───────────────────────────────── */
.menu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.menu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: transparent;
}

.menu-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}

.menu-card__name {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.menu-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-card__desc {
  font-size: .81rem;
  color: var(--muted);
  line-height: 1.55;
}

.menu-card__note {
  font-size: .77rem;
  color: var(--accent);
  font-style: italic;
  margin-top: .1rem;
}

/* ══════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════ */
.about {
  background: var(--text);
  color: #FAF8F5;
}

.about .section-label { color: var(--accent); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #FAF8F5;
  line-height: 1.12;
}

.about__body {
  font-size: 1.03rem;
  line-height: 1.8;
  color: rgba(250, 248, 245, .72);
  margin-bottom: 1.25rem;
}
.about__body:last-child { margin-bottom: 0; }

/* Right column photo placeholder */
.about__graphic {
  border-radius: var(--radius);
  overflow: hidden;
}
.about__graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════════════════════
   FIND US
   ══════════════════════════════════════════════════════════ */
.find-us { background: var(--bg); }

.find-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.find-us__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 2.25rem;
}

.info-block { margin-bottom: 2rem; }
.info-block:last-child { margin-bottom: 0; }

.info-block__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
  display: block;
}

.info-block__body {
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.75;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td {
  padding: .55rem 0;
  font-size: .93rem;
  color: var(--muted);
  vertical-align: top;
}
.hours-table td:first-child {
  font-weight: 600;
  color: var(--text);
  padding-right: 1.5rem;
  white-space: nowrap;
}

.map-placeholder {
  background: var(--accent-light);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(59,107,53,.25);
  color: var(--muted);
  text-align: center;
  font-size: .88rem;
  line-height: 1.8;
  overflow: hidden;
}
/* If you swap in a real <iframe>, make it fill this container */
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--text);
  padding: 2.75rem 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FAF8F5;
}

.footer__delivery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .75rem 0;
  border-top: 1px solid rgba(250,248,245,.1);
  border-bottom: 1px solid rgba(250,248,245,.1);
  margin: .5rem 0;
}
.footer__delivery-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250,248,245,.45);
}
.footer__delivery-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__delivery-btn {
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.footer__delivery-btn:hover { opacity: .85; transform: translateY(-1px); }
.footer__delivery-btn--ubereats  { background: #000; color: #fff; }
.footer__delivery-btn--justeat   { background: #ff8000; color: #fff; }
.footer__delivery-btn--deliveroo { background: #00CCBC; color: #fff; }

.footer__copy {
  font-size: .83rem;
  color: rgba(250, 248, 245, .45);
}

.footer__admin {
  font-size: .78rem;
  color: rgba(250, 248, 245, .25);
  transition: color .2s;
}
.footer__admin:hover { color: rgba(250, 248, 245, .65); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .about__inner,
  .find-us__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__graphic { display: none; }
}

@media (max-width: 680px) {
  :root {
    --nav-h: 60px;
  }

  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  /* Mobile nav dropdown box */
  .nav__links {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    right: 1rem;
    left: auto;
    width: 200px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(26,16,7,.18), 0 2px 8px rgba(26,16,7,.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 199;
    overflow: hidden;
  }
  .nav__links.open { display: flex; }
  .nav__links li {
    padding: .4rem .75rem;
  }
  .nav__links a {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    padding: .35rem .75rem;
    border-radius: 6px;
    transition: background .2s, color .2s;
  }
  .nav__links a:hover,
  .nav__links a.active { background: var(--accent); color: #fff; }
  .nav__links a::after { display: none; }

  .nav__toggle { display: flex; }

  .menu-items-grid { grid-template-columns: 1fr; }

  .hero__cta { flex-direction: column; align-items: flex-start; }

  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 2.7rem; }
}
