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

:root {
  --green:   #1A5C2E;
  --green2:  #2E7D4A;
  --gold:    #C8A84B;
  --cream:   #FAF8F2;
  --warm:    #EBF2EC;
  --text:    #1A2B1E;
  --muted:   #4A6754;
  --radius:  8px;
}

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background-color: var(--green);
  background-image:
    linear-gradient(to bottom, rgba(20,60,30,.72) 0%, rgba(10,40,18,.85) 100%),
    url('facade.jpg');
  background-size: cover;
  background-position: center 30%;
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: .25rem .9rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: .5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  margin-top: .5rem;
  letter-spacing: .04em;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }

.section-title {
  font-size: 1.7rem;
  color: var(--green);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: .6rem auto 0;
  border-radius: 2px;
}

/* ── Info cards ─────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--warm);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  border-left: 4px solid var(--green2);
  transition: transform .2s, box-shadow .2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44,24,16,.10);
}

.info-card .icon {
  font-size: 1.6rem;
  line-height: 1;
}

.info-card h3 {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}

.info-card p, .info-card a {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.info-card a:hover { color: var(--gold); }

/* ── Map ────────────────────────────────────────────────────── */
#kort { background: var(--warm); }

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(44,24,16,.12);
  border: 4px solid #fff;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

.map-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--muted);
}

.map-caption a { color: var(--gold); text-decoration: underline; }

/* ── Menu placeholder ───────────────────────────────────────── */
.menu-placeholder {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}

.menu-placeholder h3 {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.menu-placeholder p {
  color: rgba(255,255,255,.6);
  font-size: .95rem;
}

/* ── Menukort ───────────────────────────────────────────────── */
.menu-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.menu-featured-card {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.menu-featured-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.menu-featured-info strong { font-size: 1rem; }
.menu-featured-info span   { font-size: .8rem; color: rgba(255,255,255,.7); }

.menu-featured-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.menu-tab {
  background: var(--warm);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all .2s;
}

.menu-tab:hover  { border-color: var(--green2); color: var(--green); }
.menu-tab.active { background: var(--green); color: #fff; border-color: var(--green); }

.menu-panel { display: none; }
.menu-panel.active { display: block; }

.menu-note {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.menu-list {
  list-style: none;
  border-top: 1px solid rgba(0,0,0,.07);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.menu-item-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.menu-item-name { font-weight: 600; font-size: .95rem; }

.menu-item-desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}

.menu-item-price {
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  font-size: .95rem;
}

.menu-footer-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

.menu-footer-note a { color: var(--green2); }

.menu-pdf-btn {
  display: inline-block;
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  padding: .55rem 1.4rem;
  font-size: .875rem;
  font-weight: 600;
  transition: all .2s;
}

.menu-pdf-btn:hover {
  background: var(--green);
  color: #fff;
}

/* ── Smiley ─────────────────────────────────────────────────── */
.smiley-section { padding: 2.5rem 0; }

.smiley-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--warm);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(44,24,16,.08);
}

.smiley-card p {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

.smiley-badge-link {
  display: inline-block;
  transition: opacity .2s;
}
.smiley-badge-link:hover { opacity: .85; }

.smiley-badge-link img {
  width: 120px;
  height: auto;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--green);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .85rem;
}

footer strong { color: #fff; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.10);
  color: #fff;
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s;
}

.social-link:hover { background: var(--gold); }

/* ── Footer link ────────────────────────────────────────────── */
.footer-link {
  background: none;
  border: none;
  color: rgba(255,255,255,.45);
  font-size: .75rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.footer-link:hover { color: #fff; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-box--pdf {
  max-width: 680px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.pdf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--green);
  color: #fff;
  font-size: .9rem;
  gap: 1rem;
  flex-shrink: 0;
}

.pdf-dl-btn {
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}

.pdf-dl-btn:hover { opacity: .85; }

.modal-box--pdf .modal-close {
  position: static;
  color: #fff;
}

.pdf-pages {
  overflow-y: auto;
  padding: 1rem;
  background: #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdf-canvas {
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  display: block;
}

.menu-pdf-btn--view {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.menu-pdf-btn--view:hover {
  background: var(--green2);
  border-color: var(--green2);
  color: #fff;
}

.modal-box h2 {
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.modal-box h3 {
  font-size: 1rem;
  color: var(--green);
  margin: 1.25rem 0 .4rem;
}

.modal-box p {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.6;
}

.modal-box a { color: var(--green2); text-decoration: underline; }

.modal-box ul {
  margin: .5rem 0 0 1.25rem;
  font-size: .875rem;
  color: var(--text);
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* ── Cookie-banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 720px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 1000;
  padding: 1.25rem 1.5rem;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text { flex: 1; min-width: 200px; }

.cookie-text strong {
  display: block;
  margin-bottom: .25rem;
  font-size: 1rem;
}

.cookie-text p {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

.cookie-text a { color: var(--gold); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: .5rem 1.25rem;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}

.cookie-btn:hover { opacity: .85; }

.cookie-btn--accept {
  background: var(--gold);
  color: #fff;
}

.cookie-btn--decline {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.35);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 520px) {
  .hero { padding: 3.5rem 1rem 3.5rem; }
  .hero::after { display: none; }
  .map-wrapper iframe { height: 280px; }
}
