/* ============================================================
   Melins Restaurang – design system
   Brand: warm gold (#bbac81), deep wine/black (#1a1010), cream
   Fonts: Anton (display), Montserrat (body), Alex Brush (accent)
   ============================================================ */

:root {
  --gold: #bbac81;
  --gold-dark: #998b65;
  --gold-soft: #d6cba5;
  --ink: #1a1010;
  --ink-2: #2b161b;
  --paper: #faf7f1;
  --paper-2: #f1ebdc;
  --line: rgba(187, 172, 129, 0.35);
  --red: #d90700;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --maxw: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
}
body {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.08em; }
.script {
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
}

p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; max-width: 60ch; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 2px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn:hover { background: transparent; color: var(--gold); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn.ghost:hover { background: var(--gold); color: var(--ink); }
.btn.light  { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover  { background: transparent; color: #fff; }
.btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(10,5,5,0.85), rgba(10,5,5,0.35));
  backdrop-filter: blur(6px);
  transition: background .25s ease, height .25s ease;
}
.site-header.scrolled {
  background: rgba(10, 5, 5, 0.95);
  height: 68px;
}
.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 54px; width: auto; transition: height .25s ease; }
.site-header.scrolled .brand-logo { height: 42px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.04em;
}
.nav a:hover { color: var(--gold); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--gold);
}
.nav a.nav-cta {
  margin-left: 10px;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}
