/* Jubba Restaurang – färger och typografi från cateringmenyn */
:root {
  --plum: #680747;
  --plum-deep: #3f0429;
  --cream: #fbf5e9;
  --cream-2: #f4ead6;
  --gold: #c2a46e;
  --ink: #2a1622;
  --muted: #6e5a64;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--plum); }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 18ch; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 64px, var(--wrap)); } }

.eyebrow {
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--dark { color: #9a7b45; }

/* Knappar */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-deep); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--light { background: var(--cream); color: var(--plum); }
.btn--light:hover { background: #fff; }
.btn--outline { color: var(--plum); border-color: var(--plum); background: transparent; }
.btn--outline:hover { background: var(--plum); color: #fff; }
.btn--small { min-height: 44px; padding: .55rem 1.1rem; font-size: .88rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251,245,233,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(194,164,110,.35);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.site-header__logo img { height: 50px; width: auto; }
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.site-nav a:hover { color: var(--plum); }
@media (max-width: 640px) {
  .site-nav, .site-header .btn { display: none; }
  .site-header__inner { justify-content: center; min-height: 68px; }
  .site-header__logo img { height: 56px; }
}

/* Hero – ljus textyta + bild i naturliga färger */
.hero { display: grid; background: var(--cream); }
.hero__text { display: flex; align-items: center; padding: 3rem 16px 3.5rem; }
.hero__inner { width: 100%; max-width: 560px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { justify-content: center; }
.hero .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero__logo { width: 150px; margin-bottom: 2rem; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; font-weight: 500; color: #9a7b45; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 32em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 2.25rem; }
.hero__facts {
  list-style: none; margin: 0; padding: 1.1rem 0 0;
  border-top: 1px solid rgba(194,164,110,.55);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem;
  font-size: .9rem; color: var(--muted); width: 100%;
}
.hero__facts a { color: var(--ink); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
@media (max-width: 959px) {
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16 / 11; max-height: 300px; }
  .hero__logo { display: none; }
  .hero .eyebrow { letter-spacing: .12em; text-align: center; line-height: 1.5; }
  .hero .eyebrow::before, .hero .eyebrow::after { display: none; }
  .hero__text { padding: 2.25rem 16px 2.75rem; }
  .hero__lead { margin-bottom: 1.5rem; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 360px; margin-bottom: 1.75rem; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { flex-direction: column; align-items: center; gap: .3rem; }
}
@media (min-width: 960px) {
  /* Toppen ryms mellan header (72px) och kontaktlisten (76px) i alla fönsterhöjder */
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); height: calc(100vh - 148px); height: calc(100svh - 148px); min-height: 540px; max-height: 820px; }
  .hero__text { padding: 2rem clamp(32px, 4vw, 64px); overflow: hidden; }
  .hero__inner { margin-inline: auto; }
  .hero__media { min-height: 0; }
  .hero__media img { aspect-ratio: auto; }
  .hero__logo { width: clamp(96px, 14vh, 150px); margin-bottom: clamp(.75rem, 3vh, 2rem); }
  .hero h1 { font-size: clamp(2.4rem, min(4.6vw, 8vh), 4.1rem); }
  .hero__lead { margin-bottom: clamp(1rem, 3vh, 2rem); }
  .hero__actions { margin-bottom: clamp(1rem, 3vh, 2.25rem); }
}

/* Sektioner */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--soft { background: var(--cream-2); }
.section--plum { background: var(--plum); color: rgba(255,255,255,.88); }
.section--plum h2 { color: #fff; }

.section__intro { color: var(--muted); max-width: 46em; font-size: 1.05rem; margin-top: -.25rem; }

/* Kort */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.card {
  background: #fff; border: 1px solid rgba(194,164,110,.35); border-radius: var(--radius);
  padding: 2rem 1.75rem; display: flex; flex-direction: column;
}
.card__num { font: 500 .85rem var(--sans); color: var(--gold); letter-spacing: .1em; margin-bottom: 1rem; }
.card p { color: var(--muted); flex: 1; }
.card__link { font-weight: 600; text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* Skolmat */
.school__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .school__inner { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.school__text p { color: var(--muted); max-width: 38em; }
.school__text .btn { margin-top: .75rem; }
.school__facts { display: grid; gap: 1rem; margin: 0; }
.school__facts div { background: #fff; border: 1px solid rgba(194,164,110,.35); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.school__facts dt { font: 600 3rem/1 var(--serif); color: var(--plum); margin-bottom: .35rem; }
.school__facts dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .school__text .btn { width: 100%; } .school__facts { grid-template-columns: 1fr 1fr; } .school__facts div { padding: 1.1rem; } .school__facts dt { font-size: 2.3rem; } }

/* Eventlokal */
.venue__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .venue__inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.venue__list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.venue__list li { padding: .55rem 0 .55rem 1.75rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.14); }
.venue__list li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .7rem; top: .9rem; }
.venue__media img { border-radius: var(--radius); box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; width: 100%; max-height: 640px; }

/* Cateringmenyer */
.menu__note { color: var(--muted); max-width: 42em; }
.menu__group {
  margin: 3rem 0 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gold);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem;
}
.menu__group span { font: 400 .85rem var(--sans); color: var(--muted); }
.menu__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.menu-card {
  background: #fff; border: 1px solid rgba(194,164,110,.35); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; font-size: .93rem;
}
.menu-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.menu-card h4 { font-size: 1.55rem; margin: 0; }
.menu-card h4 small { font: 400 .8rem var(--sans); color: var(--muted); margin-left: .35rem; }
.menu-card__price { font: 600 1.35rem var(--serif); color: var(--plum); white-space: nowrap; margin: 0; }
.menu-card__price span { font: 400 .78rem var(--sans); color: var(--muted); }
.menu-card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.menu-card li { padding: .4rem 0; border-bottom: 1px dashed rgba(194,164,110,.45); font-weight: 600; }
.menu-card li:last-child { border-bottom: 0; }
.menu-card li small { display: block; font-weight: 400; color: var(--muted); font-style: italic; }
.menu-card p { margin: 0 0 .35rem; color: var(--muted); }
.menu-card p b { color: var(--ink); font-weight: 600; }
.menu-card--feature { background: var(--plum); border-color: var(--plum); color: rgba(255,255,255,.85); }
.menu-card--feature h4, .menu-card--feature .menu-card__price { color: #fff; }
.menu-card--feature .menu-card__price span, .menu-card--feature p { color: rgba(255,255,255,.78); }
.menu-card--feature li { border-color: rgba(194,164,110,.4); color: #fff; }
.menu-card--feature li small { color: rgba(255,255,255,.7); }
.menu-card__tag { font: italic 500 1.1rem var(--serif); color: var(--gold) !important; margin-bottom: 1rem !important; }
.menu-card__label { font: 600 .72rem var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--gold) !important; margin-top: 1rem !important; }

.menu__extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem 1.25rem; margin-top: 2.5rem; }
details { border: 1px solid rgba(194,164,110,.45); border-radius: var(--radius); background: #fff; }
summary {
  cursor: pointer; padding: 1rem 1.25rem; list-style: none;
  font: 600 1.25rem var(--serif); color: var(--plum);
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.4rem var(--sans); color: var(--gold); }
details[open] summary::after { content: "–"; }
.price-list { list-style: none; margin: 0; padding: 0 1.25rem 1rem; font-size: .92rem; }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px dashed rgba(194,164,110,.45); }
.price-list li span:last-child { white-space: nowrap; font-weight: 600; color: var(--plum); }
.price-list small { display: block; color: var(--muted); font-style: italic; }
.menu__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

/* Formulär */
.form-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; } }
.form-intro p { color: var(--muted); }
.form {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
  background: #fff; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--radius);
  border: 1px solid rgba(194,164,110,.35);
}
@media (min-width: 720px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 500; color: var(--ink); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: 400 1rem var(--sans); color: var(--ink);
  background: var(--cream); border: 1px solid #d9c9a8; border-radius: 10px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px rgba(104,7,71,.15); }
.form__hidden { position: absolute; left: -9999px; }

/* Kontakt */
.contact__inner { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; } }
.contact dl { margin: 1.75rem 0; display: grid; gap: 1.1rem; }
.contact dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(194,164,110,.35); }
.contact dt { font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9a7b45; padding-top: .2rem; }
.contact dd { margin: 0; font-size: 1.05rem; }
@media (max-width: 480px) { .contact dl div { grid-template-columns: 1fr; gap: .25rem; } }
.contact__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 640px) {
  .contact__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .contact__actions .btn:last-child { grid-column: 1 / -1; }
  .menu__actions .btn, .menu__all > summary.menu__toggle, .menu__close { width: 100%; }
  .venue .btn { width: 100%; }
}
.contact__map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); filter: saturate(.85); }

