/* Red Fox Escapes. Matches the WordPress "redfox" theme (a Twenty Seventeen
   child, dark color scheme): measurements and colors come from the live site's
   CSS. Mobile first; desktop rules start at 48em like the old theme. */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/lato-300.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 300; font-style: italic; font-display: swap; src: url("fonts/lato-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/lato-700.woff2") format("woff2"); }

:root {
  --bg: #222;
  --bg-raised: #2c2c2c;
  --border: #333;
  --text: #eee;
  --text-soft: #ddd;
  --text-muted: #aaa;
  --cta-bg: #f0c245;
  --cta-text: #222;
  --header-h: 73px;
  --page-w: 1000px;    /* .wrap */
  --text-w: 740px;     /* #primary on pages */
  --font: "Lato", "Helvetica Neue", helvetica, arial, sans-serif;
  --serif: Georgia, serif;
  /* No color-scheme: dark here. If the page declared a dark scheme, browsers
     would paint an opaque white background behind the Bookeo iframe (which
     declares none), hiding its transparent, dark-themed booking calendar. */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--font);
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1.5em; }
a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: 0.75; }
h1, h2, h3, h4, h5, h6 { color: var(--text-soft); font-weight: 300; line-height: 1.4; margin: 0 0 0.75em; padding: 1.5em 0 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1rem; font-weight: 700; color: var(--text); }
:focus-visible { outline: 2px solid var(--cta-bg); outline-offset: 2px; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100; background: var(--bg); padding: 0.5rem 1rem; }
.muted { color: var(--text-muted); }

/* "Book now" buttons */
.cta {
  display: inline-block;
  padding: 0.25em 1em;
  border-radius: 3px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 400;
  text-align: center;
  text-decoration: none;
}
.cta:hover { opacity: 0.7; }

/* ---------- Header and menu ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--header-h);
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.site-header__inner {
  display: flex; align-items: center; gap: 0.75rem;
  height: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 1em;
}
.site-logo { display: block; }
.site-logo img { display: block; width: 50px; height: auto; }
.site-logo:hover { opacity: 0.7; }
.cta--header { margin-left: auto; font-size: 0.9375rem; }
.menu-toggle {
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--border); border-radius: 3px;
  background: transparent; color: var(--text); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 1.25rem; height: 2px; margin: auto;
  background: currentColor; content: ""; position: relative;
}
.menu-toggle__bars::before { position: absolute; top: -6px; }
.menu-toggle__bars::after { position: absolute; top: 6px; }

.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu a { display: block; padding: 0.5em 0; color: var(--text); font-weight: 700; text-decoration: none; }
.site-menu a[aria-current="page"] { color: #999; }

/* Mobile: the menu drops down below the bar; without JS it is always open. */
.js .site-menu { display: none; }
.js .site-menu.is-open { display: block; }
.site-menu {
  position: absolute; top: calc(var(--header-h) - 1px); left: 0; right: 0;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 0.75em 1.7em;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.site-menu .has-submenu ul { padding-left: 1.5em; }
.site-menu .has-submenu ul a { font-weight: 400; }

@media (min-width: 48em) {
  .site-header__inner { padding: 0 3.4em; }
  .menu-toggle { display: none; }
  .site-menu, .js .site-menu {
    display: block; position: static; order: 1; margin-left: auto;
    max-height: none; overflow: visible; padding: 0; background: none; border: 0; font-size: inherit;
  }
  .cta--header { order: 2; margin-left: 2rem; font-size: inherit; }
  .site-menu > ul { display: flex; }
  .site-menu > ul > li > a { padding: 1em 1.25em; }
  .site-menu .has-submenu { position: relative; }
  .site-menu .has-submenu > a::after {
    content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 9px;
    border: solid currentColor; border-width: 0 1px 1px 0; rotate: 45deg;
  }
  .site-menu .has-submenu ul {
    position: absolute; top: 100%; left: 0.5em; width: 16em; padding: 0;
    background: var(--bg); border: 1px solid #bbb;
    visibility: hidden; opacity: 0;
  }
  .site-menu .has-submenu ul a { padding: 0.75em 1.25em; font-weight: 700; }
  .site-menu .has-submenu li:hover { background: #767676; }
  .site-menu .has-submenu:hover ul,
  .site-menu .has-submenu:focus-within ul { visibility: visible; opacity: 1; }
}

main { padding-top: var(--header-h); }

/* ---------- Text pages ---------- */
/* .page covers the content area; a featured image (--image) fills it. */
.page { background: var(--image, none) center / cover no-repeat; }
.column { max-width: calc(var(--text-w) + 4em); margin: 0 auto; padding: 0 2em 3em; }
.column--wide { max-width: var(--page-w); }
@media (min-width: 48em) { .column { padding-bottom: 4em; } }
@media (min-width: 48em) { .column--wide { padding-left: 3em; padding-right: 3em; } }
.page-title {
  margin: 0; padding: 2.9rem 0 5.5rem;
  color: var(--text);
  font-size: 2rem; font-weight: 400; letter-spacing: 0.14em;
  text-shadow: 0 0 20px #000;
}
.prose p { font-size: 1.3rem; font-weight: 300; }
.prose > h2:first-child, .prose > h3:first-child { padding-top: 0; }
/* WP "columns" blocks (e.g. Address | Hours on Contact) lost their classes in
   the migration: a div of two divs becomes two columns on wide screens. */
@media (min-width: 48em) {
  .prose > div:has(> div + div) { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; }
}
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.5em; }
.prose li { margin: 0.25em 0; }
.prose iframe { width: 100%; min-height: 20rem; border: 0; }
.prose figure { margin: 0 0 1.5em; }
.center { text-align: center; }
.prose figcaption { color: var(--text-muted); font-size: 0.9rem; }
/* WP "highlight" with a transparent background and the vivid red text color. */
.prose mark { background: none; color: #cf2e2e; }
.prose strong { font-weight: 700; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 28rem;
  background: var(--bg) url("hero-poster.webp") center / cover no-repeat;
  overflow: hidden;
  text-align: center;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.hero__brand { position: relative; padding-top: 3rem; }
.hero__logo { width: auto; height: clamp(160px, 35vh, 280px); }
.hero__quotes { position: absolute; left: 0; right: 0; bottom: 7%; padding: 0 1rem; }
.quotes { list-style: none; max-width: 500px; margin: 0 auto; padding: 0; }
.quote a { color: var(--text); text-decoration: none; }
.quote__text {
  display: block; margin-bottom: 0.4em;
  font: italic 1rem/1.6 var(--serif); text-shadow: 0 0 5px #222; quotes: '"' '"';
}
@media (min-width: 20em) { .quote__text { font-size: 1.125rem; } }
@media (min-width: 48em) { .quote__text { font-size: 1.4rem; } }
.quote__by { font-size: 0.9375rem; text-shadow: 0 0 5px #222; }
.quote { animation: fade-in 0.8s ease-out; }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .quote { animation: none; } }
.hero__next {
  position: absolute; bottom: 0.75rem; left: 50%; translate: -50% 0;
  width: 2rem; height: 2rem;
}
.hero__next::before, .hero__next::after { content: ""; position: absolute; left: 50%; background: #eee; }
.hero__next::before { top: 0.4rem; width: 1px; height: 1.1rem; }
.hero__next::after {
  top: 0.85rem; width: 0.55rem; height: 0.55rem; translate: -50% 0;
  background: none; border: solid #eee; border-width: 0 1px 1px 0; rotate: 45deg;
}

/* ---------- Room cards (home and /rooms/) ---------- */
.rooms { display: grid; grid-template-columns: 1fr; }
@media (min-width: 30em) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48em) { .rooms { grid-template-columns: repeat(3, 1fr); } }
.room-card {
  display: flex; flex-direction: column;
  min-height: 400px;
  padding: 1rem 1rem 2rem;
  background: var(--image) center / cover no-repeat;
}
.room-card > * { width: 100%; max-width: 450px; margin-left: auto; margin-right: auto; }
.room-card__link { position: relative; display: block; color: var(--text); text-decoration: none; }
.room-card__name { display: grid; place-items: center; height: 170px; margin: 0; padding: 15px 0; }
.room-card__name img { max-height: 140px; width: auto; }
/* Opacity on the whole box, text included, as in the WP theme: that is what
   makes the text a soft grey instead of white. */
.room-card__tagline { margin: 0; padding: 1rem; min-height: 140px; background: #000; opacity: 0.7; }
.room-card .room-facts { padding-top: 1rem; }
.room-card > .cta { display: block; max-width: 200px; margin-top: 1rem; }

.room-facts { list-style: none; margin: 0; padding: 0; font-weight: 700; text-shadow: 0 0 20px #000; }
.room-facts li { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.5rem 0 0; }
.room-facts li::before {
  content: ""; flex: 0 0 2rem; height: 1.5rem;
  background: currentColor; mask: var(--icon) left center / contain no-repeat;
}
.room-facts__time { --icon: url("icons/time.svg"); }
.room-facts__players { --icon: url("icons/person.svg"); }
.room-facts__difficulty { --icon: url("icons/difficulty.svg"); }

.first-time { margin: 2rem auto; padding: 0 1rem; text-align: center; font-size: 2rem; }
.first-time summary { cursor: help; list-style: none; }
.first-time summary::-webkit-details-marker { display: none; }
.first-time p { max-width: 40rem; margin: 1rem auto; font-size: 1.2rem; }

/* Home page panels (Twenty Seventeen "front page sections") */
.home-panel { background: var(--image, none) center / cover no-repeat; }
.home-panel .column { padding-top: 1.75em; padding-bottom: 0.5em; }
.home-panel .page-title { padding: 0 0 3rem; }
.home-panel .page-title a { color: inherit; text-decoration: none; }
@media (min-width: 30em) {
  .home-panel .column { padding-top: 3.5em; padding-bottom: 2em; }
  .home-panel .page-title { padding-bottom: 4.5rem; }
}
@media (min-width: 48em) { .home-panel .column { padding-top: 6em; padding-bottom: 4.5em; } }

/* ---------- Room page ---------- */
.room-header {
  height: 270px;
  padding-top: 3rem;
  background: var(--image) center / cover no-repeat;
  text-align: center;
}
@media (min-width: 20em) { .room-header { height: 360px; padding-top: calc(60px + 3rem); } }
.room-header h1 { margin: 0; padding: 0; }
.room-header__logo { max-width: 90%; width: auto; }
.room { padding-top: 2rem; }
.room > .room-facts { margin-bottom: 2rem; }
.notice { padding: 0.75rem 1rem; border-left: 4px solid var(--cta-bg); background: var(--bg-raised); }
.prices table { width: 100%; max-width: 32rem; border-collapse: collapse; font-size: 1.1rem; }
.prices th, .prices td { padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prices th { font-weight: 400; white-space: nowrap; padding-right: 1.5rem; }
.booking { margin: 1rem 0 2.5rem; }
/* Awards: image beside text, like the WP "media & text" blocks. */
.awards ul { list-style: none; margin: 0; padding: 0; }
.award { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; margin: 0 0 2rem; }
@media (min-width: 37.5em) { .award { grid-template-columns: 40% 1fr; gap: 2rem; } }
.award img { display: block; width: 100%; max-width: 340px; }
.award p { margin: 0; font-size: 1.1rem; font-weight: 300; }
.cta--block { display: inline-block; min-width: 118px; padding: 0.5em 1.5em; font-size: 1rem; font-weight: 700; }

/* ---------- Puzzles (from the WP theme's puzzles.css) ---------- */
.puzzle__title { margin: 3rem auto 2rem; padding: 0; font-size: 3rem; text-align: center; }
.puzzle__image { display: block; width: 100%; max-width: 500px; margin: 1rem auto; }
.puzzle__solution { margin: 1rem 0 2rem; }
.puzzle__solution summary {
  display: inline-block; cursor: pointer; list-style: none;
  color: var(--text-soft); font-size: 1.5rem; font-weight: 300;
  text-decoration: underline dotted rgb(255 255 255 / 0.5) 1px; text-underline-offset: 4px;
}
.puzzle__solution summary::-webkit-details-marker { display: none; }
.puzzle__solution[open] summary { margin-bottom: 1rem; }

.puzzle-list {
  list-style: none; margin: 0 auto; padding: 1rem 0 2rem;
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 30em) { .puzzle-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48em) { .puzzle-list { grid-template-columns: repeat(3, 1fr); margin: 3rem 1rem 1rem; } }
.puzzle-card { padding: 1rem 2rem 0; text-align: center; }
.puzzle-card h2 {
  width: 90%; margin: 0 auto 1rem; padding: 0;
  color: var(--text-soft); font-size: 2rem; font-weight: 300; text-shadow: 0 0 20px #000;
  border-bottom: 1px solid rgb(255 255 255 / 0.5);
}
.puzzle-card img { display: block; margin: auto; }
.puzzle-card__more { display: block; width: 80%; margin: 1rem auto; padding: 1rem; font-size: 1.2rem; text-decoration: none; }

/* ---------- Footer (Twenty Seventeen: social icons + site info) ---------- */
.site-footer { border-top: 1px solid var(--border); font-size: 1rem; }
.site-footer__inner { max-width: var(--page-w); margin: 0 auto; padding: 2em 2em 1.5em; }
.social ul { list-style: none; margin: 0 0 1em; padding: 0; }
.social li { display: inline; }
.social a {
  display: inline-block; width: 40px; height: 40px; margin: 0 1em 0.5em 0;
  border-radius: 40px; background: #767676; color: #fff; text-align: center;
}
.social a:hover, .social a:focus { background: #333; opacity: 1; }
.social .icon { width: 16px; height: 16px; margin-top: 12px; fill: currentColor; }
.site-info { font-size: 0.875rem; }
.site-info p { margin: 0 0 0.5em; }
.site-info a { color: var(--text-soft); }
.site-info__links { color: var(--text-muted); }
.site-info__version { font-size: 0.75rem; color: var(--text-muted); }
@media (min-width: 48em) {
  .site-footer { font-size: 0.875rem; line-height: 1.6; }
  .site-footer__inner { display: flex; align-items: flex-start; padding: 2em 3em 1.5em; }
  .social { flex: 0 0 36%; }
  .social ul { margin: 0; }
  .site-info { flex: 1; margin-left: 6%; padding-top: 0.7em; }
}
