/* ============================================================
   Slöinge Pizzeria — Huvudstil
   ============================================================ */
:root {
  --brand:       #b22222;
  --brand-dark:  #8a1a1a;
  --brand-light: #d94a2f;
  --accent:      #f4b400;
  --accent-dark: #d49a00;
  --bg:          #fffaf5;
  --bg-card:     #ffffff;
  --text:        #2c2c2c;
  --text-muted:  #6b5a4a;
  --border:      #f2e2d2;
  --shadow:      0 6px 20px rgba(0,0,0,0.06);
  --shadow-hov:  0 10px 30px rgba(178,34,34,0.12);
  --radius:      14px;
  --radius-sm:   8px;
  --font:        'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --container:   1140px;
  --transition:  0.25s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); transition: color var(--transition); }
a:hover { color: var(--brand-light); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(178,34,34,0.25);
  transition: box-shadow var(--transition);
}
.site-header:hover { box-shadow: 0 6px 24px rgba(178,34,34,0.35); }
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.85; color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,0.4); color: #fff; font-size: 1.4rem; padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-1px);
}
.nav-links a.active { background: rgba(255,255,255,0.25); }

/* ===== HERO SECTIONS ===== */
.hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  padding: 32px 28px;
  border-radius: var(--radius);
  margin: 20px 0;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.hero:hover { box-shadow: var(--shadow-hov); }
.hero h2 { margin: 0 0 8px; font-size: 1.7rem; }
.hero p { margin: 0; opacity: 0.92; }

/* ===== BUTTONS ===== */
.cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(178,34,34,0.2);
}
.cta:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(178,34,34,0.3);
}
.cta.ghost {
  background: transparent;
  border: 2px solid #fff;
  box-shadow: none;
}
.cta.ghost:hover { background: rgba(255,255,255,0.12); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hov);
  transform: translateY(-3px);
}

/* ===== MENYGRID (menu.php) ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.menu-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.menu-card:hover {
  box-shadow: var(--shadow-hov);
  transform: translateY(-4px);
}
.menu-card h3 { margin: 0 0 6px; color: var(--brand); font-size: 1.1rem; }
.menu-card .price-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff8f0;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 8px;
  align-self: flex-start;
}
.ingredient-list { font-size: 0.88rem; color: var(--text-muted); margin: 6px 0; flex: 1; line-height: 1.5; }
.price-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-weight: 700; }
.price-row .label { color: var(--text-muted); }
.price-row .value { color: var(--brand); }
.icon { font-size: 1.7rem; background: #fff8f0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; }
.menu-card-img {
  width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 10px;
  border: 1px solid var(--border); transition: transform var(--transition);
}
.menu-card:hover .menu-card-img { transform: scale(1.03); }

/* ===== HOVER TOOLTIP ===== */
.menu-card { position: relative; cursor: pointer; }
.menu-card .hover-info {
  display: none;
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  z-index: 200;
  width: 280px;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  font-size: 0.85rem;
  text-align: left;
  margin-top: 4px;
}
.menu-card:hover .hover-info { display: block; }
.menu-card .hover-info .hi-img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.menu-card .hover-info .hi-nr { font-weight: 700; color: var(--brand); font-size: 1rem; }
.menu-card .hover-info .hi-price { font-weight: 700; color: var(--brand); font-size: 1.1rem; margin: 4px 0; }
.menu-card .hover-info .hi-ing { color: var(--text-muted); margin: 4px 0; font-size: 0.82rem; }
.menu-card .hover-info .hi-allergen { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.menu-card .hover-info .hi-allergen span {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; margin: 2px;
}
.allergen-laktos { background: #fff3e0; color: #e65100; }
.allergen-gluten { background: #fce4ec; color: #c62828; }
.allergen-ägg { background: #fff8e1; color: #f9a825; }
.allergen-jordnötter { background: #f3e5f5; color: #6a1b9a; }

/* ===== TABS ===== */
.cat-tabs, .class-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.cat-tab, .class-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--transition);
}
.cat-tab:hover, .class-tab:hover { border-color: var(--brand-light); background: #fff8f0; transform: translateY(-2px); }
.cat-tab.active, .class-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.class-tab small { font-weight: 400; font-size: 0.75rem; opacity: 0.65; }

/* ===== PRISKLASSRUBRIK ===== */
.class-header { text-align: center; margin: 12px 0 18px; }
.class-header h2 { color: var(--brand); margin: 0; font-size: 1.4rem; }
.class-header p { margin: 4px 0 0; color: var(--text-muted); font-weight: 600; }

/* ===== EXTRAS (extra tillbehör) ===== */
.extras-banner {
  background: linear-gradient(135deg, #fff8f0, #fff0e0);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.extras-banner h3 { grid-column: 1 / -1; margin: 0 0 4px; color: var(--brand); font-size: 1rem; }
.extras-col h4 { margin: 0 0 6px; color: var(--text-muted); font-size: 0.9rem; }
.extras-row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 0.88rem; }
.extras-row .xprice { color: var(--brand); font-weight: 700; }

/* ===== FOOTER — max 20% av sidan ===== */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e, #2d2d44);
  color: #ccc;
  margin-top: auto;
  padding: 14px 0 0;
  font-size: 0.82rem;
  max-height: 20vh;
  overflow-y: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
}
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-box {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
}
.footer-box p, .footer-box .ravara-text { font-size: 0.8rem; line-height: 1.4; margin: 0 0 4px; }
.footer-box .ravara-text strong { color: #fff; }
.footer-box h3 { color: #ffd54f; margin: 0 0 6px; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 4px; }
.footer-box ul { list-style: none; padding: 0; margin: 0; }
.footer-box ul li { padding: 1px 0; font-size: 0.8rem; }
.footer-box a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
.footer-box a:hover { color: #ffd54f; }
.hours-list .season-tag { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; margin: 2px 0; }
.season-tag.sommar { background: #2e7d32; color: #fff; }
.season-tag.vinter { background: #1565c0; color: #fff; }
.hours-row { display: flex; justify-content: space-between; padding: 0; font-size: 0.8rem; line-height: 1.5; }
.extras-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.extras-footer-col { min-width: 0; }
.extras-footer-col p { font-size: 0.75rem !important; }
.map-btn {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  color: #222;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  transition: all var(--transition);
  margin-bottom: 6px;
}
.map-btn:hover { background: var(--accent-dark); color: #222; transform: translateY(-1px); }
.map-preview iframe { width: 100%; height: 80px; border: 0; border-radius: 6px; }
.footer-allergi {
  text-align: center; padding: 10px 20px; font-size: 0.85rem; color: #ffd54f;
  background: rgba(0,0,0,0.15); font-weight: 600; letter-spacing: 0.3px;
}
.footer-bottom {
  margin-top: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--accent); }

/* ===== INDEX-SIDANS KORTÖVERSIKT ===== */
.home-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 10px;
}
.home-highlight {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: #fff;
  min-height: 180px;
  transition: all var(--transition);
}
.home-highlight:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hov);
  color: #fff;
}
.home-highlight img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}
.home-highlight .home-highlight-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.72));
}
.home-highlight .home-highlight-kicker {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.home-highlight h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.05rem;
}
.home-highlight p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
}
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.index-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  display: block;
}
.index-card:hover {
  box-shadow: var(--shadow-hov);
  transform: translateY(-6px);
  color: var(--text);
}
.index-card .card-icon { font-size: 2.4rem; margin-bottom: 8px; }
.index-card h3 { margin: 0 0 6px; color: var(--brand); font-size: 1.05rem; }
.index-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.index-card .card-image {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.index-card:hover .card-image {
  transform: scale(1.02);
}

/* ===== PRISKLASS-SIDOR ===== */
.class-highlight {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 16px 0 18px;
}
.class-highlight img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.class-highlight h3 {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 1.15rem;
}
.class-highlight p {
  margin: 0;
  color: var(--text-muted);
}
.class-highlight .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.class-highlight .chips span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff8f0;
  color: var(--brand);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
}
@media (max-width: 700px) {
  .class-highlight {
    grid-template-columns: 1fr;
  }
}

