/* Bistro Neuf design system — extracted 1:1 from the live Webflow design (site.css).
   Prefix `bn-` so it never clashes with the ported site.css. Load after site.css. */

:root {
  /* Colors (normalized: #bb461a / #ba461a variants -> #bb4619) */
  --bn-brand: #bb4619;
  --bn-brand-dark: #69280f;
  --bn-cream: #fbf6f5;
  --bn-bg-light: #fafafa;
  --bn-white: #fff;
  --bn-green: #2f4838;
  --bn-muted: #6f7f74;
  --bn-border: #c6cec9;

  /* Typography — Manrope only (Google Fonts 300–700; CSS weight 800 renders as live does) */
  --bn-font: Manrope, sans-serif;
  --bn-text-display: clamp(2.75rem, 8vw, 6.875rem);  /* .h1 hero */
  --bn-text-h1: clamp(1.875rem, 4vw, 2.5rem);        /* .h2 40px sektioner */
  --bn-text-h2: clamp(1.375rem, 2.5vw, 1.75rem);     /* .hero-h2 28px */
  --bn-text-h3: clamp(1.25rem, 2.2vw, 1.5rem);       /* .heading-faq 24px */
  --bn-text-p1: clamp(1.25rem, 2vw, 1.5rem);         /* .p1 24px */
  --bn-text-p2: 1.125rem;                            /* .p1._18 */
  --bn-text-p3: 1rem;                                /* .banner-text 16px */

  --bn-lh-tight: 100%;
  --bn-lh-heading: 120%;
  --bn-lh-normal: 140%;

  /* Spacing */
  --bn-space-xs: 8px;
  --bn-space-sm: 16px;
  --bn-space-md: 32px;
  --bn-space-lg: 64px;
  --bn-space-xl: 96px;
  --bn-section-py: clamp(3.75rem, 8vw, 6rem);

  /* Motion (live-sitets CTA-transition) */
  --bn-ease: cubic-bezier(.455, .03, .515, .955);
  --bn-dur: .15s;
}

/* ---------- Typography utilities ---------- */
.bn-display, .bn-h1, .bn-h2, .bn-h3 { margin: 0; font-family: var(--bn-font); }
.bn-display { font-size: var(--bn-text-display); font-weight: 800; line-height: var(--bn-lh-tight); letter-spacing: -1px; }
.bn-h1 { font-size: var(--bn-text-h1); font-weight: 500; line-height: var(--bn-lh-heading); }
.bn-h2 { font-size: var(--bn-text-h2); font-weight: 500; line-height: var(--bn-lh-normal); }
.bn-h3 { font-size: var(--bn-text-h3); font-weight: 500; line-height: var(--bn-lh-heading); }
.bn-p1, .bn-p2, .bn-p3 { margin: 0; font-family: var(--bn-font); line-height: var(--bn-lh-normal); }
.bn-p1 { font-size: var(--bn-text-p1); }
.bn-p2 { font-size: var(--bn-text-p2); }
.bn-p3 { font-size: var(--bn-text-p3); }
.bn-orange { color: var(--bn-brand); }

/* ---------- CTA ---------- */
/* Primær = live-sitets .cta: creme fyld, brun kant+tekst, hård offset-skygge der trykkes ned */
.bn-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--bn-green);
  background-color: var(--bn-cream);
  border: 2px solid var(--bn-green);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--bn-font);
  font-size: 18px;
  font-weight: 800;
  line-height: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 4px 4px var(--bn-green);
  /* Offset shadow shifts the visual footprint down-right of the true box — nudge back up-left by
     half the offset so it optically centers on the same spot a plain-bordered sibling (e.g. ghost
     CTA) occupies. Un-shifts on hover, when the shadow itself disappears, landing exactly flush. */
  transform: translate(-2px, -2px);
  transition: box-shadow var(--bn-dur) var(--bn-ease), transform var(--bn-dur) var(--bn-ease);
}
.bn-cta:hover { box-shadow: none; transform: translate(0, 0); }
.bn-cta:focus-visible { outline: 3px solid var(--bn-cream); outline-offset: 3px; }
.bn-cta--sm { padding: 5px 10px; font-size: 16px; }
.bn-cta--lg { padding: 6px 14px; font-size: 20px; }
@media (min-width: 1024px) {
  .bn-cta--lg { padding: 10px 20px; font-size: 24px; }
}

