:root{
  --bg: #0c0a08;
  --bg-panel: #16130f;
  --bg-panel-2: #1c1812;
  --gold: #cda458;
  --gold-bright: #e9c983;
  --cream: #f2ead9;
  --muted: #a2917b;
  --line: rgba(205,164,88,0.28);
  --danger: #d9714f;
  --ok: #7ea877;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  background:
    radial-gradient(ellipse at 15% 0%, rgba(205,164,88,0.07), transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(205,164,88,0.05), transparent 50%),
    var(--bg);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

::selection{ background: var(--gold); color: #14110d; }

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

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }

/* ---------- Coffee bean texture ---------- */
.bean{
  position:absolute;
  width:14px; height:20px;
  background: linear-gradient(135deg,#2b1c10,#4a3018);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity:0.5;
}
.bean::after{
  content:"";
  position:absolute; top:10%; left:48%;
  width:2px; height:80%;
  background: rgba(0,0,0,0.55);
  border-radius: 2px;
}

/* ---------- Site navbar (shared across pages) ---------- */
.site-nav{
  position: sticky;
  top:0;
  z-index: 60;
  background: rgba(12,10,8,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner{
  max-width: 1140px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 16px 24px;
}
.site-brand{
  font-family:'Allura', cursive;
  font-size: 1.7rem;
  color: var(--gold-bright);
  display:flex;
  align-items:center;
  gap:8px;
}
.site-links{
  display:flex;
  align-items:center;
  gap: 6px;
}
.site-link{
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-link:hover{ color: var(--cream); }
.site-link.current{
  color: #14110d;
  background: var(--gold);
}
.site-link.admin-link{
  opacity: 0.55;
  font-size: 0.62rem;
}
.site-link.admin-link:hover{ opacity: 1; }

/* ---------- Category quick-nav (menu page only) ---------- */
.cat-nav{
  position: sticky;
  top: 57px;
  z-index: 55;
  background: rgba(12,10,8,0.94);
  border-bottom: 1px solid var(--line);
}
.cat-nav-inner{
  max-width: 1140px;
  margin: 0 auto;
  display:flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 24px;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar{ display:none; }
.cat-link{
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink:0;
}
.cat-link:hover{ color: var(--cream); }
.cat-link.active{ color:#14110d; background: var(--gold); }

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--line);
  padding: 46px 24px 56px;
  text-align:center;
}
.footer-row{
  display:flex; align-items:center; justify-content:center;
  gap: 26px; flex-wrap: wrap;
}
.footer-word{
  font-family:'Cormorant Garamond', serif;
  letter-spacing: 0.35em;
  font-size: 0.95rem;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-heart{ color: var(--gold); font-size: 1rem; }
footer .credit{
  margin-top: 22px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ================= HOME PAGE ================= */
.home-hero{
  position:relative;
  min-height: 78vh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center;
  overflow:hidden;
  padding: 60px 24px;
}
.home-hero-beans{ position:absolute; inset:0; pointer-events:none; }
.home-hero .cupmark{ width:60px; margin-bottom:16px; opacity:0.92; animation: rise 1s ease both; }
.home-hero h1{
  font-family:'Allura', cursive;
  font-size: clamp(4rem, 12vw, 7.5rem);
  line-height: 0.9;
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(205,164,88,0.25);
  animation: rise 1s ease 0.15s both;
}
.home-hero .rule{
  width: 110px; height:1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto 16px;
  animation: rise 1s ease 0.3s both;
}
.home-hero .sub{
  font-weight:500; letter-spacing:0.55em; font-size:0.9rem;
  color: var(--gold); text-indent:0.55em;
  animation: rise 1s ease 0.4s both;
}
.home-hero .tag{
  margin-top: 22px;
  font-family:'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.2rem; color: var(--muted);
  animation: rise 1s ease 0.5s both;
  max-width: 480px;
}
.home-hero .cta{
  margin-top: 34px;
  display:inline-block;
  padding: 14px 34px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
  animation: rise 1s ease 0.6s both;
}
.home-hero .cta:hover{ background: var(--gold); color:#14110d; }

@keyframes rise{
  from{ opacity:0; transform: translateY(16px); }
  to{ opacity:1; transform: translateY(0); }
}

.ambiance{
  max-width: 1140px;
  margin: 0 auto;
  padding: 70px 24px;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items:center;
}
@media (max-width: 800px){
  .ambiance{ grid-template-columns: 1fr; padding: 50px 24px; }
}
.ambiance-photo{
  position:relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-panel-2), var(--bg-panel));
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 24px;
}
.ambiance-photo img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
}
.ambiance-text .eyebrow{
  font-size: 0.72rem; letter-spacing:0.25em; text-transform:uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.ambiance-text h2{
  font-family:'Cormorant Garamond', serif;
  font-weight:600; font-size: 2.1rem;
  margin-bottom: 18px;
  color: var(--cream);
}
.ambiance-text p{
  font-size: 1rem; line-height: 1.75;
  color: var(--muted);
  margin-bottom: 14px;
}

.highlights{
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 720px){ .highlights{ grid-template-columns: 1fr; } }
.highlight-card{
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 24px;
  background: rgba(255,255,255,0.015);
}
.highlight-card .icon{ width:34px; height:34px; color: var(--gold); margin-bottom:14px; }
.highlight-card .icon svg{ width:100%; height:100%; }
.highlight-card h3{
  font-family:'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight:600;
  margin-bottom: 8px; color: var(--cream);
}
.highlight-card p{ font-size: 0.88rem; color: var(--muted); line-height:1.6; }

/* ================= MENU PAGE ================= */
.menu-header{
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 24px 8px;
  text-align:center;
}
.menu-header h1{
  font-family:'Cormorant Garamond', serif;
  font-weight:600; letter-spacing:0.08em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  color: var(--cream);
}
.menu-header .rule-sm{
  width: 70px; height:1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px auto;
}
.menu-header p{
  font-family:'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}

main.menu-main{
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 24px 40px;
}

.category{ scroll-margin-top: 130px; padding-bottom: 70px; }
.category:last-child{ padding-bottom: 30px; }

.category-head{ display:flex; align-items:center; gap:16px; margin-bottom: 30px; }
.category-head .icon{ width:38px; height:38px; flex-shrink:0; color: var(--gold); }
.category-head .icon svg{ width:100%; height:100%; }
.category-head h2{
  font-family:'Cormorant Garamond', serif;
  font-weight:600; letter-spacing:0.06em;
  font-size: 1.8rem; color: var(--cream);
  text-transform: uppercase;
}
.category-head .fill-line{ flex:1; height:1px; background: linear-gradient(90deg, var(--line), transparent); }

.subgroup{ margin-bottom: 28px; }
.subgroup:last-child{ margin-bottom:0; }
.subgroup-title{
  font-family:'Cormorant Garamond', serif; font-style:italic;
  font-size: 1.02rem; color: var(--gold); margin-bottom: 12px; padding-left:2px;
}

.items-grid{
  display:grid; grid-template-columns: 1fr 1fr;
  column-gap: 48px; row-gap: 2px;
}
@media (max-width: 640px){ .items-grid{ grid-template-columns: 1fr; } }

.item-row{
  display:flex; align-items: baseline; gap:8px;
  padding: 10px 2px;
  border-bottom: 1px dashed rgba(162,145,123,0.18);
}
.item-name{
  font-family:'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight:500; color: var(--cream);
  white-space: nowrap;
}
.item-dots{
  flex:1; border-bottom: 1px dotted rgba(205,164,88,0.4);
  transform: translateY(-4px); min-width: 12px;
}
.item-price{
  font-size: 0.9rem; font-weight:500; color: var(--gold-bright);
  white-space: nowrap; letter-spacing:0.02em;
}

/* ================= LOCATION PAGE ================= */
.location-main{
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 24px 80px;
}

.location-grid{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px){
  .location-grid{ grid-template-columns: 1fr; }
}

.location-info{
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-block{
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 0;
}

.location-divider{
  height: 1px;
  background: var(--line);
}

.info-icon{
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-top: 2px;
}
.info-icon svg{ width: 100%; height: 100%; }

.info-label{
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}

.info-value{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--cream);
  line-height: 1.7;
}

.hours-table{
  border-collapse: collapse;
  width: 100%;
}
.hours-table td{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--cream);
  padding: 6px 0;
  line-height: 1.5;
}
.hours-table td:last-child{
  text-align: right;
  color: var(--gold-bright);
  padding-left: 24px;
}
.hours-table tr:not(:last-child) td{
  border-bottom: 1px dashed rgba(162,145,123,0.18);
}

.location-map{
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  background: var(--bg-panel);
}
.location-map iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  filter: grayscale(30%) contrast(1.05);
}

.map-placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
  padding: 32px;
}
.map-placeholder p{
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--muted);
}
.map-placeholder span{
  font-size: 0.72rem;
  color: rgba(162,145,123,0.6);
  letter-spacing: 0.04em;
}

/* ================= ADMIN PAGE ================= */
.admin-wrap{
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.login-box{
  max-width: 380px;
  margin: 90px auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 32px;
  text-align:center;
  background: rgba(255,255,255,0.015);
}
.login-box h1{
  font-family:'Cormorant Garamond', serif;
  font-size: 1.6rem; margin-bottom: 6px; color: var(--cream);
}
.login-box .warn{
  font-size: 0.72rem; color: var(--danger);
  margin: 14px 0 22px; line-height:1.6;
  border: 1px solid rgba(217,113,79,0.35);
  background: rgba(217,113,79,0.08);
  padding: 10px 12px; border-radius: 4px;
  text-align: left;
}
.login-box input{
  width:100%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-family: 'Jost', sans-serif;
}
.login-box input:focus{ outline: 2px solid var(--gold); outline-offset:1px; }
.login-box button{
  width:100%;
  background: var(--gold);
  color: #14110d;
  border:none;
  padding: 12px 14px;
  border-radius: 4px;
  font-weight:600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: background 0.2s ease;
}
.login-box button:hover{ background: var(--gold-bright); }
.login-error{
  color: var(--danger);
  font-size: 0.78rem;
  min-height: 18px;
  margin-top: 4px;
}

.admin-toolbar{
  display:flex; flex-wrap:wrap; gap:10px;
  align-items:center; justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.admin-toolbar h1{
  font-family:'Cormorant Garamond', serif;
  font-size: 1.7rem; color: var(--cream);
}
.btn{
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover{ background: var(--gold); color:#14110d; }
.btn.primary{ background: var(--gold); color:#14110d; }
.btn.primary:hover{ background: var(--gold-bright); }
.btn.small{ padding: 6px 12px; font-size:0.65rem; }
.btn.danger{ border-color: var(--danger); color: var(--danger); }
.btn.danger:hover{ background: var(--danger); color: #fff; }

.admin-note{
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(205,164,88,0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 26px;
  line-height: 1.6;
}

.admin-cat{
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 22px;
  overflow: hidden;
}
.admin-cat-head{
  display:flex; align-items:center; gap:10px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}
.admin-cat-head input{
  font-family:'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight:600;
  background: transparent; border:none; color: var(--cream);
  flex:1; padding: 4px 6px; border-radius:3px;
}
.admin-cat-head input:focus{ outline: 1px solid var(--gold); }

.admin-items{ padding: 12px 16px; }
.admin-item-row{
  display:grid;
  grid-template-columns: 1fr 90px 90px 90px 32px;
  gap: 8px;
  align-items:center;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(162,145,123,0.15);
}
.admin-item-row:last-child{ border-bottom:none; }
.admin-item-row input[type=text], .admin-item-row input[type=number]{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 7px 9px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-family: 'Jost', sans-serif;
  width: 100%;
}
.admin-item-row input:focus{ outline: 1px solid var(--gold); }
.admin-item-row label{
  font-size: 0.6rem; color: var(--muted); display:block; margin-bottom:2px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.admin-item-row .del-btn{
  background: transparent; border:1px solid var(--danger); color: var(--danger);
  width: 28px; height:28px; border-radius: 4px; font-size: 0.9rem; line-height:1;
}
.admin-item-row .del-btn:hover{ background: var(--danger); color:#fff; }

.admin-cat-foot{
  padding: 10px 16px 16px;
  display:flex; justify-content: space-between;
  align-items:center;
}

.admin-actions{
  display:flex; gap: 10px; flex-wrap:wrap;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.toast{
  position: fixed;
  bottom: 24px; left:50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gold);
  color: #14110d;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }
