:root{
  --red:#d30f1a;
  --red-700:#b00d16;
  --bg:#ffffff;
  --off:#f7f7f7;
  --ink:#161616;
  --muted:#6b6b6b;
  --radius:18px;
  --shadow:0 12px 28px rgba(0,0,0,.10);
  --border:1px solid rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{overflow-x:hidden;}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}
code{background:#fff0f1;padding:.1rem .35rem;border-radius:8px}

/* Layout */
.container{width:min(1120px,92%);margin-inline:auto}
.section{padding:40px 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}
.section-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}

.muted{color:var(--muted)}
.small{font-size:.92rem}
.lead{font-size:1.05rem}

.link{color:var(--red);font-weight:700;text-decoration:none}
.link:hover{color:var(--red-700)}

/* Header */
.site-header{
  position:sticky;top:0;z-index:30;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0}

.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.logo{width:44px;height:44px;border-radius:12px;object-fit:cover;border:2px solid rgba(211,15,26,.12)}
.logo-sm{width:40px;height:40px;border-radius:12px;object-fit:cover;border:2px solid rgba(255,255,255,.12)}

.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-name{font-weight:900}
.brand-sub{font-weight:700;color:var(--red)}

.nav{display:flex;align-items:center;gap:18px}
.nav a{color:var(--ink);text-decoration:none;font-weight:800}
.nav a:hover{color:var(--red)}
.nav .active{color:var(--red)}
.nav .cta{
  padding:.55rem .95rem;border-radius:999px;
  border:2px solid var(--red); color:var(--red);
}
.nav .cta:hover{background:#fff0f1}

/* Buttons */
.btn{
  display:inline-block;
  font-weight:900;
  border-radius:999px;
  padding:.8rem 1.1rem;
  text-decoration:none;
  border:0;
}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-700)}
.btn-outline{border:2px solid var(--red);color:var(--red);background:transparent}
.btn-outline:hover{background:#fff0f1}
.btn.full{display:block;text-align:center}

/* Hero */
.hero{
  padding:44px 0 18px;
  background:
    radial-gradient(1100px 320px at 68% -40%, rgba(211,15,26,.14), transparent 60%),
    linear-gradient(180deg, #fff, #fff 60%, #fff0f1);
  overflow:hidden;
}
.hero-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:26px;align-items:center}
.hero h1{font-size:clamp(2rem,3vw,2.8rem);line-height:1.12;margin:.2rem 0 .6rem}
.accent{color:var(--red)}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}