/* Sekundær: samme sprog, ingen skygge — arver konteksten via currentColor */
.bn-cta--ghost {
  color: currentColor;
  background: transparent;
  border-color: currentColor;
  box-shadow: none;
  transition: opacity var(--bn-dur) var(--bn-ease);
}
.bn-cta--ghost:hover { opacity: .75; }
.bn-cta--ghost:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .bn-cta, .bn-cta--ghost { transition: none; }
}

/* ---------- Social proof ---------- */
.bn-proof { display: flex; align-items: center; gap: var(--bn-space-sm); margin-top: var(--bn-space-sm); flex-wrap: wrap; }
.bn-proof-rating { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-size: var(--bn-text-p3); }
.bn-proof-star { color: #fbbc04; }

/* Ghost CTA on the ported tapas/vinsmagning announcement sections (cream bg, no ambient
   color set) — white would be invisible here, so anchor it to the section's own orange
   text instead of falling through to site.css's body #333. */
.announcement .bn-cta--ghost { color: var(--bn-brand); border-color: var(--bn-brand); }

/* Tapas-sektionens CTA-række (Bestil takeaway/Book bord) sad for tæt op ad
   beskrivelsen på mobil (site.css's 8px) — +8px ekstra luft, kun her. */
@media (max-width: 479px) {
  .announcement .container-4.right .div-block-7 { margin-top: 16px; }
}

/* Topbaren på mobil havde kun 177px til to CTA'er der kræver ~264px uden at
   knapteksten brækker — dropper "Bestil takeaway" (den klæbende banner øverst
   dækker allerede takeaway) og beholder kun "Book bord". */
@media (max-width: 479px) {
  .nav-buttons .bn-cta--ghost { display: none; }
}

/* Intro-sektionens knapper (Book bord/Læs om selskaber) stod stablet lodret
   på mobil (site.css's column) — skal stå på række som på desktop. */
@media (max-width: 479px) {
  .intro-buttons { flex-flow: row wrap; }
}

/* Menukort-billedet (.aften) sidder i en flex-column-sektion med
   flex:1 1 0% — hovedaksen der er lodret, så flex-grow strækker billedets
   HØJDE til den ledige plads i sektionen, uafhængigt af bredden. Resultat:
   forvrænget billedformat (særligt tydeligt i Safari). Tag billedet ud af
   flex-grow og lad højden følge bredden proportionalt i stedet. */
#menukort img.aften { flex: none; width: 100%; height: auto; }

/* Menukort tab switcher (Aften/Brunch/Vinkort) — sharp corners clashed with the
   rounded bn-cta language used everywhere else. Behavior/JS untouched. */
.info-btn { border-radius: 8px; }

/* ---------- Layout ---------- */
.bn-section { padding: var(--bn-section-py) 20px; background: var(--bn-brand); color: var(--bn-white); }
/* Ported Webflow sections hosting a bn-cta--ghost but never setting an ambient white — site.css's body color (#333) leaks in via currentColor without this. */
.intro, .hero-content, .navbar { color: var(--bn-white); }
.bn-section--light { background: var(--bn-cream); color: var(--bn-brand); }
.bn-container { max-width: 1512px; margin: 0 auto; padding: 0 20px; }

/* ---------- Section template (Section.astro) ---------- */
.bn-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bn-space-lg); align-items: center; }
.bn-split--reverse > .bn-split-media { order: -1; }
.bn-split-text > * + * { margin-top: var(--bn-space-sm); }
.bn-split-media img { width: 100%; height: auto; display: block; border-radius: 8px; }
.bn-actions { display: flex; flex-wrap: wrap; gap: var(--bn-space-sm); margin-top: var(--bn-space-md); }
@media (max-width: 900px) {
  .bn-split { grid-template-columns: 1fr; gap: var(--bn-space-md); }
  .bn-split--reverse > .bn-split-media { order: 0; }
}