.nav a.nav-cta:hover { background: #fff; }
.nav a.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 5, 5, 0.98);
    padding: 12px 16px 18px;
    gap: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav a.nav-cta { margin: 12px 0 0; text-align: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media video,
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.25), rgba(0,0,0,0.7) 70%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55));
}
.hero-inner {
  padding: 140px 24px 80px;
  max-width: 900px;
}
.hero .script { font-size: clamp(2.2rem, 5vw, 3.4rem); display: block; margin-bottom: -.2em; }
.hero h1 { color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,0.4); }
.hero p { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 60ch; margin: 0 auto 1.8em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SECTIONS
   ============================================================ */
section.section {
  padding: 90px 0;
}
section.section.alt {
  background: var(--paper-2);
}
section.dark {
  background: var(--ink);
  color: var(--paper);
}
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark .script { color: var(--gold); }
section.dark a { color: var(--gold); }

/* Buttons inside dark sections must keep their own foreground colors —
   otherwise the `section.dark a` rule above paints gold-on-gold. */
section.dark a.btn,
section.dark .btn        { color: var(--ink); }
section.dark a.btn:hover,
section.dark .btn:hover  { color: var(--gold); }
section.dark a.btn.ghost,
section.dark .btn.ghost  { color: var(--gold); }
section.dark a.btn.ghost:hover,
section.dark .btn.ghost:hover { color: var(--ink); }

/* Form labels & helper text must be readable inside dark sections.
   Their default colors are dark on dark. */
section.dark .field label    { color: var(--gold-soft); }
section.dark .form-note,
section.dark .muted          { color: #cfc7b3; }
section.dark .info-block h3  { color: #fff; }

.section-head { text-align: center; margin-bottom: 50px; }
.section-head .script { display: block; margin-bottom: -.2em; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head .divider {
  width: 60px; height: 2px; background: var(--gold);
  margin: 18px auto 0;
}

.grid-2 { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.grid-3 { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .grid-3 { grid-template-columns: 1fr; }
}

.feature-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.feature-card .media { aspect-ratio: 16/10; overflow: hidden; }
.feature-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature-card:hover .media img { transform: scale(1.05); }
.feature-card .body { padding: 24px 24px 28px; }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: #444; margin: 0 0 16px; }

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ============================================================
   EVENTS / CALENDAR
   ============================================================ */
.events-list {
  display: grid;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}
.event-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px 22px;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: 0 3px 14px rgba(0,0,0,0.06);
  transition: transform .2s;
}
.event-card:hover { transform: translateX(2px); }
.event-card .date {
  text-align: center;
  font-family: "Anton", sans-serif;
  color: var(--ink);
  line-height: 1;
}
.event-card .date .d { font-size: 2.4rem; display: block; }
.event-card .date .m { font-size: 0.95rem; color: var(--gold-dark); letter-spacing: .15em; }
.event-card .date .y { font-size: 0.75rem; color: #888; }
.event-card .info h3 { margin: 0 0 6px; font-size: 1.3rem; }
.event-card .info .meta { color: #666; font-size: 0.9rem; }
.event-card .info .desc { color: #444; margin-top: 6px; font-size: 0.95rem; }
.event-card .price {
  font-family: "Anton", sans-serif;
  font-size: 1.2rem;
  color: var(--gold-dark);
  white-space: nowrap;
}
.event-empty {
  text-align: center;
  color: #777;
  padding: 40px 0;
  font-style: italic;
}

@media (max-width: 640px) {
  .event-card { grid-template-columns: 70px 1fr; row-gap: 6px; padding: 14px 16px; }
  .event-card .date .d { font-size: 1.8rem; }
  .event-card .price { grid-column: 1 / -1; text-align: right; }
}

/* ============================================================
   HOURS / CONTACT
   ============================================================ */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.hours-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.hours-table td:last-child { text-align: right; color: #555; }

.info-block {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.info-block h3 { margin-top: 0; }
.info-block .tel { font-size: 1.6rem; font-family: "Anton", sans-serif; color: var(--ink); }
.info-block .tel:hover { color: var(--gold-dark); }

/* ============================================================
   FORMS (booking, contact)
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(187,172,129,0.25);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.85rem; color: #666; margin-top: 8px; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 10px; }
.form-status.ok { background: #e8f4e2; color: #2d6520; }
.form-status.err { background: #f9dada; color: #8b1a1a; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #d8d2c2;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 56px; margin-bottom: 16px; }
.footer-tag { color: #b8b0a0; font-style: italic; }
.site-footer h4 {
  color: var(--gold);
  margin-bottom: 16px;
}
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: #fff; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.socials { margin-top: 16px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #8a8273;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* small util */
.center { text-align: center; }
.muted { color: #777; }
.kicker {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(187,172,129,0.18);
  color: var(--gold-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
section.dark .kicker { background: rgba(187,172,129,0.18); color: var(--gold); }

/* ============================================================
   MENU SECTION
   ============================================================ */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 40px;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}
.menu-tab {
  flex: 1;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.menu-tab:hover { color: var(--gold-dark); }
.menu-tab.active {
  background: var(--gold);
  color: var(--ink);
}

.menu-panel { max-width: 820px; margin: 0 auto; }

/* Category pill row (inside Á la carte panel) */
.menu-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -12px auto 28px;
  max-width: 820px;
}
.menu-cat {
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #555;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.menu-cat:hover {
  color: var(--ink);
  border-color: var(--gold);
}
.menu-cat.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.menu-group {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 32px 16px;
  margin-bottom: 26px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  border-top: 4px solid var(--gold);
}
.menu-group > h3 {
  font-family: "Anton", sans-serif;
  font-size: 1.7rem;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.menu-group .m-note {
  color: #666;
  font-style: italic;
  margin: -8px 0 18px;
  font-size: 0.92rem;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-list li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list.compact li { padding: 8px 0; }

.m-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-family: "Montserrat", sans-serif;
}
.m-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  flex: 1;
}
.m-price {
  font-family: "Anton", sans-serif;
  font-size: 1.05rem;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.m-desc {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 4px 0 0;
}

.menu-foot {
  text-align: center;
  margin-top: 36px;
}

/* ============================================================
   SOCIAL SECTION (Facebook feed + Instagram CTA)
   ============================================================ */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .social-grid { grid-template-columns: 1fr; }
}

.social-fb, .social-ig {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.social-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.social-badge {
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: #1877F2;       /* Facebook blue */
  color: #fff;
}
.social-badge.ig {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
}
.social-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-dark);
}
.social-link:hover { color: var(--ink); }

.fb-frame {
  position: relative;
  flex: 1;
  min-height: 540px;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f2f5;
}
.fb-frame iframe {
  width: 100%;
  height: 620px;
  max-height: 100%;
  display: block;
}

.ig-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 22px;
  background: linear-gradient(160deg, #fff 0%, #fff8e9 100%);
  border-radius: 10px;
}
.ig-glyph {
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
}
.ig-card h3 {
  font-size: 1.4rem;
  margin: 0 0 10px;
}
.ig-card p {
  color: #555;
  max-width: 36ch;
  margin: 0 0 22px;
}

/* ============================================================
   HONEYPOT (hidden from users, bots will fill it in)
   ============================================================ */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
