/* ===== NÖJE brand colours & fonts (from nojetirana.com) ===== */
:root {
  --forest: #0f3f35;   /* headings, footer */
  --green: #00513f;    /* buttons */
  --emerald: #006b54;  /* links, accents */
  --leaf: #3c9030;     /* swirl artwork */
  --paper: #f0e4d8;    /* swirl cream */
  --stone: #c0c0b4;    /* swirl background */
  --line: #d8d2c7;     /* sand: borders */
  --ink: #37413d;      /* charcoal green: body text */
  --black: #1a1a1a;
  --cream: #f6f1ea;    /* page background */
  --muted: #6e7672;
  --head: "Rubik", system-ui, sans-serif;
  --body: "Karla", system-ui, sans-serif;
  --bar: 40px;
  --wordmark: url("images/brand/noje-wordmark.png");
  --swirl-color: url("images/brand/noje-swirl-color.jpg");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--body);
  font-size: 16px;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.15; color: var(--forest); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(1280px, 100% - 64px); margin-inline: auto; }
.block { padding: 72px 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin-bottom: 56px; }

/* The NÖJE wordmark, coloured by the surrounding text colour */
.wordmark {
  display: block; aspect-ratio: 768 / 197;
  background: currentColor;
  -webkit-mask: var(--wordmark) center / contain no-repeat;
          mask: var(--wordmark) center / contain no-repeat;
}

/* Photo slots: shows images/*.jpg when present, brand artwork until then */
.photo { background: var(--img) center / cover no-repeat, var(--fallback, var(--stone)); }

/* ===== Buttons ===== */
.pills { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-size: 15px; font-weight: 500;
  padding: 9px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--forest);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.pill:hover { border-color: var(--forest); }
