/* =========================================================
   Bistro Marie — Direction C ("Tre Valv" — en vandring genom rummen)
   Sampled secondary color: #DCD0A9, average of a clean tile-wall patch
   in assets/source/photos/bistromarie-about-1.jpg (x 446-576, y 378-518
   of the 720x1080 original), read with Pillow, not guessed.
   ========================================================= */

:root {
  --ink: #1E1712;          /* warm near-black, primary text */
  --ink-soft: #55483C;     /* secondary text, still >7:1 on white/cream */
  --cream: #DCD0A9;        /* sampled from photo, see header note */
  --cream-light: #F1ECDD;  /* white + sampled cream, tint for alt sections */
  --white: #FFFFFF;
  --orange: #FF6709;       /* brand accent — buttons, lines, icons ONLY, never body text */
  --border-soft: rgba(30, 23, 18, 0.12);
  --shadow-card: 0 18px 40px rgba(30, 23, 18, 0.18);

  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gap-section: clamp(4rem, 8vw, 8rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 60ch; }

a { color: inherit; }

ul, dl { margin: 0; padding: 0; list-style: none; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--orange);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--orange); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem; top: -3rem;
  background: var(--ink);
  color: var(--cream-light);
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 6px;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--ink);
  color: var(--orange);
  border-color: var(--ink);
}

.btn-outline,
.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover, .btn-outline:focus-visible,
.btn-ghost:hover, .btn-ghost:focus-visible {
  background-color: var(--ink);
  color: var(--cream-light);
  border-color: var(--ink);
}

.btn-small { padding: 0.6em 1.3em; font-size: 0.85rem; }
.btn-large { padding: 1.05em 2.3em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo { height: 34px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 1.9rem;
}
.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.main-nav a:hover, .main-nav a:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .main-nav li { border-top: 1px solid var(--border-soft); }
  .main-nav a { display: block; padding: 0.9rem 0; }
  .main-nav[data-open="false"] { display: none; }
  .header-actions .btn-small { padding: 0.55em 1em; font-size: 0.8rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-img {
  width: 100%;
  height: 62svh;
  object-fit: cover;
  object-position: center 62%;
}

.hero-card {
  background: var(--cream-light);
  padding: 2.2rem 1.5rem 2.4rem;
  border-top: 4px solid var(--orange);
}

.hero-lead { max-width: 42ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

@media (min-width: 900px) {
  .hero { height: 100svh; min-height: 640px; }
  .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: center 55%; }
  .hero-card {
    position: absolute;
    left: 6%;
    bottom: 8%;
    max-width: 520px;
    padding: 2.6rem 3rem;
    border-radius: 4px;
    border-top: none;
    border-left: 5px solid var(--orange);
    box-shadow: var(--shadow-card);
  }
}

/* ---------- Section shell ---------- */
section { padding: var(--gap-section) 1.25rem; }
.intro, .rooms, .menu-teaser, .chambre, .contact {
  max-width: var(--container);
  margin: 0 auto;
}

/* ---------- Intro ---------- */
.intro-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.intro-figure img {
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (min-width: 860px) {
  .intro-inner { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
}

/* ---------- Rooms journey ---------- */
.rooms-intro { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.room-list {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.room {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.room-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.room-number {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

@media (min-width: 780px) {
  .room { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .room .room-media { grid-column: 1; }
  .room .room-text { grid-column: 2; }
  .room-reverse .room-media { grid-column: 2; }
  .room-reverse .room-text { grid-column: 1; }
}

/* ---------- Smakprov / menu teaser ---------- */
.menu-teaser-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.menu-teaser-figure img {
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dish-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1.8rem 0 1.8rem;
}

.dish { border-top: 1px solid var(--border-soft); padding-top: 1.1rem; }
.dish-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.dish-head h3 { margin: 0; font-size: 1.15rem; }
.dish-price {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.dish p { margin: 0.35em 0 0; font-size: 0.95rem; }

@media (min-width: 900px) {
  .menu-teaser-inner { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: start; }
  .menu-teaser-figure { grid-column: 2; grid-row: 1; }
  .menu-teaser-text { grid-column: 1; grid-row: 1; }
}

/* ---------- Julbord (aggressive CTA) ---------- */
.julbord {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 1.25rem;
  overflow: hidden;
  isolation: isolate;
}
.julbord-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.julbord-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 13, 8, 0.82);
  z-index: -1;
}
.julbord-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.julbord-content h2 { color: var(--white); }
.julbord-content p { color: var(--cream-light); margin-left: auto; margin-right: auto; }

/* ---------- Chambre séparée ---------- */
.chambre-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.chambre-media {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.9rem;
  align-items: end;
}
.chambre-media-main {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  width: 100%;
}
.chambre-media-secondary {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  width: 100%;
  transform: translateY(14%);
}
.chambre-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .chambre-inner { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
}

/* ---------- Kontakt ---------- */
.contact { background: var(--cream-light); border-radius: 8px; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-address a,
.contact-line a {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}
.contact-address a:hover, .contact-address a:focus-visible,
.contact-line a:hover, .contact-line a:focus-visible {
  color: var(--orange);
}
.contact-address { font-size: 1.1rem; }
.contact-line { margin-bottom: 0.5em; }
.contact-social span { margin: 0 0.4em; color: var(--ink-soft); }

.contact-hours h3 { margin-bottom: 0.9rem; }
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.95rem;
}
.hours-row dt { font-weight: 700; }
.hours-row dd { margin: 0; color: var(--ink-soft); }
.hours-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-soft); }

@media (min-width: 780px) {
  .contact-inner { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
  .contact { padding: clamp(3rem, 6vw, 5rem); }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 1.25rem 2.5rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.footer-logo { height: 28px; width: auto; opacity: 0.85; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
.footer-nav a { text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--orange); }
.footer-address, .footer-credit { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.footer-credit a { text-decoration: underline; }
