/* ============================================================
   BVV DESIGN SYSTEM — BØRKOP VANDMØLLES VENNER
   Baseret på BVV Brandbook v1
   ============================================================ */

:root {
  /* Brandbook Farver */
  --mollebrun:       #5D4A38; /* Primær, overskrifter, footer */
  --mollebrun-mork:  #3D2F22;
  --aa-vand:         #4A6B6F; /* Interaktion, links, hover */
  --aa-vand-mork:    #354E51;
  --eng-gron:        #7A8B6F; /* Sektioner, kort */
  --eng-gron-lys:    #E2E8DF;
  --hoe-hvid:        #F5F1E8; /* Primær baggrund - aldrig ren hvid */
  --hoe-hvid-varm:   #EFEADF;
  --mursten:         #A65D43; /* Accent, primære knapper */
  --mursten-mork:    #87442F;
  --tekst-mork:      #3A322A; /* Brødtekst for optimal kontrast */
  --kort:            #FDFAF3; /* Paneler og kort */
  --kort-border:     rgba(93, 74, 56, 0.12);

  /* Statusbar Farver */
  --status-aaben:    #2D5A27;
  --status-lukket:   #8B3A2B;
  --status-vinterhi: #4A6B6F;

  /* Layout & Effekter */
  --container:       1180px;
  --radius-sm:       4px;
  --radius:          8px;
  --radius-lg:       16px;
  --skygge:          0 4px 20px rgba(93, 74, 56, 0.08);
  --skygge-stor:     0 12px 36px rgba(93, 74, 56, 0.14);
  --transition:      all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Basis */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--hoe-hvid);
  color: var(--tekst-mork);
  line-height: 1.6;
  font-size: 1.05rem;
  background-image: radial-gradient(rgba(93, 74, 56, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  background: var(--mursten);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Typografi */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--mollebrun);
  line-height: 1.25;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 0.6rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--aa-vand);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: var(--transition);
}
a:hover {
  color: var(--mursten);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   KNAPPER & BADGES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.btn--primary {
  background: var(--mursten);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(166, 93, 67, 0.25);
}
.btn--primary:hover {
  background: var(--mursten-mork);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(166, 93, 67, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--aa-vand) !important;
  border-color: var(--aa-vand);
}
.btn--secondary:hover {
  background: var(--aa-vand);
  color: #FFFFFF !important;
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}
.badge--green { background: var(--eng-gron-lys); color: var(--mollebrun); }
.badge--brick { background: rgba(166, 93, 67, 0.15); color: var(--mursten-mork); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background: var(--hoe-hvid);
  border-bottom: 1px solid var(--kort-border);
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(10px);
  background-color: rgba(245, 241, 232, 0.95);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--mollebrun);
}

.nav__logo-symbol {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mollebrun);
  color: var(--hoe-hvid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 2px 6px rgba(93, 74, 56, 0.2);
}

.nav__logo-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mollebrun);
  line-height: 1.1;
}
.nav__logo-text small {
  display: block;
  font-size: 0.76rem;
  color: var(--aa-vand);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav__links a {
  color: var(--mollebrun);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.4rem 0;
  position: relative;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--aa-vand);
}
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--aa-vand);
  border-radius: 2px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Mobilmenu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--mollebrun);
  flex-direction: column;
  gap: 5px;
}
.menu-toggle__line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  background: var(--hoe-hvid);
  border-top: 1px solid var(--kort-border);
  padding: 1.5rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__list { list-style: none; }
.mobile-nav__list li { margin-bottom: 0.8rem; }
.mobile-nav__list a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mollebrun);
  text-decoration: none;
  padding: 0.4rem 0;
}
.mobile-nav__divider {
  height: 1px;
  background: var(--kort-border);
  margin: 1rem 0 !important;
}

/* ============================================================
   TODAY STATUS BAR (ÅBNINGSTID REALTID)
   ============================================================ */