.mini-info{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.pill{
  display:flex;gap:10px;align-items:center;
  background:#fff;border:var(--border);border-radius:999px;
  padding:.42rem .7rem;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}
.pill-k{font-weight:900;color:var(--red)}
.pill-v{font-weight:800}
.pill-link{text-decoration:none;color:var(--ink)}
.pill-link:hover{border-color:rgba(211,15,26,.35)}

/* Images / galleries */
.card-img{
  border-radius:16px;overflow:hidden;box-shadow:var(--shadow);
  border:var(--border); background:#fff;
}
.card-img img{width:100%;height:100%;object-fit:cover}

/* Original hero gallery (brukes på andre sider) */
.hero-gallery{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hero-gallery.compact{grid-template-columns:repeat(3,1fr)}

/* Ny hero media (matvogn større på forsiden) */
.hero-media{width:100%;padding:0;box-sizing:border-box}
.hero-slider{
  position:relative;
  width:100%;
  max-width:100%;
  margin:0;
  contain:layout paint;
  border-radius:22px;
  overflow:hidden;
  aspect-ratio:4 / 5;
  min-height:420px;
}
.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .35s ease;
}
.hero-slide.is-active{opacity:1;z-index:1}
.hero-slide img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.hero-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,.42);
  color:#fff;
  border:0;
  width:42px;height:42px;
  border-radius:50%;
  display:grid;place-items:center;
  cursor:pointer;
  z-index:2;
  transition:background .2s ease, transform .2s ease;
}
.hero-nav:hover{background:rgba(0,0,0,.58);transform:translateY(-50%) scale(1.05)}
.hero-nav--prev{left:12px}
.hero-nav--next{right:12px}
.hero-nav:focus-visible{outline:2px solid #fff;outline-offset:2px}

.page-hero{
  padding:28px 0 14px;
  background:linear-gradient(180deg,#fff,#fff 60%,#fff0f1);
}

.strip-gallery{padding:34px 0 18px}
.strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:12px;overflow:auto;padding:0 4% 8px}
.strip img{
  border-radius:16px;border:var(--border);
  box-shadow:0 10px 18px rgba(0,0,0,.08);
  object-fit:cover;aspect-ratio:4/3
}

.catering-slider{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:4px 2% 10px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.catering-slide{
  flex:0 0 200px;
  scroll-snap-align:start;
  overflow:hidden;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 18px rgba(0,0,0,.12);
  background:#fff;
}
.catering-slide img{
  width:100%;
  height:150px;
  object-fit:cover;
}

/* Popular (homepage) */
.popular-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
}
.popular-card{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  border:var(--border);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  min-height:260px;
}
.popular-card__media{
  position:relative;
  height:180px;
  overflow:hidden;
}
.popular-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.popular-card__overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05));
}
.popular-card__content{
  flex:1;
  display:grid;
  grid-template-rows:auto auto 1fr auto;
  gap:8px;
  padding:14px;
}
.popular-card__top{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.popular-card__top .badge-soft{
  margin-top:0;
  display:inline-flex;
  align-items:center;
  line-height:1;
  padding:.26rem .65rem;
}
.popular-tag{
  display:inline-flex;
  padding:.25rem .65rem;
  border-radius:999px;
  background:#fff0f1;
  color:var(--red);
  font-weight:800;
  font-size:.9rem;
}
.popular-card h3{margin:4px 0 0}
.popular-card__actions{margin-top:0}
.pop-link{
  font-weight:900;
  color:var(--red);
  text-decoration:none;
}
.pop-link:hover{color:var(--red-700);text-decoration:underline}

/* Grids */
.grid-3{
  display:grid;
  /* Fewer cards per row: each card gets more min width to avoid cramped/overlapping layout */
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:22px;
}

/* Tweak menu-item layout when used inside grid-3 (catering starters) */
.grid-3 .menu-item{
  display:grid;
  grid-template-columns:152px 1fr;
  gap:0;
  min-height:170px;
}
.grid-3 .menu-item__img{
  overflow:hidden;
  border-radius:12px 0 0 12px;
  height:100%;
}
.grid-3 .menu-item__img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.grid-3 .menu-item__body{padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.grid-3 .menu-item__top{
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.grid-3 .menu-item__title{align-items:flex-start;gap:8px}
.grid-3 .menu-item h3{line-height:1.25}
.grid-3 .price{
  margin-left:0;
  white-space:normal;
}
.two-col{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;align-items:start}
.contact-wrap{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.contact-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.contact-gallery img{border-radius:14px;border:var(--border);object-fit:cover;aspect-ratio:4/3}
.map-embed{
  margin-top:14px;
  border-radius:14px;
  overflow:hidden;
  border:var(--border);
  box-shadow:var(--shadow);
  aspect-ratio:16/9;
}

.card{
  background:#fff;border:var(--border);border-radius:16px;
  padding:16px;box-shadow:var(--shadow);
}

/* CTA */
.cta-band{
  background:linear-gradient(180deg,#fff,#fff 55%, rgba(211,15,26,.10));
  padding:42px 0;
}
.cta-inner{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}
.cta-buttons{display:flex;gap:12px;flex-wrap:wrap}

/* ===== MENU (RESTORED) ===== */
.controls{
  display:grid;gap:12px;margin-top:14px;
  grid-template-columns:1fr auto;
  align-items:end;
}
.control{display:grid;gap:6px;font-weight:900}
.control input[type="search"],
.control input[type="number"],
.control select,
.control textarea{
  font:inherit;border-radius:14px;border:var(--border);
  padding:.75rem .85rem;background:#fff;
}
.control-inline{
  display:flex;align-items:center;gap:10px;
  font-weight:900;white-space:nowrap
}
.control-note{
  grid-column:1 / -1;
  background:#fff;border:var(--border);border-radius:14px;
  padding:.7rem .9rem;
  font-weight:800;
}

.menu-root{display:grid;gap:22px}
.menu-section{display:grid;gap:12px}
.menu-section__head h2{margin:0}
.menu-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}

.menu-item{
  display:grid;
  grid-template-columns:minmax(154px,198px) 1fr;
  gap:14px;
  background:#fff;border:var(--border);border-radius:16px;
  box-shadow:var(--shadow); overflow:hidden;align-items:stretch;
}
.menu-item__img{
  width:100%;
  max-width:198px;
  height:100%;
  min-height:136px;
  aspect-ratio:4/3;
  overflow:hidden;
}
/* Restore flexible menu-image sizing: let images keep their natural aspect ratio
   while capping width so layout stays tidy. Catering (grid-3) overrides below
   make catering thumbnails a fixed width/height (taller, not wider). */
.menu-grid .menu-item__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.img-ph{
  display:flex;align-items:center;justify-content:center;height:100%;
  background:var(--off);color:var(--muted);font-weight:900
}

.menu-grid .menu-item{gap:10px}
/* Variant without image (barnemeny, ekstra/drikke) */
.menu-item.no-img{display:block}
.menu-item.no-img .menu-item__img{display:none}
.menu-item.no-img .menu-item__body{padding:18px}

.menu-item__body{padding:12px 12px 14px;display:flex;flex-direction:column;gap:8px}
.menu-item__top{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px 12px;
  align-items:start;
}
.menu-item__top.no-price{grid-template-columns:1fr}
.menu-item__title{display:flex;gap:10px;align-items:center}
.menu-item h3{margin:0;font-size:1.05rem;line-height:1.2}
.price{font-weight:900;color:var(--red);white-space:nowrap}

/* Allow flex children to shrink so long titles don't force the price out of the card */
.menu-item__body, .menu-item__title {min-width: 0}
.menu-item__top {align-items:start}
.price{
  flex-shrink:0;
  text-align:right;
  padding-top:2px;
}

.badge{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.22rem .55rem;border-radius:999px;
  background:var(--red);color:#fff;font-weight:900;font-size:.82rem;
}
.badge-soft{
  background:#fff0f1;color:var(--red);
  border:1px solid rgba(211,15,26,.22);
}

/* Prevent the badge text from wrapping and improve spacing for soft badge */
.badge{white-space:nowrap}
.badge-soft{padding:.28rem .6rem;display:inline-block;margin-top:8px}

.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.chip{
  background:var(--off);border:var(--border);
  padding:.25rem .55rem;border-radius:999px;font-weight:800;font-size:.88rem;
}
.allergens{
  margin-top:10px;
  padding:.55rem .7rem;border-radius:12px;
  background:#fff0f1;border:1px solid rgba(211,15,26,.22);
  font-weight:800;
}
.empty{
  text-align:center;padding:26px;border-radius:16px;
  background:var(--off);border:var(--border);font-weight:900;
}

/* ===== CATERING (RESTORED) ===== */
.note-card{
  margin-top:14px;
  background:#fff;border:var(--border);border-radius:16px;
  padding:16px;box-shadow:var(--shadow);
}
.calc{
  display:grid;grid-template-columns:240px 1fr;
  gap:14px;align-items:center;margin-top:10px
}
.calc-big{font-weight:900;color:var(--red);font-size:1.35rem}
.checklist{margin:0;padding-left:18px}
.checklist li{margin:.35rem 0}

.sticky-card{
  position:sticky;top:92px;
  background:#fff;border:var(--border);border-radius:16px;
  padding:16px;box-shadow:var(--shadow);
}
.tel{color:var(--red);font-weight:900;text-decoration:none;font-size:1.2rem}
.tel:hover{color:var(--red-700)}

/* ===== FORMS (RESTORED) ===== */
.form{display:grid;gap:10px;margin-top:10px}
label{display:grid;gap:6px;font-weight:900}
textarea{resize:vertical}

/* ===== FOOTER (IMPROVED) ===== */
.site-footer{background:#0f0f0f;color:#ddd;margin-top:28px}
.footer-inner{
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr 1fr;
  gap:18px;
  padding:22px 0;
  align-items:start;
}
.foot-brand{display:flex;gap:12px;align-items:center}

/* Ikke “setning”: vertikal liste + pill-look */
.foot-links{
  display:grid;
  gap:8px;
}
.foot-contact{
  display:grid;
  gap:6px;
  align-items:flex-start;
}
.foot-socials{
  display:grid;
  gap:6px;
  align-items:flex-start;
}

.foot-links a,
.foot-contact a{
  color:#e6e6e6;
  text-decoration:none;
  font-weight:800;
}
.foot-links a:hover,
.foot-contact a:hover{
  color:#fff;
  text-decoration:underline;
}
.foot-socials a{
  color:#e6e6e6;
  text-decoration:none;
  font-weight:800;
}
.foot-socials a:hover{color:#fff;text-decoration:underline}

.foot-label{
  color:#a8a8a8;
  font-weight:700;
  letter-spacing:0.01em;
  text-transform:uppercase;
  font-size:.9rem;
}

.subfoot{
  text-align:center;
  color:#aaa;
  border-top:1px solid rgba(255,255,255,.10);
  padding:12px 0
}

/* Reveal animations */
.reveal{opacity:0;transform:translateY(10px);transition:opacity .55s ease, transform .55s ease}
.reveal.is-visible{opacity:1;transform:none}

/* Responsive */
@media (max-width:980px){
  .hero-inner{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .contact-wrap{grid-template-columns:1fr}
  .menu-grid{grid-template-columns:1fr}
  .menu-item{grid-template-columns:160px 1fr}
  .menu-item__top{grid-template-columns:1fr;gap:6px}
  .menu-item__title{gap:8px;align-items:flex-start;flex-wrap:wrap}
  .price{text-align:left;white-space:normal;padding-top:0}
  .cta-inner{grid-template-columns:1fr}
  .controls{grid-template-columns:1fr}
  .calc{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr}
  .hero-slider{min-height: 320px; aspect-ratio: 16 / 10;}
}

@media (max-width:640px){
  .hero-nav{width:34px;height:34px}
  .hero{padding:32px 0 12px}
  .hero-inner{gap:16px}
  .hero-slider{
    min-height:260px;
    aspect-ratio: 3 / 4;
    border-radius:18px;
  }
  .hero-media{padding:0}
}

/* Compact styling for barnemeny */
.menu-section--small .menu-grid{grid-template-columns:repeat(3,1fr);gap:10px}
.menu-section--small .menu-item{
  grid-template-columns:1fr;
  background:#fff;
  border:var(--border);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:10px;
}
.menu-section--small .menu-item__top{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:start;
  gap:6px;
}
.menu-section--small .menu-item__title{
  align-items:flex-start;
  gap:8px;
  flex-wrap:wrap;
}
.menu-section--small .menu-item__body{padding:8px}
.menu-section--small .menu-item h3{font-size:.98rem;margin:0}
.menu-section--small .price{
  font-size:.98rem;
  text-align:right;
  margin-left:0;
}
.menu-section--small .badge{font-size:.75rem;padding:.18rem .45rem}

@media (max-width:980px){
  .menu-section--small .menu-grid{grid-template-columns:repeat(2,1fr)}
}

/* Mobile tweaks */
@media (max-width:640px){
  .header-inner{flex-wrap:wrap;gap:10px}
  .nav{width:100%;justify-content:flex-start;flex-wrap:wrap;gap:12px}
  .brand-text{white-space:normal}

  .hero-gallery.compact{grid-template-columns:1fr}

  .menu-section--small .menu-item__top{
    grid-template-columns:1fr auto;
    align-items:start;
    gap:8px;
  }
  .menu-section--small .menu-item h3{font-size:.95rem}
  .menu-section--small .price{font-size:.95rem}
}