/* ===== GALLERI ===== */
.slideshow { position: relative; text-align: center; }
.slideshow img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== MALL / GENERISK SIDA ===== */
.page-content { background: var(--bg-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin: 20px 0; }

/* ===== HOVER-KORT FÖR STATISKA MENYSIDOR ===== */
.menu-hover-item {
  position: relative;
  cursor: pointer;
}
.menu-list li.menu-hover-item {
  list-style-position: inside;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background var(--transition);
}
.menu-list li.menu-hover-item:hover,
.menu-list li.menu-hover-item:focus-within {
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e5 100%);
}
.menu-hover-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #fff;
  vertical-align: middle;
}
.menu-hover-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  width: min(340px, calc(100vw - 36px));
  z-index: 300;
  background: rgba(255,255,255,0.98);
  border: 2px solid var(--brand);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.2);
  backdrop-filter: blur(2px);
  padding: 14px;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.menu-hover-item:hover .menu-hover-panel,
.menu-hover-item:focus-within .menu-hover-panel,
.menu-hover-item.open .menu-hover-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.menu-hover-img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.menu-hover-title {
  margin: 10px 0 4px;
  color: var(--brand);
  font-size: 1rem;
  line-height: 1.3;
}
.menu-hover-price {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--brand-dark);
}
.menu-hover-ingredients {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.menu-hover-allergens {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.menu-hover-allergens strong {
  font-size: 0.8rem;
  color: var(--text);
}
.menu-hover-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  margin: 4px 4px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
}
.menu-hover-chip.neutral {
  background: #f0f4f8;
  color: #34495e;
}
.menu-hover-chip.gluten {
  background: #fce4ec;
  color: #ad1457;
}
.menu-hover-chip.laktos {
  background: #fff3e0;
  color: #ef6c00;
}
.menu-hover-chip.agg {
  background: #fffde7;
  color: #f9a825;
}
.menu-hover-chip.fisk {
  background: #e3f2fd;
  color: #1565c0;
}
.menu-hover-chip.jordnotter {
  background: #ede7f6;
  color: #5e35b1;
}

@media (max-width: 700px) {
  .menu-hover-panel {
    width: min(300px, calc(100vw - 24px));
    left: 0;
    transform: translateX(0) translateY(6px);
  }
  .menu-hover-item:hover .menu-hover-panel,
  .menu-hover-item:focus-within .menu-hover-panel,
  .menu-hover-item.open .menu-hover-panel {
    transform: translateX(0) translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 2px; padding-top: 8px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .header-flex { padding: 12px 16px; }
  .hero { padding: 24px 18px; }
  .hero h2 { font-size: 1.3rem; }
}
