/*
Theme Name: Nanas App Theme
Description: Mobile-first PWA theme for Nanas Restaurant with app-like experience
Author: Joseph Ahmed
Version: 1.0.0
Text Domain: nanas-app-theme
*/

/* Google Fonts flyttas till PHP enqueue – @import borttagen (NANA) */

/* CSS Variables */
:root {
  --bg: #FFFFFF;
  --accent: #C1272D;
  --text: #1F2937;
  --muted: #4B5563;
  --panel: #F8FAFC;
  --border: #D1D5DB;
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --spacing: 16px;
  --tabbar-height: 64px;
  --header-height: 60px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  
  /* Solid svart bakgrund */
  background-image: none;
  
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  /* Extra padding för safe-area på mobil enheter */
  padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Förhindra scroll-problem på Android Chrome */
  overflow-x: hidden;
}

/* Global overlay för bättre läsbarhet över bakgrundsbilden */
body::before { content: none; }

/* Förbättra läsbarheten för huvudinnehåll */
.section,
.hero,
.container,
.card {
  position: relative;
  z-index: 1;
}

/* Förstärk bakgrunder på viktiga element */
.card,
.menu-item,
.contact-item {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px var(--shadow);
}

/* Screen reader only - for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Welcome text styling - ingen ram eller bakgrund, centrerat, svart text, Evalfey Bold */
.welcome-text {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center;
  color: #000000;
  font-family: 'Evalfey', 'Georgia', 'Times New Roman', serif;
  font-weight: bold;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.welcome-text p {
  color: #000000;
  font-family: 'Evalfey', 'Georgia', 'Times New Roman', serif;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.welcome-text p:last-child {
  margin-bottom: 0;
}

/* Lättare textskugga för ljust tema */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-subtitle {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 100;
  backdrop-filter: none;
  box-shadow: 0 1px 2px var(--shadow);
}

.logo {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

/* Container */
.container {
  max-width: 100%;
  padding: 0 var(--spacing);
  margin: 0 auto;
}

/* Main Content - säkerställ padding för tabbar */
#main-content {
  position: relative;
  /* Säkerställ att innehållet inte täcker tabbaren */
  padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom) + 1rem);
  min-height: calc(100vh - var(--header-height) - var(--tabbar-height));
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  font-size: 16px;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #a02028;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-outline:not(.hero .btn-outline) {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:not(.hero .btn-outline):hover {
  background: var(--accent);
  color: white;
}

.btn-icon {
  padding: 12px;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
}

/* Action Buttons Section */
.action-buttons-section {
  padding: 0.75rem var(--spacing);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.btn-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 42px;
  border: none;
  cursor: pointer;
}

.btn-action .btn-icon {
  font-size: 1rem;
  padding: 0;
  min-width: auto;
  min-height: auto;
  display: inline-flex;
  align-items: center;
}

.btn-location {
  background: var(--accent);
  color: white;
}

.btn-location:hover {
  background: #a02028;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(193, 39, 45, 0.3);
}

.btn-menu {
  background: var(--text);
  color: white;
}

.btn-menu:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(31, 41, 55, 0.3);
}

@media (max-width: 768px) {
  .action-buttons-section {
    padding: 0.75rem var(--spacing);
  }
  
  .action-buttons {
    gap: 0.6rem;
  }
  
  .btn-action {
    padding: 10px 14px;
    font-size: 0.85rem;
    min-height: 40px;
  }
}

/* Hero Section */
.hero {
  padding: 2rem var(--spacing);
  text-align: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Performance: avoid rendering below-the-fold content until needed */
.section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px; /* reserve space to reduce layout shift */
}

.card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 300px;
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem var(--spacing);
  }
  
  .hero-image {
    max-width: 100%;
  }
}


/* Hero Slideshow */
.hero-slideshow {
  display: grid;
  place-items: center;
  width: 100%;
}

.hero-slideshow .hero-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  opacity: 0;
  will-change: opacity, transform;
  animation: heroSlide 7s infinite ease-in-out; /* 3.5s per image */
}

.hero-slideshow .hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .hero-slide:nth-child(2) { animation-delay: 3.5s; }

/* Slower crossfade + gentle zoom; ~3.5s display per image */
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1.03); }
  12% { opacity: 1; transform: scale(1); }
  50% { opacity: 1; transform: scale(1); }
  62% { opacity: 0; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow .hero-slide { animation: none !important; opacity: 0; }
  .hero-slideshow .hero-slide:nth-child(1) { opacity: 1; }
}

/* Desktop sizing constraints for hero slideshow */
@media (min-width: 1024px) {
  .hero { padding: 1.5rem 0; }
  .hero-content { max-width: 960px; }
  .hero-slideshow { max-width: 960px; margin: 0 auto; }
  .hero-slideshow .hero-slide {
    width: auto;
    max-width: 100%;
    max-height: 60vh; /* prevent oversized images on large screens */
  }
}