.map-consent {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--cream-2);
  border: 1px solid rgba(194,164,110,.45); padding: 2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.map-consent p { color: var(--muted); max-width: 30em; margin: 0; font-size: .92rem; }
.map-consent a { font-size: .9rem; }
.form__privacy { font-size: .82rem; color: var(--muted); margin: 0; }

/* Integritetspolicy */
.legal { max-width: 720px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; max-width: none; }
.legal p { color: var(--muted); }
.legal__updated { font-size: .88rem; }
.legal-page { padding-bottom: 0; }

/* Footer */
.site-footer { background: var(--cream-2); color: var(--muted); border-top: 1px solid rgba(194,164,110,.45); padding: 3.5rem 0 2.5rem; text-align: center; font-size: .9rem; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.site-footer img { width: 110px; margin-bottom: .75rem; }
.site-footer a { color: var(--plum); }
.site-footer__small { font-size: .8rem; opacity: .7; margin: 0; }

/* Alla menyer – utfällbart */
.menu__grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 900px) { .menu__grid--2 { grid-template-columns: 1fr 1fr; } }
.menu__all { border: 0; background: none; margin-top: 2rem; }
.menu__all > summary.menu__toggle { display: inline-flex; font: 600 .95rem/1.2 var(--sans); color: var(--plum); }
.menu__all > summary.menu__toggle::after { content: none; }
.menu__all > summary.menu__toggle:hover { color: #fff; }
.menu__toggle-close, .menu__all[open] .menu__toggle-open { display: none; }
.menu__all[open] .menu__toggle-close { display: inline; }
.menu__close { margin-top: 2rem; }

/* Fast kontaktlist längst ner */
body { padding-bottom: 76px; }
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center; gap: .5rem;
  padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(251,245,233,.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(194,164,110,.55);
  box-shadow: 0 -8px 24px -16px rgba(42,22,34,.35);
}
.contact-bar__item {
  flex: 1 1 0; max-width: 300px; min-height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--plum); border-radius: 999px; padding: .3rem .75rem;
  text-decoration: none; color: var(--plum); line-height: 1.15;
}
.contact-bar__label { font: 600 .9rem var(--sans); }
.contact-bar__value { font-size: .74rem; color: var(--muted); display: none; }
.contact-bar__item--cta { background: var(--plum); color: #fff; flex-grow: 1.6; }
.contact-bar__label { white-space: nowrap; }
.contact-bar__item:hover { background: var(--plum); color: #fff; }
.contact-bar__item:hover .contact-bar__value { color: rgba(255,255,255,.8); }
@media (min-width: 720px) {
  .contact-bar__value { display: block; }
  .contact-bar__item { flex-direction: column; }
}

/* Tack-sidan */
.thanks { min-height: 100vh; display: grid; place-items: center; padding: 2rem 16px; }
.thanks__box { max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.thanks__box img { width: 140px; margin-bottom: 2rem; }
.thanks__box h1 { font-size: clamp(2.2rem, 6vw, 3rem); }
.thanks__box p { color: var(--muted); margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
