/* Pamata stili: fokuss, box-sizing, virsraksti, saites, attēli, html/body, .container un z-index palīgklases. */

/* Century Gothic no fonts.cdnfonts.com — @font-face te (nevis viņu CSS fails), lai nav render-blocking
   pieprasījuma uz citu domēnu, un ar font-display: swap teksts redzams uzreiz. Regular preload — functions.php. */
@font-face {
  font-family: "Century Gothic Paneuropean";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Century Gothic Paneuropean"), url("https://fonts.cdnfonts.com/s/53036/CenturyGothicPaneuropeanRegular.woff") format("woff");
}
@font-face {
  font-family: "Century Gothic Paneuropean";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local("Century Gothic Paneuropean"), url("https://fonts.cdnfonts.com/s/53036/CenturyGothicPaneuropeanItalic.woff") format("woff");
}
@font-face {
  font-family: "Century Gothic Paneuropean";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local("Century Gothic Paneuropean"), url("https://fonts.cdnfonts.com/s/53036/CenturyGothicPaneuropeanSemiBold.woff") format("woff");
}
@font-face {
  font-family: "Century Gothic Paneuropean";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: local("Century Gothic Paneuropean"), url("https://fonts.cdnfonts.com/s/53036/CenturyGothicPaneuropeanThin.woff") format("woff");
}
@font-face {
  font-family: "Century Gothic Paneuropean";
  font-style: italic;
  font-weight: 100;
  font-display: swap;
  src: local("Century Gothic Paneuropean"), url("https://fonts.cdnfonts.com/s/53036/CenturyGothicPaneuropeanThinItalic.woff") format("woff");
}
@font-face {
  font-family: "Century Gothic Paneuropean";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local("Century Gothic Paneuropean"), url("https://fonts.cdnfonts.com/s/53036/CenturyGothicPaneuropeanLight.woff") format("woff");
}
@font-face {
  font-family: "Century Gothic Paneuropean";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: local("Century Gothic Paneuropean"), url("https://fonts.cdnfonts.com/s/53036/CenturyGothicPaneuropeanLightItalic.woff") format("woff");
}
@font-face {
  font-family: "Century Gothic Paneuropean";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: local("Century Gothic Paneuropean"), url("https://fonts.cdnfonts.com/s/53036/CenturyGothicPaneuropeanSemiBoldItalic.woff") format("woff");
}
@font-face {
  font-family: "Century Gothic Paneuropean";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Century Gothic Paneuropean"), url("https://fonts.cdnfonts.com/s/53036/CenturyGothicPaneuropeanBold.woff") format("woff");
}
@font-face {
  font-family: "Century Gothic Paneuropean";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: local("Century Gothic Paneuropean"), url("https://fonts.cdnfonts.com/s/53036/CenturyGothicPaneuropeanBoldItalic.woff") format("woff");
}

:root {
  --color-white: #fff;
  --color-light-gray: #707070;
  --color-dark-blue: #50656C;
  --color-light-blue: #79A3B1;
  --transition: 0.3s;
}

*:focus {
  outline: 0;
}

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

h1, h2, h3, h4, h5, p, ul, ol {
  padding: 0;
  margin: 0;
  transition: 0.5s;
}

ul, ol {
  list-style: none;
  word-wrap: break-word;
}

a {
  text-decoration: none;
  transition: 0.5s;
}

img {
  height: auto;
}

img, p, input, textarea, button, span {
  transition: var(--transition);
}

iframe {
  max-width: 100%;
}

svg {
  overflow: hidden;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: "Century Gothic Paneuropean", sans-serif;
}

/* Fons tikai uz html (viewport augstumā): `contain` raksta izmērs nemainās, kad saturs (piem., akordeons)
   pagarina body. Uz body tas mērogotos līdzi body augstumam.
   Ielogotam lietotājam WP admin josla pievieno html margin-top — to atņem no augstuma, citādi īsās lapās
   zem kājenes paliek admin joslas augstuma tukšums. */
html {
  height: calc(100% - var(--wp-admin--admin-bar--height, 0px));
  background-color: #f8f8f8;
  background-image: url("../images/bg-pattern.webp");
  background-repeat: repeat;
  background-size: contain;
  /* Vieta ritjoslai vienmēr rezervēta — citādi īsās lapās (bez ritjoslas) centrētais saturs ir ~8px
     pa labi no garajām, un lapa "lec", kad atver akordeonu un parādās ritjosla. */
  scrollbar-gutter: stable;
}

/* Kājene vienmēr lapas apakšā: body ir flex kolonna vismaz loga augstumā, <main> aizpilda brīvo vietu.
   Ielogotam lietotājam WP admin josla pievieno html margin-top — to atņem, lai nerastos lieka ritjosla. */
body {
  background-color: transparent; /* Bootstrap reboot dod baltu --bs-body-bg, kas aizsegtu html fonu */
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}
body > main {
  flex: 1 0 auto;
}

.container {
  max-width: 1000px !important;
}
.container.large-container {
  max-width: 1200px !important;
}

.zindex-1 {
  z-index: 1;
}

.zindex-2 {
  z-index: 2;
}
