/* STAM BV - Static HTML site - Brand styles (no Tailwind) */
:root {
  --stam-navy: #152A4A;
  --stam-red: #CF452A;
  --stam-cream: #F6ECD8;
  --stam-dark: #0A1525;
  --stam-white: #FFFFFF;
  --stam-primary: #152A4A;
  --stam-accent: #CF452A;
  --stam-background: #F6ECD8;
  /* Legacy names for static HTML (same values) */
  --stam-green: #152A4A;
  --stam-gold: #CF452A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--stam-cream);
  color: #111827;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(21, 42, 74, 0.2);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
}
.site-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .site-header-inner { padding: 0.75rem 1.5rem; }
}
.site-main { flex: 1; max-width: 72rem; margin: 0 auto; width: 100%; min-width: 0; padding: 2.5rem 1rem; }
@media (min-width: 640px) { .site-main { padding: 3.5rem 1.5rem; } }

/* Desktop nav: single row, no wrap – show only from 768px */
.site-nav {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
@media (min-width: 768px) {
  .site-nav { display: flex; }
}
.site-nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151 !important;
  text-decoration: none !important;
  border-radius: 0.25rem;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--stam-cream); color: var(--stam-green) !important; }
.site-nav a:focus { outline: 2px solid var(--stam-green); outline-offset: 2px; }

/* Mobile: hamburger only below 768px; desktop: hamburger hidden */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #374151;
  cursor: pointer;
  border-radius: 0.5rem;
}
.nav-toggle:hover { background: var(--stam-cream); color: var(--stam-green); }
.nav-toggle:focus { outline: 2px solid var(--stam-green); outline-offset: 2px; }
.nav-toggle svg { display: block; }
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
}

/* Mobile nav overlay and panel – hidden when closed, no layout/click */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.2s, opacity 0.2s;
}
.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 100%);
  background: #fff;
  z-index: 9999;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
}
.nav-overlay.is-open .nav-panel { transform: translateX(0); }
.nav-panel a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151 !important;
  text-decoration: none !important;
  border-radius: 0.25rem;
  min-height: 2.75rem;
}
.nav-panel a:hover { background: var(--stam-cream); color: var(--stam-green) !important; }
.nav-panel a:focus { outline: 2px solid var(--stam-green); outline-offset: 2px; }
body.nav-open { overflow: hidden; }

/* Logo */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--stam-green);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-link:focus { outline: 2px solid var(--stam-green); outline-offset: 2px; border-radius: 4px; }
.logo-img { display: block; height: 40px; width: auto; object-fit: contain; }

/* Buttons - min 44px touch target */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: var(--stam-red);
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover { background: #b03d25; }
.btn-primary:focus { outline: 2px solid var(--stam-red); outline-offset: 2px; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stam-green);
  background: #fff;
  border: 2px solid var(--stam-green);
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--stam-cream); }
.btn-secondary:focus { outline: 2px solid var(--stam-green); outline-offset: 2px; }

/* Cards */
.card {
  background: #fff;
  border-radius: 0.75rem;
  border: 2px solid rgba(45, 90, 39, 0.2);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}
.assortiment-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 140px !important;
  max-height: 140px !important;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
}
.card .assortiment-img {
  width: calc(100% + 3rem);
  max-width: none;
}

/* Typography */
h1 { font-size: 1.875rem; font-weight: 700; color: var(--stam-green); margin: 0; }
@media (min-width: 640px) { h1 { font-size: 2.25rem; } }
h2 { font-size: 1.25rem; font-weight: 600; color: var(--stam-green); margin: 0 0 1rem; }
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-gray-700 { color: #374151; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Hero */
.hero-wrap {
  position: relative;
  width: 100%;
  height: 16rem;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
@media (min-width: 640px) { .hero-wrap { height: 20rem; } }
@media (min-width: 768px) { .hero-wrap { height: 24rem; } }
.hero-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-box {
  background: rgba(255,255,255,0.95);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  text-align: center;
}

/* Grid */
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Spacing */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(45, 90, 39, 0.2);
  background: #fff;
  padding: 2rem 1rem;
  margin-top: auto;
}
.site-footer-inner { max-width: 72rem; margin: 0 auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.footer-nav a { color: var(--stam-green); font-weight: 500; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* Table */
.table-wrap { max-width: 100%; overflow-x: auto; border-radius: 0.75rem; }
.price-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid rgba(45, 90, 39, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
}
.price-table thead { background: var(--stam-green); color: #fff; text-align: left; }
.price-table th, .price-table td { padding: 0.75rem 1rem; }
.price-table .text-right { text-align: right; }
.price-table .text-center { text-align: center; }
.price-table .font-medium { font-weight: 600; color: var(--stam-green); }
.price-table .category-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stam-green); margin-bottom: 0.25rem; }
.price-table .product-name { display: block; }
.price-table tbody tr { border-top: 1px solid rgba(45, 90, 39, 0.1); }
.price-table tbody tr:hover { background: rgba(245, 240, 230, 0.5); }
.order-total-text { font-size: 0.875rem; color: #374151; }
.qty-controls { display: inline-flex; align-items: center; gap: 0.5rem; }
.qty-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--stam-green);
  background: #fff;
  color: var(--stam-green);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.25rem;
}
.qty-controls button:hover:not(:disabled) { background: var(--stam-cream); }
.qty-controls button:disabled { opacity: 0.5; cursor: not-allowed; }
.qty-controls span { min-width: 2rem; text-align: center; font-weight: 600; }

/* Sticky order bar */
.order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid var(--stam-green);
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.08);
  z-index: 40;
}
.order-bar-inner { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.order-bar a { text-decoration: none; font-weight: 600; }
.pb-32 { padding-bottom: 8rem; }

@media (max-width: 480px) {
  .order-bar { padding-left: 0.75rem; padding-right: 0.75rem; }
  .order-bar-inner { flex-direction: column; gap: 0.75rem; width: 100%; }
  .order-bar-inner .order-total-text { width: 100%; text-align: center; }
  .order-bar-inner a,
  .order-bar-inner button { min-width: 0; width: 100%; }
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}
label { display: block; font-weight: 500; margin-bottom: 0.25rem; }
.form-group { margin-bottom: 1rem; }

/* WhatsApp button (stam-red for CTA consistency) */
.whatsapp-btn { background: var(--stam-red); color: #fff; }
.whatsapp-btn:hover { background: #b03d25; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
