/* Hands Off The Wall — overrides on top of quark2's theme.css.
 * Colours and type scale taken from the former Wix site:
 *   color_15 #000 text · color_11 #fff page · color_18 #003862 navy
 *   color_27 #eaf5f7 light teal · color_17 #0086eb blue
 *   font_8 Raleway 18px body · font_4/5/6 Avenir Heavy 72/50/40px headings
 */

/* quark2 sets its tokens on :root[data-theme="light"], so match that specificity */
:root,
:root[data-theme="light"] {
  --q2-header-height: 104px; /* wordmark row + menu band */
  --hotw-navy: #003862;
  --hotw-blue: #0086eb;
  --hotw-teal: #eaf5f7;

  --q2-bg: #ffffff;
  --q2-bg-elev: #ffffff;
  --q2-bg-muted: var(--hotw-teal);
  --q2-text: #191919;
  --q2-text-strong: #000000;
  --q2-accent: var(--hotw-navy);
  --q2-link: var(--hotw-navy);

  --pico-font-family-sans-serif: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pico-font-family-display: 'Nunito Sans', 'Raleway', sans-serif;
  --pico-font-size: 18px;
  --pico-line-height: 1.7;

  --hotw-gap: 8px;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6,
.hotw-wordmark {
  font-family: var(--pico-font-family-display);
  font-weight: 800;
  color: var(--hotw-navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.3; }
h2::before { display: none; } /* quark2's accent bar above h2 */
h3 { font-size: 1.5rem; }

/* ---- Page canvas: plain white, no quark2 card ---- */

#body-wrapper { background: #fff; }
#body-wrapper > .container > .content-item {
  max-width: 900px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding-inline: 0;
}

/* Festival pages are centre-aligned on Wix; the home intro too */
.tpl-edition .content-item,
.tpl-home .content-item > h1,
.tpl-home .content-item > h1 + p { text-align: center; }
.tpl-home .content-item > h1 + p {
  font-family: var(--pico-font-family-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--hotw-navy);
}

.content-item a { color: var(--hotw-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content-item a:hover { color: var(--hotw-blue); }
.content-item img { height: auto; max-width: 100%; }
.content-item blockquote {
  border-left: 4px solid var(--hotw-navy);
  background: var(--hotw-teal);
  padding: 1rem 1.5rem;
  font-style: italic;
}

/* ---- Header: centred wordmark, menu on a teal band below (as on Wix) ---- */

#header .navbar {
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
}
#header .navbar-section.logo { justify-content: center; padding-block: 0.7rem 0.4rem; }
#header .navbar-section.actions { display: none; }
#header .navbar-section.desktop-menu {
  justify-content: center;
  width: 100vw;
  background: var(--hotw-teal);
}
.hotw-wordmark {
  font-size: 1.15rem;
  color: #000;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
#header .dropmenu a {
  font-family: var(--pico-font-family-sans-serif);
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0;
  color: #191919;
}
#header .dropmenu a:hover { background: none; color: var(--hotw-blue); }
#header .dropmenu a.active,
#header .dropmenu a.active:hover {
  background: none;
  color: var(--hotw-navy);
  font-weight: 700;
}

/* ---- Hero banner: wide crop like the Wix strips ---- */

.hotw-hero {
  margin: 0;
  background: var(--hotw-teal);
}
.hotw-hero img {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 460px);
  object-fit: cover;
}
/* Uncropped banners (Wix image components, e.g. posters with text in them) */
.hotw-hero--whole { background: none; padding-top: 0.75rem; }
.hotw-hero--whole img {
  height: auto;
  max-width: min(var(--hero-w, 980px), 100%);
  margin-inline: auto;
  object-fit: contain;
}
/* Home: the festival logo artwork, shown whole */
.tpl-home .hotw-hero { background: none; padding-top: 1.5rem; }
.tpl-home .hotw-hero img {
  height: auto;
  max-width: min(900px, 100%);
  margin-inline: auto;
  object-fit: contain;
}

/* Wix paragraphs have no gap between lines; spacing comes from blank paragraphs */
.content-item p { margin-bottom: 1.4em; }

/* ---- Gallery: square tiles, 4 per row (as the Wix pro-gallery) ---- */

.hotw-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--hotw-gap);
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0;
  list-style: none;
}
.hotw-gallery li {
  margin: 0;
  list-style: none;
  aspect-ratio: 1;
  background: var(--hotw-teal);
  overflow: hidden;
}
.hotw-gallery a { display: block; height: 100%; }
.hotw-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hotw-gallery a:hover img { transform: scale(1.04); }

/* ---- Partners & sponsors ---- */

