/* ==========================================================================
   Jarrahdale Local PO Kitchen — Stylesheet
   Palette pulled from the logo (espresso tree mark) and the cafe's exposed
   brick + timber interior. Display serif (Fraunces) echoes the hand-drawn
   tree linework; body sans (Work Sans) stays clean and legible; a mono face
   (IBM Plex Mono) is used for prices, like a specials-board chalk tag.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  /* Color */
  --espresso:      #3A2A1C;   /* primary text, logo brown */
  --espresso-ink:  #2A1F16;   /* headings / darkest text */
  --parchment:      #F6EFE2;  /* page background */
  --parchment-deep: #EFE4D0;  /* card / section backgrounds */
  --brick:          #A8583A;  /* primary accent, from the interior brick */
  --paprika:        #B5451E;  /* secondary accent, from chilli/sauce shots */
  --sage:           #6E7C52;  /* tertiary accent, from herb garnish */
  --cream:          #FFFCF6;  /* card surfaces / lightest */
  --line:           #DCCFB5;  /* hairline borders */

  /* Type scale */
  --display: 'Fraunces', serif;
  --body: 'Work Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --radius: 6px;
  --shadow-soft: 0 12px 32px -16px rgba(58,42,28,0.28);
  --container: 1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--body);
  color:var(--espresso);
  background:var(--parchment);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--display);
  color:var(--espresso-ink);
  margin:0 0 0.4em;
  line-height:1.1;
  font-weight:600;
}
p{ margin:0 0 1em; }
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
:focus-visible{
  outline:3px solid var(--brick);
  outline-offset:3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Utility bar ---------- */
.utility-bar{
  background:var(--espresso-ink);
  color:var(--parchment-deep);
  font-size:0.82rem;
  letter-spacing:0.02em;
}
.utility-bar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:8px;
  padding-bottom:8px;
  gap:16px;
  flex-wrap:wrap;
}
.utility-bar a{ color:var(--parchment); }
.utility-bar a:hover{ color:#fff; text-decoration:underline; }
.utility-sep{ opacity:0.5; margin:0 8px; }

/* ---------- Header / Nav ---------- */
header.site-header{
  background:rgba(246,239,226,0.94);
  backdrop-filter:saturate(140%) blur(6px);
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
}
.nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:20px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{
  height:52px;
  width:auto;
}
.nav-links{
  display:flex;
  gap:6px;
  align-items:center;
}
.nav-links a{
  font-family:var(--body);
  font-weight:600;
  font-size:0.95rem;
  padding:10px 14px;
  border-radius:4px;
  color:var(--espresso);
  position:relative;
}
.nav-links a:hover{ color:var(--brick); }
.nav-links a.active{ color:var(--brick); }
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:14px; right:14px; bottom:5px;
  height:2px;
  background:var(--brick);
  border-radius:2px;
}
.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--brick);
  color:#fff !important;
  padding:10px 18px;
  border-radius:4px;
  font-weight:600;
  font-size:0.92rem;
  white-space:nowrap;
}
.nav-cta:hover{ background:var(--paprika); }
.nav-ctas{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav-phone{
  font-family:var(--body);
  font-weight:600;
  font-size:0.92rem;
  color:var(--espresso);
  white-space:nowrap;
}
.nav-phone:hover{ color:var(--brick); }
.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
}
.nav-toggle span{
  display:block;
  width:24px;
  height:2px;
  background:var(--espresso);
  margin:5px 0;
  transition:transform .2s ease, opacity .2s ease;
}