/* Social Links */
.social-links {
  padding: 0.25rem 0 0.75rem;
}

.social-links .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 1px 2px var(--shadow);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-icon svg { display: block; width: 28px; height: 28px; }
.social-icon img { display: block; }

/* Only TikTok should fill the frame fully */
.social-icon.social-tiktok img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon:hover {
  transform: translateY(-1px);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Pull social icons closer to hero */
.hero + .social-links {
  margin-top: -0.75rem;
}


/* Hero Logo Styling - Röd text med transparent bakgrund */
.hero-logo {
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.hero-logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  
  /* Smooth hover-effekt */
  transition: transform 0.3s ease;
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.card:hover {
  border-color: var(--accent);
  /* lite mindre blur för billigare paint */
  box-shadow: 0 2px 12px var(--shadow);
}

/* Welcome card styling */
.welcome-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--shadow);
}

.welcome-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  color: var(--text);
}

.welcome-lead {
  margin: 0 auto 0.75rem;
  font-size: 1rem;
  color: var(--muted);
}

.welcome-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border: 0;
  margin: 0.5rem auto 0.75rem;
  border-radius: 2px;
}

.welcome-body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .welcome-card { padding: 2rem 1.75rem; }
  .welcome-title { font-size: 1.6rem; }
  .welcome-lead { font-size: 1.05rem; }
  .welcome-body { font-size: 1rem; }
}

/* Menu Cards */
.menu-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 2rem 0;
}

/* Menu Item Styles - Now handled by menu-cards.css and menu-card-compact.css
 * Old conflicting styles removed to ensure consistent design system
 * All menu item styling is centralized in:
 * - assets/css/menu-cards.css (base card design)
 * - assets/css/menu-card-compact.css (expandable functionality)
 */

/* Hours Table */
.hours-table {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0;
  position: relative;
  border: 1px solid var(--border);
  box-sizing: border-box;
  /* Säkerställ att borders är synliga och klickbara */
  isolation: isolate;
  /* Förhindra sub-pixel rendering problem */
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  /* Använd border-bottom med box-shadow för exakt positionering */
  border-bottom: 1px solid var(--border);
  position: relative;
  pointer-events: auto;
  box-sizing: border-box;
  margin: 0;
  /* Säkerställ att borders är klickbara */
  outline: none;
  /* Säkerställ att hela elementet inklusive borders är klickbart */
  cursor: default;
  /* Säkerställ att borders renderas exakt genom att ta bort sub-pixel problem */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  will-change: auto;
}