.hotw-sponsors {
  margin-top: 3rem;
  padding: 2rem 1rem;
  background: var(--hotw-teal);
}
.hotw-sponsors ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 2.5rem;
  margin: 0;
  padding: 0;
}
.hotw-sponsors li { list-style: none; margin: 0; }
.hotw-sponsors img {
  display: block;
  max-width: 180px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---- Footer ---- */

.hotw-footer { text-align: center; }
.hotw-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.hotw-social li { list-style: none; margin: 0; }
.hotw-social a { color: var(--hotw-navy); display: block; }
.hotw-social a:hover { color: var(--hotw-blue); }

/* ---- Lightbox (js/lightbox.js) ---- */

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(8 8 8 / 0.96);
  color: #fff;
}
.lightbox::backdrop { background: rgb(0 0 0 / 0.8); }
.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  margin: 0;
  padding: 56px 64px 16px;
}
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox figcaption {
  min-height: 2.5em;
  padding-top: 12px;
  text-align: center;
  color: #bbb;
  font-size: 0.9rem;
}
.lightbox button {
  position: absolute;
  width: auto;
  border: 0;
  background: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 12px 16px;
  cursor: pointer;
}
.lightbox button:hover { color: var(--hotw-blue); }
.lightbox .lb-close { top: 4px; right: 4px; }
.lightbox .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  :root { --hotw-gap: 6px; }
  .hotw-gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox figure { padding: 56px 8px 16px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 0; transform: none; }
  .hotw-sponsors img { max-width: 130px; max-height: 70px; }
}

/* ---- Contact: form left, photo right ---- */

.hotw-contact { max-width: 1100px; margin-inline: auto; }
.hotw-contact-main { text-align: center; }
.hotw-contact-main form { text-align: left; }
.hotw-contact-side { margin: 0; }
.hotw-contact-side img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hotw-contact.has-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
  }
}
@media (max-width: 899px) {
  .hotw-contact-side { margin-top: 2rem; }
}
.tpl-form #body-wrapper > .container > .hotw-contact > .content-item {
  background: none;
  box-shadow: none;
  padding: 0;
}
.hotw-contact-main h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.tpl-form button[type="submit"] {
  width: 100%;
  background: #000;
  border-color: #000;
  border-radius: 0;
  color: #fff;
}

/* Text on a texture background (FAQs, Impressum on Wix) */
#body-wrapper > .container > .content-item.has-texture {
  max-width: 980px;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem);
  background-size: cover;
  background-position: center;
}
.content-item.has-texture > h1 { text-align: center; }

/* ---- Home sections (modular) ---- */

/* Full-bleed background behind a centred section */
.hotw-band {
  background: var(--hotw-teal);
  box-shadow: 0 0 0 100vmax var(--hotw-teal);
  clip-path: inset(0 -100vmax);
}
.tpl-home #body-wrapper { padding-bottom: 0; }
.tpl-home #body-wrapper > .container > section .content-item,
.tpl-home #body-wrapper > .container > .hotw-intro {
  max-width: none;
  padding: 0;
  background: none;
  box-shadow: none;
}

.hotw-intro { max-width: 900px !important; margin: 0 auto 3rem; text-align: center; }

.hotw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 980px;
  margin: 0 auto;
  padding-block: 0;
}
.hotw-split-text { padding-top: 4rem; font-size: 0.95rem; }
.hotw-split-text h2 { color: #000; font-size: clamp(1.6rem, 3vw, 2rem); }
.hotw-split-media { margin: 0; }
.hotw-split-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hotw-partners {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  background: #93ccd6; /* Wix color_28 */
  text-align: center;
}
.hotw-partners .content-item p:first-child {
  font-size: 1.6rem;
  color: var(--hotw-navy);
  margin-bottom: 0.5rem;
}
.hotw-partners .content-item { font-size: 0.95rem; line-height: 1.5; }
.hotw-partners .hotw-sponsors { background: none; padding: 1.5rem 0 0; margin-top: 1rem; }
.hotw-partners .hotw-sponsors ul { gap: 2.5rem 3rem; }
.hotw-partners .hotw-sponsors img { max-width: 260px; max-height: 130px; }

.hotw-detail { max-width: 980px; margin: 0 auto; text-align: center; }
.hotw-detail h2 { margin: 2.5rem 0 1rem; }
.hotw-detail-media { margin: 0; }
.hotw-detail-media img { display: block; width: 100%; height: auto; }
.hotw-detail-text {
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
  padding-block: 3rem;
  font-size: 0.95rem;
}
.hotw-detail-text p:last-child { text-align: center; font-size: 0.8rem; margin-top: 2rem; }

@media (max-width: 760px) {
  .hotw-split { grid-template-columns: 1fr; }
  .hotw-split-text { padding-top: 2rem; }
  .hotw-partners .hotw-sponsors img { max-width: 150px; max-height: 80px; }
}
/* Win over the home section reset above */
.tpl-home #body-wrapper > .container > section .hotw-band {
  background: var(--hotw-teal);
  box-shadow: 0 0 0 100vmax var(--hotw-teal);
}
.tpl-home #body-wrapper > .container > section .hotw-detail-text { padding-block: 3rem; }
.tpl-home #body-wrapper > .container > .hotw-split .hotw-split-text { padding-top: 4rem; padding-bottom: 2rem; }
@media (max-width: 760px) {
  .tpl-home #body-wrapper > .container > .hotw-split .hotw-split-text { padding-top: 2rem; }
}
@media (max-width: 760px) {
  .tpl-home #body-wrapper > .container > .hotw-split { gap: 0; }
  .tpl-home #body-wrapper > .container > .hotw-split .hotw-split-text { padding-bottom: 1.5rem; }
}
/* Quote: narrow centred column on a full-width teal band (as on Wix) */
.tpl-home #body-wrapper > .container > .hotw-detail .hotw-detail-text {
  max-width: 620px;
  margin-inline: auto;
}
.hotw-detail-text p { font-size: 0.9rem; line-height: 1.9; }