.today-bar {
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.today-bar--aaben {
  background: linear-gradient(90deg, #234E1D 0%, #34682C 100%);
}
.today-bar--lukket {
  background: linear-gradient(90deg, #7A3525 0%, #8F4432 100%);
}
.today-bar--vinterhi {
  background: linear-gradient(90deg, #375357 0%, #4A6B6F 100%);
}

.today-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.today-bar__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.today-bar__badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.today-bar__cta {
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
}
.today-bar__cta:hover { color: var(--hoe-hvid); }

/* ============================================================
   HERO SEKTION
   ============================================================ */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-kicker {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--aa-vand);
  margin-bottom: 0.8rem;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--tekst-mork);
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--kort-border);
}
.hero-meta-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--mollebrun);
  line-height: 1.1;
}
.hero-meta-item span {
  font-size: 0.85rem;
  color: var(--tekst-mork);
  opacity: 0.85;
}

.hero-visual {
  position: relative;
}
.hero-visual__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--skygge-stor);
  background: var(--kort);
  border: 1px solid var(--kort-border);
  position: relative;
}
.hero-visual__frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-visual__frame:hover img {
  transform: scale(1.02);
}
.hero-visual__caption {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(93, 74, 56, 0.85);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

/* ============================================================
   SEKTIONER & KORT
   ============================================================ */
.section {
  padding: 4.5rem 0;
}
.section--green {
  background: var(--eng-gron);
  color: #FFFFFF;
}
.section--green h1,
.section--green h2,
.section--green h3,
.section--green h4 {
  color: #FFFFFF;
}
.section--green p {
  color: rgba(255, 255, 255, 0.92);
}
.section--green .section-kicker {
  color: var(--hoe-hvid);
}

.section-head {
  max-width: 680px;
  margin-bottom: 3rem;
}
.section-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--aa-vand);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
}

/* 3-Søjlet Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* 2-Søjlet Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Standard Kort */
.card {
  background: var(--kort);
  border: 1px solid var(--kort-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--skygge);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--skygge-stor);
}

.card--media {
  padding: 0;
  overflow: hidden;
}
.card--media .card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card--media .card__body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

/* Melprodukter Galleri */
.flour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.flour-card {
  background: var(--kort);
  border: 1px solid var(--kort-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--skygge);
}
.flour-card .type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mursten);
  margin-bottom: 0.4rem;
}
.flour-card h4 { font-size: 1.2rem; color: var(--mollebrun); margin-bottom: 0.4rem; }
.flour-card p { font-size: 0.92rem; color: var(--tekst-mork); opacity: 0.85; }

/* Restaurant Henvisnings-Strip */
.restaurant-strip {
  background: #FDF2DC;
  border-top: 3px solid #7A2E1F;
  border-bottom: 3px solid #7A2E1F;
  padding: 3rem 0;
  margin: 4rem 0;
}
.restaurant-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.restaurant-strip__text h3 {
  color: #5A1F12;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.restaurant-strip__text p {
  color: #3A2418;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.restaurant-strip__text small {
  color: #7A2E1F;
  font-style: italic;
  font-size: 0.85rem;
}

/* ============================================================
   FORMULARER & BOKSE
   ============================================================ */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--mollebrun);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--kort-border);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--tekst-mork);
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--aa-vand);
  box-shadow: 0 0 0 3px rgba(74, 107, 111, 0.15);
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.flash-msg {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-weight: 600;
}
.flash-msg--success { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.flash-msg--error { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--mollebrun);
  color: var(--hoe-hvid);
  padding: 4.5rem 0 2rem;
  margin-top: 5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.footer-brand .symbol {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hoe-hvid);
  color: var(--mollebrun);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.footer-brand h3 { color: var(--hoe-hvid); font-size: 1.4rem; }
.footer-brand p { font-size: 0.92rem; color: rgba(245, 241, 232, 0.8); line-height: 1.6; }
.footer-brand .since { font-family: 'Playfair Display', serif; font-style: italic; color: rgba(245, 241, 232, 0.6); margin-top: 0.8rem; }

.footer-col h4 {
  color: var(--hoe-hvid);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(245, 241, 232, 0.85); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-col p { font-size: 0.92rem; color: rgba(245, 241, 232, 0.8); }

.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(245, 241, 232, 0.6);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a { color: rgba(245, 241, 232, 0.6); text-decoration: none; }
.footer-links a:hover { color: #FFFFFF; }

/* ============================================================
   RESPONSIVT DESIGN
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .restaurant-strip__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions .btn--secondary { display: none; }
  .menu-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-meta { flex-direction: column; gap: 0.8rem; }
  .section { padding: 3.5rem 0; }
}