@media (max-width: 880px){
  .nav-links{
    display:none;
    position:absolute;
    top:100%; left:0; right:0;
    background:var(--cream);
    flex-direction:column;
    align-items:stretch;
    padding:8px 24px 18px;
    border-bottom:1px solid var(--line);
    box-shadow:var(--shadow-soft);
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:12px 4px; border-bottom:1px solid var(--line); border-radius:0; }
  .nav-links a.active::after{ display:none; }
  .nav-toggle{ display:block; }
  .nav-ctas{ display:none; }
  header.site-header{ position:sticky; }
  .nav-row{ position:relative; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--body);
  font-weight:600;
  padding:13px 26px;
  border-radius:4px;
  font-size:0.98rem;
  border:2px solid transparent;
  cursor:pointer;
}
.btn-primary{ background:var(--brick); color:#fff; }
.btn-primary:hover{ background:var(--paprika); }
.btn-ghost{ background:transparent; border-color:var(--espresso); color:var(--espresso); }
.btn-ghost:hover{ background:var(--espresso); color:var(--parchment); }
.btn-ghost-light{ background:transparent; border-color:rgba(255,255,255,0.7); color:#fff; }
.btn-ghost-light:hover{ background:rgba(255,255,255,0.14); }

/* ---------- Branch divider (signature motif) ----------
   A single line-art twig, echoing the logo's tree, used between
   sections instead of a plain hairline. */
.branch-divider{
  display:flex;
  justify-content:center;
  margin:0 auto;
  padding:8px 0;
  color:var(--brick);
  opacity:0.85;
}
.branch-divider svg{ width:180px; height:auto; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:86vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:#fff;
}
.hero-media{
  position:absolute; inset:0;
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  z-index:1;
  background:linear-gradient(180deg, rgba(42,31,22,0.15) 0%, rgba(42,31,22,0.35) 55%, rgba(24,17,11,0.92) 100%);
}
.hero-slide{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center 40%;
  opacity:0;
  animation: heroFade3 24s infinite ease-in-out, heroZoom 24s infinite alternate ease-in-out;
}
.hero-slide-alt{
  animation-delay: 8s, 0s;
}
.hero-slide-alt2{
  animation-delay: 16s, 0s;
}
@keyframes heroFade3{
  0%   { opacity:1; }
  25%  { opacity:1; }
  33%  { opacity:0; }
  92%  { opacity:0; }
  100% { opacity:1; }
}
@keyframes heroZoom{
  0%   { transform:scale(1); }
  100% { transform:scale(1.14); }
}
.hero-content{
  position:relative;
  z-index:2;
  padding:64px 0 72px;
  max-width:760px;
}
.eyebrow{
  font-family:var(--mono);
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-size:0.78rem;
  color:var(--parchment-deep);
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.eyebrow::before{
  content:"";
  width:26px; height:1px;
  background:currentColor;
  display:inline-block;
}
.hero h1{
  font-size:clamp(2.4rem, 5.4vw, 4.3rem);
  color:#fff;
  font-weight:600;
  letter-spacing:-0.01em;
}
.hero p.lede{
  font-size:1.18rem;
  color:var(--parchment-deep);
  max-width:560px;
  margin-bottom:28px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Sections ---------- */
section{ padding:88px 0; }
.section-head{
  max-width:620px;
  margin-bottom:48px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(1.9rem, 3.2vw, 2.6rem); }
.section-head .eyebrow{ color:var(--brick); }
.section-head .eyebrow::before{ background:var(--brick); }

.bg-deep{ background:var(--parchment-deep); }
.bg-ink{ background:var(--espresso-ink); color:var(--parchment-deep); }
.bg-ink h2, .bg-ink h3{ color:#fff; }

/* ---------- Card grids ---------- */
.grid{ display:grid; gap:28px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width: 900px){
  .grid-3{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 620px){
  .grid-3, .grid-2{ grid-template-columns:1fr; }
}

.dish-card{
  background:var(--cream);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  transition:transform .25s ease;
}
.dish-card:hover{ transform:translateY(-4px); }
.dish-card .dish-media{ aspect-ratio:4/3; overflow:hidden; }
.dish-card .dish-media img{ width:100%; height:100%; object-fit:cover; }
.dish-card .dish-body{ padding:18px 20px 22px; }
.dish-card h3{ font-size:1.15rem; margin-bottom:4px; }
.dish-card .price{ font-family:var(--mono); color:var(--brick); font-weight:600; font-size:0.95rem; }
.dish-card .desc{ font-size:0.92rem; color:#5a4a3a; margin-top:6px; margin-bottom:0; }

/* ---------- About teaser / split ---------- */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
}
@media (max-width: 820px){
  .split{ grid-template-columns:1fr; }
}
.split img{ border-radius:var(--radius); box-shadow:var(--shadow-soft); }

/* ---------- Rating strip ---------- */
.rating-strip{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  padding:26px 30px;
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:var(--radius);
}
.rating-score{
  font-family:var(--display);
  font-size:2.4rem;
  color:var(--brick);
  font-weight:700;
  line-height:1;
}
.rating-stars{ color:var(--brick); font-size:1.1rem; letter-spacing:2px; }
.rating-meta{ font-size:0.92rem; color:#5a4a3a; }

/* ---------- Info strip (hours/location) ---------- */
.info-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--cream);
}
.info-strip > div{
  padding:28px 30px;
  border-right:1px solid var(--line);
}
.info-strip > div:last-child{ border-right:none; }
.info-strip h4{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-size:0.78rem;
  color:var(--brick);
  margin-bottom:10px;
}
@media (max-width: 780px){
  .info-strip{ grid-template-columns:1fr; }
  .info-strip > div{ border-right:none; border-bottom:1px solid var(--line); }
  .info-strip > div:last-child{ border-bottom:none; }
}

/* ---------- Footer ---------- */
footer.site-footer{
  background:var(--espresso-ink);
  color:var(--parchment-deep);
  padding:64px 0 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  gap:48px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(246,239,226,0.14);
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
}
footer.site-footer h4{
  font-family:var(--mono);
  text-transform:uppercase;
  font-size:0.78rem;
  letter-spacing:0.08em;
  color:var(--parchment-deep);
  opacity:0.75;
  margin-bottom:16px;
}
footer.site-footer a:hover{ color:#fff; text-decoration:underline; }
footer.site-footer .foot-logo{ height:76px; margin-bottom:18px; filter:brightness(0) invert(1); opacity:0.92; }
footer.site-footer p{ color:rgba(246,239,226,0.8); }
.foot-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:22px;
  font-size:0.85rem;
  color:rgba(246,239,226,0.55);
  flex-wrap:wrap;
  gap:10px;
}
.social-row{ display:flex; gap:14px; margin-top:6px; }
.social-row a{
  width:38px; height:38px;
  border-radius:50%;
  border:1px solid rgba(246,239,226,0.3);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ border-color:#fff; }

/* ---------- Page hero (interior pages, shorter) ---------- */
.page-hero{
  position:relative;
  padding:70px 0 56px;
  background:var(--espresso-ink);
  color:#fff;
  overflow:hidden;
}
.page-hero .container{ position:relative; z-index:2; }
.page-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:var(--bgimg);
  background-size:cover;
  background-position:center;
  opacity:0.28;
}
.page-hero h1{ color:#fff; font-size:clamp(2.1rem, 4vw, 3.1rem); }
.page-hero p{ color:var(--parchment-deep); max-width:560px; font-size:1.05rem; margin-bottom:0; }

/* ---------- Menu page ---------- */
.menu-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:44px;
  position:sticky;
  top:78px;
  background:var(--parchment);
  padding:14px 0;
  z-index:10;
  border-bottom:1px solid var(--line);
}
.menu-tab-btn{
  font-family:var(--body);
  font-weight:600;
  font-size:0.95rem;
  padding:10px 20px;
  border-radius:30px;
  border:1.5px solid var(--line);
  background:var(--cream);
  cursor:pointer;
  color:var(--espresso);
}
.menu-tab-btn:hover{ border-color:var(--brick); }
.menu-tab-btn.active{ background:var(--brick); border-color:var(--brick); color:#fff; }

.menu-panel{ display:none; }
.menu-panel.active{ display:block; animation:fadeIn .35s ease; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }

.menu-note{
  font-size:0.92rem;
  color:#6b5a47;
  font-style:italic;
  margin-bottom:32px;
}
.menu-group{ margin-bottom:44px; }
.menu-group h3{
  font-size:1.3rem;
  border-bottom:2px solid var(--brick);
  display:inline-block;
  padding-bottom:6px;
  margin-bottom:22px;
}
.menu-group .group-note{
  font-size:0.88rem;
  color:var(--sage);
  font-style:italic;
  margin:-14px 0 20px;
}
.menu-item{
  display:flex;
  justify-content:space-between;
  gap:24px;
  padding:16px 0;
  border-bottom:1px dashed var(--line);
}
.menu-item:last-child{ border-bottom:none; }
.menu-item-name{
  font-family:var(--display);
  font-weight:600;
  font-size:1.08rem;
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}
.menu-item-name .tag{
  font-family:var(--mono);
  font-size:0.68rem;
  color:var(--sage);
  border:1px solid var(--sage);
  border-radius:3px;
  padding:1px 5px;
  font-weight:500;
  text-transform:lowercase;
}
.menu-item-name .popular{
  font-family:var(--mono);
  font-size:0.68rem;
  color:var(--paprika);
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.menu-item-desc{ font-size:0.9rem; color:#5a4a3a; margin-top:4px; max-width:520px; }
.menu-item-addon{ font-size:0.84rem; color:var(--brick); margin-top:4px; }
.menu-item-price{
  font-family:var(--mono);
  font-weight:600;
  color:var(--espresso-ink);
  white-space:nowrap;
  font-size:1.02rem;
  padding-top:2px;
}

/* ---------- Gallery ---------- */
.gallery-grid{
  columns:4 260px;
  column-gap:18px;
}
.gallery-grid figure{
  margin:0 0 18px;
  break-inside:avoid;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  cursor:zoom-in;
  position:relative;
}
.gallery-grid img{ width:100%; display:block; transition:transform .3s ease; }
.gallery-grid figure:hover img{ transform:scale(1.04); }
.gallery-grid figcaption{
  position:absolute; left:0; right:0; bottom:0;
  background:linear-gradient(0deg, rgba(24,17,11,0.82), transparent);
  color:#fff;
  font-size:0.82rem;
  padding:22px 12px 10px;
  opacity:0;
  transition:opacity .2s ease;
}
.gallery-grid figure:hover figcaption{ opacity:1; }

.lightbox{
  position:fixed; inset:0;
  background:rgba(20,14,9,0.92);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:200;
  padding:32px;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-height:88vh; max-width:100%; border-radius:4px; }
.lightbox-close{
  position:absolute; top:24px; right:28px;
  background:none; border:none; color:#fff;
  font-size:2rem; cursor:pointer; line-height:1;
}

/* ---------- Contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
}
@media (max-width: 820px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px;
}
.contact-line{
  display:flex;
  gap:14px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
  align-items:flex-start;
}
.contact-line:last-child{ border-bottom:none; }
.contact-line .icon{
  width:40px; height:40px;
  border-radius:50%;
  background:var(--parchment-deep);
  color:var(--brick);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.contact-line h4{ font-size:0.95rem; margin-bottom:2px; font-family:var(--body); font-weight:700; }
.contact-line a{ color:var(--brick); font-weight:600; }
.contact-line a:hover{ text-decoration:underline; }
.map-frame{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  aspect-ratio:4/3.2;
}
.map-frame iframe{ width:100%; height:100%; border:0; }

/* ---------- Misc ---------- */
.tripadvisor-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--mono);
  font-size:0.82rem;
  background:var(--sage);
  color:#fff;
  padding:6px 14px;
  border-radius:30px;
}