/* Säkerställ att child elements inte blockerar klick på borders */
.hours-row .hours-day,
.hours-row .hours-time {
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.hours-row:last-child {
  border-bottom: none;
}

/* Fix för att första raden ska ha border-top för att matcha border-radius */
.hours-table > .hours-row:first-child {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.hours-table > .hours-row:last-child {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.hours-day {
  font-weight: 600;
  color: var(--text);
}

.hours-time {
  color: var(--muted);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.status-open {
  background: #10B981;
  color: white;
}

.status-closed {
  background: var(--accent);
  color: white;
}

/* Contact Info */
.contact-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  margin: 0;
  /* Säkerställ att borders är klickbara */
  outline: none;
}

.contact-item * {
  pointer-events: none;
}

.contact-item:hover {
  border-color: var(--accent);
  background: var(--bg);
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.contact-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Bottom Tab Bar */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* Height includes safe-area for devices with home indicators */
  min-height: var(--tabbar-height);
  height: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  /* Blur bort – billigare rendering */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 255, 255, 0.98); /* eller var(--bg) med alfa */
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center; /* Center items vertically */
  padding-top: 0;
  /* Högre z-index och stacking context för att alltid ligga över innehåll */
  z-index: 10000;
  contain: paint; /* isolera målning */
  padding-bottom: env(safe-area-inset-bottom);
  /* Skapa ny stacking context för att säkerställa att tabbar alltid syns */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Förhindra att innehåll täcker tabbaren vid scroll */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  /* Prevent tabbar from disappearing on mobile scroll */
  -webkit-overflow-scrolling: touch;
  will-change: transform;
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease, transform 0.1s ease;
  min-height: var(--tabbar-height);
  padding: 8px 4px;
  border: none;
  outline: none;
  box-shadow: none;
  will-change: color, transform;
}

.tabbar-item:focus,
.tabbar-item:active,
.tabbar-item:focus-visible {
  border: none;
  outline: none;
  box-shadow: none;
}

.tabbar-item[data-page="contact"] {
  transform: none;
}

.tabbar-icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabbar-icon img {
  width: 2rem !important;
  height: 2rem !important;
  margin-bottom: 0 !important;
  display: block;
}

.tabbar-label {
  font-size: 0.75rem;
  font-weight: 500;
  display: block;
  line-height: 1.1;
  margin-top: 2px;
  text-align: center;
}

/* Footer center button removed on request */

/* Install Banner - Removed */

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Sections */
.section {
  padding: 2rem var(--spacing);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Responsive */
@media (min-width: 768px) {
  .container {
    max-width: 768px;
    margin: 0 auto;
  }
  
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: 1200px;
  }
}

@media (min-width: 1440px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Safe area support for newer devices */
.app-header {
  padding-top: env(safe-area-inset-top);
}

/* Dark mode support (already dark by default) */
@media (prefers-color-scheme: dark) {
  /* Already optimized for dark mode */
}

/* High contrast support */
@media (prefers-contrast: high) {
  :root {
    --border: #666666;
    --muted: #CCCCCC;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ======================
   Custom Font: Evalfey Bold
   NOTE: @font-face är deaktiverad tills fontfilerna finns i assets/fonts/
   Lägg till Evalfey-Bold.woff2 och Evalfey-Bold.woff i assets/fonts/ mappen
   Därefter aktivera @font-face i functions.php via wp_add_inline_style
   ====================== */

.font-evalfey {
  font-family: 'Evalfey', system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 700;
}

/* ======================
   Global Button Enhancements
   - Keeps existing colors and text
   - Works for <button>, <a> with .btn/.button, and Gutenberg .wp-block-button__link
   ====================== */
button,
input[type="button"],
input[type="submit"],
a.btn,
a.button,
button.btn,
.btn,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 0.75rem; /* ~12px */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease, background-color 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Hover: subtle lift + slightly darker */
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.btn:hover,
a.button:hover,
button.btn:hover,
.btn:hover,
.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  filter: brightness(0.97);
}

/* Active: pressed feel */
button:active,
input[type="button"]:active,
input[type="submit"]:active,
a.btn:active,
a.button:active,
button.btn:active,
.btn:active,
.button:active,
.wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.08);
  filter: brightness(0.94);
}

/* Focus: subtle ring (does not alter existing colors) */
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
a.btn:focus,
a.button:focus,
button.btn:focus,
.btn:focus,
.button:focus,
.wp-block-button__link:focus {
  outline: none;
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
a.btn:focus-visible,
a.button:focus-visible,
button.btn:focus-visible,
.btn:focus-visible,
.button:focus-visible,
.wp-block-button__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Disabled state */
button[disabled],
input[type="button"][disabled],
input[type="submit"][disabled],
.btn.disabled,
.button.disabled,
.wp-block-button__link[aria-disabled="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === NANA: Aktiv flik, bottennavigering === */
.tabbar-item { position: relative; }
.tabbar-item.active,
.tabbar-item[aria-current="page"] { 
  color: var(--text);
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Visa etiketter på touch-enheter för bättre igenkänning */
@media (pointer: coarse) {
  .tabbar-item .tabbar-label { display: block; font-size: 0.75rem; line-height: 1.1; }
}
.tabbar-item.active .tabbar-icon,
.tabbar-item[aria-current="page"] .tabbar-icon { 
  transform: translateY(-1px);
  transition: transform 0.1s ease;
  will-change: transform;
}

/* === NANA: Logga färgsätts via SVG/currentColor, inga filter === */
.hero-logo, .site-logo { color: var(--accent); }
.hero-logo img, .site-logo img { filter: none; mix-blend-mode: normal; }

/* === NANA: Temavariabler (mörkt tema) === */
:root.theme-dark {
  --bg:#0B0B0B;
  --panel:#161616;
  --text:#F5F5F5;
  --border:#2A2A2A;
}
body.theme-dark { background: var(--bg); color: var(--text); }
.card, .menu-item, .contact-item { background: var(--panel); color: var(--text); }

/* === NANA: Knappbas + varianter (färger oförändrade) === */
button, .btn, .wp-block-button__link {
  -webkit-tap-highlight-color: transparent;
  line-height: 1.2;
  border-radius: var(--radius, 12px);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:active, .wp-block-button__link:active { transform: translateY(1px); }
.btn-primary, .wp-block-button__link.is-style-fill {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.btn-secondary, .wp-block-button__link.is-style-outline {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: inset 0 4px 10px rgba(0,0,0,.06);
}

/* === NANA: Scroll-lås vid öppna överlägg === */

/* === NANA: Kortbilder, stabil höjd === */
/* Menu item image styles moved to menu-cards.css - removed to avoid conflicts */

/* === NANA: Typografisk skalning === */
:root{
  --fs-0: clamp(14px, 0.9rem + 0.1vw, 16px);
  --fs-1: clamp(18px, 1.05rem + 0.4vw, 22px);
  --fs-2: clamp(22px, 1.2rem + 1.2vw, 28px);
}
body { font-size: var(--fs-0); }
h3 { font-size: var(--fs-1); }
h1 { font-size: var(--fs-2); }

/* === NANA: Defer rendering av långa sektioner === */
.menu-grid, .contact-grid { content-visibility: auto; contain-intrinsic-size: 1px 800px; }

