/* allianta.lt static site: fonts and the changes to the Enfold theme
   (public/assets/enfold/merged.css is the theme's own stylesheet, unchanged). */

/* Open Sans (body text), self-hosted instead of Google Fonts; variable font,
   one file per subset covers both weights the theme uses */
@font-face {
  font-family: 'open sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/open-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'open sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/open-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Enfold's icon font (scroll arrows), was an inline <style> in <head> */
@font-face {
  font-family: 'entypo-fontello';
  font-weight: normal;
  font-style: normal;
  font-display: auto;
  src: url(/assets/fonts/entypo-fontello.woff2) format('woff2'), url(/assets/fonts/entypo-fontello.woff) format('woff');
}
#top .avia-font-entypo-fontello, body .avia-font-entypo-fontello, html body [data-av_iconfont='entypo-fontello']:before { font-family: 'entypo-fontello'; }

/* Side menu: hover and the current page only change colour. The theme also
   made the item bigger (22px, weight 500, heading font), which moved the
   items below it. */
html.html_header_sidebar #header .av-main-nav > li:hover > a .avia-menu-text,
html.html_header_sidebar #header .av-main-nav > li.current-menu-ancestor > a .avia-menu-text,
html.html_header_sidebar #header .av-main-nav li.current-menu-item > a .avia-menu-text {
  font-size: 16px;
  font-weight: normal;
  font-family: inherit;
  line-height: inherit;
  color: #cf1d26;
}
html.html_header_sidebar #header .av-main-nav > li > a .avia-menu-text { transition: color 0.2s; }

/* Slideshows here have one slide; Enfold's JS faded it in. */
.avia-slideshow li:first-child { opacity: 1; visibility: visible; }

/* Hero: self-hosted video (was a Vimeo player), covering the slide */
.av-video-slide .avia-slide-wrap { position: absolute; inset: 0; overflow: hidden; background: #000; }
.allianta-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.avia-slideshow.av-section-video-bg .avia-slideshow-inner { background: #000; }

/* Map (was Google Maps): Leaflet + OpenStreetMap tiles, see site.js */
.allianta-map { height: 430px; width: 100%; background: #e5e3df; position: relative; z-index: 0; }
.allianta-map .leaflet-tile-pane { filter: saturate(0.5); }
.allianta-map-link { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.allianta-map.leaflet-container .allianta-map-link { display: none; }
.allianta-map .leaflet-control-attribution { font-size: 11px; }

/* Contact form result (site.js fills #ajaxresponse_1) */
.ajaxresponse { padding: 10px 0; }
.ajaxresponse.hidden { display: none; }
.ajaxresponse.is-error { color: #cf1d26; }
#top .avia_ajax_form .is-invalid { border-color: #cf1d26; }

/* Mobile menu overlay (Enfold's, opened by site.js) */
.av-burger-overlay[hidden] { display: none; }
.av-burger-overlay.is-open { display: block; opacity: 1; }
#top #wrap_all .av-burger-overlay #av-burger-menu-ul li a { color: #4f4f4f; font-size: 25px; text-decoration: none; display: block; padding: 10px 0; }
#top #wrap_all .av-burger-overlay #av-burger-menu-ul li.current-menu-item a,
#top #wrap_all .av-burger-overlay #av-burger-menu-ul li a:hover { color: #cf1d26; }
.av-burger-overlay-active .av-burger-menu-main { position: relative; z-index: 150; }
/* the items slide in one after another, as Enfold's JS did */
#top #wrap_all .av-burger-overlay.is-open #av-burger-menu-ul > li { opacity: 1; top: 0; left: 0; }
#top #wrap_all .av-burger-overlay.is-open #av-burger-menu-ul > li:nth-child(2) { transition-delay: 0.05s; }
#top #wrap_all .av-burger-overlay.is-open #av-burger-menu-ul > li:nth-child(3) { transition-delay: 0.1s; }
#top #wrap_all .av-burger-overlay.is-open #av-burger-menu-ul > li:nth-child(4) { transition-delay: 0.15s; }

/* 404 page */
.error404 #main h1 { font-size: 40px; }
