/* ZEGG Festivals template
   Plain CSS (no build step). Sections: 1 base, 2 header/nav, 3 hero, 4 sections, 5 parallax,
   6 gallery, 7 main/content, 8 footer, 9 error page. */

/* ---------- 1. Base ---------- */
@font-face {
  font-family: "Open Sans Condensed";
  src: url("../fonts/opensans-condlight-webfont.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans Condensed";
  src: url("../fonts/opensans-condbold-webfont.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent-active: #bf6c47;
  --accent: #e06913;
  --text: #666;
  --heading: #252525;
  --link: #161616;
  --bg-light: #f3f5f8;
  --bg-orange: #f2b590;
  --footer-bg: hsl(23 74% 63%);
  --footer-bottom-bg: hsl(23 74% 52%);
  --font: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --container: 900px;
  --gutter: 20px;
  --header-height: 70px;
  --bp-nav: 992px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Keeps the footer at the bottom on short pages */
.site-main { flex: 1 0 auto; }

body.menu-open { overflow: hidden; }

img, video, iframe { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 .6em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
strong, b { font-weight: 700; color: #000; }

a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent-active); }

p { margin: 0 0 1em; }

.mod-custom li, 
.site-footer li {
  list-style: none;
  margin-left: 0;
  padding-left: 2em;
  text-indent: -2em;
}
.mod-custom li:before, 
.site-footer li:before {
  content: "\f054";
  font-family: fontawesome;
  font-weight: bold;
  font-size: 0.6em;
  position: relative;
  top: -3px;
  margin-right: 7px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 1000;
  padding: 8px 14px;
  background: #fff;
  color: #000;
}
.skip-link:focus { top: 8px; }

.list-unstyled { list-style: none; padding: 0; margin: 0; }

.btn, 
.readmore a, 
a.btn-accent {
  display: inline-block;
  background-color: var(--accent);
  border-radius: 10px;
  cursor: pointer;
  color: #fff4e0;
  padding: 12px 20px;
  text-decoration: none;
  transition: all .25s;
}
.btn:hover, 
.readmore a:hover, 
a.btn-accent:hover {
  background-color: var(--accent-active);
  color: #fff;
  text-decoration: none !important;
}

.zf-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 2. Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 8px rgb(0 0 0 / 12%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-logo {
  display: flex;
  align-items: center;
  color: var(--heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.site-logo img { display: block; max-height: 50px; width: auto; }

.menu-toggle {
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  position: absolute;
  left: 9px;
  width: 26px; height: 2px;
  background: var(--heading);
  transition: transform .25s, top .25s, opacity .25s;
}
.menu-toggle-bars { top: 21px; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; left: 0; }
.menu-toggle-bars::before { top: -8px; }
.menu-toggle-bars::after { top: 8px; }
.menu-open .menu-toggle-bars { background: transparent; }
.menu-open .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Mobile: full-screen overlay */
.site-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 99;
  display: none;
  overflow-y: auto;
  padding: 30px var(--gutter);
  background: #fff;
  text-align: center;
}
.menu-open .site-nav { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .mod-menu > li > a,
.site-nav .mod-menu > li > span {
  display: block;
  padding: .5em 0;
  font-size: 1.75rem;
}

.site-nav a:hover, .site-nav .active > a { color: var(--accent-active); }
.site-nav .mod-menu__sub a { display: block; padding: .3em 0; font-size: 1.25rem; }
.site-lang { margin-top: 1.5em; }

@media (max-width: 991.98px) {
  .hide-on-mobile { display: none !important; }
}

@media (min-width: 992px) {
  .menu-toggle { display: none; }

  .site-logo {
    margin-left: 40px;
    padding: 10px;
  }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    overflow: visible;
    background: transparent;
    text-align: left;
  }

  .site-nav .mod-menu {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .site-nav .mod-menu > li { position: relative; }
  .site-nav .mod-menu > li > a,
  .site-nav .mod-menu > li > span {
    padding: 10px;
    margin: 20px 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all ease 700ms;
  }
  .site-nav .active > a {
    background: url(../images/bg-h3.png) 50% 100% no-repeat;
  }
  .site-nav .mod-menu__sub {
    position: absolute;
    top: 100%; left: 0;
    z-index: 5;
    display: none;
    min-width: 220px;
    padding: 8px 0;
    background: #252525;
  }
  .site-nav .deeper:hover > .mod-menu__sub,
  .site-nav .deeper:focus-within > .mod-menu__sub {
    display: block;
  }
  .site-nav .mod-menu__sub a {
    padding: .4em 1.2em; font-size: 1.05rem; color: #fff;
  }
  .site-nav .mod-menu > li > a:hover, 
  .site-nav .mod-menu__sub a:hover {
    color: var(--accent);
  }
  .hide-on-desktop { display: none !important; }
}

/* ---------- 3. Hero slider ---------- */
.zf-hero { position: relative; overflow: hidden; background: #000; color: #fff; }

.zf-hero-slides { position: relative; height: clamp(320px, 56vw, 760px); }

.zf-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.zf-hero-slide.is-active { opacity: 1; visibility: visible; }

.zf-hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.zf-hero-caption {
  position: relative;
  max-width: 900px;
  padding: 0 calc(var(--gutter) + 40px);
  text-align: center;
  text-shadow: 0 0 6px #000, 0 0 24px rgb(0 0 0 / 60%);
}
.zf-hero-caption h1, .zf-hero-caption h2, .zf-hero-caption h3 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: 1px;
}
.zf-hero-caption p { font-size: clamp(1.2rem, 3vw, 2rem); margin-bottom: .3em; }
.zf-hero-caption a { color: #fff; text-decoration: underline; }

.zf-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px; height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 35%);
  cursor: pointer;
}
.zf-hero-nav:hover { background: rgb(0 0 0 / 60%); }
.zf-hero-nav::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border: solid #fff;
  border-width: 2px 2px 0 0;
}
.zf-hero-prev { left: 12px; }
.zf-hero-next { right: 12px; }
.zf-hero-prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.zf-hero-next::after { transform: translate(-70%, -50%) rotate(45deg); }

.zf-hero-dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.zf-hero-dots button {
  width: 12px; height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.zf-hero-dots button.is-active { background: #fff; }

@media (max-width: 600px) {
  .zf-hero-nav { display: none; }
}

/* ---------- 4. Sections (mod_custom layout "Section") ---------- */

.zf-default, 
.zf-gallery,
.zf-parallax, 
.zf-section {
  padding-block: 40px;
  background-color: #fff;
  background-size: cover;
  background-position: center;
}
.zf-section.bg-light  { background-color: var(--bg-light); }
.zf-section.bg-orange { background-color: var(--bg-orange); color: #000; }
.zf-section.bg-accent,
.zf-section.bg-dark   { color: #fff; }
.zf-section.bg-accent { background-color: var(--accent); }
.zf-section.bg-dark   { background-color: #252525; }
.zf-section.bg-accent h1, .zf-section.bg-accent h2, .zf-section.bg-accent h3,
.zf-section.bg-dark h1, .zf-section.bg-dark h2, .zf-section.bg-dark h3 { color: #fff; }
.zf-section.bg-accent a, .zf-section.bg-dark a { color: #fff; text-decoration: underline; }

.zf-section.narrow .zf-container { max-width: 800px; }
.zf-section.text-center .zf-section-body { text-align: center; }
.zf-section-title { text-align: center; margin-bottom: 1em; }

/* Two columns of running text: Module Class "two-columns" or <div class="two-columns"> in an article */
.two-columns { column-gap: 40px; }
.two-columns :is(img, figure, h1, h2, h3, h4, blockquote) { break-inside: avoid; }
@media (min-width: 768px) {
  .two-columns { column-count: 2; }
}
.zf-section.two-columns .zf-section-body { column-gap: 40px; }
@media (min-width: 768px) {
  .zf-section.two-columns .zf-section-body { column-count: 2; }
}
.zf-section.two-columns .zf-section-body :is(img, figure, h1, h2, h3, h4, blockquote) { break-inside: avoid; }

/* ---------- 5. Parallax (mod_custom layout "Parallax") ---------- */
.zf-parallax {
  position: relative;
  padding-block: 100px;
  background-color: #444;
  text-align: center;
  text-shadow: 0 0 8px rgb(0 0 0 / 60%);
}
.zf-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 40%);
}
.zf-parallax > .zf-container { position: relative; }
.zf-parallax.no-overlay::before { display: none; }
.zf-parallax.overlay-light::before { background: rgb(255 255 255 / 55%); }
.zf-parallax.text-dark { color: #111; text-shadow: none; }
.zf-parallax h1, .zf-parallax h2, .zf-parallax h3 { color: inherit; }
.zf-parallax a { color: inherit; text-decoration: underline; }
.zf-parallax .zf-section-body > :last-child { margin-bottom: 0; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .zf-parallax { background-attachment: fixed; }
}

/* ---------- 6. Gallery (mod_custom layout "Gallery") ---------- */
.zf-gallery {
  text-align: center;
}
.zf-gallery.bg-light { background-color: var(--bg-light); }

.zf-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.zf-gallery-grid a { display: block; overflow: hidden; }
.zf-gallery-grid img {
  display: block;
  width: 200px; height: 133px;
  object-fit: cover;
  transition: transform .3s;
}
.zf-gallery-grid a:hover img, .zf-gallery-grid a:focus-visible img { transform: scale(1.06); }

.zf-lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 92%);
  color: #fff;
}
.zf-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.zf-lightbox figure { margin: 0; text-align: center; }
.zf-lightbox img { max-width: 92vw; max-height: 82vh; }
.zf-lightbox figcaption { min-height: 1.5em; padding-top: .5em; }
.zf-lightbox button {
  position: absolute;
  width: 48px; height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.zf-lightbox button:hover { color: var(--accent); }
.zf-lightbox-close { top: 12px; right: 12px; }
.zf-lightbox-close::before { content: "\00d7"; font-size: 2.6rem; }
.zf-lightbox-prev { left: 8px; top: 50%; margin-top: -24px; }
.zf-lightbox-prev::before { content: "\2039"; font-size: 3rem; }
.zf-lightbox-next { right: 8px; top: 50%; margin-top: -24px; }
.zf-lightbox-next::before { content: "\203a"; font-size: 3rem; }
.zf-lightbox button[hidden] { display: none; }

/* ---------- 7. Main content ---------- */
.site-main { padding-block: 40px; }

.main-grid {
  display: grid;
  gap: 40px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 992px) {
  .main-grid.has-left { grid-template-columns: 1fr 3fr; }
  .main-grid.has-right { grid-template-columns: 3fr 1fr; }
  .main-grid.has-left.has-right { grid-template-columns: 1fr 2fr 1fr; }
}
.main-content { min-width: 0; }

.sidebar .moduletable, .sidebar > div { margin-bottom: 30px; }

.mod-breadcrumbs { display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 1.5em; padding: 0; list-style: none; font-size: 1rem; }
.mod-breadcrumbs li + li::before { content: "/"; margin-right: .4em; }

.blog-items { display: grid; gap: 30px; }
@media (min-width: 768px) {
  .blog-items.columns-2 { grid-template-columns: repeat(2, 1fr); }
  .blog-items.columns-3 { grid-template-columns: repeat(3, 1fr); }
}
.page-header h1, .page-header h2 { margin-bottom: .5em; }

/* ---------- 8. Footer (same look as the zegg template: orange, white text) ---------- */
.site-footer {
  background-color: var(--footer-bg);
  color: #fff;
  font-size: 1.4rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :is(h1, h2, h3, h4, .heading) {
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.footer-columns {
  display: grid;
  gap: 0 30px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 32px var(--gutter) 20px;
}
@media (min-width: 768px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .footer-columns { grid-template-columns: repeat(3, 1fr); padding: 40px 0; }
}

.footer-columns ul { margin: 0; padding: 0; }
.footer-columns address p { margin: 0; }
.footer-columns address a { text-decoration: none; }

.footer-bottom-bar { background-color: var(--footer-bottom-bg); }
.footer-bottom { padding: 8px var(--gutter); text-align: center; }
.footer-bottom ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .3em 1.5em; margin: 0; padding: 0; list-style: none; }
.footer-bottom p { margin: 0; }

/* ---------- 9. Error page ---------- */
.error-page { display: grid; min-height: 100vh; place-items: center; text-align: center; }
.error-box { padding: 40px var(--gutter); }
.error-box h1 { font-size: 6rem; margin: 0; }
