
:root{ --page-max:1100px; --card-radius:16px; --shadow:0 6px 18px rgba(0,0,0,.08); }
*{box-sizing:border-box}
body{margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; color:#111;}
/* HERO full-bleed 80vh */
.hero{
  position:relative;
  width:100vw; max-width:100vw;
  left:50%; margin-left:calc(-50vw + 50%);
  min-height:80vh;
  background:url('assets/images/banner.jpg') center/cover no-repeat;
}
.hero .lang{ position:absolute; top:14px; right:14px; z-index:5; display:flex; gap:8px; }
.lang button{ border:0; background:#111; color:#fff; padding:6px 10px; border-radius:999px; font-weight:700; font-size:12px; cursor:pointer; opacity:.9}
.lang button[aria-current="true"]{ background:#e11; }
.status-badge{
  position:absolute; left:50%; transform:translate(-50%,0);
  bottom:30px; z-index:4; color:#c00; font-weight:800;
  background:rgba(255,255,255,.85); padding:6px 14px; border-radius:999px; font-size:1.1rem;
}
/* Page container */
.page{ max-width:var(--page-max); margin:0 auto; padding:0 16px; }
/* Headings centered */
h1,h2,h3{ text-align:center; margin:28px 0 10px;}
.lead{ text-align:center; color:#555; margin:0 0 24px;}
/* Map */
.map{ border-radius:12px; overflow:hidden; box-shadow:var(--shadow); margin:16px 0 28px;}
/* Menu grid */
.section-title{ margin-top:26px; }
.menu-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:18px; }
@media (max-width:740px){ .menu-grid{ grid-template-columns:1fr; } }
.card{
  background:#fff; border-radius:var(--card-radius); box-shadow:var(--shadow);
  overflow:hidden; display:flex; flex-direction:column; border:1px solid #eee;
}
.card .thumb{ position:relative; width:100%; aspect-ratio: 4/3; overflow:hidden; background:#f5f5f5; }
.card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; object-position:center; }
.badge{ position:absolute; top:10px; left:10px; background:#111; color:#fff; font-size:12px; padding:4px 8px; border-radius:999px; opacity:.95; }
.card .body{ padding:14px; }
.card h3{ margin:0 0 6px; font-size:18px; text-align:left;}
.meta{ font-size:12px; color:#666; line-height:1.4; margin-bottom:10px;}
.price{ font-weight:800; font-size:18px; margin-top:6px;}
.controls{ display:flex; align-items:center; gap:10px; margin-top:10px;}
.qty{ display:flex; align-items:center; gap:8px;}
.qty button{ width:28px; height:28px; border-radius:8px; border:1px solid #ccc; background:#fff; cursor:pointer; }
.qty input{ width:44px; text-align:center; border:1px solid #ccc; border-radius:8px; padding:4px;}
/* Cart & Payment boxes */
.flex{ display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
@media (max-width:900px){ .flex{ grid-template-columns:1fr; } }
.box{ background:#fff; border:1px solid #eee; border-radius:16px; box-shadow:var(--shadow); padding:16px; }
.box h3{ margin:0 0 10px; }
.line{ height:2px; background:#111; border-radius:2px; margin:10px 0 16px;}
.payment .vipps{ text-align:center; margin-top:10px;}
.payment img{ max-width:200px; height:auto; display:inline-block }
.notice{ font-size:13px; color:#444; text-align:center; }
/* Footer allergens */
.footer{ font-size:12px; color:#555; text-align:center; margin:28px 0 24px;}

/* hero cover image via <img> to avoid background path issues */
.hero-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center;
  z-index:0;
}
/* lift overlay elements above image */
.hero .lang, .status-badge { position:absolute; z-index:5; }

/* --- position fine-tune v3_2 --- */
.hero{ min-height: 80svh; } /* use small viewport height unit for iOS toolbars */
.status-badge{
  bottom: clamp(18px, 6vh, 56px);
  padding: 8px 16px;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
}
.page{ margin-top: 14px; } /* small breathing space after hero */
.lang{ gap:10px; }
.lang button{ padding:7px 12px; font-size:12px; }
@media (max-width: 520px){
  .status-badge{ bottom: 18px; }
}

/* --- fine tune v3_3 --- */
.status-badge{
  left:50%; transform:translate(-50%,0); /* ensure exact horizontal center */
  bottom: clamp(12px, 3.8vh, 34px);      /* one step lower inside the logo frame */
  letter-spacing: .2px;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
}
/* Slightly more space under hero so text aligns visually with badge */
.page{ margin-top: 16px; }

/* --- v3_4: shift hero focal point to the left so center line of page matches logo center --- */
.hero-img{ object-position: 32% center; } /* was center; pull focal area to the left */
@media (max-width: 900px){
  .hero-img{ object-position: 40% center; } /* phones tend to crop differently */
}
/* Nudge badge a hair lower again */
.status-badge{ bottom: clamp(10px, 3.4vh, 30px); }

/* --- v3_5: shared visual center tuning --- */
:root{ --hero-focal: 28%; } /* single knob to align logo's circle center with page center */
.hero-img{ object-position: var(--hero-focal) center; }
@media (max-width: 900px){
  :root{ --hero-focal: 36%; }
}

/* Make absolutely sure the main container is perfectly centered */
.page{ max-width: var(--page-max); margin-left:auto; margin-right:auto; text-align:center; }
.page .map, .page .flex{ margin-left:auto; margin-right:auto; }
.menu-grid{ margin-left:auto; margin-right:auto; justify-items:stretch; }
.card h3, .meta, .price{ text-align:left; } /* keep card text readable while grid is centered */