.pill-solid { background: var(--green); border-color: var(--green); color: #fff; }
.pill-solid:hover { background: var(--forest); border-color: var(--forest); }
.pill-light { color: var(--paper); border-color: rgba(240,228,216,.5); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 7px 16px; }
.pill-light:hover { border-color: var(--paper); background: var(--paper); color: var(--forest); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background .3s, color .3s, border-color .3s;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.site-header.solid { background: var(--cream); color: var(--forest); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo .wordmark { width: 104px; }
.nav-links { display: flex; gap: 28px; font-family: var(--head); font-size: 14px; }
.nav-links a { opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px 4px; color: inherit; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  --fallback: var(--swirl-color) center / cover;
  position: relative; height: 100vh; height: 100dvh; min-height: 480px;
  display: grid; place-items: center; align-content: center; gap: 20px; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .8s ease;
}
.hero-shade { position: absolute; inset: 0; background: rgba(40, 44, 40, .55); transition: background .8s ease; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ---- Title: NÖJE + tagline, centred (also the look without video) ---- */
.hero-brand {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.hero-move { position: relative; transform-origin: 0 0; will-change: transform; }
.hero-title { display: flex; align-items: center; color: #fff; white-space: nowrap; }
.hero-title .wordmark { width: clamp(240px, 46vw, 580px); }
.spirit { display: none; }
.spirit-ink {
  display: inline-block;
  font-family: "Caveat", "Segoe Script", cursive; font-weight: 600;
  font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: .01em;
  transform: translateY(-.06em) rotate(-4deg); transform-origin: left center;
  clip-path: inset(-40% 100% -40% -10%);
}
.hero-tagline {
  position: absolute; left: 50%; top: 100%; margin-top: 22px; transform: translateX(-50%);
  color: #fff; white-space: nowrap;
  font-family: var(--head); font-size: 14px; letter-spacing: .28em; text-transform: uppercase;
  transition: opacity .8s ease, transform .8s ease;
}

/* ---- With video: black screen while the title is centred ---- */
.hero.has-video { background: #000; }
.hero.is-intro .hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero.is-intro .hero-shade { background: transparent; }
.hero.is-intro .hero-tagline { animation: tagline-in 1.3s 1.4s cubic-bezier(.22, .8, .25, 1) both; }
.hero.is-first .hero-tagline { animation-delay: .45s; }
.hero.is-first .hero-title .wordmark { animation: logo-in 1.2s cubic-bezier(.22, .8, .25, 1) both; }
.hero.is-leaving .hero-tagline { opacity: 0; transform: translate(-50%, 10px); animation: none; }

/* ---- While the video plays: "the spirit of NÖJE" in the bottom-left corner ---- */
.hero.is-side .hero-video.ready { opacity: 1; transition: opacity 1.4s ease; }
.hero.is-side .hero-shade { background: linear-gradient(to top right, rgba(0,0,0,.5), rgba(0,0,0,0) 55%); }
.hero.is-side .hero-brand { left: 4vw; top: calc(100% - 150px); transform: translate(0, -50%); }
.hero.is-side .hero-title .wordmark { --mark-w: clamp(120px, 13vw, 190px); width: var(--mark-w); }
/* the logo image has ~15% empty space on its left: pull it in so it sits right after the handwriting */
.hero.is-side .hero-title .wordmark { margin-left: calc(var(--mark-w) * -.13); }
.hero.is-side .spirit { display: inline-block; margin-right: .22em; }
.hero.is-side .hero-tagline { opacity: 0; }
/* the phrase is "written" from left to right */
.hero.is-writing .spirit-ink { animation: write-on 1.8s cubic-bezier(.45, .05, .35, 1) forwards; }
.hero.is-unwriting .spirit-ink { clip-path: inset(-40% -10% -40% -10%); opacity: 0; filter: blur(4px); transition: opacity .7s ease, filter .7s ease; }

@keyframes write-on {
  from { clip-path: inset(-40% 100% -40% -10%); }
  to   { clip-path: inset(-40% -10% -40% -10%); }
}
@keyframes logo-in {
  0%   { opacity: 0; transform: scale(1.35); filter: blur(16px); }
  50%  { opacity: 1; filter: blur(0); }
  75%  { transform: scale(.985); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes tagline-in {
  0%   { opacity: 0; transform: translate(-50%, 16px); letter-spacing: .6em; }
  100% { opacity: 1; transform: translate(-50%, 0); letter-spacing: .28em; }
}

/* ===== Intro ===== */
.title-row, .section-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid var(--line);
}
.section-row { border-bottom: 0; padding-bottom: 0; }
.venue-name { color: var(--forest); }
.venue-name .wordmark { width: clamp(180px, 26vw, 340px); }
.section-title { font-size: clamp(2rem, 4vw, 2.75rem); }
.section-title::after { content: ""; display: block; width: 44px; height: 3px; background: var(--emerald); margin-top: 16px; }

.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: start; }
.intro-text {
  font-family: var(--head); font-weight: 400; color: var(--forest);
  font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.32;
  max-width: 22em;
}
.intro-sub { margin-top: 28px; max-width: 34em; font-size: 17px; color: var(--ink); }

.details > div {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.details > div:first-child { padding-top: 0; }
.details dt { color: var(--muted); font-size: 15px; }
.details dd a { color: var(--emerald); }
.details dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Gallery ===== */
.gallery-block { padding-top: 24px; }
.gallery {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 32px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; height: clamp(280px, 42vw, 520px); scroll-snap-align: start; }
.g-wide { width: clamp(320px, 58vw, 780px); --fallback: var(--swirl-color) center / cover; }
.g-tall { width: clamp(220px, 30vw, 400px); }
.gallery figure:nth-child(3) { --fallback: var(--forest); }

/* ===== Menu ===== */
.menu-panel { display: none; }
.menu-panel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.menu-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; }
.menu-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.menu-list h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 4px; }
.menu-list p { color: var(--muted); font-size: 15px; }
.menu-list li > span { white-space: nowrap; font-family: var(--head); font-weight: 500; color: var(--forest); }
.menu-note { color: var(--muted); font-size: 14px; margin-top: 32px; }
.menu-group {
  font-family: var(--head); font-weight: 500; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--emerald);
  margin: 40px 0 4px;
}
.menu-panel > .menu-group:first-child { margin-top: 0; }

.tag {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-family: var(--head); font-style: normal; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--forest);
}
.milks {
  display: grid; grid-template-columns: 1fr 2fr; gap: 36px;
  margin-top: 40px; padding: 28px 0;
  border-top: 2px solid var(--forest); border-bottom: 1px solid var(--line);
}
.milks h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.milks-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.milk-list { list-style: none; columns: 2; column-gap: 36px; }
.milk-list li {
  font-family: var(--head); font-weight: 400; font-size: 1.05rem; color: var(--forest);
  padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid;
  display: flex; gap: 12px; align-items: baseline;
}
.milk-list li span { font-family: var(--body); font-size: 12px; color: var(--emerald); width: 1.6em; }
@media (max-width: 760px) {
  .milks { grid-template-columns: 1fr; gap: 16px; }
  .milk-list { columns: 2; column-gap: 24px; }
}
@media (max-width: 330px) {
  .milk-list { columns: 1; }
}
.menu-credit { color: var(--muted); font-size: 14px; margin-top: 24px; font-style: italic; }

/* ===== Feature panel (swirl) ===== */
.feature {
  background: linear-gradient(rgba(15,63,53,.86), rgba(15,63,53,.86)), var(--swirl-color) center / cover;
  color: var(--paper);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px;
  padding: clamp(40px, 7vw, 96px);
}
.feature-text p {
  font-family: var(--head); font-weight: 400;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.3; margin-bottom: 28px; max-width: 18em;
}
.feature-text .feature-eyebrow {
  font-family: var(--body); font-size: 14px; letter-spacing: .06em; color: var(--stone); margin-bottom: 16px;
}
.feature-card {
  justify-self: center; width: min(320px, 100%); aspect-ratio: 1.6;
  background: var(--paper); color: var(--forest); border-radius: 10px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.feature-card .wordmark { width: 120px; }
.feature-card-line {
  align-self: flex-end; text-align: right; line-height: 1.6;
  font-family: var(--head); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}

/* ===== Visit ===== */
.visit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.map { aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.5); }
.status { font-family: var(--head); font-weight: 500; font-size: 1.5rem; margin-bottom: 24px; }
.status::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 12px; vertical-align: middle; background: currentColor; }
.status.open { color: var(--emerald); }
.status.closed { color: #a2574a; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact-sub { margin-top: 20px; max-width: 26em; color: var(--ink); font-size: 17px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--forest); }
.contact-form .pill { justify-self: start; }
.form-msg { grid-column: 1 / -1; color: var(--emerald); min-height: 1.5em; }

/* ===== Footer ===== */
.site-footer { background: var(--forest); color: var(--paper); padding: 64px 0 76px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 64px; }
.footer-logo .wordmark { width: 150px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--head); font-size: 14px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-tagline { font-family: var(--head); font-weight: 500; font-size: 1.5rem; margin-bottom: 24px; color: #fff; }
.footer-small { font-size: 14px; color: var(--stone); }

/* ===== "Find us" button: small floating pill, hidden over the video ===== */
.bottom-bar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--green); color: #fff; white-space: nowrap;
  font-family: var(--head); font-weight: 500; font-size: .78rem; letter-spacing: .05em;
  box-shadow: 0 6px 18px rgba(15, 63, 53, .28);
  transition: background .2s, opacity .4s ease, transform .4s ease;
}
.bottom-bar::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9fd39a; }
.bottom-bar:hover { background: var(--forest); }
.bottom-bar.is-hidden { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .container { width: calc(100% - 32px); }
  .block { padding: 56px 0; }
  .intro, .visit, .contact, .feature { grid-template-columns: 1fr; gap: 40px; }
  .menu-list { grid-template-columns: 1fr; }
  .gallery { padding: 0 16px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    background: var(--cream); color: var(--forest); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 16px; border-top: 1px solid var(--line); font-size: 16px; }
}
@media (max-width: 560px) {
  .contact-form { grid-template-columns: 1fr; }
  .details > div { grid-template-columns: 90px 1fr; }
}

/* ===== Phones ===== */
@media (max-width: 600px) {
  /* Full-screen hero that respects the phone's browser bars; keep the pour in frame */
  .hero { height: 100vh; height: 100dvh; min-height: 0; }
  .hero-video { object-position: center; }
  .hero-title .wordmark { width: min(72vw, 300px); }
  .hero-tagline { font-size: 11px; letter-spacing: .22em; }
  .hero.is-side .hero-brand { left: 18px; top: calc(100% - 70px - env(safe-area-inset-bottom)); }
  .hero.is-side .hero-title .wordmark { --mark-w: 104px; }
  .spirit-ink { font-size: 25px; }


  /* Bigger tap targets */
  .logo { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-toggle { padding: 12px 6px; }
  .details dd a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .footer-links { gap: 4px 20px; }
  .footer-links a { padding: 10px 0; }
  .pill { min-height: 44px; }

  /* Intro */
  .title-row { padding-bottom: 28px; margin-bottom: 32px; }
  .intro-text { font-size: 1.35rem; }
  .intro-sub { font-size: 16px; }

  /* Menu: tabs on one line, scroll sideways if a phone is very narrow */
  .section-row { gap: 16px; }
  .menu-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; width: 100%; scrollbar-width: none; }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .menu-tabs .pill { flex: none; padding: 8px 16px; font-size: 14px; }
  .menu-list li { padding: 16px 0; gap: 16px; }
  .menu-list h3 { font-size: 1.15rem; }
  .menu-list p { font-size: 14px; }
  .menu-list .tag { display: table; margin: 6px 0 2px; }
  .menu-group { margin-top: 32px; }

  /* Gallery a little shorter so it doesn't fill the whole screen */
  .gallery figure { height: 300px; }
  .g-wide { width: 78vw; }
  .g-tall { width: 56vw; }

  /* Swirl panel */
  .feature { gap: 28px; padding: 36px 24px; }
  .feature-card { width: 100%; max-width: 280px; aspect-ratio: 1.75; padding: 18px 20px; }
  .feature-card .wordmark { width: 96px; }

  /* Sections */
  .block { padding: 44px 0; }
  .rule { margin-bottom: 40px; }
  .site-footer { padding: 48px 0 32px; }
  .footer-top { margin-bottom: 40px; }
}

/* ===== Pastry drawings used as decoration around the page ===== */
main { overflow-x: clip; }
.decor { display: block; height: auto; pointer-events: none; user-select: none; }
.decor-knot { width: 150px; margin: 36px 0 0 -6px; transform: rotate(-6deg); }
.gallery-block { position: relative; }
.decor-choc { position: absolute; z-index: 2; right: 6%; top: -118px; width: 120px; transform: rotate(8deg); }
.section-row { position: relative; }
.decor-rasp { width: 96px; margin: -10px auto 0 24px; transform: rotate(-8deg); }
.menu-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.decor-cro { width: 190px; margin: 8px 4% -24px 0; transform: rotate(4deg); }
.decor-pump { width: 150px; margin: 36px 0 0 auto; transform: rotate(6deg); }
.decor-blue { width: 130px; margin: 32px 0 0 -4px; transform: rotate(-5deg); }

@media (max-width: 900px) {
  .decor-knot { width: 110px; margin: 24px 0 0 auto; }
  .decor-pump { width: 112px; margin-top: 24px; }
  .decor-blue { width: 100px; margin: 20px 0 0 auto; }
}
@media (max-width: 600px) {
  .decor-choc { width: 80px; top: -72px; right: 4%; }
  .decor-rasp { position: absolute; right: 0; top: -14px; width: 64px; margin: 0; }
  .decor-cro { width: 130px; margin-bottom: -12px; }
}

/* Drink drawings */
.menu-group.has-decor { position: relative; }
.decor-psl { display: inline-block; vertical-align: middle; width: 64px; margin: -12px 0 -8px 14px; transform: rotate(7deg); }
.decor-iced { width: 120px; margin-top: 24px; transform: rotate(-5deg); }
@media (max-width: 760px) {
  .decor-iced { position: absolute; right: 0; top: 18px; width: 70px; margin: 0; }
  .milks { position: relative; }
}
@media (max-width: 600px) {
  .decor-psl { width: 52px; margin-left: 10px; }
}

/* Gallery photos: portrait (3:4) and landscape (4:3) all share one height */
.gallery figure { margin: 0; overflow: hidden; background: var(--stone); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .g-tall { width: auto; aspect-ratio: 3 / 4; }
.gallery .g-wide { width: auto; aspect-ratio: 4 / 3; }
@media (max-width: 600px) {
  .gallery .g-tall, .gallery .g-wide { width: auto; }
}
